apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
<bricker88> Gavilan: Okay - if it's a big method and I want to keep it DRY, what are my options?
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
<Gavilan> bricker88: extract the part that changes to an other method....
<bricker88> good idea - thank you
ringotwo has quit [Ping timeout: 276 seconds]
twodollarz has quit [Remote host closed the connection]
miho has quit [Read error: Connection reset by peer]
miho has joined #ruby
Ontolog has quit [Ping timeout: 248 seconds]
ryan0x2_ has joined #ruby
ryan0x2_ has quit [Remote host closed the connection]
RORgasm has joined #ruby
slap has quit [Quit: slap]
ryanf has quit [Quit: leaving]
mikeg has quit [Quit: Leaving]
ckrailo has quit [Quit: Computer has gone to sleep.]
Caius has quit [Ping timeout: 252 seconds]
ikaros has quit [Quit: Ex-Chat]
<xubuntu5> using rvm how do i tell it what version i want to use?
Caius has joined #ruby
<bricker88> rvm 1.9.3
freezey has quit [Quit: freezey]
bradhe has quit [Remote host closed the connection]
seanstickle has joined #ruby
mockra has quit [Remote host closed the connection]
atmosx_v2 has quit [Ping timeout: 246 seconds]
QaDeS_ has joined #ruby
wilmoore has quit [Remote host closed the connection]
notVert has joined #ruby
wilmoore has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
frishi has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
QaDeS has quit [Ping timeout: 245 seconds]
emmanuelux has joined #ruby
JonnieCache has quit [Ping timeout: 245 seconds]
piotr_ has quit [Ping timeout: 246 seconds]
Ontolog has joined #ruby
andrewhl has quit [Remote host closed the connection]
[[johnonymous]] has joined #ruby
Progster has joined #ruby
[[johnonymous]] has quit [Client Quit]
bear_cat has joined #ruby
QaDeS_ has quit [Quit: Ex-Chat]
bear_cat has left #ruby [#ruby]
wilmoore has quit [Ping timeout: 246 seconds]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
zeromodulus has quit [Remote host closed the connection]
mockra has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
josefig has quit [Quit: Computer has gone to sleep.]
Juul has quit [Read error: Operation timed out]
stephenjudkins has quit [Quit: stephenjudkins]
Progster has quit [Ping timeout: 252 seconds]
erichmenge has quit [Quit: erichmenge]
udante has quit [Quit: Leaving...]
mvangala_home has joined #ruby
sepp2k has joined #ruby
<shevy> also "rvm --default use 1.9.3"
jlogsdon_ has joined #ruby
mengu has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
hemanth has joined #ruby
nai has joined #ruby
frishi has quit [Quit: Leaving...]
bradhe has joined #ruby
jlogsdon has quit [Ping timeout: 246 seconds]
Chryson has joined #ruby
nai has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
jlogsdon_ has quit [Remote host closed the connection]
bearlulz has joined #ruby
Solnse has quit [Ping timeout: 255 seconds]
btanaka has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
ph^ has quit [Remote host closed the connection]
perryh_away is now known as perryh
freeayu has joined #ruby
emmanuelux has quit [Remote host closed the connection]
ph^_ has joined #ruby
mobilegamelabs has joined #ruby
liluo has quit [Remote host closed the connection]
mobilegamelabs is now known as MGGGGG
Ontolog has quit [Ping timeout: 246 seconds]
mpun7 has left #ruby [#ruby]
MGGGGG has left #ruby [#ruby]
Dennis has joined #ruby
ph^_ has quit [Ping timeout: 244 seconds]
mockra has quit [Remote host closed the connection]
ben_m` has joined #ruby
kah_ has joined #ruby
Croms has quit [Read error: Connection reset by peer]
tvw has quit [Ping timeout: 246 seconds]
vladiim has joined #ruby
ben_m has quit [Ping timeout: 246 seconds]
tvw has joined #ruby
Ontolog has joined #ruby
L-----D has joined #ruby
Targen has joined #ruby
zeromodulus has joined #ruby
tomzx has joined #ruby
adamkittelson has quit [Remote host closed the connection]
ben_m` is now known as ben_m
jrist is now known as jrist-afk
ben_m has quit [Quit: Leaving]
Xai has joined #ruby
miho has quit [Read error: Connection reset by peer]
eywu has quit [Quit: Leaving.]
rouss has quit [Quit: Computer has gone to sleep.]
iocor has quit [Quit: Computer has gone to sleep.]
ZachBeta has quit [Quit: Computer has gone to sleep.]
miho has joined #ruby
slap has joined #ruby
mfridh has quit [Ping timeout: 256 seconds]
pdtpatrick_ has joined #ruby
ABK_ has quit [Ping timeout: 260 seconds]
queequeg1 has quit [Ping timeout: 265 seconds]
pdtpatrick has quit [Ping timeout: 244 seconds]
dhruvasagar has joined #ruby
queequeg1 has joined #ruby
mobilegamelabs has joined #ruby
jarred has quit [Quit: jarred]
liluo has joined #ruby
pdtpatrick_ has quit [Ping timeout: 276 seconds]
sorbo_ has left #ruby [#ruby]
emmanuelux has joined #ruby
savage- has quit [Remote host closed the connection]
indian has quit [Quit: Leaving]
shadoi has quit [Ping timeout: 264 seconds]
Ontolog has quit [Remote host closed the connection]
wubino has joined #ruby
kenichi has quit [Remote host closed the connection]
macmartine has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
bearlulz has quit [Quit: Computer has gone to sleep.]
Ethan has quit [Quit: bestest breastests]
wallerdev has joined #ruby
Boohbah has quit [Ping timeout: 276 seconds]
atmosx has joined #ruby
macmartine has quit [Remote host closed the connection]
Boohbah has joined #ruby
frishi has joined #ruby
vladiim has quit [Quit: vladiim]
yoklov has quit [Quit: computer sleeping]
digitalcakestudi has quit [Quit: Leaving.]
flip_digits has joined #ruby
mdhopkins has joined #ruby
wubino has quit [Quit: Leaving]
vladiim has joined #ruby
beilabs has joined #ruby
kevinbond has joined #ruby
freezey has joined #ruby
<daed> so what's the hot linux distro these days
cableray has joined #ruby
busybox42 has joined #ruby
<seanstickle> daed: FreeBSD
Hanmac1 has joined #ruby
wallerdev has quit [Quit: wallerdev]
<daed> that's a pretty strange linux distro bro.
<seanstickle> That's ok. It was a pretty dumb question.
<daed> super cool story
<daed> thanks for your help.
Hanmac has quit [Ping timeout: 252 seconds]
williamcotton has quit [Quit: williamcotton]
apok_ has joined #ruby
* seanstickle shrugs
wallerdev has joined #ruby
zamN has joined #ruby
nari has joined #ruby
<zamN> hey when i try to do: test = File.open(blah, "r") and run it I get a permission denied by windows. for the life of me can not figure this out
beilabs has quit [Quit: Leaving]
<zamN> i just simply want to read the contents of this directory
apok has quit [Ping timeout: 246 seconds]
beilabs has joined #ruby
<seanstickle> You can't open a directory with File.open
<zamN> ?
<zamN> why does .directory? exist then?
<seanstickle> Different reasons.
<seanstickle> But none relevant to your interest
<seanstickle> Just use Dir
<zamN> so how am i supposed to parse these directories
<zamN> ok
apok_ has quit [Read error: Operation timed out]
eft has quit [Read error: Connection reset by peer]
Boohbah has quit [Remote host closed the connection]
eft has joined #ruby
eft has quit [Read error: Connection reset by peer]
Boohbah has joined #ruby
eft has joined #ruby
eft has quit [Read error: Connection reset by peer]
eft has joined #ruby
eft has quit [Read error: Connection reset by peer]
shadoi has joined #ruby
eft has joined #ruby
eft has quit [Read error: Connection reset by peer]
eft has joined #ruby
bricker88 has quit [Quit: Leaving.]
eft has quit [Read error: Connection reset by peer]
demian`_ has quit [Quit: demian`_]
eft has joined #ruby
eft has quit [Read error: Connection reset by peer]
eft has joined #ruby
eft has quit [Read error: Connection reset by peer]
eft has joined #ruby
bearlulz has joined #ruby
eft has quit [Read error: Connection reset by peer]
shadoi has quit [Remote host closed the connection]
cjs has joined #ruby
eft has joined #ruby
beilabs has quit [Ping timeout: 276 seconds]
freezey has quit [Quit: freezey]
shadoi has joined #ruby
vladiim has quit [Quit: vladiim]
eft has quit [Read error: Connection reset by peer]
eft has joined #ruby
vitoravelino is now known as vitoravelino`afk
deavid has quit [Read error: Operation timed out]
Markvilla has quit [Quit: Markvilla]
Sigma00 has quit [Ping timeout: 252 seconds]
Karmaon has quit [Read error: Connection reset by peer]
Kwpolska has quit [Ping timeout: 252 seconds]
JodaZ_ has joined #ruby
preller has quit [Ping timeout: 252 seconds]
mattp_ has quit [Ping timeout: 252 seconds]
eregon has quit [Ping timeout: 252 seconds]
deavid has joined #ruby
JodaZ has quit [Ping timeout: 276 seconds]
vladiim has joined #ruby
mattp_ has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
eregon has joined #ruby
Kwpolska has joined #ruby
vladiim has quit [Client Quit]
nazty has joined #ruby
Karmaon has joined #ruby
Karmaon has quit [Read error: Connection reset by peer]
Karmaon has joined #ruby
Sigma00 has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
itnomad has joined #ruby
xnm has joined #ruby
atmosx has joined #ruby
_whitelogger has joined #ruby
Aaton is now known as Aaton_off
grendlme has quit [Quit: grendlme]
philips has quit [Excess Flood]
philips has joined #ruby
Drewch has joined #ruby
tomzx has quit [Killed (rowling.freenode.net (Nickname regained by services))]
ananthakumaran has joined #ruby
michaelmartinez has joined #ruby
miho has quit [Ping timeout: 272 seconds]
stefanp_ has joined #ruby
Drewch has quit [Read error: Operation timed out]
michaelmartinez has quit [Remote host closed the connection]
wpaulson has joined #ruby
michaelmartinez has joined #ruby
pygmael has quit [Quit: pygmael]
stefanp has quit [Ping timeout: 265 seconds]
ipoval has joined #ruby
Drewch has joined #ruby
ben_alman has quit [Excess Flood]
RainbowDashh has joined #ruby
xnm has quit [Read error: Connection reset by peer]
Spooner has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Progster has quit [Ping timeout: 245 seconds]
RainbowDashh has quit [Ping timeout: 264 seconds]
xnm has joined #ruby
ben_alman has joined #ruby
ryanf has joined #ruby
JeffreyBaird has joined #ruby
RainbowDashh has joined #ruby
shinobi_one has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
umttumt has joined #ruby
<shinobi_one> looking for help on this regex => starts with a letter, has a length of at least 5 and has at least one letter
<ryanf> what
<ryanf> if it has to start with a letter, doesn't that guarantee that it has at least one letter?
<ryanf> or do you mean at least one other letter?
<shinobi_one> shit has at least one number*
<shinobi_one> xD
<ryanf> oh
ilyam has quit [Quit: ilyam]
<ryanf> I don't think you can construct a reasonable regex that does that. I hope someone proves me wrong, though, because it'd be cool
<shinobi_one> i don't need the length part i guess, but if i could get starts with a letter, has at least one number, that would be nice
<ryanf> oh yeah that's easy
<shinobi_one> nvm i can do that myself lol
<shinobi_one> xD
<ryanf> 1 + 2 and 1 + 3 are both easy
<ciopte7> hmm is this not working
<seanstickle> ^\w(?=\w*\d)\w*
<seanstickle> But you might also find more insight at #regex
Drewch has quit [Ping timeout: 246 seconds]
gtuckerkellogg has joined #ruby
<shinobi_one> i'm trying to construct a regex for usernames, starts with letter (has at least 4 in it) and at least one number
<shinobi_one> not sure it's actually possible
fbernier has quit [Ping timeout: 264 seconds]
<ryanf> yeah just do it in multiple steps
<ciopte7> \A([a-zA-Z]\d+){5}
<ryanf> no
<ryanf> that requires it to be in pairs of letter and digit
azm has joined #ruby
<ryanf> and it also has to be at least 10 with that one
<xubuntu5> i am trying to run a simple gem command gem install ncurses and i get this error: Could not create Makefile due to some reason probably lack of necessary libraries and/or headers any help would be greatly appreciated
<ryanf> you can do /\A\w.*\d/ to meet requirements 1 and 3, and then just check length >= 5 for the other one
<ryanf> xubuntu5: it doesn't know where your curses library is installed (or you don't have it installed)
<ryanf> judging by your name, I'm guessing might need to do apt-get install ncurses or ncurses-dev or something
<ryanf> +you
<xubuntu5> running ryanf thank you, will give that ago
<shinobi_one> ryanf: can't use \w.* because that allows anything after the \w.
<ryanf> right
<ryanf> didn't you say starts with a letter and contains at least one digit?
<ryanf> that regex enforces having a digit, but you don't care what's between the first letter and the digit
<ryanf> oh you mean it has to have 4 letters, as opposed to numbers?
<ryanf> or whatever?
<ryanf> why are you setting such arbitrary password requirements to begin with?
<xubuntu5> random question are the regex of ruby similar at all to perl?
<ryanf> this is what makes users hate you :)
<shinobi_one> ryanf: not password requirements, username requirements
<ryanf> oh misread, I see.
<shinobi_one> has at least 4 letters and 1 number, starts with a letter lol
<ryanf> anyway that complicates things even more
<ryanf> assuming you don't care where the number falls
<xubuntu5> ryanf thank you, it was ncurses-dev
kylemcgill has quit [Remote host closed the connection]
lotus2015 has joined #ruby
kevinbond has quit [Quit: kevinbond]
<lotus2015> Is there anyone can take a look for me?
<xubuntu5> i ran sudo gem install ncursesw and got this: /home/jxxd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- zlib (LoadError)from /home/jxxd/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
<xubuntu5> do i need a zlib?
igotnolegs has joined #ruby
brianpWins has joined #ruby
<lotus2015> I paste my question on the StackOverflow.com
<bnagy> xubuntu5: yeah, there are lists you can find with google
<bnagy> for systems that have inadequate basic libs
<bnagy> there are a few you'll need
<xubuntu5> thanks it's an old xubuntu install thought so
ringotwo has quit [Remote host closed the connection]
<bnagy> start with build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev
<bnagy> and go from there
<xubuntu5> wow
<xubuntu5> good list will get those and see thanks bnagy
<bnagy> I pasted from an EC2 setup script I have for old debina :S
<xubuntu5> heh good recollection finding it thanks again!
xnm has quit [Read error: Connection reset by peer]
Zirkon has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
umttumt has quit [Remote host closed the connection]
RainbowDashh has joined #ruby
azm has quit [Quit: Leaving]
emmanuelux has quit [Remote host closed the connection]
L-----D has quit [Quit: Leaving]
cableray has quit [Quit: cableray]
brianpWins has quit [Quit: brianpWins]
rvmeier has quit [Quit: Saliendo]
gtuckerkellogg has quit [Ping timeout: 265 seconds]
faitswulff has left #ruby [#ruby]
gtuckerkellogg has joined #ruby
Beoran_ has quit [Ping timeout: 264 seconds]
remmy444 has joined #ruby
itnomad has quit [Ping timeout: 264 seconds]
Monofu has joined #ruby
user__ has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
Bonkers has quit [Quit: Leaving]
akem has quit [Ping timeout: 255 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
wpaulson has joined #ruby
Monofu has quit [Client Quit]
jwang has joined #ruby
mobilegamelabs has joined #ruby
notVert has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
mdhopkins has joined #ruby
akem has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
user__ has quit [Ping timeout: 255 seconds]
hemanth has joined #ruby
mdhopkins has quit [Client Quit]
Chryson has quit [Quit: Leaving]
Beoran_ has joined #ruby
trend has quit [Disconnected by services]
perryh is now known as perryh_away
cearls has joined #ruby
akem has quit [Ping timeout: 255 seconds]
<srawlins> anyone willing to help me compile custom ruby 1.9 sources? I'm taking MRI and re-implementing bignum; i get a segfault linking miniruby...
peterhil has joined #ruby
mvangal__ has quit [Remote host closed the connection]
L-----D has joined #ruby
<bnagy> srawlins: try over in #ruby-lang
<srawlins> *facepalm*
<srawlins> thanks much!
seanstickle has quit [Quit: Nihil sub sole novum]
<xubuntu5> what are all the dependencies for ncursesw?
nazty has quit [Ping timeout: 260 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
umttumt has joined #ruby
Monofu has joined #ruby
yonggu has joined #ruby
kill-9_ has quit [Ping timeout: 244 seconds]
srawlins has left #ruby [#ruby]
yonggu has left #ruby [#ruby]
xubuntu5 has quit [Remote host closed the connection]
rudle has quit [Ping timeout: 255 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<zamN> hey uh
<zamN> title = line[line.index(("title=\"") + 7)...line.index("\">")]
<zamN> line is a string
<zamN> and apparently thats turning that into a fixnum?
perryh_away is now known as perryh
remmy444 has quit [Remote host closed the connection]
<zamN> :q
<sepp2k> zamN: You're trying to add 7 to a string there: ("title=\"") + 7
philips has quit [Excess Flood]
<zamN> yeah
<zamN> i fixed that
philips has joined #ruby
<zamN> once i get to the i ==2 part
<zamN> my two variables equal nil
<zamN> for some odd reason
<zamN> is ther somethign i should know
<zamN> lol
<sepp2k> zamN: If you create local variables inside a block, they're local to the block and will lose their value at the end of the block. You need to create them before the block to keep their value between iterations
<sepp2k> (set them to nil)
<zamN> well that makes sense
<sepp2k> Also don't do File.open().each. That way the file won't get closed (until it's GCed anyway). Do File.foreach(bla) do end
burgestrand has quit [Quit: Leaving.]
<zamN> that cuts my line off
<zamN> weird
<sepp2k> Also you might want to consider using an xml or html parser for robustness' sake instead of fishing the info you want out of the string by hand.
<zamN> well
tommyvyo has joined #ruby
<zamN> this is only temporary
<zamN> as if i had to do this 1000 times iw ould kill myself.
<zamN> lol
<zamN> so im writing a program to do it for me
<zamN> and ruby is the onlyt hing i know that i can write in 5 minutes
kah_ has quit [Ping timeout: 250 seconds]
quest88 has joined #ruby
<sepp2k> zamN: Also take a look at each_slice instead of doing your counting thing with i.
<zamN> ruby has it all
<sepp2k> That also gets rid of your local variable problem without having to define them outside.
<zamN> why do i even bother thinking
<zamN> lol
<sepp2k> Because then you only need the values within the same iteration (because you'd be iterating in steps of three)
uris has quit [Quit: leaving]
S2kx has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
d3vic3 has quit [Ping timeout: 245 seconds]
wilmoore has joined #ruby
JeffreyBaird has quit [Quit: JeffreyBaird]
S1kx has quit [Ping timeout: 245 seconds]
d3vic3 has joined #ruby
Monofu has quit [Read error: Connection reset by peer]
Monofu_ has joined #ruby
Monofu_ has left #ruby [#ruby]
pu22l3r_ has joined #ruby
dnyy has quit [Remote host closed the connection]
m_3 has quit [Ping timeout: 246 seconds]
albemuth has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
perryh is now known as perry
pu22l3r has quit [Ping timeout: 276 seconds]
m_3 has joined #ruby
macmartine has joined #ruby
yxhuvud has joined #ruby
Karmaon has quit [Ping timeout: 260 seconds]
r0bby_ is now known as robbyoconnor
m_3 has quit [Ping timeout: 246 seconds]
m_3 has joined #ruby
AndChat| has quit [Ping timeout: 252 seconds]
ericcoleman has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
banghouse has quit [Remote host closed the connection]
kenperkins has joined #ruby
dnyy has joined #ruby
ABK_ has joined #ruby
Targen has quit [Ping timeout: 245 seconds]
bearlulz has quit [Quit: Computer has gone to sleep.]
Morgotth has joined #ruby
Morgotth has quit [Client Quit]
circlicious has joined #ruby
<circlicious> is there a channel for slim templating ?
<circlicious> slimrb
<circlicious> if not then i need some help with this - http://pastie.org/private/rwiyfwkvznzsucmmlsqmaq
pu22l3r_ has quit [Remote host closed the connection]
ebanoid has joined #ruby
vladiim has joined #ruby
niku4i has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
IrishGringo has joined #ruby
EzeQL has joined #ruby
_iMBA has joined #ruby
niku4i has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
bearlulz has joined #ruby
fantazo has joined #ruby
bluOxigen has joined #ruby
Karmaon has joined #ruby
burgestrand has joined #ruby
TheFuzzball has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
xnm has joined #ruby
tonini has joined #ruby
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
andrewhl has quit [Remote host closed the connection]
hukl has joined #ruby
umttumt has quit [Remote host closed the connection]
vectorshelve has joined #ruby
raja has joined #ruby
IrishGringo has quit [Ping timeout: 244 seconds]
Vanila has joined #ruby
ringotwo has joined #ruby
Vanila has left #ruby [#ruby]
yoklov has quit [Quit: computer sleeping]
vladiim has quit [Quit: vladiim]
mayankkohaley has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
manizzle has joined #ruby
mockra has joined #ruby
Zirkon has quit []
nazty has joined #ruby
<greyEAX> okay so i have a problem. i have a variable that's equal to a parse result. specifically, pdata = JSON.parse(data). the problem is that if the JSON string isn't formatted properly, it throws an exception and my script dies. I need to be able to stop that but I can't figure out how... can anyone help me?
burgestrand has quit [Quit: Leaving.]
<greyEAX> oh i think i figured it out
<greyEAX> hoo dee doo
nazty has quit [Ping timeout: 255 seconds]
quest88 has quit [Quit: quest88]
beilabs has quit [Ping timeout: 246 seconds]
macmartine has quit [Quit: macmartine]
wargasm has quit [Read error: Connection reset by peer]
vladiim has joined #ruby
mikepack has quit [Remote host closed the connection]
wargasm has joined #ruby
cearls has quit [Quit: cearls]
mikepack has joined #ruby
Hanmac1 is now known as Hanmac
djdb has joined #ruby
ryanf has quit [Quit: leaving]
graspee has joined #ruby
hukl has quit [Quit: Linkinus - http://linkinus.com]
beilabs has joined #ruby
<circlicious> this channel is so dead
lotus2015 has left #ruby [#ruby]
larissa has quit [Quit: gone]
<Hanmac> circlicious: it seems that your slimrb needs an slim gem
senny has joined #ruby
stephenjudkins has joined #ruby
<circlicious> hmm, i have it install Hanmac
<circlicious> its in the pwd, not in the usr dir tho
RORgasm has quit [Remote host closed the connection]
ABK_ has quit [Ping timeout: 248 seconds]
ciopte7 has quit [Quit: ciopte7]
<Hanmac> can you pastie me the slimrb file? maybe it looks for the wrong ruby (or you installed the gem in the wrong file)
Jackneill has joined #ruby
<circlicious> :(
<Hanmac> i dont like the #!/usr/local/bin/ruby ... but its maybe your choice ... does /usr/local/bin/gem --listall shows slim?
stephenjudkins_ has joined #ruby
<circlicious> Hanmac: its not my library mate
<Hanmac> oh sorry its /usr/local/bin/gem list
<circlicious> no it does not
<circlicious> because i installed slim in /var/www/projects/gems
charliesome has joined #ruby
<banisterfiend> Hanmac: let's have a conversation, there's been something i've been meaning to ask you, and it's ruby-related
<circlicious> i passed -i /var/www/projects/gem to gem install
ryanf has joined #ruby
jimeh4 has joined #ruby
<circlicious> maybe that path needs to be present in Gem PATh ?
stephenjudkins has quit [Ping timeout: 244 seconds]
stephenjudkins_ is now known as stephenjudkins
<circlicious> i dont know how to do that :S
maesbn has joined #ruby
ananthakumaran has joined #ruby
<Hanmac> (why not install slim directy with gem install slim ?)
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
<circlicious> Hanmac: umm, i dont want to globally install it ?
ph^ has joined #ruby
<circlicious> umm, i dont know. i just felt like not installing gems for this project globally
<circlicious> because i am going to pass userdata to these gems and execute in my app
<circlicious> so keep it local to the project
<Hanmac> banister you can try to ask me there too
mikepack has quit [Remote host closed the connection]
<circlicious> so... not possible to fix this
<circlicious> ?
<banisterfiend> Hanmac: when given a singleton class, do u know a ncie way to get the associated object i.e: obj.singleton_class ... from that figure out obj
zommi has joined #ruby
<charliesome> is there a way to install gem dependencies locally to a project, like node_modules in node.js?
<circlicious> charliesome: wow, even i am doing that
<circlicious> i did for haml and slim, haml works fine, slim is not :/
<charliesome> circlicious: how did you go about it?
<circlicious> maybe the path needs to be there in GEMSPATH, whats the command to ad a patht o GEMS PATH?
<circlicious> gem install -i gems/ - charliesome
<charliesome> ah cool
<circlicious> my project is node.js but i need few ruby gems
<circlicious> and then execute their bin
<charliesome> i'd like to be able to deploy this app of mine without sudo and i can't be bothered setting up rvm or rbenv
<circlicious> smae here ll
<circlicious> *lol
zomgbie has joined #ruby
<banisterfiend> Hanmac: any idea
<Hanmac> hm no ... i there must be a way because inspect shows the object id ... but i think its hiddin in the C site ...
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
<circlicious> charliesome: let me know if u find cool ways
<charliesome> will do
<circlicious> right now i cant run slimrb, solution is probably to add the path to GEMSPATH via gemrc or bashrc
<circlicious> but i dont want to do that even
<banisterfiend> Hanmac: hmm if inspect shows object id, then u can probably use ObjectSpace._id2ref() to get the object back
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
JohnBat26 has joined #ruby
sandstrom has joined #ruby
sandstrom has quit [Changing host]
sandstrom has joined #ruby
ilyam has joined #ruby
<banisterfiend> Hanmac: by breaking up string returned from #inspect
<banisterfiend> but that feels weird
wallerdev has quit [Quit: wallerdev]
ilyam has quit [Client Quit]
jprovazn_away is now known as jprovazn
workmad3 has joined #ruby
<circlicious> is there a Slim channel on IRC?
qwerxy has joined #ruby
Bosma has quit [Ping timeout: 252 seconds]
heftig has quit [Ping timeout: 248 seconds]
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
vladiim has quit [Quit: vladiim]
ipoval has quit [Quit: ipoval]
ABK has joined #ruby
allanm has quit [Read error: Connection reset by peer]
nirakara has joined #ruby
RainbowDashh has joined #ruby
allanm has joined #ruby
nilg has joined #ruby
ericcoleman has quit [Quit: leaving]
<circlicious> ya that fixes it
<Hanmac> banisterfiend: https://github.com/ruby/ruby/blob/trunk/object.c#L1357 << this line may help you :P
rouss has joined #ruby
<circlicious> but not something i want :/
Morkel has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
RainbowDashh has quit [Ping timeout: 246 seconds]
vladiim has joined #ruby
daniel_hinojosa has quit [Ping timeout: 260 seconds]
ankakusu has joined #ruby
timonv has joined #ruby
Solnse has joined #ruby
smckinney has joined #ruby
wardrop has quit [Ping timeout: 250 seconds]
nilg has quit [Read error: Connection reset by peer]
nilg has joined #ruby
nikhil_ has joined #ruby
RainbowDashh has joined #ruby
zamN has quit []
robotmay has joined #ruby
Asher1 has joined #ruby
nirakara has quit [Ping timeout: 264 seconds]
schovi has joined #ruby
Asher has quit [Ping timeout: 265 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
gilead has joined #ruby
bearlulz has quit [Quit: Computer has gone to sleep.]
rohit has joined #ruby
bosphorus has joined #ruby
circlicious has left #ruby [#ruby]
<graspee> does the gem format have a version number in it? like a version required number or something similar?
<graspee> i find quite a lot of out of date gems that don't work and i thought it would be better if there was like a version number in the gem, and the author specified it, so if your gem works with 1.9.3 you put that version in; if a gem hasn't been touched for ages or is specifically for 1.8 the v number in there will be 1.8 and you get a warning like 'this gem may be out of date'
vladiim has quit [Quit: vladiim]
dhruvasagar has joined #ruby
_iMBA has quit [Read error: Connection reset by peer]
ciopte7 has joined #ruby
_iMBA has joined #ruby
<deryl> there is already Gem::Specification#required_ruby_version its just not used often
<graspee> that's the trouble with optional systems
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
spikku has joined #ruby
<graspee> it's just - i mean i know ruby is healthy and vibrant, but it could create quite a bad impression on someone starting with ruby if they keep bumping into gems that don't work
<graspee> there's gems that are years old and don't work and haven't worked for years
<deryl> plus, anyone and their brother can write a gem and push it out. no law out there that it has to be maintained, updated, or even fully conform. thats the problem
<graspee> oh
<graspee> i didn't realise that
<deryl> no different than the shareware days
<graspee> i thought there was some kind of gem maintainer
<deryl> people dropping tons of crappy try-before-you-buy stuff
<deryl> no, there is a central repository like http://rubygems.org but there is nothing that requires maintaining of the gems
robotmay has quit [Remote host closed the connection]
<deryl> its up to the individual maintainers to do that. this is an open community. contribute as you can and as you will
<graspee> so i could write a gem today that claims to analyse databases but instead writes "lol pangolin penis" unendingly on the screen?
<graspee> and no-one would even be able to remove it?
vladiim has joined #ruby
Eldariof-ru has joined #ruby
<deryl> can you remove a picture you put out publicy and be absolutely sure its gone? no.
<deryl> same here
<deryl> welcome to the wild wild west called the internet
<graspee> i'm surprising the gem situation looks as professional as it does in that case
<graspee> the possibility for abuse looks vast
<deryl> because most gems that are worth anything are in common and constant use. you learn what to use and what not
<deryl> no more so than irc
<graspee> there doesn't seem to be any trolling in the gems though
<deryl> irc has HUGE potential to be abused, and is. but the general cohesion of irc is there
<graspee> couldn't someone just push out a hundred thousand gems, named after dictionary words that all do the same stupid thing?
<deryl> i'm sure you understood the concept i was pointing out
<banisterfiend> i am camping on the 'ruby' ge
<graspee> i do but it is a little different because irc is like a river, flowing and disappearing
<deryl> if someone did that, then the repository would clean it up once it was shown it was purely abusive
<deryl> same with code.
<banisterfiend> graspee: gem install ruby, installs my little thing :P (it does rm -rf /)
<deryl> people come and go. gems die off, their carcasses litter the internet
<graspee> you seriously wrote that, banister?
dhruvasagar has quit [Ping timeout: 246 seconds]
<banisterfiend> graspee: try it and see, gem install ruby
<graspee> no because i'd have to sudo do it so it would work
rohit has quit [Quit: Leaving]
h0rd has quit [Remote host closed the connection]
<banisterfiend> graspee: well then u have noting to worry about
<graspee> it would cost me hours of time to put my system back
<banisterfiend> graspee: so u might as well install it
<deryl> the community is pretty sauve. it gets out what should and should not be used. people pay attention to newsgroups, mailing lists, podcasts, hang out in channels, google things and look at what the majority are using.
dhruvasagar has joined #ruby
<deryl> thats pretty much how any opensource community polices itself
Asher has joined #ruby
<deryl> same in the linux community. there are literally *craloads* of dead and bygone apps out there
<deryl> and a lot of good solid used-everyday apps
<graspee> you said the repository would clean it up though. i thought there was no maintainer?
<deryl> there is no central gem police force
<deryl> thats what you were aiming at
<deryl> if it was shown that there was a dangerous and mass-dumped gem such as your example, the server admins woud remove it because of taht
<graspee> i didn't make my point clearly then sorry, i just meant someone who had the power to delete gems that were obviously rubbish and clear up problems
<deryl> obvious to whom? one man's trash is another man's treasure
<graspee> if it does rm -rf it's not anyoene treasure
Guest92562 has quit [Remote host closed the connection]
<deryl> if it was known that gem 'mylovelygem' was really a trojan or a machine killer, the repositories would ban it.
<graspee> well that's what i meant really
<deryl> but beyond that.. welcome to the internet where anything goes
<davidcelis> are we talking about bumblebee
<deryl> well you need to be specific when you're talking about policing
<deryl> and thats dead on what you're suggesting. full on policing
<graspee> i didn't use the word policing
<deryl> i am
Asher1 has quit [Ping timeout: 276 seconds]
<graspee> i said maintainer
<deryl> your concept is generally called policing
<deryl> gems are maintained by their creator
dekroning has joined #ruby
<davidcelis> i remember when uninstalling bumblebee ran `rm -rf /usr`
<dekroning> good morning
<deryl> all places like rubygems does is make gems centrally available
<deryl> like perl's CPAN
<deryl> yes, dangerous gems that are intently malicious generally get removed. but a gem thats just broken or not maintained or is just plain crappy isn't going to be removed.
<graspee> great i'm paranoid about using gems now
<davidcelis> lol
TPFC-SYSTEM has joined #ruby
<deryl> you should be paranoid about anything you didn't write.
<davidcelis> i'm paranoid of things deryl writes, but that's about it
<deryl> at least anyone sane would be
<davidcelis> i'm mostly paranoid about the things i wrote, though
mockra has quit [Remote host closed the connection]
<deryl> davidcelis: you should be. that gem i installed last night fires off in two weeks and impregnates your dog with alien dna
<banisterfiend> hehe
<banisterfiend> deryl: nice imagery
<davidcelis> `gem build gemspec && gem push` oh shit i hope i didn't break everything, fuck fuck fuck
<graspee> i'm going to have to read the source of every single gem now
<deryl> banisterfiend: lol. i try :)
<graspee> before i install it
<davidcelis> graspee: yeah dude, that's what you're SUPPOSED to do
<davidcelis> don't install shit without knowing what it does
<deryl> hell i know people that dumpster dive their compiler's source before the build and install it
<deryl> a
<deryl> l
<graspee> no-one has time to read the source of everything they install
Shoobdidoo has joined #ruby
<deryl> l depends on how 'paranoid' you want to be. where is your 'implicit trust' level crossed
<davidcelis> graspee: at least skim it; and don't lie and say you don't have time to skim through the code
<graspee> i didn't say anything
clockwize has joined #ruby
<deryl> graspee: you're here complaining about it. that time you took to say something about it could have been spent skimming some of that code :)
vladiim has left #ruby [#ruby]
<deryl> there's as much time as you personally make available
<graspee> there is a bit of an edge developing to this convo so i'm going
rouss has quit [Ping timeout: 272 seconds]
nikhil_ has quit [Quit: This computer has gone to sleep]
<deryl> basically it just comes down to this is an open community. and the general warranty is there is no warranty
<deryl> ad like any community there are nutballs in it, and solid upstanding citizens
arturaz has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
fantazo has quit [Remote host closed the connection]
Shoobdidoo has quit [Client Quit]
wardrop has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<graspee> i never should have taken banisterfiend off ignore. he's writing shit about me in other channels now. what a troll
Criztian has joined #ruby
<banisterfiend> graspee: your reactions are so hysterical and ridiculous it makes it too tempting, u're fun to troll
<graspee> go fuck yourself
<banisterfiend> and threatening to take someone to court because they're being teasing to u on irc is LOL
<deryl> pure lol
<banisterfiend> s/being//
dhruvasagar has quit [Ping timeout: 265 seconds]
<Criztian> lol who said it?
jenglish has joined #ruby
<deryl> hell they can't even use threatening to kill someone against you even as evidence until after you do.
<banisterfiend> Criztian: graspee is going to take me to court cos im teasing him in an irc channel
dhruvasagar has joined #ruby
<deryl> depending on who you're threatening you MIGHT have a cop show up if the person has enough personal power. but beyond that.. hahahah
<Criztian> trollers would all be in jail then
<deryl> no shit :)
rudle has joined #ruby
<graspee> several people have been jailed or fined for saying things on facebook or twitter
<banisterfiend> haha he's srs
<deryl> because they did something IN ADDITION TO
<graspee> like joking about bombing an airport
<graspee> no
<graspee> just the text
<deryl> uhh dude, now you're just trying to troll. go ahead here.
<Criztian> graspee: because facebook and twitter has much more visibility
<graspee> some people were jailed because they said 'let's riot' or something on facebook
RainbowDashh has quit [Disconnected by services]
RainbowD_ has joined #ruby
<graspee> the guy who joked about bombing an airport on twitter got jailed i think or fined
<deryl> I am seriously easy to find. So, please open a lawsuit against me. I am hereby telling you to go fuck yourself and if I see you in real life I'm break your legs.
<Criztian> plus if you say something about someone, there's both name and last name of that person you are insulting, it's not anonymous
L-----D has quit [Quit: Leaving]
<graspee> who are you talking to?
<deryl> so.. how much you want to seek in damages
<banisterfiend> graspee: calling someone names on irc != threatening to bomb an airport
<banisterfiend> idiot
<deryl> graspee: you
piotr_ has joined #ruby
emmanuelux has joined #ruby
<deryl> I am Deryl R. Doucette. I;'m easy to find. Please sue me for that
<Criztian> calling names is bad anyway
<graspee> i know you're not serious though so there's no danger
<graspee> because you're just trying to make a point
<deryl> you THINK i'm not serious
<deryl> what if I am?
<graspee> this whole conversation is pointless and off topic
<deryl> you started it. eat the meal you cooked
<graspee> whatever
wardrop has quit [Ping timeout: 276 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
<deryl> uh huh
raja has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
MissionCritical has quit [Ping timeout: 245 seconds]
charliesome has quit [Ping timeout: 244 seconds]
DarthGandalf has quit [Quit: Bye]
tomb_ has joined #ruby
spikku has quit [Quit: Leaving]
maletor has quit [Quit: Computer has gone to sleep.]
stewart_ has quit [Ping timeout: 246 seconds]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
francisfish has joined #ruby
maletor has joined #ruby
Criztian has quit [Remote host closed the connection]
Mchl has joined #ruby
Mchl has quit [Excess Flood]
etehtsea has joined #ruby
fixl has joined #ruby
stewart_ has joined #ruby
Criztian has joined #ruby
qwerxy has quit [Quit: offski]
Mchl has joined #ruby
qwerxy has joined #ruby
CheeToS has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 264 seconds]
titas9x has joined #ruby
dhruvasagar has joined #ruby
mwilson_ has joined #ruby
wagle has quit [Ping timeout: 244 seconds]
<mwilson_> hey, new to ruby. If I've got arr = [['a','b','c']] and I iterate over arr like this, arr.each { |foo| ... }
ryanf has quit [Quit: leaving]
<mwilson_> foo becomes a concatenated string of all the values in child list
<mwilson_> how do I reference it as an actual list?
seitensei has joined #ruby
<sepp2k> mwilson_: No, it doesn't. foo will be an array.
<bnagy> you can do arr.each {|(a,b,c)| ... or arr.each {|subarray| ...
vectorshelve has quit [Quit: Page closed]
<banisterfiend> mwilson_: where did u get that crooked idea from? :)
<sepp2k> bnagy: He's already doing the latter. Renaming "foo" to "subarray" won't alter the behavior of the program
vectorshelve has joined #ruby
<bnagy> sepp2k: I know, I was just trying to make it clear what the block args were
<mwilson_> gives me nil
<sepp2k> mwilson_: deps is [[['bla', 'bla', 'bla']]]
<bnagy> yeah cause you pushed a nested array
<mwilson_> er?
<sepp2k> So dep is [['bla', 'bla', 'bla']]
<sepp2k> So dep[1] is nil because dep has only one element.
<mwilson_> should be deps[0][0] deps[0][1] deps[0][2] no?
<sepp2k> mwilson_: foo = []; foo << 1 now foo is [1]. foo = []; foo << [1] now foo is [[1]]
<mwilson_> oh
<mwilson_> fuck
<bnagy> or just don't push it as [[blah]] push it as [blah]
<mwilson_> yeah I got it
<mwilson_> derp
RainbowD_ has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
roolo has joined #ruby
RainbowDashh has joined #ruby
<mwilson_> ah beautiful. all that and maven_gem doesn't even work. ffs.
imami|afk is now known as banseljaj
Progster has joined #ruby
vectorshelve has quit [Quit: Page closed]
vectorshelve has joined #ruby
federic has joined #ruby
ringotwo has quit [Remote host closed the connection]
werdnativ has joined #ruby
ringotwo has joined #ruby
BiHi has joined #ruby
banisterfiend has quit [Remote host closed the connection]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
Mchl has joined #ruby
bambanx has joined #ruby
<bambanx> hi
wagle has joined #ruby
<bambanx> guys which method is used for know if some value exist in array ? example. "hi" exist on my_array ?
<Hanmac> include?
ephemerian has joined #ruby
wardrop has joined #ruby
<bambanx> thanks Hanmac
otters has quit [Ping timeout: 252 seconds]
Ammar01 has joined #ruby
qwerxy has quit [Quit: offski]
charliesome has joined #ruby
blacktulip has joined #ruby
emmanuelux has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
<Paradox> wow
<Paradox> i had a single pry session open for 24 hours…
<Paradox> ಠ_ಠ
<Paradox> i should close terminals more
<Paradox> lol
jenglish has quit [Remote host closed the connection]
<bnagy> I think most people have their pry / irb open for months
<bnagy> or until you have defined so many dummy classes for testing that you can't think of a new name
saschagehlich has joined #ruby
mdaisuke has joined #ruby
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
Mchl has joined #ruby
workmad3 has joined #ruby
wardrop has quit [Ping timeout: 245 seconds]
_iMBA has quit [Quit: Leaving.]
Solnse has quit [Ping timeout: 272 seconds]
_iMBA has joined #ruby
banseljaj is now known as imami|afk
saschagehlich has quit [Read error: Connection reset by peer]
MissionCritical has joined #ruby
smckinney has quit [Quit: leaving]
Ammar01 has quit [Quit: Leaving]
jimeh4 has quit [Read error: Connection reset by peer]
wardrop has joined #ruby
<locriani> bnagy: I had a pry running on a dev server for 7 months once >.>
jimeh has joined #ruby
mdaisuke has left #ruby ["Leaving..."]
<rakunHo> whats pry?
<graspee> a good program written by a bad person
bambanx has quit [Ping timeout: 255 seconds]
ringotwo has quit [Remote host closed the connection]
<workmad3> graspee: heh
<workmad3> rakunHo: more useful description - it's an IRB replacement that gives you more reflective capabilities on code in the console
<rakunHo> i got ubuntu 12.04 and my irb got stuck sometimes, anyone got the same problem?
<rakunHo> thx workmad3
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby
<rakunHo> its like when i put some code the irb do nothing, on rails console too
dnyy has quit [Remote host closed the connection]
robotmay has joined #ruby
umttumt has joined #ruby
wardrop has quit [Ping timeout: 272 seconds]
<t4lk3r> What kind of editor do U prefere in linux environment?
Banistergalaxy has joined #ruby
<t4lk3r> Bluefish? Or vim with some cool plugin for ruby?
xnm has quit [Ping timeout: 246 seconds]
<workmad3> I go vim with quite a few plugins
tchebb has quit [Remote host closed the connection]
<graspee> I use eric
<t4lk3r> Vim on my desk got shitty syntax for ruby,
<t4lk3r> any tips for that?
Solnse has joined #ruby
<graspee> do you mean shitty syntax highlighting?
<t4lk3r> Yep.
<graspee> well you can redefine the colours or just use a different editor if you cba
<workmad3> t4lk3r: do you not like the colors? does it miss some things?
<workmad3> t4lk3r: I go with solarized-dark, I know others like desert256
<workmad3> (for vim color schemes)
fermion has joined #ruby
<t4lk3r> How i can change the theme of highlight?
<workmad3> t4lk3r: do you use pathogen to activate your plugins?
<t4lk3r> Nope, I've only apt-get vim couple of minutes ago.
<workmad3> heh :)
<t4lk3r> ;p
tchebb has joined #ruby
<workmad3> ok, so you're not that familiar with vim?
<workmad3> vimtutor first maybe?
<t4lk3r> I know that wsad is like arrows, and "i" is for text mode.
<t4lk3r> ;)
Banistergalaxy has quit [Ping timeout: 276 seconds]
<t4lk3r> K, vimtutor sounds nice.
<workmad3> t4lk3r: run the command 'vimtutor' ;)
<workmad3> t4lk3r: and pathogen is this: https://github.com/tpope/vim-pathogen
<graspee> it's not wasd, it's jkhl
<workmad3> graspee: depends on if you redefined them or not :P
<graspee> he said he apt got it a couple of mins ago
<workmad3> but yeah, jkhl... although I just use arrows personally
<workmad3> graspee: :)
<workmad3> jkhl are in awkward positions on dvorak and I've never gotten around to redefining them more sensibly
<graspee> i gave up
Ammar01 has joined #ruby
<graspee> it means moving other stuff too
<workmad3> yeah
<workmad3> arrows work fine
<graspee> i use jkhl
<workmad3> I don't care in people who came from vi complain
<graspee> it's not that bad
stewart_ has quit [Quit: Leaving.]
yeggeps_ has quit [Read error: Connection reset by peer]
<graspee> at least left and right are still in the correct relative position
<workmad3> I'm starting to get used to the other ways of navigating anyway :)
<graspee> it means moving your hand though
<workmad3> hmm... that's something... maybe I could remap jk to left and right and hl to down and up
yeggeps has joined #ruby
<workmad3> that's what I keep on trying to do
* workmad3 investigates
<t4lk3r> Yeah, firs lesson - hjkl.
<t4lk3r> ;p
<bnagy> solarized dark irritates me
<bnagy> it's ok if you darken the background, but murky blues on a murky blue background is awful
freeayu has quit [Ping timeout: 252 seconds]
<graspee> i don't even have solarized dark
<bnagy> I like vividchalk for ruby
<graspee> i never paid much attention to colour schemes before
<bnagy> solarized light is OK if I'm outside and it's really sunny
<graspee> but it seems all the ones i have are one word like peachpuff, evening, morning
berserkr has joined #ruby
<locriani> FLUFFYBUNNY
<workmad3> graspee: yeah, I installed solarized-dark myself
<locriani> that needs to be a theme name
<workmad3> graspee: it's actually called solarized, but color schemes in vim come in light and dark varients, iirc
Ammar01 has quit [Quit: Leaving]
<workmad3> locriani: make it ;)
banisterfiend has joined #ruby
<graspee> i see
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<workmad3> bnagy: I don't have murky blues... I have some muted greys and some light blues in my solarized
Desmond has quit [Ping timeout: 246 seconds]
<locriani> workmad3: kek
<workmad3> bnagy: on a murky blue-grey background
<locriani> so why is the creator of pry a bad person I DO NOT UNDERSTAND
tvw has quit [Remote host closed the connection]
otters has joined #ruby
<graspee> not replying because it's offtopic and would lead to a flame war
<locriani> oh
<locriani> I was genuinely curious :P
<graspee> why is anyone a bad person? talk to him long enough and you'll make your own mind up
<workmad3> :)
<workmad3> I don't know who the author of pry is tbh
<graspee> banisterfiend:
<graspee> aka horseman and several other "aliases"
<workmad3> yay, that's my jkhl remapped to something I think I can finally use :D
<locriani> oh okay
<workmad3> ah, I knew banisterfiend was a pry proponent
<workmad3> didn't realise he wrote it :)
freeayu has joined #ruby
tonini has quit [Remote host closed the connection]
<bnagy> there was a really cool website with the top 100 vim colorschemes
<bnagy> but it's down at the moment it appears
<banisterfiend> locriani: the author of pry thinks graspee is an imbecile (talk to him long enough and you'll find out why)
mfridh has joined #ruby
<bnagy> vividchalk is awesome
<locriani> banisterfiend: oh ok, so there's drama, curiosity satisfied!
<graspee> oh it goes on far after your curiosity has been satisfied
<banisterfiend> locriani: you had pry running for 7 months?
<banisterfiend> graspee: be quiet.
<locriani> banisterfiend: yes, accidentally more than anything
<locriani> yay screen :V
<banisterfiend> locriani: did you notice any excess memory usage?
<banisterfiend> locriani: i.e are there any mem leaks? :)
<locriani> oh I didn't check at all :P
<tommylommykins> Is it possible to get the name of the process that has invoked ruby in ruby?
andreime has joined #ruby
<locriani> I just saw that the screen session had been running for longer than I thought and killed it :P
klickback has joined #ruby
<locriani> banisterfiend: I can run it again and report back in 7 months!
<banisterfiend> locriani: hehe, wait 1 week before u try, we're releasing a new version soon :)
<locriani> haha
<banisterfiend> locriani: should be able to view the C source for methods defined in 3rd party extensions
<locriani> has anyone else been wasting hours with the new stupid pocket planes game >.>
<locriani> banisterfiend: ooh exciting
skogis has joined #ruby
<locriani> because I just realized I have flight times of over 16 hours on some of these planes
<locriani> which means in the past 2 days, I've wasted 16 hours of my life :<
<locriani> banisterfiend: that actually will be super useful
<banisterfiend> locriani: iphone game?
<locriani> yes
<locriani> unrelevant gif http://i41.tinypic.com/2e3vk43.jpg
<bnagy> hah I read that and though you meant flight time of >16 hours on a real plane
<locriani> bnagy: haha
<locriani> I've been on a 16 hour flight before :P
<bnagy> and I was going to ask why you were going SIN / BKK / SYD -> LAX
<bnagy> cause there are only about 4 routes that long
clockwize has quit [Read error: Connection reset by peer]
<locriani> haha
clockwize has joined #ruby
beilabs has quit [Ping timeout: 260 seconds]
<banisterfiend> anyone here seen the scorsese film 'hugo' ?
JonnieCache has quit [Quit: leaving]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
Mchl has joined #ruby
mohits has quit [Ping timeout: 246 seconds]
<locriani> I have not
<locriani> anyways, nap time, guten nacht
<locriani> morgan
<locriani> whatever
klickback has left #ruby ["Leaving"]
<bnagy> tag
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
cezar has joined #ruby
qwerxy has joined #ruby
cezar has quit [Client Quit]
moshef has joined #ruby
workmad3 has quit [Quit: leaving]
dhruvasagar has quit [Ping timeout: 260 seconds]
dhruvasagar has joined #ruby
apeiros_ has joined #ruby
Juul has joined #ruby
beilabs has joined #ruby
schovi has quit [Remote host closed the connection]
clockwize has quit [Read error: Connection reset by peer]
clockwize has joined #ruby
<banisterfiend> locriani: can i get pocket planes for android?
flype has joined #ruby
schovi has joined #ruby
rakunHo has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
liluo_ has joined #ruby
liluo has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 246 seconds]
workmad3 has joined #ruby
dhruvasagar has joined #ruby
_iMBA has quit [Read error: Connection reset by peer]
_iMBA has joined #ruby
snearch has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
ramblex has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
beneggett has joined #ruby
codelette has joined #ruby
Banistergalaxy has joined #ruby
apeiros_ has quit [Remote host closed the connection]
pureluck_ has joined #ruby
umttumt has quit [Remote host closed the connection]
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 246 seconds]
pureluck_ has left #ruby [#ruby]
pureluck has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
demian`_ has joined #ruby
mobilegamelabs has joined #ruby
juo100 has joined #ruby
ccapndave has joined #ruby
mobilegamelabs has quit [Remote host closed the connection]
<ccapndave> Hey there - I have a Gemfile containing gem "ember-docs", :git => "https://github.com/emberjs/docs-generator.git", and then a rakefile with require 'ember-docs' at the top, but I'm getting 'Cannot load such a file ember-docs'. I have run bundle install. Does anyone have any suggestions?
demian`_ has quit [Quit: demian`_]
<juo100> How can I go about debugging a slow regex? https://gist.github.com/540662848633d066b262 the first one executes in 0.000058 but the second one takes a whopping 0.986590 just because I've append .html on the end
dhruvasagar has quit [Ping timeout: 264 seconds]
mobilegamelabs has joined #ruby
<juo100> 1.536094 on 1.8.7
dhruvasagar has joined #ruby
udante has joined #ruby
<bnagy> try to get rid of lookaheads
ananthakumaran has quit [Quit: Leaving.]
Faris has joined #ruby
banisterfiend is now known as horesman
yeggeps_ has joined #ruby
akem has joined #ruby
yeggeps has quit [Read error: Connection reset by peer]
ramblex has quit [Quit: ramblex]
keanehsiao has joined #ruby
<keanehsiao> hihi
moshef has quit [Quit: moshef]
<keanehsiao> I'm doing http-request from sinatra with open-uri
<keanehsiao> and it tell me connection refuse.. but if I try it in rib or with browser, it has no problem.. any clue?
nirakara has joined #ruby
glutton has joined #ruby
kaiwren has joined #ruby
monkegjinni has joined #ruby
bgupta has quit [Ping timeout: 244 seconds]
heftig has joined #ruby
ph^ has quit [Remote host closed the connection]
_iMBA has left #ruby [#ruby]
ph^ has joined #ruby
elhu has joined #ruby
<_br_> keanehsiao: Do you have a stack trace?
binaryplease has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
<keanehsiao> I got some clue.. If I disable sinatra-synch it works fine… does it means I can't do it with this gem???
<elhu> Hi! Is there a trick to prevent IRB from exiting after receiving input from the STDIN via a pipe? I'm trying to run the following command: echo "load './tools/.irbrc'" | bundle exec irb, everything loads fine, but as soon as irb is done interpreting the content of the .irbrc file, it exits back to the shell….
dhruvasagar has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby
WikiPack has joined #ruby
cjs has quit [Ping timeout: 248 seconds]
ph^ has quit [Ping timeout: 276 seconds]
methoddk has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
yeggeps_ has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
WikiPack has quit [Remote host closed the connection]
bluOxigen has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
wardrop has joined #ruby
<shevy> hi with mruby, mirb
<shevy> require 'pp'
<shevy> NoMethodError: no method named require
<shevy> where the hell is require! :(
fermion has quit [Read error: Operation timed out]
<Hanmac> xD shevy mruby is not finish yet
<shevy> yeah but ...
<shevy> I mean to load other files
<shevy> that is like one of the most basic things!
<shevy> hmm lemme try load...
<shevy> NoMethodError: no method named load
<shevy> waaaaaah
RORgasm has quit [Ping timeout: 245 seconds]
fermion has joined #ruby
udante has quit [Disconnected by services]
udante_ has joined #ruby
udante has joined #ruby
udante has quit [Client Quit]
atmosx has quit [Ping timeout: 276 seconds]
wardrop has quit [Ping timeout: 246 seconds]
udante_ has quit [Ping timeout: 244 seconds]
atmosx has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Emmanuel_Chanel has quit [Ping timeout: 244 seconds]
ananthakumaran has joined #ruby
ph^ has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Spooner has joined #ruby
wardrop has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
BiHi has quit [Ping timeout: 244 seconds]
mxweas has quit [Ping timeout: 260 seconds]
binaryplease has quit [Ping timeout: 248 seconds]
mxweas has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
liluo_ has quit [Remote host closed the connection]
heftig has quit [Quit: leaving]
ZachBeta has joined #ruby
ramblex has joined #ruby
iocor has joined #ruby
pureluck has quit []
oponder has joined #ruby
SphericalCow has quit [Ping timeout: 272 seconds]
Lachryma has joined #ruby
miho has joined #ruby
Faris1 has joined #ruby
Progster has quit [Ping timeout: 252 seconds]
methoddk has joined #ruby
jbw_ has quit [Ping timeout: 245 seconds]
Criztian has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 246 seconds]
wardrop has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby
Faris has quit [Ping timeout: 255 seconds]
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
blacktulip has quit [Remote host closed the connection]
kaspernj has joined #ruby
cartman has joined #ruby
<cartman> is there a replacement for ruby_nerrs in Ruby 1.9 (C API) ?
RainbowDashh has quit [Read error: Connection reset by peer]
igaiga has joined #ruby
samuel02 has joined #ruby
RainbowDashh has joined #ruby
nirakara has quit [Ping timeout: 244 seconds]
mxweas has quit [Ping timeout: 272 seconds]
<horesman> cartman: what is ruby_nerrs
<Hanmac> cartman what did ruby_nerrs doo?
RainbowDashh has quit [Read error: Connection reset by peer]
<cartman> a way to see if script execution somehow failed, it counted number of errors AFAIK
RainbowDashh has joined #ruby
<cartman> here is the code using it
jonathanwallace has joined #ruby
<cartman> VALUE result = rb_rescue2((VALUE(*)(...))callExecute, args, (VALUE(*)(...))callExecuteException, m_script, rb_eException, 0);
<cartman> if (ruby_nerrs != 0) {
<cartman> so its trying to check if execution failed.
mxweas has joined #ruby
pureluck has joined #ruby
tk___ has joined #ruby
mengu has joined #ruby
Markvilla has joined #ruby
<cartman> Hanmac, horesman any ideas?
Markvilla has left #ruby [#ruby]
Markvilla has joined #ruby
jbw_ has joined #ruby
beilabs has quit [Ping timeout: 246 seconds]
<horesman> cartman: no sorry
oc has joined #ruby
umttumt has joined #ruby
bier has quit [Ping timeout: 272 seconds]
saschagehlich has joined #ruby
zommi_ has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
zommi has quit [Ping timeout: 265 seconds]
oponder has quit [Remote host closed the connection]
<vectorshelve> does this gem work with rails 3 ? -> http://rubygems.org/gems/acts_as_sluggable
jimmy1980 has joined #ruby
Banistergalaxy has joined #ruby
jinjin has joined #ruby
nanderoo has joined #ruby
mayankkohaley has quit [Ping timeout: 244 seconds]
ananthakumaran1 has joined #ruby
Dennis has quit [Quit: Linkinus - http://linkinus.com]
Divinite has joined #ruby
zinjacoder has joined #ruby
jinjin has quit [Quit: jinjin]
ananthakumaran has quit [Ping timeout: 264 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
beilabs has joined #ruby
dhruvasagar has joined #ruby
pk1001100011 has joined #ruby
bier has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
Gavilan has left #ruby [#ruby]
Solnse has quit [Ping timeout: 246 seconds]
luGuan has joined #ruby
<bnagy> vectorshelve: #rubyonrails
<bnagy> or possibly #dieinafire
ph^ has quit [Remote host closed the connection]
bluenemo has quit [Ping timeout: 255 seconds]
sspiff has quit [Ping timeout: 248 seconds]
<shevy> vectorshelve come to ruby man, leave rails behind you!
<bnagy> NO GO TO.. SOMETHING ELSE
ph^ has joined #ruby
<bnagy> but also leave rails behind
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
pastrami has joined #ruby
<bnagy> vectorshelve: try #c I hear they're friendlier there
Solnse has joined #ruby
<Divinite> Go to python!
luGuan has left #ruby [#ruby]
pastrami has quit [Client Quit]
<vectorshelve> shevy: Yeah hopefully I should leave rails in a few months if I crack amazon for which I am preparing and I will b rich :D
IrishGringo has joined #ruby
<bnagy> lol
<shevy> naaaah
<bnagy> vectorshelve: you should try MS and Google too, just to keep your options open
<shevy> amazon became rich because of their superior logistics man
<bnagy> play them off against each other
<shevy> it's easier here to order from amazon rather than go out and buy books in classical shops
<bnagy> I mean top talent, like you...
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
<ij> If I .select from array and then .inject or something, then the array gets iterated over only once, since select -> #<Enumerator>, right?
<workmad3> shevy: it's frequently cheaper too
ph^ has quit [Ping timeout: 245 seconds]
<shevy> damn google
<vectorshelve> bnagy: I am now preparing DS and algo each day as part of my preparation.. and then within 2 months will give a try... hopefull something good will happen.. or else will try again :D
<shevy> yesterday when I used gmail, suddenly there was a popup, suggesting to me to use a fast and open source browser, then a link to chrome
<shevy> I was using firefox :(
<vectorshelve> shevy: bnagy preparing DS and algo in C++ :) I like it too
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<workmad3> shevy: hahaha
shvelo has joined #ruby
<vectorshelve> shevy: why sad.. its good that google supports open source ;)
<shevy> vectorshelve the bastards want to have everyone use in-house products only apparently
<workmad3> shevy: when I checked on sunspider with the latest FF and chrome releases about a month ago, FF was faster than chrome :)
<shvelo> shevy: hey brother
<shevy> yah well, chrome kinda chops on firefox away slowly
<workmad3> shevy: they keep on switching atm, I think
<shevy> I guess that trend can not be really stopped, or reversed any time soon
<workmad3> shevy: FF releases, a tad faster than chrome, chrome releases, a tad faster than FF...
<bnagy> vectorshelve: you go girl. It's good to have dreams.
<shevy> but it's making me angry if they advertize for their own products evenmore so. I like alternatives! but it's getting harder and harder... :(
<shevy> hey shvelo, thought you are shlevy for a moment :)
sepp2k has quit [Remote host closed the connection]
<workmad3> shevy: and chrome hasn't afaik, really decreased the userbase of FF (some attrition, but not a massive amount)... mostly they've gotten disaffected IE users :)
<shvelo> shevy: lol
<shevy> I tell ya, you should call yourself shvely
<shevy> it would be PERFECT confusion
<vectorshelve> shevy: hmmm
<shevy> workmad3, yeah I am not sure... I guess it depends on which statistic one looks at
<shvelo> shevy: i don't want confusion :D
<vectorshelve> bnagy: why dreams ? :( cant it b reality ?
<workmad3> shevy: yeah
demian`_ has joined #ruby
<shevy> workmad3, the one at http://www.w3schools.com/browsers/browsers_stats.asp gives me the most anxiety :D
<shevy> Chrome: 39.3 %, Firefox: 35.2 %
dhruvasagar has quit [Ping timeout: 250 seconds]
<shevy> only good thing is that IE is losing to everyone else (haha)
<graspee> chrome gives me grief in linux and ff gives me grief in windows
<workmad3> graspee: use a mac
<workmad3> graspee: then they can both give you grief ;)
dhruvasagar has joined #ruby
<graspee> i have neither the money nor the inclination
<shevy> considering that IE still had a 50% share for that site, at least, in August 2008, it's almost extinct now in 2012 :P
<bnagy> vectorshelve: well given the correlation between people that can correctly write 'be' and people that get good jobs for MS / Google...probably not in your case
timonv has quit [Ping timeout: 260 seconds]
<ij> bnagy: Maybe he's so good and into coding that he doesn't even english anymore.
<shevy> the prototypic dude from india is the one in The Big Bang Theory
<workmad3> ij: I don't english... does that make me awesome? :D
pk1001100011 has joined #ruby
<graspee> the big bang theory is the most unrealistic show ever made
cartman has left #ruby [#ruby]
heftig has joined #ruby
<shevy> ij even the japanese need to know a few word in english if they wanna write ruby code :D
<shevy> graspee, I only watch the bloopers
<ij> Does this channel ever ruby or is it mainly offtopic?
moshef has joined #ruby
<workmad3> graspee: seriously? you're picking BBT over something like Heroes as 'The most unrealistic show ever made'?
timonv has joined #ruby
<shevy> ij we ever ruby. do you have a ruby question ij?
<graspee> workmad3: yes
<graspee> in bbt the geeks get hot gfs
<workmad3> graspee: oh, haha :)
<ij> shevy: at Hour:39:22, yes.
<graspee> that surpasses anything that happens in heroes
<shevy> 39 hours?
<ij> minutes
<shevy> my client does not show me the time
<ij> What a crappy client. :> Can it scroll up half of a screen?
<shevy> yeah but I need to scroll with my mouse :(
<vectorshelve> bnagy: internet slang dear :D
tvw has joined #ruby
<ij> Can't be that xchat doesn't show time.
hatoishi has joined #ruby
<workmad3> graspee: rajesh doesn't... and wolowitz's doesn't really count because she's a geek too and has quite severe personality 'issues' :)
<shevy> ij .select returns to me a new Array
juo100 has quit [Quit: juo100]
<bnagy> vectorshelve: yeah but it's internet slang that's used by 13 year old and the mentally handicapped
<workmad3> graspee: in fairness, the leonard's character is the one that gets the hot GF and it's a bit unrealistic... but it took him a long time to wear her down to the point of dating him :)
bluenemo has joined #ruby
blacktulip has joined #ruby
<bnagy> vectorshelve: actual programmers cultivate immaculate spelling and grammar
<vectorshelve> bnagy: forgive me for my sins jesus ;)
<bnagy> no
<shevy> ij, and then you can use .inject on that Array
<graspee> 90% of programmers can't use apostrophes properly
<graspee> despite knowing the finest details of perl etc. syntax
<shevy> I dont know perl
<bnagy> *detail's
<workmad3> graspee: if it was heroes, they would have randomnly stopped and started dating between each episode, then history would have changed and sheldon would have become evil, then good, then leonard's brother...
<vectorshelve> bnagy: hmm... u mean a c++ developer who writes strlen will develop good grammer :D
<shevy> I should have used a ' in dont but I am too lazy
<bnagy> vectorshelve: grammar
<workmad3> vectorshelve: a C++ developer who uses strlen isn't doing C++ :P
<shevy> perl has the eskimo operator however, which makes it cool
ph^ has joined #ruby
<shevy> lol
<shevy> bnagy is correcting vectorshelve
`brendan has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
<shevy> something is odd with my computer... it seems to work slower when it is hot outside
<vectorshelve> workmad3: C++ developer who uses strlen isn't doing C++ ; then what is he doing... writing essays ? :D http://www.java-samples.com/showtutorial.php?tutorialid=449
<workmad3> vectorshelve: he's writing C, not C++
nyuszika7h has quit [Quit: WeeChat 0.3.9-dev]
<vectorshelve> workmad3: I was giving an instance.. scenario.. an irony to his argument.. :) not serious though
thmzlt has joined #ruby
<bnagy> irony, I do not think that word means what you think it means
<workmad3> bnagy: :D princess bride reference :D
<bnagy> also, in context, ironic - double points
<workmad3> yup
Gurpartap has joined #ruby
<shevy> C++ should have never happened
carloslopes has joined #ruby
<workmad3> vectorshelve: it also helps if your instances are actually correct btw... especially if you're giving them in a room filled with pedants :P
<workmad3> s/instance/example
liluo has joined #ruby
<Gurpartap> HELLO
<workmad3> shevy: sure it should... C++ is fun :)
Solnse2 has joined #ruby
<vectorshelve> workmad3: so I just wanna know if I was wrong saying there's a method in C++ named strlen or not :)
<shevy> matz hates it, linus hates it
<vectorshelve> workmad3: c++ is really cool :)
Vert has joined #ruby
<graspee> workmad3: you missed final slash off your sed command
<Gurpartap> Is there an easier way to set uid and gid for Process.spawn's subprocess?
zommi_ has quit [Ping timeout: 240 seconds]
<shevy> Gurpartap I only know one way anyway
<vectorshelve> shevy: so what we like it.. just coz someone dislikes something does that thing become bad.. ? its all abt perceptions
<Gurpartap> I don't want to parent process' uid/gid to change.
larissa has joined #ruby
<shevy> Process.uid = 222
<vectorshelve> Gurpartap: indian ?
<Gurpartap> shevy: fork { change uid/gid; process.spawn? }
<workmad3> vectorshelve: there's a method in C called strlen that gets pulled into C++ because C++ is a superset of C, but it's not part of C++ as C++ has proper string objects and string object methods like 'someString.length'
<shevy> vectorshelve I don't like war. is war good or bad? is it about perception?
Solnse has quit [Read error: Connection reset by peer]
<graspee> yes actually
<Gurpartap> shevy: is that the way you thought?
<shevy> Gurpartap not sure about the children
<Gurpartap> vectorshelve: yep :D
geekbri has joined #ruby
<vectorshelve> workmad3: ok I know.. u take any language its ancestor is c unlike something like FORTRAN.. so it really doesnt matter ;P
<locriani> banisterfiend: not sure, I'd check nimblebit's website
ananthakumaran has joined #ruby
<workmad3> shevy: I don't know any other language that you can get > 1000 lines of error messages out of about 20 lines of code... C++ is fun :)
<shevy> really no idea... what is the UNIX way to fork then modify ids? I'd think that it can't be done, but I can very well be wrong :)
<vectorshelve> shevy: are we having a war of blood here or general exchange of ideas and views ?
<shevy> vectorshelve I was making a comment to your reference of perception
<workmad3> vectorshelve: no, C++ is a superset of C, not a descendent of C... the C++ standard pulls in the C standard
ananthakumaran1 has quit [Ping timeout: 245 seconds]
<vectorshelve> shevy: exactly// opinions are perceptions :)
<Gurpartap> shevy: the way i put above works fine. but i thought process.spawn was added to ruby 1.9 for the ease of the fork fork fork complexity
<shevy> if smart people honestly say that x sucks, then it could well be that their perception is correct and others is not
<vectorshelve> workmad3: c++ came out from c
<vectorshelve> Gurpartap: reply.. i queried you :)
<shevy> Gurpartap aha, not sure. I am on 1.9.3 since only 2 weeks :D
<Gurpartap> [17:27] <Gurpartap> vectorshelve: yep :D
<Gurpartap> :P
<bnagy> no c== came out of stoustrup's bum, and it didn't come out like he wanted it
<Gurpartap> shevy: hah
<Gurpartap> LOL
<shevy> I was on 1.8.7 for a looooong long time
Progster has joined #ruby
kaspernj has quit [Ping timeout: 248 seconds]
<Gurpartap> vectorshelve: i hope you noticed the reply above lol
ZachBeta has quit [Quit: Computer has gone to sleep.]
<Gurpartap> v-e-c-t-o-r-s-h-e-l-v-e
<Gurpartap> there you go
Stormbytes has joined #ruby
<workmad3> bnagy: "When I created object-oriented programming, C++ is not what I had in mind." - Alan Kay :)
<vectorshelve> Gurpartap: no.. I asked u where u from
Solnse has joined #ruby
Divinite has quit [Ping timeout: 248 seconds]
<vectorshelve> workmad3: When I started programming as a kid C++ is what I was fond of.. and it pretty much did all work for me except drinking eating and sleeping
<Gurpartap> vectorshelve: no. you asked if i'm indian; [17:27] <Gurpartap> vectorshelve: yep :D
<Gurpartap> :p
<shevy> lol
<bnagy> that's a pretty nice writeup
<shevy> vectorshelve does not even remember his own questions from 3 minutes ago :D
dhruvasagar has quit [Ping timeout: 244 seconds]
<shevy> Alan Kay is my hero along with matz
<shevy> then comes a long empty gap
<bnagy> kids these days
<vectorshelve> shevy: I queried him.. seems he knew it pretty late :D
<shevy> then, I dunno... perhaps linus, perhaps not. and then after a long time come my enemies!
<shevy> but they are boring, so I go back to find new heroes
Solnse2 has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
<vectorshelve> shevy: yeah u better support me... we have been friends for long now :D and I am coming all the way to northern Italy to have beer with you ;)
keanehsiao_ has joined #ruby
<Gurpartap> bnagy: true. i'll have a relook if there's anything useful
<shevy> no please
<shevy> banister already wants to haunt me
ringotwo has joined #ruby
wmoxam has joined #ruby
<shevy> I think people should never travel :>
<workmad3> shevy: aww, you're popular :P
<workmad3> shevy: don't worry... the only thing I'll do is send you hate mail ;)
<bnagy> Gurpartap: Process::UID GID but you'll only be able to drop privs obviously
<shevy> when I am old and rich I will make a world travel for several months
timonv has joined #ruby
keanehsiao has quit [Ping timeout: 272 seconds]
Solnse has quit [Ping timeout: 240 seconds]
<bnagy> better to do it before you're old :)
<samuel02> How do I calculate the amount of days between two DateTime objects with in_time_zone?
Solnse has joined #ruby
nyuszika7h has joined #ruby
Markvilla has quit [Quit: Markvilla]
<bnagy> wth is 'in_time_zone' ?
<bnagy> is this rails crap?
<shevy> hehe
<samuel02> bnagy, rails method to get simultaneous time in Time.zone, yep :D
Markvilla has joined #ruby
<vectorshelve> Gurpartap: kaha se ho tum ?
Divinite has joined #ruby
<vectorshelve> samuel02: I am planning to visit Prague ;)
<shevy> Time.zone NoMethodError: undefined method `zone' for Time:Class
<samuel02> shouldn't make a difference though? still returns a Time object
pk1001100011 has quit [Quit: Burn your gods and kill the king; Subjugate your suffering; Dead heart, in a dead world]
<samuel02> vectorshelve: ?
BiHi has joined #ruby
ccapndave has left #ruby [#ruby]
<vectorshelve> samuel02: nothing :P
mohits has quit [Ping timeout: 246 seconds]
<Gurpartap> bnagy: "drop"? you mean down the hierarchy of user permissions?
<shevy> rails modifies ruby core entities!
<samuel02> doesn't matter though, I have two datetimes and want to now the difference in days
<shevy> oh, how do they do the yellow background there?
<vectorshelve> shevy: I am planning to visit prague :)
<shevy> vectorshelve: yeah that is better. stay in prague :)
<samuel02> date1.in_time_zone.days - date2.in_time_zone.days works fine until the interval is overlapping two months
<bnagy> can you subtract and / 86400?
nyuszika7h has quit [Client Quit]
Solnse has quit [Ping timeout: 244 seconds]
<samuel02> bnagy, there you go! thanks
<Gurpartap> vectorshelve: india
<Gurpartap> :P
<Gurpartap> XD
shvelo has left #ruby [#ruby]
<bnagy> that truncates, btw unless you use 86400.0
<samuel02> bnagy, didn't even think about that!
ringotwo has quit [Remote host closed the connection]
ringotwo has joined #ruby
timonv_ has joined #ruby
pk1001100011 has joined #ruby
frishi has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<ramblex> samuel02: ((DateTime.now + 2) - (DateTime.now)).ceil
kaspernj has joined #ruby
pu22l3r has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
berserkr has quit [Quit: Leaving.]
Stormbytes2 has joined #ruby
monkegjinni has joined #ruby
dhruvasagar has quit [Ping timeout: 265 seconds]
fermion has quit [Ping timeout: 245 seconds]
heftig_ has joined #ruby
Stormbytes2 has left #ruby [#ruby]
timonv has joined #ruby
ramblex has quit [Quit: ramblex]
cryptfu has quit [Ping timeout: 272 seconds]
dhruvasagar has joined #ruby
heftig has quit [Disconnected by services]
Juul has quit [Read error: Operation timed out]
heftig_ is now known as heftig
<horesman> bnagy: hey naggy
wmoxam has quit [Ping timeout: 244 seconds]
<horesman> bnagy: what's up?
<horesman> bnagy: do the locals drink alcohol btw?
zz_chrismcg is now known as chrismcg
timonv_ has quit [Ping timeout: 250 seconds]
fermion has joined #ruby
ramblex has joined #ruby
nyuszika7h has joined #ruby
chrismcg is now known as zz_chrismcg
<bnagy> yeah
<bnagy> you'd like shivaratri :)
frishi has quit [Quit: Leaving...]
IrishGringo has quit [Remote host closed the connection]
krusty_ar has joined #ruby
<shevy> hmm when using ruby in .cgi pages, the classical ENV is unavailable. any other way to access shell variables in .cgi scripts?
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Criztian has joined #ruby
nari has joined #ruby
wmoxam has joined #ruby
RORgasm has joined #ruby
d3c has joined #ruby
wardrop has joined #ruby
kaspernj_ has joined #ruby
grendlme has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
EzeQL has quit [Ping timeout: 260 seconds]
heftig has quit [Quit: leaving]
cjs226 has quit []
RORgasm has quit [Ping timeout: 245 seconds]
schovi_ has joined #ruby
kaspernj has quit [Ping timeout: 245 seconds]
schovi_ has quit [Read error: Connection reset by peer]
jcromartie has joined #ruby
umttumt has quit [Remote host closed the connection]
schovi_ has joined #ruby
schovi has quit [Read error: Connection reset by peer]
pk1001100011 has joined #ruby
Gurpartap is now known as singh
kmap has joined #ruby
jgarvey has joined #ruby
<kmap> hi
umttumt_ has joined #ruby
<kmap> i want to buy books on ruby anybody read this book http://www.ebooknetworking.net/books_detail-0596516177.html
freeayu__ has joined #ruby
wardrop has quit [Ping timeout: 248 seconds]
singh is now known as Gurpartap
freeayu has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
krusty_ar_ has joined #ruby
blacktulip has quit [Remote host closed the connection]
krusty_ar has quit [Ping timeout: 255 seconds]
hemanth has quit [Read error: Connection reset by peer]
<shevy> what is title
hemanth has joined #ruby
ccapndave has joined #ruby
Nies has joined #ruby
<kmap> shevy The Ruby Programming Language / David Flanagan, Yukihiro Matsumoto
fbernier has joined #ruby
<vectorshelve> hemanth: :D
<shevy> kmap I see. I did not read it, others who did said it is fine.
<shevy> the pickaxe I can recommend, at least the version for 1.8.x
niko has joined #ruby
<shevy> the new one I did not like as much, mostly because I knew too much already
dekroning has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
<bnagy> I have serious beef with ruby the hard way
<bnagy> it is HORRIBLE
<bnagy> and yet thorough
<bnagy> the stretch goals should all be 'rewrite the examples in this exercise, but properly'
<kmap> Programming Ruby: The Pragmatic Programmers' Guide, Second Edition
<bnagy> but seriously - books. Who learns programming from BOOKS?
<niko> kmap: really
<shevy> wasn't ruby the hard way written by someone who left ruby already
<kmap> i am not allowed to put urls here
<kmap> i am sorry
<shevy> you are not allowed to put URLS here?
<shevy> :)
<kmap> yes shevy niko told me not to advertise
<shevy> aha
<kmap> thats why i am apologizing
<shevy> anyway kmap best way to start with ruby is via http://pine.fm/LearnToProgram/?Chapter=01
<kmap> i feel so sorry for this insane thing i did
<kmap> is it for beginners
<bnagy> which is programming ruby, from above
<kmap> i am rather interested in hard book
<shevy> ok so you worked through it at least once already?
thmzlt has quit [Remote host closed the connection]
<shevy> well then the pickaxe
jxf has joined #ruby
<shevy> but you really really should write ruby code on your own as soon as possible
<bnagy> poignant guide
<bnagy> that's hard
<kmap> how is ruby different from php
<bnagy> in many ways
<graspee> isn't cartoon fox book a bit out of date these days?
<shevy> ruby is more complex
<shevy> it is however also more consistent and terser than php
<bnagy> it's not retarded and it's not written by morons?
<kmap> is it faster than php
<kmap> php/mysql
<shevy> when you write poetry in ruby, it can be elegant. when you write poetry in php, it will always read like poetry from a confused 4 years old kid
<bnagy> and also compromise your server
<shevy> if you look for speed differences then you will never be happy
<shevy> or you use C
wardrop has joined #ruby
<kmap> any php programmer here
<ij> I used to do that for money.
<shevy> lots of ex-php guys here ;)
<Fraeon> ij: I'm so sorry
<ij> So am I.
<shevy> lol
<ij> But it's always've been only for money, so it's reasonable.
<Fraeon> I did it for fun once
<ij> Ruby is also for fun. :]
<Fraeon> Slinging that spaghetti php
<carloslopes> ij: +1 :)
<shevy> kmap there comes the moment when you will feel that you want a better language than php
<kmap> i worked on more than 100 websites on wordpress
<locriani> goofy badcat has taken over my desk
<locriani> aaaarh
<shevy> wordpress puts you into a cage
<shevy> it looks to be a beautiful cage but it is still a cage
<kmap> shevy are u ruby programmer
<shevy> sure
<kmap> what is ruby on rails
<shevy> but you sound like a web-only guy
<bnagy> graspee: re: poignant, the section on metaprogramming is still as good as I have seen, and the introspection chapter is good as well
<shevy> dont ask me, ask on #rubyonrails. i use ruby because I like the language and I do not constrain myself to any single field for it
<bnagy> also, if people are still using the fricking pickaxe, then obviously we don't move forward quickly
<ij> kmap: RoR is great framework written in ruby.
<kmap> i am a linux admin
ciopte7 has quit [Quit: ciopte7]
hynkle has joined #ruby
<locriani> I am a slightly obese llama
<shevy> lol
<locriani> oh sorry this is #ruby not #furries
<locriani> :V
<ij> shevy: I find that ruby people at my place've forgotten a ruby that exists without rails.
<locriani> ij: it's easy to do
<locriani> since ruby on rails is kind of the golden child of ruby
<bnagy> locriani: you yiff even once and I will stab you
<graspee> surely it's ruby that needs to move forwards, not the pickaxe
<locriani> bnagy: I yiff even once I'll stab myself don't wory
<bnagy> graspee: yeah that makes no sensd
<bnagy> *sense
<carloslopes> ij: omg don't say this!! ruby is reeeeaally big and great without rails :)
<graspee> it does
sailias has quit [Quit: Leaving.]
<ij> carloslopes: what
<graspee> you said if people are using the pickaxe we don't move forward quickly
<ij> I didn't say it isn't.
krusty_ar_ has quit [Read error: Connection reset by peer]
<kmap> i am looking for friends good in ruby/php
<graspee> i don't know what that means if you didn't mean I thought you meant
<kmap> i have a billion dollar idea which i need help
<bnagy> kmap: if you're going to start asking people to cyber then you really need to try #rubyonrails
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
<ij> What do you mean by friends?
krusty_ar has joined #ruby
<horesman> kmap: is it the next facebook killer
<ij> bnagy: by cyber you mean..?
<kmap> friends online whom i can ask things
pk1001100011 has joined #ruby
wardrop has quit [Ping timeout: 260 seconds]
<ij> You can ask things in irc.
<ij> That's what it's for.
<kmap> i am a web guy
<ij> I am a programmer.
<bnagy> graspee: the pickaxe is oooold. Idiom has moved on, and yet we're still recommending it to newbies
<graspee> like spiderman?
<ij> No, I am a furry.
<ij> YIFF
<kmap> i have a website that made $6000 per month
<ij> made or makes
<locriani> I've never understood what yiff means
<graspee> what exactly do you mean by idiom in this sense? do you mean elements of ruby programming style at the language level or do you mean new tools and so on
<kmap> made its now banned from google
<bnagy> locriani: urbandictionary.com
<ij> kmap: Why?
rippa has joined #ruby
SeanLazer has quit [Quit: SeanLazer]
<kmap> ij it was going beyond google
<horesman> ij: im guessing he was selling the "make your dick bigger" pills
<locriani> bnagy: if I have to UD it, I'm not sure I want to know
<ij> In what way?
<bnagy> graspee: idiom only means one thing
<ij> horesman: likely
<locriani> bnagy: eewwww
<bnagy> well I warned you
<graspee> yes "idiom" only means one thing but you need context
<kmap> 15000 people was coming daily on it
<locriani> no I warned myself
<ij> kmap: name the domain
nari has quit [Ping timeout: 240 seconds]
<bnagy> ok but I tacitly warned you
<kmap> ebook net working dot net
<bnagy> which is the same thing
<bnagy> kmap: aka the domain you were spamming before?
<graspee> the pickaxe book teaches you ruby. it teaches you how hashes work and variables and methods and objects. are we somehow not using them anymore?
sspiff has quit [Ping timeout: 246 seconds]
<graspee> have we moved on from the "idiom" of using objects?
<bnagy> graspee: yes, that's exactly what I meant, and here are your victory wings
<bnagy> I refuse to have a battle of wits with an unarmed man
sspiff has joined #ruby
<graspee> you shuold refuse to steal quotes too
sspiff has quit [Changing host]
sspiff has joined #ruby
<bnagy> memes get sad if they're not used, that's why they're memes :)
<horesman> bnagy: graspee is an idiom, a noob with a chip on his shoulder.
freeayu__ has quit [Read error: Connection reset by peer]
<horesman> bnagy: idiot* :P
<graspee> just so long as you don't confuse meme use with wit
nirakara has joined #ruby
stat1x has quit [Remote host closed the connection]
jimmy1980 has quit [Ping timeout: 244 seconds]
<bnagy> graspee: I'm less easily confused than some - eg regarding simple definitions
wardrop has joined #ruby
stat1x has joined #ruby
<graspee> just tell me why you think the pickaxe book is no longer relevent
<graspee> when it teaches ruby language up to 1.9.3
<bnagy> but, ha! silly me I've mistaken you for an interloctor insyead of a potplant
<kmap> what is pickaxe
<graspee> a book on ruby
virunga has joined #ruby
<locriani> I never read the pickaxe book so
<musee> kmap: do you recognize my name?
robbyoconnor has quit [Ping timeout: 246 seconds]
freeayu__ has joined #ruby
<kmap> yes musee
<musee> D:
<horesman> pickaxe book just struck me as a bad book, it's bloated and repetitive and there were a few basic mistakes i remember too (can't recall any right now)
<musee> who are you and do you work with me?
vectorshelve has quit [Quit: Page closed]
mfridh has quit [Quit: ZNC - http://znc.in]
<horesman> the best book on ruby is 'the ruby programming language' by matz & flanagan. It's concise, surveys the entire language even edge cases, and is much smaller and more focussed.
<bnagy> which I'm sure makes it great _for_a_book_
<kmap> musee pm me
<graspee> what's wrong with a book? what do you want? ruby the opera?
<graspee> ruby the movie?
<locriani> hahaha this game is amazing
jimmy1980 has joined #ruby
mayankkohaley has joined #ruby
davidw has joined #ruby
SeanLazer has joined #ruby
<musee> ruby-doc.org best book
<bnagy> amen to that
<bnagy> that and github
<graspee> hardly, for beginniers
niko has left #ruby [#ruby]
<musee> :)
<musee> i'm technically a beginner.
<bnagy> in all the languages I learned before ruby, all I ever wanted was a) a language ref or possibly a 'cookbook'
<bnagy> and now that The Internet has come along a bit since 1988, you can get those things in a much better format than dead tree
<graspee> oh god please don't tell me that by "the idiom has moved on" you meant books are obsolete, everyone reads the internet now
<bnagy> not at all
<bnagy> I mean that the idiom moves a lot faster than you can track with bits of dead tree
jrist-afk is now known as jrist
<graspee> your refusal to move away from the word idiom is not doing your argument any favours
<bnagy> so if you're reading books to get your tax breaks, you're already like a year behind the way code is being written
<bnagy> well I could use more transparent language, you know, for kids
nirakara has quit [Quit: http://gplus.to/nikhil]
<graspee> the book teaches you the basics. the basics are the same
<musee> idiom idiom idiom
<bnagy> 'the way code is written', how's that?
nirakara has joined #ruby
<graspee> it's not that i don't understand "big words"
<locriani> organic idiom
<graspee> it's that you're not contextualising them enough to be comprehensible
saschagehlich has quit [Quit: saschagehlich]
wmoxam has quit [Quit: leaving]
<bnagy> sorry I didn't realise it was a word whose meaning was mutable enough to need contextualising :)
<graspee> it is
<bnagy> "the way we do shit"
<bnagy> changes
<graspee> yeah what fucking way
<graspee> and what fucking shit?
<bnagy> code. ruby. a lot.
<graspee> at the basic language level things are the same
<graspee> it's a book for beginners
<graspee> for people who don't know how to write a class definition yet
<graspee> the book tells them
<graspee> how can that go out of date unless the language changes?
hynkle has quit [Read error: Connection reset by peer]
<graspee> then over half the book is refence for standard library objects which haven't changed much since the book was writen
<kmap> ij?
dv310p3r has joined #ruby
jxf has quit [Ping timeout: 276 seconds]
jxf has joined #ruby
yeggeps has joined #ruby
<workmad3> graspee: a book that teaches bad style and obsolete ways of doing things isn't really that good for a beginner because they don't have enough knowledge yet to pick out just the relevant bits
<shevy> the pickaxe showed examples how to use @@vars
monkegjinni has left #ruby ["Leaving..."]
<shevy> it took me some time before I realized that @@ absolutely stink
<Gurpartap> Why does Process.setsid require root privileges, while the `setsid` command does not?
<bnagy> yay for nepal internet
<shevy> Gurpartap could be a bug :D
mfridh has joined #ruby
<bnagy> workmad3: right, which is not unique to the pickaxe
<graspee> is it just because i'm not into rails at all that i disagree with you two on this
<Gurpartap> shevy: for example, i can't drop priveleges (change uid/gid) and then make a call to Process.setsid to reset the session
<Gurpartap> s/priveleges/privileges/
<bnagy> LOTS of the books have crazy 'I do it this way' moments which are downright dangerous to people using that as their only source
<bnagy> what was that shadow class metaninja whatever book?
chson has quit [Remote host closed the connection]
<bnagy> guy just coined like 5 terms which are insane
silverfilain has joined #ruby
<Gurpartap> shevy: you sure? :D
faitswulff has joined #ruby
<workmad3> bnagy: that was actually a recruitment agent who called them that and some guy in here had picked it up and liked it
<workmad3> bnagy: metaprogramming ruby coined things like ghost methods
silverfilain has left #ruby [#ruby]
<graspee> maybe that's the case for that book, but i don't see what's so controversial in the pickaxe book. i don't see what's bad about class variables either
cjs226 has joined #ruby
<horesman> graspee: that's because you're still very new to ruby.
<workmad3> graspee: they're a ruby wart that don't follow the princple of least surprise
<workmad3> *principle
<horesman> graspee: how long have you been programming ruby?
<graspee> how do you know? it's matz' surprise that's in question, not ours
<bnagy> anyway, I have getting drunk and cooking to do
<graspee> otherwise we would have 12.sqrt
<horesman> graspee: because you have a pretty arrogant no-it-all manner
<horesman> know-it-all*
<workmad3> graspee: I know because if they did then all the people who learn about them go 'wtf' when they realise how they actually act
advorak has quit [Quit: Leaving]
<workmad3> graspee: i.e. they act in a surprising manner
tzvi has joined #ruby
<bnagy> yeah they'll be gone soon
<bnagy> . o O ( I hope )
shevy has quit [Ping timeout: 245 seconds]
<graspee> well i find them useful
<bnagy> hahaha
gyre007 has joined #ruby
<workmad3> graspee: despite the fact you only get one copy across an entire inheritance hierarchy?
kill-9_ has joined #ruby
<graspee> i find them useful for storing data on a per-class basis
<workmad3> graspee: they aren't per-class
<bnagy> I get the singleton pattern, although I seldom find something it's good for
<workmad3> graspee: they're per-class-hierarchy
<graspee> ok. well i'm not using inheritance
<bnagy> I DO NOT get the "multiple classes and objects but just ONE copy of this bizarre variable"
<workmad3> graspee: create one in a base class, change it in a derived class, it changes *everywhere*
<bnagy> that's retarded
hynkle has joined #ruby
<kmap> hi
<graspee> why not change them then. why remove them?
<bnagy> and instead they get used by people who can't code ruby because they can't work out how scope works
<horesman> graspee: because you can use class instance variables instead
<workmad3> ^^
titas9x has left #ruby [#ruby]
<workmad3> class vars basically fill a gap... but it's a different one to the expected use
<bnagy> also they look like they're staring at me D:
<bnagy> @@i_see_u
<workmad3> what I'd like is for the syntax to change to make them a bit harder to use and class ivars easier
jamesaxl has joined #ruby
<workmad3> but unfortunately, we're dealing with a language, which means basic syntax has to be fairly permanent otherwise it would be impossible to code in sensibly
<workmad3> I suspect the earliest such a change could reasonably be included is ruby 3.0, maybe ruby 4.0
<bnagy> ok l8s rubybunnies
<workmad3> assuming it ever is
faitswulff has left #ruby [#ruby]
<workmad3> languages have a long horizon of change
<workmad3> especially for removals or changes
jeff_sebring has joined #ruby
liluo has quit [Remote host closed the connection]
red-panda has joined #ruby
brasten has joined #ruby
LBRapid has joined #ruby
Niamkik has joined #ruby
wardrop has quit [Ping timeout: 260 seconds]
<Spooner> workmad3 : Couldn't we have a helper, like attr_reader, instead? I mean as a way to get easier class instance variables sooner?
iocor has quit [Quit: Computer has gone to sleep.]
<workmad3> Spooner: sure, that would be a sensible addition... in fact, I think rails gives you a catter_reader macro for defining them :)
<workmad3> Spooner: wouldn't prevent people from learning a bad habit from books that use @@ though
igaiga has quit [Remote host closed the connection]
<graspee> rails is a bad habit
shevy has joined #ruby
hynkle has quit [Ping timeout: 244 seconds]
<Spooner> True and yes, rails is rails, not Ruby.
Dreamer3 has joined #ruby
graspee has left #ruby [#ruby]
carlyle has joined #ruby
<workmad3> heh
flype has joined #ruby
yoklov has joined #ruby
Markvilla has quit [Quit: Markvilla]
<shevy> hmm damn I got disconnected
<shevy> Gurpartap, what was the last part you saw from me to you?
wardrop has joined #ruby
hynkle has joined #ruby
uris has joined #ruby
<Hanmac> shevy: your last line was "could be a bug"
blischalk has joined #ruby
<shevy> aaaaah
awarner has joined #ruby
<shevy> then I was the only one to read my replies to Gurpartap :(
dekroning has joined #ruby
<shevy> Gurpartap no idea really. but if you are sure it is a bug, report to bugs.ruby-lang.org they are responding quickly usually
<shevy> you just have to make your case there properly
fra000 has joined #ruby
tshine_ has joined #ruby
ccapndave2 has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
boo1 has joined #ruby
elhu has quit [Read error: Connection reset by peer]
tshine has quit [Read error: Connection reset by peer]
keanehsiao_ has quit [Read error: Connection reset by peer]
x0F_ is now known as x0F
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ccapndave has quit [Ping timeout: 272 seconds]
joshman_ has joined #ruby
wardrop has quit [Ping timeout: 255 seconds]
bgupta has joined #ruby
ringotwo has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
ackz has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
<boo1> Hi everyone! If I want to have hash with specified list of keys(presence of keys is a goal), am I doing it right https://gist.github.com/2965849 or may be you know better solution?
hunglin has joined #ruby
gyre007 has quit [Quit: Ex-Chat]
<Gurpartap> shevy: i see.
<Gurpartap> shevy: i'll try that
<boo1> And one more question, If I call keys method on some hash, then call values method will elements order be same 100%?
Stormbytes has quit [Ping timeout: 250 seconds]
saschagehlich has joined #ruby
mnaser has quit [Quit: Computer has gone to sleep.]
<Hanmac> boo1: fields.each(hash.method(:delete)) ... but imo your reset! should not go into Hash itself
<shevy> boo1 in 1.9.3 it should be the same as hashes are ordered
moshef has quit [Ping timeout: 246 seconds]
<boo1> shevy, thanks
<boo1> Hanmac, it will be in used just in single script
ABK has quit [Ping timeout: 245 seconds]
zommi has joined #ruby
albemuth has joined #ruby
ABK has joined #ruby
supergiantrobot has joined #ruby
hunglin has left #ruby [#ruby]
umttumt_ has quit [Remote host closed the connection]
mayankkohaley has quit [Ping timeout: 255 seconds]
mayankkohaley has joined #ruby
yankhates has joined #ruby
virunga has quit [Quit: Sto andando via]
zommi has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
sailias has joined #ruby
iocor has joined #ruby
andrewhl has joined #ruby
td123 has joined #ruby
iocor has quit [Client Quit]
eurbach has joined #ruby
dekroning has quit [Ping timeout: 244 seconds]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
mayankkohaley has quit [Remote host closed the connection]
Gurpartap has quit [Ping timeout: 245 seconds]
moshef has joined #ruby
moshef has quit [Client Quit]
macmartine has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
zinjacoder has quit [Quit: Peace!]
h4mz1d has joined #ruby
shtirlic has joined #ruby
the_jeebster has joined #ruby
TechCel has joined #ruby
chson has joined #ruby
ananthakumaran1 has joined #ruby
EvanR_ is now known as EvanR
faitswulff has joined #ruby
EvanR is now known as Guest74807
Progster has quit [Ping timeout: 260 seconds]
Guest74807 is now known as EvanR
EvanR has quit [Changing host]
EvanR has joined #ruby
ph^ has quit [Ping timeout: 260 seconds]
peregrine81 has joined #ruby
<faitswulff> I'm still struggling with Hash#new block syntax. Can anyone explain what the first variable in the pipes represents in this line?
<faitswulff> hash = Hash.new {|hash, key| hash[key] = [] }
ananthakumaran has quit [Ping timeout: 244 seconds]
mobilegamelabs has quit [Ping timeout: 246 seconds]
ramblex has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
digitalcakestudi has joined #ruby
Progster has joined #ruby
dhruvasagar has joined #ruby
h4mz1d has quit [Ping timeout: 248 seconds]
<faitswulff> I understand that it creates a new default array for each key, but the first variable confuses me.
<horesman> faitswulff: the hash itself
TechCel has quit [Ping timeout: 240 seconds]
<horesman> faitswulff: so hash in the block is the same object as the Hash.new
<horesman> faitswulff: like with tap: Hash.new.tap { |hash| ...
d3c has quit [Quit: Quit]
xaq has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
shtirlic has quit [Remote host closed the connection]
umttumt has joined #ruby
<shevy> I still dont understand .tap
<faitswulff> horesman: ohh...just to be sure, though, you can name it whatever you like inside the pipes?
piotr__ has quit [Remote host closed the connection]
axl_ has joined #ruby
ABK has quit [Ping timeout: 276 seconds]
<horesman> faitswulff: Yeah
lorandi has joined #ruby
<faitswulff> hash = Hash.new {|something, key| ...} would do the same thing?
<horesman> faitswulff: Yeah, name is irrelevant
axl_ has quit [Read error: Connection reset by peer]
Jay_Levitt has joined #ruby
kmap2 has joined #ruby
jrist is now known as jrist-mtg
mohits has quit [Ping timeout: 245 seconds]
freeayu__ has quit [Quit: 离开]
Faris has joined #ruby
JeffreyBaird has joined #ruby
ananthakumaran1 has quit [Ping timeout: 250 seconds]
sailias has joined #ruby
Faris1 has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
kmap has quit [Ping timeout: 248 seconds]
Faris has quit [Read error: No route to host]
<faitswulff> horesman: ...I was going to ask why it was necessary to declare the hash object as a variable, but I think the block might be utterly unintelligible if you didn't
axl_ has joined #ruby
<faitswulff> horesman: thank you! Things make sense to me now
DanBoy has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
lkba has joined #ruby
Faris has joined #ruby
jeff_sebring has quit [Read error: Connection reset by peer]
zinjacoder has joined #ruby
kmap2 has quit [Client Quit]
berkes has joined #ruby
kmap has joined #ruby
RORgasm has joined #ruby
TechCel has joined #ruby
kmap has quit [Client Quit]
chson has quit [Remote host closed the connection]
Progster has quit [Read error: Operation timed out]
wardrop has joined #ruby
internet_user has joined #ruby
zinjacoder has quit [Client Quit]
clockwize has quit [Quit: clockwize]
cisco182 has joined #ruby
cisco182 has left #ruby [#ruby]
heftig has joined #ruby
iocor has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
jcromartie has quit [Quit: jcromartie]
moeSeth has quit [Quit: Connection closed for inactivity]
blacktulip has joined #ruby
Progster has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
randomautomator has joined #ruby
peregrine81 has quit [Ping timeout: 245 seconds]
TechCel has quit [Ping timeout: 252 seconds]
zomgbie has quit [Ping timeout: 276 seconds]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
wardrop has quit [Ping timeout: 248 seconds]
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
TPFC-SYSTEM has left #ruby [#ruby]
liluo has joined #ruby
mnaser has joined #ruby
monkegjinni has joined #ruby
kaiwren has quit [Quit: kaiwren]
<shevy> man
<shevy> why is horseman called horesman
fayimora has quit [Quit: Busy…..zzzzz]
<shevy> this is confusing :(
PaciFisT has joined #ruby
albemuth has quit [Quit: Computer has gone to sleep.]
<locriani> because the limbo eternity stone shone forth with a spoonful of dark last solstice
Progster has quit [Ping timeout: 260 seconds]
axl_ has quit [Read error: Connection reset by peer]
ipoval has joined #ruby
ken_barber has joined #ruby
axl_ has joined #ruby
monvillalon has joined #ruby
andrewhl has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
CheeToS has joined #ruby
ringotwo has joined #ruby
kenperkins has quit [Quit: Computer has gone to sleep.]
perry is now known as perryh_away
wilmoore has quit [Remote host closed the connection]
silex1 has joined #ruby
<shevy> locriani man
<shevy> you do poetry on IRC
axl__ has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
TheHunter_1039 has joined #ruby
ElderFain has joined #ruby
axl_ has quit [Ping timeout: 272 seconds]
daniel_hinojosa has joined #ruby
chienpo has joined #ruby
wardrop has joined #ruby
boo1 has left #ruby [#ruby]
<locriani> shevy: and the howling echoes in medicated pillow resound
red-panda has quit [Remote host closed the connection]
<shevy> :)
kevinbond has joined #ruby
red-panda has joined #ruby
axl_ has joined #ruby
ccapndave2 has left #ruby [#ruby]
iocor has quit [Quit: Computer has gone to sleep.]
yannis has joined #ruby
Araxia_ has quit [Quit: Araxia_]
silex1 has quit [Quit: WeeChat 0.3.7]
test0r0r has joined #ruby
tk___ has quit [Quit: ばいばい]
axl_ has quit [Read error: Connection reset by peer]
wardrop has quit [Ping timeout: 252 seconds]
iocor has joined #ruby
axl_ has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
nkvorn_ has joined #ruby
maahes has quit [Ping timeout: 246 seconds]
Faris has quit [Ping timeout: 246 seconds]
dekroning has joined #ruby
jrist-mtg is now known as jrist
axl_ has joined #ruby
macmartine has quit [Quit: macmartine]
ghanima has joined #ruby
maahes has joined #ruby
Targen has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
SegFaultAX has joined #ruby
lkba has quit [Quit: Bye]
dekronin1 has joined #ruby
axl_ has joined #ruby
dekroning has quit [Ping timeout: 244 seconds]
atmosx has quit [Ping timeout: 276 seconds]
kaiwren has joined #ruby
thone has quit [Read error: Operation timed out]
A124 has joined #ruby
JeffreyBaird has quit [Quit: JeffreyBaird]
monkegjinni has quit [Remote host closed the connection]
Faris has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
larissa has quit [Quit: Saindo]
lkba has joined #ruby
mpereira has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
timepilot has joined #ruby
dekronin1 is now known as dekroning
thone has joined #ruby
moshef has joined #ruby
umttumt has quit [Remote host closed the connection]
ph^ has joined #ruby
lkba has quit [Client Quit]
<shevy> locriani I am going to try and learn from you
<shevy> locriani: the wind has set out at dawn in the coming of the mruby storm
lorandi has quit [Quit: Leaving]
test0r0r has quit [Quit: WeeChat 0.3.7]
kpshek has joined #ruby
A124 has left #ruby [#ruby]
oooPaul has joined #ruby
lkba has joined #ruby
graspee has joined #ruby
<faitswulff> shevy: you could cheat and use heroku's url generator
iocor has quit [Quit: Computer has gone to sleep.]
cbuxton has joined #ruby
ckrailo has joined #ruby
iocor has joined #ruby
wvms has quit [Quit: wvms]
tdelam has quit [Quit: tdelam]
jprovazn is now known as jprovazn_away
yoklov has quit [Quit: computer sleeping]
QaDeS has joined #ruby
iocor has quit [Client Quit]
liluo has quit [Remote host closed the connection]
<locriani> shevy: haha
baroquebobcat has joined #ruby
jprovazn_away has quit [Quit: Leaving]
baroquebobcat has quit [Client Quit]
Jake232 has joined #ruby
jaylevitt has joined #ruby
albemuth has joined #ruby
mpereira has joined #ruby
kaiwren has quit [Quit: kaiwren]
prezjordan has joined #ruby
ipoval has quit [Quit: ipoval]
Targen has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
mikepack has joined #ruby
angelixd has joined #ruby
Jay_Levitt has quit [Ping timeout: 248 seconds]
miho has quit [Ping timeout: 244 seconds]
wilmoore has joined #ruby
wilmoore has quit [Read error: Connection reset by peer]
peregrine81 has joined #ruby
wilmoore has joined #ruby
stephenjudkins has joined #ruby
mengu has quit [Quit: Konversation terminated!]
lkba has quit [Read error: Connection reset by peer]
krusty_ar has quit [Read error: Connection reset by peer]
krusty_ar has joined #ruby
lkba has joined #ruby
Eldariof-ru has quit [Ping timeout: 264 seconds]
gilead has quit [Quit: Leaving]
kenperkins has joined #ruby
Morkel has quit [Quit: Morkel]
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Banistergalaxy has quit [Ping timeout: 246 seconds]
eurbach has quit [Quit: Leaving.]
moshee has quit [Ping timeout: 255 seconds]
zomgbie has joined #ruby
moshee has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
mohits has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby
blacktulip has quit [Remote host closed the connection]
jchauncey has joined #ruby
binaryplease has joined #ruby
darthdeus has joined #ruby
cjs226 has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
atmosx has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
faitswulff has left #ruby [#ruby]
binaryplease has quit [Client Quit]
virunga has joined #ruby
bricker88 has joined #ruby
bricker88 has quit [Client Quit]
yoklov has joined #ruby
bricker88 has joined #ruby
schovi_ has quit [Remote host closed the connection]
prezjordan has quit [Quit: prezjordan]
SirRamonGabriel has joined #ruby
igotnolegs has joined #ruby
dekroning has quit [Ping timeout: 276 seconds]
cjs226 has joined #ruby
pureluck has quit [Ping timeout: 245 seconds]
dr_diamond has joined #ruby
dr_diamond has quit [Changing host]
dr_diamond has joined #ruby
Ste11a has quit [Remote host closed the connection]
avandenhoven has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
sbanwart has joined #ruby
minijupe has joined #ruby
ryan0x2_ has joined #ruby
<avandenhoven> does anyone know of a decent gem/script to validate the existence of an email address by connecting to SMTP servers via telnet or similar?
red-panda has quit [Remote host closed the connection]
blueOxigen has quit [Ping timeout: 246 seconds]
<gogiel> avandenhoven: does SMTP support it?
<avandenhoven> absolutely
jxf has quit [Ping timeout: 264 seconds]
<avandenhoven> You can do it via telnet.
<avandenhoven> the first command sets the from (make something up) and the second is the recipient, you look for an error code
<avandenhoven> for a manual window-centric description.
<davidcelis> isn't this why people send confirmation links via email
bluenemo has quit [Remote host closed the connection]
sandstrom has quit [Quit: sandstrom]
andrewhl has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Faris has quit [Read error: Connection reset by peer]
Faris has joined #ruby
berkes has quit [Ping timeout: 246 seconds]
hatoishi has quit [Quit: leaving]
iocor has joined #ruby
Faris has quit [Client Quit]
<avandenhoven> gogiel: yeah that might do it.
<avandenhoven> thanks
carloslopes has quit [Quit: Leaving.]
quest88 has joined #ruby
robotmay_ has joined #ruby
<gogiel> i wonder why mail clients doesn't do it
robotmay has quit [Ping timeout: 246 seconds]
<gogiel> sure some smtp servers won't answers, but if most of them do, why not make it an option
mobilegamelabs has joined #ruby
dwaynecrooks has joined #ruby
pureluck has joined #ruby
<workmad3> gogiel: legacy?
xaq has quit [Read error: Connection reset by peer]
kaiwren has joined #ruby
kaiwren has quit [Client Quit]
<avandenhoven> its probably not nice. And I suspect that servers that are constantly bombarded from a given ip (i.e. spammers looking for real addresses running a dictionary) will block that IP
<workmad3> ^^ that too
<workmad3> it could be a course to blacklisting
xaq has joined #ruby
<workmad3> it might also count as an invalid use of the protocol
<apeiros_> also many servers simply accept any address
<apeiros_> and throw it away if no recipient can be found
<workmad3> or generate a new response
<apeiros_> also due to spamming, i.e., to avoid that somebody can detect valid emails from the outside
cjs226 has quit [Ping timeout: 265 seconds]
<workmad3> 'MailDeliveryNotificationError'
<apeiros_> yes, but that's also been largely abandoned
<apeiros_> see bounce spam
quest88 has quit [Quit: quest88]
<apeiros_> email is a pretty broken system.
Ontolog has joined #ruby
<workmad3> well, it works... but it's very shakey, heavily bandaged and you don't want to look too closely or the open wounds may bleed on you
pdtpatrick has joined #ruby
aantix has joined #ruby
<apeiros_> I prefer not thinking too much about it. it's too painful…
binaryplease has joined #ruby
<workmad3> apeiros_: just send some emails to the president of the internet complaining about it ;)
senny has quit [Remote host closed the connection]
aantix has quit [Read error: Connection reset by peer]
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
troulouliou_dev has joined #ruby
senny has joined #ruby
aantix has joined #ruby
<troulouliou_dev> hi i have bigdecimal and msgpack installed, when i try ri String, it looks for bigdecimal, msgpack String object
<troulouliou_dev> how can i specify that i want ot check the base system String Object
TPFC-SYSTEM has joined #ruby
a_a_g has joined #ruby
BiHi has quit [Quit: bye]
cjs226 has joined #ruby
freezey has joined #ruby
robotmay_ has quit [Remote host closed the connection]
apok has joined #ruby
maletor has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
savage- has joined #ruby
jaylevitt has quit [Quit: Linkinus - http://linkinus.com]
senny has quit [Remote host closed the connection]
jcromartie has joined #ruby
a_a_g has quit [Ping timeout: 245 seconds]
Morkel has joined #ruby
Morkel has quit [Client Quit]
mikepack has joined #ruby
axl_ has quit [Quit: axl_]
Jake232 has quit [Quit: Computer has gone to sleep.]
omry has quit [Ping timeout: 272 seconds]
axl_ has joined #ruby
fra000 has quit [Quit: Leaving]
BeLucid has quit [Ping timeout: 265 seconds]
mneorr2 has joined #ruby
Gurpartap has joined #ruby
CheeToS has quit [Ping timeout: 240 seconds]
sonkei has quit [Quit: WeeChat 0.3.8]
hunglin has joined #ruby
IrishGringo has joined #ruby
<Gurpartap> If someone's knowledgeable with ruby's Process or processes in general, please explain this: http://stackoverflow.com/questions/11140452/why-does-process-setsid-require-root-privileges-in-ruby
mneorr1 has quit [Ping timeout: 240 seconds]
troulouliou_dev has left #ruby ["Leaving"]
bryanrieger has joined #ruby
darthdeus has quit [Quit: Leaving...]
wardrop has joined #ruby
TheFuzzball has quit [Ping timeout: 244 seconds]
voodoofish430 has joined #ruby
TheFuzzb_ has joined #ruby
td123 has quit [Quit: WeeChat 0.3.8]
td123 has joined #ruby
kenichi has joined #ruby
axl__ has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
axl__ has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
eywu has joined #ruby
cantonic_ has joined #ruby
TheRealPygo has quit [Quit: leaving]
pygospa has joined #ruby
Criztian has quit [Remote host closed the connection]
wardrop has quit [Ping timeout: 245 seconds]
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
sonkei has joined #ruby
xnm has joined #ruby
williamcotton has joined #ruby
cantonic has quit [Ping timeout: 265 seconds]
cantonic_ is now known as cantonic
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby
xnm has quit [Read error: Connection reset by peer]
eywu has quit [Client Quit]
ben_alman has quit [Excess Flood]
xnm has joined #ruby
<Hanmac> shevy: m = Module.new { class Item; end;}; aber m.constants #> []
arturaz has quit [Ping timeout: 260 seconds]
itnomad has joined #ruby
tewecske has joined #ruby
eywu has joined #ruby
francisfish has quit [Remote host closed the connection]
Araxia_ has joined #ruby
blischalk has quit [Quit: blischalk]
jimeh has quit [Ping timeout: 255 seconds]
ben_alman has joined #ruby
wardrop has joined #ruby
<workmad3> Hanmac: I'm guessing it's because constants and constant lookup is done lexically, so it'll end up defining Item in the external scope
iaj has quit [Ping timeout: 248 seconds]
axl__ has joined #ruby
mnaser has quit [Ping timeout: 244 seconds]
rbanffy has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
mxweas_ has joined #ruby
skrewler has joined #ruby
fantazo has joined #ruby
davidcelis has quit [Ping timeout: 272 seconds]
axl__ has joined #ruby
niku4i has joined #ruby
<Hanmac> workmad3 yeah but i want my constants put in an extra module (for project managemant)
moshef has quit [Read error: Connection reset by peer]
andrewhl has joined #ruby
axl___ has joined #ruby
moshef has joined #ruby
mnaser has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
axl_ has quit [Ping timeout: 246 seconds]
Gurpartap has quit [Ping timeout: 245 seconds]
axl____ has joined #ruby
axl____ has quit [Read error: Connection reset by peer]
apok_ has joined #ruby
monkegjinni has joined #ruby
axl_ has joined #ruby
axl__ has quit [Ping timeout: 260 seconds]
apok has quit [Ping timeout: 260 seconds]
apok_ is now known as apok
axl___ has quit [Ping timeout: 265 seconds]
itnomad has quit [Quit: Leaving]
<kaspernj_> Does Ruby have a method to divide an array up in chunks based on a true-false-like-yielding callback in stdlib?
<Hanmac> ri Array#chunk
alexmin has joined #ruby
<kaspernj_> Hanmac, that isnt mentioned here? http://www.ruby-doc.org/core-1.9.3/Array.html
darthdeus has joined #ruby
lorandi has joined #ruby
<kaspernj_> Hanmac, perhaps something Rails bundles? ;-)
wardrop has quit [Ping timeout: 245 seconds]
<yoklov> kaspernj_: it's in Enumerable
zomgbie has joined #ruby
apok has quit [Remote host closed the connection]
andreime has quit [Quit: Lost terminal]
<workmad3> Hanmac: m = Module.new {const_set(:Item, Class.new)}
apok has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
<kaspernj_> Thanks all!
<workmad3> kaspernj_: there's also .partition
<yoklov> what gui libraries do you guys like to use?
<workmad3> yoklov: I don't
<yoklov> well, if you did
<Hanmac> workmad3 ok your code works ... but its not what i want ...
<workmad3> Hanmac: if you want dynamic modules, that's what you're stuck with though
<workmad3> Hanmac: well, I guess you could play around with module_eval
<raz> anyone know a gem to aid with creating rails-style generators (outside of rails)?
<workmad3> raz: Thor
<workmad3> raz: it's what the rails generators use
<kaspernj_> yoklov, I use Gtk2. Thought about trying out the FFI(?) Gtk3 lib. As far as I can think, that should also work in JRuby??
<raz> workmad3: hmm, i thought thor is only for optparsing?
<raz> gotta look into that
Aaton_off is now known as Aaton
yeggeps has quit [Read error: Connection reset by peer]
<yoklov> kaspernj_: hm, thanks, how high/low level is it?
RainbowDashh has joined #ruby
yeggeps has joined #ruby
<kaspernj_> yoklov, in what regards?
<yoklov> how thin or think of a wrapper over gtk is it?
Divinite has quit [Remote host closed the connection]
<yoklov> thick*
<workmad3> yoklov: I think, no matter what GUI library you pick, you're not going to *like* using it ;)
<yoklov> i've done a lot of gui work in other languages
<yoklov> but when i write ruby i prefer writing at an embarassingly high level
<kaspernj_> yoklov, Gtk2 is pretty big. As far as I have read, the FFI Gtk3 lib should not be that big.
<workmad3> yoklov: ever come across a gui library you like? rather than just tolerate? :)
<yoklov> oh, no.
<kaspernj_> yoklov, stuff is really easy in Gtk2 imo.
mxweas_ has quit [Ping timeout: 244 seconds]
<workmad3> yoklov: you could also always look at something like green_shoes, which is a shoes-style API over QT that's been gemified
ces has joined #ruby
<workmad3> don't know how good it actually is though, I've never done more than a brief glance at it :)
<kaspernj_> yoklov, I like how you can choose, if you wanna go really low level like coding every single thing yourself, or write as little GUI as possible by using a tool like Glade, where you design with click'n'drop visually (which I do 90% of the time).
axl_ has quit [Read error: Connection reset by peer]
banghouse has joined #ruby
axl_ has joined #ruby
<yoklov> hm, okay. I still have nightmares about interface builder, so i'll probably avoid glade
yeggeps_ has joined #ruby
yeggeps has quit [Ping timeout: 244 seconds]
axl_ has quit [Read error: Connection reset by peer]
mxweas_ has joined #ruby
axl_ has joined #ruby
carloslopes has joined #ruby
<yoklov> but thanks, i have some things to investigate now
stephenjudkins has joined #ruby
adamkittelson has joined #ruby
c0rn_ has joined #ruby
joch_n has joined #ruby
jlogsdon has joined #ruby
RainbowDashh has quit [Disconnected by services]
RainbowD_ has joined #ruby
<kaspernj_> yoklov, as I said, the good thing is that you can choose yourself ;-)
niklasb has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
fivetwentysix has joined #ruby
RainbowD_ is now known as RainbowDashh
federic has quit [Remote host closed the connection]
shinobi_one has quit [Quit: shinobi_one]
andrew9184 has joined #ruby
altivec has joined #ruby
niku4i has quit [Remote host closed the connection]
<andrew9184> sorry very simple question
jonathanwallace has quit [Read error: Connection reset by peer]
<andrew9184> how come that doesn't work properly
jonathanwallace has joined #ruby
davidw has quit [Ping timeout: 240 seconds]
erichmenge has joined #ruby
<jlogsdon> andrew9184: it does. it requries you to hit enter, though
<andrew9184> hmmm, i don't get the hello
indian has quit [Read error: Operation timed out]
fivetwentysix has quit [Client Quit]
<andrew9184> weird, i forgot to save the file. :(
<andrew9184> lol
<jlogsdon> haha
<jlogsdon> oops!
workmad3 has quit [Read error: Operation timed out]
BeLucid has joined #ruby
iaj has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
banghouse has quit [Ping timeout: 250 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
kaspernj_ has quit [Quit: Leaving]
bryanrieger has quit [Quit: bryanrieger]
mobilegamelabs has quit [Quit: http://www.MGGGGG.com/ap Angry Polygon - my first Android/iOS/Mac game!]
beneggett has joined #ruby
shadoi has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
mxweas_ has quit [Ping timeout: 240 seconds]
cantonic has quit [Read error: Connection reset by peer]
RainbowDashh has quit [Ping timeout: 260 seconds]
cantonic has joined #ruby
Markvilla has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
DrShoggoth has joined #ruby
jumpingcloud has joined #ruby
mnaser has quit [Ping timeout: 265 seconds]
b26 has joined #ruby
banghouse has joined #ruby
RainbowDashh has joined #ruby
mxweas_ has joined #ruby
cbuxton has quit [Quit: Leaving.]
mnaser has joined #ruby
chomp has joined #ruby
pureluck has quit [Ping timeout: 245 seconds]
moshef has quit [Quit: moshef]
beneggett has quit [Quit: Computer has gone to sleep.]
pureluck has joined #ruby
beneggett has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
mockra has joined #ruby
Eldariof-ru has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.8]
xnm has quit [Ping timeout: 246 seconds]
tvw has quit [Remote host closed the connection]
Criztian_ has quit [Remote host closed the connection]
exchgr has joined #ruby
pureluck has quit [Ping timeout: 252 seconds]
kevinbond has left #ruby [#ruby]
pureluck has joined #ruby
fayimora has joined #ruby
apok_ has joined #ruby
Asher has quit [Quit: Leaving.]
FLeiXiuS has joined #ruby
tscolari has quit [Remote host closed the connection]
graft is now known as Guest17156
<FLeiXiuS> Is there an easy way to perform a text search against a file for any lines that return without parsing line by line?
mnaser has quit [Ping timeout: 255 seconds]
<FLeiXiuS> Or is that the only way...
apok has quit [Ping timeout: 272 seconds]
apok_ is now known as apok
pureluck has quit [Ping timeout: 245 seconds]
imami|afk is now known as banseljaj
mnaser has joined #ruby
freezey has quit [Ping timeout: 246 seconds]
<FLeiXiuS> Wait - think I found it. IO.open(file).grep(/regex/)
pureluck has joined #ruby
yeggeps_ has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
freezey has joined #ruby
yeggeps has joined #ruby
Targen has joined #ruby
<Hanmac> Fleixius you need to remember that your form of IO open is NOT closing the file
ChampS666 has joined #ruby
<FLeiXiuS> Hanmac, How so?
<FLeiXiuS> IO will close itself after the contents of the file are consumed I though.
ananthakumaran has quit [Quit: Leaving.]
<Hanmac> only the { } form
pureluck has quit [Ping timeout: 245 seconds]
dekroning has joined #ruby
pureluck has joined #ruby
bearlulz has joined #ruby
<FLeiXiuS> Hmm - is that documented any where?
igotnolegs has quit [Quit: Computer has gone to sleep.]
<FLeiXiuS> Boohbah, Thanks
<FLeiXiuS> Well let me re-evaluate.
jeffmess has joined #ruby
axl__ has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
dr_diamond has quit [Ping timeout: 246 seconds]
qwerxy has quit [Read error: Operation timed out]
michaelmartinez has joined #ruby
mikepack has joined #ruby
pureluck has quit [Ping timeout: 245 seconds]
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
yannis has quit [Quit: yannis]
jchauncey has quit [Quit: jchauncey]
pureluck has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
axl__ has joined #ruby
mockra has quit [Remote host closed the connection]
skrewler has left #ruby [#ruby]
td123 has quit [Quit: WeeChat 0.3.8]
<Jackneill> is there a short way to colorize the terminal output?
mxweas_ has quit [Quit: Leaving...]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<Boohbah> gem install colorize
Targen has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
joch_n has quit [Quit: Linkinus - http://linkinus.com]
mnaser has quit [Ping timeout: 250 seconds]
indian has joined #ruby
mikeycgto has joined #ruby
nirakara has joined #ruby
axl__ has quit [Ping timeout: 276 seconds]
mnaser has joined #ruby
aantix has quit [Remote host closed the connection]
axl__ has joined #ruby
kenichi has quit [Remote host closed the connection]
aantix has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
RORgasm has quit [Remote host closed the connection]
rakunHo has joined #ruby
kenichi has joined #ruby
axl__ has joined #ruby
axl__ has quit [Read error: Connection reset by peer]
flype has joined #ruby
axl_ has quit [Ping timeout: 252 seconds]
Asher has joined #ruby
axl_ has joined #ruby
yaasii has joined #ruby
saschagehlich has joined #ruby
sailias has quit [Quit: Leaving.]
yaasii has quit [Client Quit]
manizzle has quit [Read error: No route to host]
yeggeps_ has joined #ruby
yeggeps has quit [Ping timeout: 245 seconds]
mnaser has quit [Remote host closed the connection]
mnaser has joined #ruby
itnomad has joined #ruby
<davidcelis> ruby 1.8, y u so fail?
<davidcelis> Hash#reject! but no Hash#select!
<davidcelis> le sigh
<apeiros_> y u use ancient ruby?
skrewler has joined #ruby
<apeiros_> *inquisitive stare*
JeffreyBaird has joined #ruby
<davidcelis> ancient rails application :(
skrewler has quit [Read error: Connection reset by peer]
<davidcelis> i have tried to push for an upgrade from ruby 1.8 and rails 2.3, but it always gets put on the backlog
MrGando has joined #ruby
dennda has joined #ruby
Solnse has joined #ruby
<werdnativ> A question about namespace etiquette: if I'm writing a helper for a library (rspec), something akin to rspec-rails, should I create a Spec::MyModule namespace in the existing ::Spec, or stay out and make my own ::RSpecMyModule?
fayimora has quit [Ping timeout: 264 seconds]
schovi has joined #ruby
<werdnativ> on the one hand Spec::MyModule is predictably consistent.
<werdnativ> on the other hand, I don't feel I "own" the Spec namespace, should I have any business putting stuff in there?
<LiquidInsect> davidcelis: it's the same here. It's never worth it from the perspective of a project leader
skogis has quit [Quit: bbl]
<LiquidInsect> I was at Twitter for a security miniconference and one of their guys told me they're on Rails 2.3 and REE
kpshek has quit []
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
flype has quit [Ping timeout: 252 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
centipedefarmer has quit [Read error: Connection reset by peer]
Jake232 has joined #ruby
xnm has joined #ruby
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
Juul has joined #ruby
yeggeps_ has quit [Read error: Connection reset by peer]
yeggeps has joined #ruby
zeade has joined #ruby
Solnse has quit []
centipedefarmer has joined #ruby
td123 has joined #ruby
Muon has joined #ruby
billy_ran_away has joined #ruby
<zeade> anyone familiar with the twitter gem know how to set a timeout for it? … this morning outage caused unhappiness
carloslopes has quit [Quit: Leaving.]
flype has joined #ruby
carloslopes has joined #ruby
<billy_ran_away> Can anyone tell me why this method doesn't return a string? But instead an instance of the class it's in? https://github.com/billy-ran-away/maskable_attribute/blob/rails2/lib/maskable_attribute/maskable_attribute.rb#L15
monkegjinni has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 276 seconds]
kpshek has joined #ruby
jeffmess has quit [Ping timeout: 264 seconds]
rakunHo has quit [Remote host closed the connection]
atmosx has joined #ruby
<billy_ran_away> This test: https://github.com/billy-ran-away/maskable_attribute/blob/rails2/test/maskable_attribute_test.rb#L45 is failing: <"abc"> expected but was <abc>.
<Muon> is there any way to simplify this? https://gist.github.com/2967571
M00kaw has joined #ruby
cuppsy has joined #ruby
<M00kaw> Hey guys... novice question.. if I use require_relative in order to call some def()'s i made, would you descripe that as OOP ?
delinquentme has joined #ruby
rakunHo has joined #ruby
<delinquentme> hey all I just ran some tests on a gem and its failing bc a package is no included
axl__ has joined #ruby
cuppsy has quit [Quit: leaving]
<delinquentme> whats the best practice for installing a requisite package within an autotest
<Sigma00> M00kaw: no, OOP would be class-based encapsulation of methods, imo
<billy_ran_away> Muon: Check out Enmuerable's inject method
<M00kaw> thanks Sigma00
<werdnativ> delinquentme: does the gem have a Gemfile? can you run bundle install?
musee has quit [Ping timeout: 255 seconds]
musee has joined #ruby
stephenjudkins has joined #ruby
<delinquentme> werdnativ, no there is no gemfile
<delinquentme> hmmmm
<delinquentme> I wonder if it should have one?
cuppsy has joined #ruby
wardrop has joined #ruby
DrShoggoth has quit [Quit: Leaving]
Desmond has joined #ruby
axl_ has quit [Ping timeout: 276 seconds]
axl__ is now known as axl_
<werdnativ> delinquentme: primarily, it needs dependencies in the gemspec: http://guides.rubygems.org/patterns/#declaring-dependencies
<werdnativ> delinquentme: but it's nice to include a Gemfile that loads the dependencies from the gemspec.
<Muon> billy_ran_away: I'm looking at inject's docs, but I don't see the solution :S
cscribble has quit [Quit: ZNC - http://znc.in]
RORgasm has joined #ruby
b26 has quit [Remote host closed the connection]
<delinquentme> werdnativ, so a gemfile is the default way to cover dependencies
<delinquentme> ?
<billy_ran_away> Muon: Yea never mind, I thought you iterating over an array…
<delinquentme> I mean im familiar w that practice as rails is concerned ... i was just unaware that rubygems is the way to do it for ruby as well
Asher has quit [Quit: Leaving.]
<billy_ran_away> Is there any reason why if in a method in a class, that's in a module, when returning a string would not make it of the string class?
jonatha__ has joined #ruby
<werdnativ> delinquentme: if the gemspec has development_dependency items listed, try gem install --dev yourgem
Jake232 has quit [Quit: Computer has gone to sleep.]
<delinquentme> top notch information werdnativ
<delinquentme> +1
nirakara has quit [Quit: This computer has gone to sleep]
<Jackneill> http://pastebin.com/QAQjrEWq can you help me? at line 4 i got : require "colorize" | i installed it by: sudo gem install colorize i dont udnerstand
<delinquentme> Hmm so there is a /gemfiles dir?
<delinquentme> is that normal?
jonatha__ has quit [Remote host closed the connection]
<werdnativ> nope… wtf is gemfiles...
<werdnativ> delinquentme: what gem? github link?
jonathanwallace has quit [Ping timeout: 246 seconds]
`brendan has joined #ruby
<jlogsdon> Jackneill: run `gem list` and look for colorize in the output
<delinquentme> https://github.com/bioruby/bioruby werdnativ
SeanLazer has quit [Ping timeout: 276 seconds]
<Jackneill> hm interesting i cant see ut
<Jackneill> it*
<delinquentme> these are biologists first and programmers second i believe :D
wardrop has quit [Ping timeout: 246 seconds]
<Jackneill> Successfully installed colorize-0.5.8
<Jackneill> 1 gem installed
<Jackneill> | i got it
<delinquentme> i just ran the tests and its failing bc I lack a libxml-ruby package
<delinquentme> so I was thinking ... should I just install it from the autotest script
brianpWins has joined #ruby
<Jackneill> but for gem list i didnt get the colorize :(
luckyruby has joined #ruby
<delinquentme> or how should I get it integrated so as to help the devs working on this get running ASAP
DrShoggoth has joined #ruby
<werdnativ> delinquentme: gemspec doesn't list any dependencies… it should. I would fork it and add them there. Then in your project Gemfile, put gem "bioruby", :github => "delinquentme/bioruby"
hynkle has quit [Ping timeout: 244 seconds]
youdonotexist has joined #ruby
<delinquentme> werdnativ, im not even seeing a gemspec
chson has joined #ruby
mnaser has quit [Ping timeout: 250 seconds]
Juul has quit [Ping timeout: 252 seconds]
nadirvardar has joined #ruby
<delinquentme> @_@
<delinquentme> werdnativ, is that ... horrible misplaced or am I dumb?
mnaser has joined #ruby
<werdnativ> delinquentme: the way they have it is dumb. by the way that gemfiles directory is for running continuous integration on a test server. Are the gem dependencies in there the ones you're missing?
<delinquentme> it seems they are....
<delinquentme> *checking*
<delinquentme> so yeah they are
jarred has joined #ruby
<delinquentme> this is all very foreign to me
<shevy> wheeee who is using bioruby here wheeeeee
berkes has joined #ruby
<werdnativ> delinquentme: those should be in gemspec if they are required.
<delinquentme> sooo i should do a force bundle off one of those named sets?
<shevy> werdnativ!
hynkle has joined #ruby
<delinquentme> shevy, im futzing with it :D
<shevy> ahhh
<shevy> sorry werdnativ :D
<werdnativ> shevy: help delinquentme with it if you know it! :)
<shevy> oh
<shevy> I use a script to generate a basic .gemspec
<werdnativ> yeah, imho that's overkill…
minijupe has quit [Quit: minijupe]
<werdnativ> shevy: try bundle gem newgem to see the basic boilerplate, it's much simpler.
<shevy> ack
<delinquentme> shevy, are you a biologist?
mockra has joined #ruby
fayimora has joined #ruby
<shevy> delinquentme more than a programmer yeah :)
<shevy> come to #bioruby anyway?
<shevy> pjotr knows EVERY>THING about bioruby
<delinquentme> wth .. bioruby/bioruby/blob/master/bioruby.gemspec i dont have this dir in my cloned copy
<shevy> and helius, but he is only online during daytime northern italy timezone
<delinquentme> shevy, awesome :D !
wardrop has joined #ruby
<billy_ran_away> Does having a class defined within a module change what kind of objects its methods would return?
<Jackneill> http://pastebin.com/QAQjrEWq can you help me? at line 4 i got : require "colorize" | i installed it by: sudo gem install colorize i dont udnerstand
Criztian has joined #ruby
<billy_ran_away> I've got a class defined within a module that won't return a string to a caller outside the module...
Targen has joined #ruby
<billy_ran_away> It only returns an object with the name of the module or class (they're named the same...)
<apeiros_> billy_ran_away: no, nesting doesn't affect method returns.
<werdnativ> billy_ran_away: depends if you have ambiguous class names… you can define a MyModule::String and it will use that in context instead of the top-level ::String
snearch has quit [Quit: Verlassend]
<billy_ran_away> If I put say "puts value.class.name.inspect" before line 22 it outputs "String"
<apeiros_> billy_ran_away: with only that information given - no.
axl__ has joined #ruby
<billy_ran_away> But if I puts @instance_of_maskable_attribute.masked.class.name.inspect I get "MaskableAttribute"
<billy_ran_away> apeiros_: What other info can I give you to help you help me? : )
<apeiros_> a reproducable example
axl__ has quit [Read error: Connection reset by peer]
<apeiros_> preferably minimal
<luckyruby> is there an easier way than ' '*15 to create 15 whitespaces?
axl_ has quit [Ping timeout: 246 seconds]
<billy_ran_away> That's my one failing test… It attempts to check the output of the the masked method against a string… but it doesn't work since the object being returned by the masked method apparently stops being a String some how...
axl_ has joined #ruby
<luckyruby> or a less ugly way
<billy_ran_away> apeiros_: Forgot to include your name in my comment on what the test does ----^
whitenoise has joined #ruby
wardrop has quit [Ping timeout: 252 seconds]
axl__ has joined #ruby
Lachryma has quit [Quit: Leaving]
<apeiros_> having to install ~20 gems is not what I'd call minimal…
<werdnativ> luckyruby: String.new.ljust(15, ' ')
<luckyruby> thanks
mjb2k has joined #ruby
<apeiros_> so I bundled and ran rake test. seems it wants me to set up the db too. sorry, but too much effort.
<apeiros_> I'm off to play games
<billy_ran_away> apeiros_: damn...
cuppsy has quit [Quit: leaving]
<billy_ran_away> rake db:create db:migrate
<jlogsdon> make your test setup do that
<luckyruby> i love Enumerable#group_by
<billy_ran_away> jlogsdon: me?
beneggett has quit [Ping timeout: 265 seconds]
SeanLazer has joined #ruby
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
<shadoi> What's the simplest way to sort one array according to the order in another? https://gist.github.com/2967808
mockra has quit [Remote host closed the connection]
cuppsy has joined #ruby
LBRapid has quit [Quit: Farewell.]
beneggett has joined #ruby
<shadoi> guess I can just use indexes
<werdnativ> shadoi: are there always the same number of elements? if so, then just actual_order = correct_order because the arrays are the same...
<werdnativ> shadoi: if there are different numbers of elements, what happens with sorting of extra items?
<shadoi> yeah there are differences
<shadoi> I will just match on prefixes
freezey_ has joined #ruby
<delinquentme> werdnativ, So was the consensus ... " just bundle from one of the existing versioned gemfiles ? "
flak has joined #ruby
flak is now known as Guest51801
rippa has quit [Read error: Connection reset by peer]
MrGando has quit [Quit: Bye]
freezey has quit [Ping timeout: 265 seconds]
freezey_ is now known as freezey
<werdnativ> delinquentme: sure you can do that if it's a one-off install, but it's inconvenient for regular end-users of that library… it should really install its own dependencies. Those gemfiles are there for a build test system called Travis.
<delinquentme> so yeah im new to cont integ
<delinquentme> and I agree that for end users it should be a 1-line to install it
<jlogsdon> billy_ran_away: yeah, you. someone who wants to contriubte should be able to fork, pull down, and then run rake test or whatever
<delinquentme> however my goal was to get the current version in a passing state
<jlogsdon> (and maybe a bundle)
<delinquentme> which is currently shown as failing here:
<jlogsdon> it also means you can use Continuous Integration ,like travis or jenkins
arussel has joined #ruby
<werdnativ> delinquentme: try bundle install --gemfile=gemfiles/Gemfile.travis-yourruby
<billy_ran_away> jlogsdon: I have a Gemfile for bundle....
<jlogsdon> good
gks has joined #ruby
<jlogsdon> now make your test setup do the test app setup
<jlogsdon> (rake db:moigrate and crap)
<jlogsdon> dont make me change directories to it and manually run that
<jlogsdon> otherwise what apeiros_ did will happen a lot.
<jlogsdon> make it easy to get going
<werdnativ> jlogsdon: curious, does that mean db create/setup would happen on every test run? or do you just add a check for if it already exists?
<jlogsdon> no, just before the suite is run
<jlogsdon> the latter
dkissell has joined #ruby
<jlogsdon> and then i would truncate the database (use database_cleaner or something to automate it) after each test
<werdnativ> makes sense
dkissell has left #ruby [#ruby]
<werdnativ> there should be some Rakefile boilerplate for that shit #lazyweb
Muon has quit [Quit: Greater Teleport.]
<jlogsdon> im working on a boilerplate for gems that can utilize multiple ORMs. `rake test:gambit` would run your test suite against AR, DataMapper, Mongoid and MongoMapper
<jlogsdon> (with options for multiple dbs under each adapter_
<werdnativ> wow, that sounds so awesome!
mohits has quit [Ping timeout: 244 seconds]
<werdnativ> so you would know. ;)
dnyy has joined #ruby
<jlogsdon> i have 2 gems that need to do that right now, i figure its about time it was genericized xD
ribo has joined #ruby
tommyvyo has joined #ruby
<jlogsdon> rigth now im having issues with mongoid :(
<ribo> so, I have a ruby script that asks for a file path, but File.open() doesn't translate '~' to $HOME, is there a way to get it to parse that '~' from input? (notoriously difficult to google for)
sailias has joined #ruby
<jlogsdon> File.expand_path
<shevy> :)
<ribo> jlogsdon: cool, that was simple
<ribo> haha
<jlogsdon> File.expand_path owns. File.expand_path('../../some/path', '/here/we/are') translates to: /here/some/path!
Guest51801 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> File.expand_path '~/firefox' # => "/home/debug/firefox"
<ribo> neato
sailias has quit [Client Quit]
<ribo> thanks guys!
rippa has joined #ruby
sailias has joined #ruby
<shadoi> werdnativ: https://gist.github.com/2967808 in case you're curious :)
<werdnativ> shadoi: right on! I was thinking something with inject, but sort_by is much cleaner… forgot about it.
<shadoi> actually I think I fucked it up
<shadoi> was working… heh
Bosma has joined #ruby
ChampS666 has quit [Ping timeout: 276 seconds]
<shadoi> ah, just need to actual_order.length instead of 0
Paul-Atreides has joined #ruby
Paul-Atreides has joined #ruby
Paul-Atreides has quit [Changing host]
bosphorus has quit [Remote host closed the connection]
<shadoi> since I want it last if it's not in the correct order.
<mjb2k> hey it's me, slightly-off-topic-guy, with a question: Could anybody recommend a Ruby on Rails based Customer Support Case Management system?
Notimik has joined #ruby
ilyam has joined #ruby
<werdnativ> shadoi: what are the members of your array? You could also def <=> on them so they can naturally sort
<shadoi> they're names of things that have to be done in a specific order
<jlogsdon> what the heckkkkk. I can't get mongo-1.6.2 to install, it keeps using 1.3.1 :|
<shadoi> there are subsets of the correct_order at different times
<shadoi> and I may need to change the ordering, so it's good to have a map
<werdnativ> ok, just curious
Ontolog has quit [Read error: Connection reset by peer]
TPFC-SYSTEM has quit [Quit: TPFC-SYSTEM]
Ontolog has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
tdubz has quit [Ping timeout: 252 seconds]
dkissell_ has joined #ruby
Asher has joined #ruby
tdubz has joined #ruby
<jlogsdon> i am stupid... i couldn't figure out why mongo 1.3.1 insisted on installing even though my gemspec had 1.6.2.... turns out my gemfile still had mongo listed D:
Corey_ has joined #ruby
<jlogsdon> magical... it works now
manizzle has joined #ruby
Paul-Atreides is now known as enroxorz
supergiantrobot has quit [Read error: Connection reset by peer]
<yoklov> is there a more elegant way to express `n > 0 ? 1 : (n < 0 ? -1 : 0)`?
atmosx has quit [Ping timeout: 276 seconds]
Corey has quit [Ping timeout: 610 seconds]
<apeiros_> n <=> 0
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<yoklov> ah, you rule
<yoklov> i definitely though the answer to that was no
ilyam has quit [Remote host closed the connection]
ilyam has joined #ruby
<shadoi> doesn't work in the positive case…
<shadoi> nevermind
<shadoi> my own typo lol
bearlulz has quit [Quit: Computer has gone to sleep.]
rdg has joined #ruby
Monofu has joined #ruby
delinquentme has quit [Quit: Leaving]
kirun has joined #ruby
dkissell_ has left #ruby [#ruby]
atmosx has joined #ruby
freezey_ has joined #ruby
lorandi has quit [Quit: Leaving]
sailias has quit [Ping timeout: 252 seconds]
lorandi has joined #ruby
Aaton is now known as Aaton_off
freezey has quit [Ping timeout: 265 seconds]
freezey_ is now known as freezey
d3c has joined #ruby
Aaton_off is now known as Aaton
<d3c> why won't this work? I'm getting 'fail' no matter what: `raise 'fail' unless File.open('/tmp/foo','w') { |f| f.puts 'bar' }`
peregrine81 has quit [Quit: Computer sleeping.]
jackiechan0 has joined #ruby
nathanstaines has joined #ruby
<d3c> I'd like it to only raise an exception if it wasn't possible to write successfully to /tmp/foo
sepp2k has joined #ruby
wardrop has joined #ruby
Habib has joined #ruby
arussel has quit [Ping timeout: 264 seconds]
Corey_ is now known as Corey
Gavilan has joined #ruby
exchgr has quit [Quit: exchgr]
exchgr has joined #ruby
kpshek has quit []
Markvilla has quit [Quit: Markvilla]
Eldariof-ru has quit []
nathanstaines has left #ruby [#ruby]
Notimik has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Jackneill has quit [Read error: Connection reset by peer]
Aaton is now known as Aaton_off
rdg has quit [Quit: ttfn]
indeterminate has quit [Quit: It's too late. You've awakened the gazebo. It catches and eats you.]
gks has quit [Quit: Leaving...]
wardrop has quit [Ping timeout: 246 seconds]
saschagehlich has quit [Read error: Connection reset by peer]
saschagehlich has joined #ruby
wpaulson has joined #ruby
<apeiros_> d3c: File::open returns the value of the block
<apeiros_> the value of the block is the result of f.puts
<apeiros_> puts returns nil
sailias has joined #ruby
ribo has left #ruby [#ruby]
<d3c> apeiros_: no way to check that everything was ok then? need this for a deployment routine
delinquentme has joined #ruby
<delinquentme> anyone in here ever use travisci?
<delinquentme> im looking at the muild matrix jobs
francisfish has joined #ruby
<delinquentme> and trying to sort out what the numers in the left col correspond to
blacktulip has joined #ruby
fantazo has quit [Ping timeout: 264 seconds]
fantazo has joined #ruby
benjammin891 has joined #ruby
<apeiros_> d3c: open and puts raise all on their own if something isn't ok
lorandi has quit [Quit: Leaving]
enroxorz has quit [Quit: Leaving]
darthdeus has quit [Quit: Leaving...]
stephenjudkins has quit [Quit: stephenjudkins]
<Tasser> is it evil to generate xml with formatstrings? :-)
<shadoi> yes
<apeiros_> no
<shadoi> yes
<apeiros_> no :)
<shadoi> maybe not evil, but super disgusting.
<apeiros_> potentially broken
<apeiros_> but you can always run an XSD or RNG over it
workmad3 has joined #ruby
<shadoi> yeah if you validate it, immediately after generating, I guess it's fine
<shadoi> but if you're validating, then you have a decent XML lib loaded already, and there's no reason not to use it to build the XML properly.
alexmin has quit [Ping timeout: 272 seconds]
fantazo_ has joined #ruby
malkomalko has joined #ruby
<Tasser> shadoi, the problem is that the app reading the XML is potentially whitespace-sentitive
stephenjudkins has joined #ruby
robbyoconnor has joined #ruby
TheFuzzb_ has quit [Read error: No route to host]
<apeiros_> bad.app
<luckyruby> werdnativ: turns out u can just do ljust(15)
fantazo has quit [Ping timeout: 265 seconds]
<shadoi> those sound like unrelated problems.
<luckyruby> String.new.ljust(15) i mean
TheFuzzball has joined #ruby
ciopte7 has joined #ruby
nso95 has joined #ruby
yankhates has quit [Ping timeout: 248 seconds]
<Tasser> apeiros_, deal with it :-)
<Tasser> shadoi, to_xml in nokogiri doesn't seem to take any formating arguments
<apeiros_> Tasser: I don't have to :-p
<Tasser> apeiros_, indeed
<apeiros_> dang, what's up with me today?
<apeiros_> already drank >1L of milk…
amh345 has joined #ruby
amh345 has quit [Changing host]
amh345 has joined #ruby
yankhates has joined #ruby
Jake232 has joined #ruby
bosphorus has joined #ruby
<amh345> im trying to build a csv header. im having a hell of a time looping an array of values and adding it to an existing array. for example: https://gist.github.com/ae50792c432163b28c9b i cant get it to loop var a 10 times.
enroxorz has joined #ruby
enroxorz has quit [Changing host]
enroxorz has joined #ruby
<axl_> is there a more axiomatic way of sorting same kind of objects in an array than what is suggested here: http://ariejan.net/2007/01/28/ruby-sort-an-array-of-objects-by-an-attribute
<matled> axl_: you can do users.sort_by(&:login_count) and users.map(&:name).sort_by(&:downcase)
<Boohbah> amh345: b = ["x","y","z"] + (a * 10)
<axl_> matled: interesting…
rowanu has joined #ruby
<Mon_Ouie> matled: The second one doesn't work
<matled> in general, if your block looks like { |a,b| a <=> b } you can use .sort_by
<Mon_Ouie> It will sort the names, not the users
Markvilla has joined #ruby
<matled> Mon_Ouie: oh, right, then users.sort_by { |user| user.name.downcase }
nso95 has left #ruby [#ruby]
<amh345> Boohbah: ah. that worked. any idea why a * 10 would work but 10.times {a} wouldnt?
<matled> Mon_Ouie: the coolline thing allows syntax highlighting as I type?
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<axl_> matled: awesome… that works
<Boohbah> >> b = ["x","y","z"] + 10.times { return a }
<Boohbah> LocalJumpError: unexpected return
<Boohbah> amh345: because one returns from a method, not a block
<Mon_Ouie> matled: Yep
<Mon_Ouie> I use it with Pry
AlbireoX`Laptop has joined #ruby
xnm has quit [Read error: Connection reset by peer]
<matled> Mon_Ouie: I just found that nice blog entry with all the pry extensions and try them out at the moment
sailias has quit [Ping timeout: 240 seconds]
<matled> Mon_Ouie: coolline looks nice, but some keyboard shortcuts are missing from readline
wmoxam has joined #ruby
minijupe has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
<Mon_Ouie> Yeah, I guess I just added those that I used — they can be added through configuration though
stephenjudkins has quit [Quit: stephenjudkins]
IPGlider has joined #ruby
atmosx has joined #ruby
<matled> why are you using a different configuration file if XDG_CONFIG_HOME is set or not? shouldn't it default to $HOME/.config/?
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 276 seconds]
peregrine81 has joined #ruby
<Mon_Ouie> I didn't know XDG_CONFIG_HOME had a default value if it isn't set actually
workmad3 has quit [Ping timeout: 245 seconds]
gks has joined #ruby
enroxorz has quit [Quit: Leaving]
<billy_ran_away> Does having a class defined within a module change what kind of objects its methods would return?
wardrop has joined #ruby
<jlogsdon> no...
gks has quit [Client Quit]
<billy_ran_away> jlogsdon: I'm still stuck...
<matled> ah, it should default to ~/.config/. I don't set it explicitly and the X server doesn't set it neither for me.
<billy_ran_away> jlogsdon: I can't for the life of me figure why my return from masked is not a String...
SeanLazer has quit [Ping timeout: 276 seconds]
<Boohbah> billy_ran_away: can we see your code?
<Mon_Ouie> matled: What if ~/.config doesn't exist? Should I create it, or let the error be raised?
<matled> do you write out the config? if you do I think it should be ok to create the directory, maybe the specification has some hint for that too
<billy_ran_away> Boohbah: I'm commit some debug output to highlight my problem
<billy_ran_away> *committing
<Mon_Ouie> I write the history log
<billy_ran_away> That's the method that's not returning what I want...
mockra has joined #ruby
<theRoUS> cucumber question: Is there any way a step definition can either say 'not me, keep looking' or else invoke the step-finder with a new string?
<billy_ran_away> Boohbah: If you clone my project make sure to cd to test/dummy/ and do a rake db:create and rake db:migrate
<billy_ran_away> then you can do cd - and do a rake test
wallerdev has joined #ruby
<billy_ran_away> Boohbah: This will run just the failing test: ruby -Itest test/maskable_attribute_test.rb -n test_should_be_able_to_get_attribute_masked_\(by_default\)
jimeh has joined #ruby
<billy_ran_away> And show the debugging output a little more cleanly...
Ethan has quit [Ping timeout: 272 seconds]
jchauncey has joined #ruby
<matled> Mon_Ouie: "If, when attempting to write a file, the destination directory is non-existant an attempt should be made to create it with permission 0700"
<matled> Mon_Ouie: and i think the history should go to XDG_CACHE_HOME
wardrop has quit [Ping timeout: 276 seconds]
<billy_ran_away> jlogsdon Boohbah: I really appreciate you guys taking a look
<fowl> fileutils.mkdir_p
davidw has joined #ruby
davidw is now known as Guest24250
banseljaj is now known as imami|afk
qwerxy has joined #ruby
<matled> Mon_Ouie: do you have an example of a config file? I can't get it to work (tried http://ix.io/2AK/)
<delinquentme> http://travis-ci.org/#!/bioruby/bioruby << travisci
<delinquentme> can anyone make a bit of sense of this?
<delinquentme> I think its telling me that 5.4 - 5.7 are failing?
wardrop has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby
<billy_ran_away> Boohbah: You run the test?
dennda has left #ruby ["Linkinus - http://linkinus.com"]
<Boohbah> billy_ran_away: i couldn't get my environment setup correctly :(
Niamkik has quit [Remote host closed the connection]
<billy_ran_away> Boohbah: Damn… any idea why it wouldn't be a string though?
Husel has joined #ruby
<billy_ran_away> jlogsdon: You run the test by any chance?
dekroning has quit [Read error: Operation timed out]
andrewhl has quit [Remote host closed the connection]
<billy_ran_away> Oh I get it
wardrop has quit [Ping timeout: 245 seconds]
d3c has quit [Quit: Quit]
jamesaxl has quit [Read error: Connection reset by peer]
SeanLazer has joined #ruby
jamesaxl has joined #ruby
<billy_ran_away> jlogsdon Boohbah: You see this line? https://github.com/billy-ran-away/maskable_attribute/blob/rails2/lib/maskable_attribute/acts_as_maskable_attribute.rb#L26 I define a method in the instance of that ActiveRecord named after the attribute where it fetches the MaskableAttribute object.
<jlogsdon> delinquentme: yes, 5.4 to 5.7 are failing.
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
<billy_ran_away> I need it to somehow how be a string unless it needs to not be...
eurbach has joined #ruby
eurbach has quit [Max SendQ exceeded]
<jlogsdon> what do you mean "unless it needs to not be"?
workmad3 has joined #ruby
<billy_ran_away> jlogsdon: Unless a subsequent method is being run on it…
<delinquentme> jlogsdon, thanks
<jlogsdon> true that
<jlogsdon> a good way of doing it is alias_method_chain
<billy_ran_away> jlogsdon: Awesome!
<jlogsdon> so you'd define attribute_with_mask, attribute_without_mask would be the original method
benjammin891 has quit [Ping timeout: 272 seconds]
<jlogsdon> its also smart enough to notice =, ? and ! at the end of the method and move it as needed
<jlogsdon> so use it for the setter, too
wardrop has joined #ruby
timonv has quit [Remote host closed the connection]
zeromodulus has quit [Remote host closed the connection]
tdubz has quit [Quit: leaving]
<billy_ran_away> jlogsdon: Okay cool, so would I put that in acts_as_maskable_attribute.rb right?
<jlogsdon> yeah
<billy_ran_away> jlogsdon: Okay thanks
etehtsea has quit []
wallerdev has quit [Quit: wallerdev]
RORgasm has quit [Remote host closed the connection]
wardrop has quit [Ping timeout: 245 seconds]
SeanLazer_ has joined #ruby
RORgasm has joined #ruby
digitalcakestudi has quit [Read error: Connection reset by peer]
cjs226 has quit []
hynkle has quit [Quit: hynkle]
Araxia_ has quit [Ping timeout: 272 seconds]
SeanLazer has quit [Ping timeout: 245 seconds]
SeanLazer_ is now known as SeanLazer
theRoUS has quit [Ping timeout: 272 seconds]
Enekoos has joined #ruby
digitalcakestudi has joined #ruby
rowanu has quit [Remote host closed the connection]
RORgasm_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
Juul has joined #ruby
Habib has quit []
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
nanderoo has quit [Quit: Leaving.]
timepilot has quit [Quit: timepilot]
<delinquentme> http://pastie.org/4128547 anyone have suggestions for this?
<delinquentme> the gem is listed as being installed and correctly sources with "which rake" however when running via bundle
<delinquentme> its unable to find rake
berkes has quit [Quit: Ex-Chat]
manizzle_ has joined #ruby
geekbri has quit [Remote host closed the connection]
atmosx has quit [Remote host closed the connection]
ben_m has joined #ruby
rippa has quit [Ping timeout: 244 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
swistak35 has quit [Ping timeout: 246 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
fbernier has quit [Ping timeout: 246 seconds]
hemanth has quit [Read error: Connection reset by peer]
RORgasm_ has quit [Remote host closed the connection]
hemanth has joined #ruby
jimeh has quit [Ping timeout: 272 seconds]
cuppsy has quit [Quit: leaving]
<shevy> man this is so sad... python3 does not work with youtube-dl
<shevy> so I have to use python 2... and now I wonder two things. (1) why do I ahve to use python 2 at all, I have ruby... and (2) this python transition is just a mess...
Morkel has joined #ruby
cuppsy has joined #ruby
<ben_m> Write youtube-dl for Ruby!
<shevy> going to try and port youtube-dl to ruby, that's more fun than having to use python2
<ben_m> Make it a nice gem, too :D
atmosx has joined #ruby
danishman has joined #ruby
<shevy> yeah
<Tasser> shevy, clive? ^^
<ben_m> If you document it nicely, you'll get a lot of people checking out your github :D
<ben_m> Because there's a lot of people asking how youtube-dl works.
stephenjudkins has joined #ruby
<shevy> Tasser what is clive?
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<shevy> :\
suborbital has joined #ruby
<shevy> :/
<shevy> :\
<shevy> :/
<shevy> man...
Doc_X1 has joined #ruby
<shevy> a gem wrapper OVER A .py file...
<mjb2k> a ruby wrapper for a python lib ???
<shevy> yes
Guest24250 has quit [Ping timeout: 276 seconds]
<Tasser> LOL
<Tasser> shevy, packer clive
<mjb2k> I've been wanting to actually do a ruby script to do this as well, but I can't get over how easy it is to do by hand, so I havn't bothered to try
trend has joined #ruby
Doc_X has quit [Read error: Operation timed out]
RORgasm has joined #ruby
<mjb2k> could this work for you? http://rubygems.org/gems/curltube
xnm has joined #ruby
lxsameer has joined #ruby
<ben_m> I tried helping someone figure out how to do it by hand
lxsameer has quit [Max SendQ exceeded]
<ben_m> once I figured out it's less trivial than I thought, I lost interest
<ben_m> mjb2k, please enlighten me :D
<mjb2k> all I ever do is grab the video file out of the cache and then transcode it to whatever I want
zeromodulus has joined #ruby
danishman has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<mjb2k> on linux open ~/.cache/chromium/Default/Cache load video in Chromium and find the right file based on creation time and size
flype has joined #ruby
Husel has left #ruby [#ruby]
Morkel has quit [Quit: Morkel]
<mjb2k> VLC will be able to open and play it, it can even transcode it if you want to use that, or there are many other options for transcoding as well
kylemcgill has joined #ruby
demian`_ has quit [Quit: demian`_]
andrewhl has joined #ruby
<shevy> mjb2k I think we need only one thing - find out the URL
avandenhoven has quit [Quit: avandenhoven]
<shevy> then it can be downloaded via open uri I guess
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
SirRamonGabriel has quit [Remote host closed the connection]
billy_ran_away has quit []
<mjb2k> now, of course, I only do this with videos of which I have permission to do so by the content creator ...
exchgr has quit [Quit: exchgr]
<mjb2k> shevy: yes, that's the part they try to hide
tommyvyo has joined #ruby
<mjb2k> I can find it with Chromium's dev tools, but I don't know how to find it programmatically
Nisstyre has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
andrewhl has quit [Remote host closed the connection]
whitenoise has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
wmoxam has quit [Quit: leaving]
tommyvyo has quit [Client Quit]
cyborgv7 has joined #ruby
_JamieD_ has joined #ruby
nilg has quit [Remote host closed the connection]
<cyborgv7> is it possible to encode ruby like zend and ion do for php?
whitenoise has joined #ruby
brasten has quit [Quit: brasten]
zomgbie has joined #ruby
<cyborgv7> hello?
<mjb2k> hi, how does zend encode php?
<denysonique> cyborgv7: you want to encrypt Ruby's code?
<denysonique> is anyone working on something like CoffeeScript but you write Ruby which compiles to JS
<denysonique> ?
jackiechan0 has quit [Ping timeout: 245 seconds]
<denysonique> 'puts' becomes 'console.log' etc
gyre007 has joined #ruby
<mjb2k> I've never heard of such a project, but I am curious, why would you want to compile ruby to javascript ?
<denysonique> mjb2k: I would like to write JavaScript using Ruby's syntax
<cyborgv7> yeh so ppl can use it but not rip the code off
ggreer has joined #ruby
<denysonique> cyborgv7: rubyencoder
<denysonique> cyborgv7: its non free
brasten has joined #ruby
Karmaon has quit [Ping timeout: 246 seconds]
Karmaon has joined #ruby
kaneda has joined #ruby
_JamieD_ has quit [Quit: _JamieD_]
kaneda is now known as Guest43828
ryan0x2_ has quit [Remote host closed the connection]
ringotwo has quit [Remote host closed the connection]
amh345 has quit [Quit: amh345]
qwerxy has quit [Quit: offski]
graspee has quit [Quit: leaving]
minijupe has quit [Quit: minijupe]
beilabs has quit [Ping timeout: 252 seconds]
zomgbie has quit [Read error: Connection reset by peer]
jlogsdon has quit [Remote host closed the connection]
daniel_hinojosa has quit [Quit: Leaving.]
asobrasil has left #ruby [#ruby]
daniel_hinojosa has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
sailias has quit [Quit: Leaving.]
<cyborgv7> fowl can i encode my stuff n put it on github so they can pull the git use it but not edit it?
whitenoise has quit [Changing host]
whitenoise has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
* offby1 stares blankly
wvms has joined #ruby
<randomautomator> hey guys is this a workable statement or if it's now how should i change it?
<randomautomator> %w{ sly zend }.each do |thirdparty|
<randomautomator> # Create Third Party Trunk Area
<randomautomator> currentversion = "#{node[:#{thirdparty}][:version]}"
Paramedic has joined #ruby
Oko has joined #ruby
sarro has joined #ruby
Tuuba has joined #ruby
<cyborgv7> please use gist or pastebin dont spam chat
tzvi has quit [Read error: Connection reset by peer]
<randomautomator> sorry
Oko has quit [K-Lined]
sarro has quit [K-Lined]
Tuuba has quit [K-Lined]
Paramedic has quit [K-Lined]
<randomautomator> is this legal or can someone give me an example of how to call it properly?
MrGando has joined #ruby
dnyy has quit [Remote host closed the connection]
faitswulff has joined #ruby
<oooPaul> You'd want "#{thirdparty.to_sym}" not ":#{thirdparty}"
davidcelis has quit [Remote host closed the connection]
jchauncey has quit [Quit: jchauncey]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
chson has quit [Remote host closed the connection]
<faitswulff> Anyone here from Toronto? I'm going to be in town in the 2nd week of July and I was wondering if there were any meetups I should know about.
<randomautomator> thanks Paul
<fowl> oooPaul, what about :"#{thirdparty}"
Bosma has quit [Quit: leaving]
<Mon_Ouie> "#{thirdparty.to_sym}" is thirdparty
<oooPaul> thirdparty is a variable, containing the string "zend" or "sly".
beilabs has joined #ruby
<oooPaul> #{thirdparty.to_sym} would then be either :zend or :sly
<Mon_Ouie> No, it would be "zend" or "sly"
<Mon_Ouie> That's thirparty.to_sym
<oooPaul> Oh, you're right, the #{} is inside another #{} already..
<oooPaul> Just thirdparty.to_sym.
<Mon_Ouie> And it would be simpler just to use symbols in the first place, really
<fowl> intern > to_sym
Xai has joined #ruby
<oooPaul> Yeah, definitely.
balki has joined #ruby
alanp has joined #ruby
<fowl> so we're all agreed on :"#{thirdparty}", good
<randomautomator> how i would i rewrite that if thirdparty started as a symbol then?
cbuxton has joined #ruby
alanp has joined #ruby
ccovey has quit [Read error: Connection reset by peer]
dv310p3r has quit [Ping timeout: 246 seconds]
ccovey has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
<fowl> randomautomator, "#{node[thirdparty][:version]}"
alanp_ has quit [Read error: Operation timed out]
balki_ has quit [Read error: Operation timed out]
Bosma has joined #ruby
<Mon_Ouie> And I'd just use to_s directly over string interpolation — assuming it's needed at all
moshee has quit [Ping timeout: 246 seconds]
<delinquentme> autoload :KEGGDB, 'bio/db'
<delinquentme> would this require everything thats in a directory?
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<delinquentme> that bio/db directory?
yankhates has quit [Ping timeout: 255 seconds]
<delinquentme> I mean... after looking at autoload it seems that it loads the library when its requires
<delinquentme> required*
<delinquentme> which makes sense for a single file being "autoloaded"
<delinquentme> however when you're autoloading an entire directory
<delinquentme> does that mean ruby builds up a index of what classes are instantiated within that directory
<delinquentme> and fires the load when one of those are required?
wardrop has joined #ruby
<delinquentme> ... bc thats not working :D
wardrop has quit [Read error: Connection reset by peer]
ces has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
<cbuxton> Are there known shortcomings for Ruby's XML Canonicalization implementation?
internet_user has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 248 seconds]
mengu has joined #ruby
carlyle has quit [Remote host closed the connection]
qwerxy has joined #ruby
fayimora has quit [Quit: Busy…..zzzzz]
maletor has quit [Ping timeout: 240 seconds]
yannis has joined #ruby
maletor has joined #ruby
DrShoggoth has quit [Quit: Leaving]
virunga has quit [Quit: Sto andando via]
faitswulff has quit [Quit: Leaving.]
MrGando has quit [Quit: Bye]
niklasb has joined #ruby
Ramone has joined #ruby
<Mon_Ouie> delinquentme: No, it just means ruby will require 'bio/db' when you access KEGGDB
<Mon_Ouie> But you can require every file in the db directory from bio/db.rb
<Ramone> hey all... does anyone have a suggestion for proxying outgoing http requests from ruby so I can intercept/see what's going out?
wangr_ has joined #ruby
<bricker88> Is there a built-in way to compact hashes, removing keys with nil values?
wangr has quit [Ping timeout: 265 seconds]
<Mon_Ouie> No, but there's Hash#reject!
<bricker88> Mon_Ouie: thanks. just wanted to check
brianpWins has quit [Quit: brianpWins]
monvillalon has quit [Quit: monvillalon]
fayimora has joined #ruby
mengu has quit [Read error: Connection reset by peer]
gyre007 has quit [Quit: Ex-Chat]
samuel02 has quit [Remote host closed the connection]
JeffreyBaird has quit [Quit: JeffreyBaird]
bosphorus has quit [Remote host closed the connection]
chomp has quit [Quit: Leaving]
mjb2k has quit [Quit: Leaving]
Ramone has quit [Quit: Page closed]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
poindont` has quit [Ping timeout: 240 seconds]
dkissell has joined #ruby
jgarvey has quit [Quit: Leaving]
qwerxy has quit [Quit: offski]
<shevy> hmmmm
poindont` has joined #ruby
ZachBeta has joined #ruby
<barefoot> bricker88: I found "hash.delete_if { |k,v| v.empty? }" to work okay
<delinquentme> whats the var which houses the current dir in ruby?
RainbowDashh has joined #ruby
<werdnativ> delinquentme: dir = File.dirname(__FILE__) # unfortunately
rbanffy has quit [Quit: Ex-Chat]
<delinquentme> kk tanks!
<eam> werdnativ: er no
<delinquentme> wait
<delinquentme> thats reative
<delinquentme> what about universal
<eam> that's not the cwd at all
brianpWins has joined #ruby
dnyy has joined #ruby
<eam> that's the directory the currently executing script is in (and may not exist at all)
<werdnativ> File.expand_path("..", __FILE__)
<eam> __FILE__ won't help you get there at all
<werdnativ> depends if you mean the pwd or the current file directory...
PaciFisT has quit [Quit: Leaving.]
Yarou has quit [Quit: Leaving]
saschagehlich has quit [Quit: saschagehlich]
<eam> "current" means pwd
<werdnativ> yes
<eam> delinquentme: you want Dir.pwd
Gavilan has left #ruby [#ruby]
Yarou has joined #ruby
Yarou has quit [Changing host]
Yarou has joined #ruby
Corey_ has joined #ruby
<delinquentme> pwd stands for? eam ?
<werdnativ> present working directory
<delinquentme> <3
<delinquentme> god you guys are good
<eam> print working directory but yeah
<eam> it's the name of a unix command
ciopte7 has quit [Read error: Connection reset by peer]
<delinquentme> if i want to require a file that is in the current pwd
<werdnativ> yeah, something like that. :)
<delinquentme> require './filename'
<werdnativ> require File.expand_path("filename", Dir.pwd)
ciopte7 has joined #ruby
<Boohbah> require_relative
<werdnativ> or that, yes if you're ruby 1.9
<eam> delinquentme: "." should already be in $:
RainbowDashh has quit [Quit: SLEEP MODE. <@suborbital> no i filtered out RainbowDashh join quit msgs - appearantly it filtered out everything]
<werdnativ> which hopefully you are 1.9, but good to be compatible in libraries.
josefig has quit [Read error: No route to host]
rgrinberg has quit [Ping timeout: 244 seconds]
luckyruby has quit [Remote host closed the connection]
flype has quit [Quit: Computer has gone to sleep.]
Corey has quit [Ping timeout: 600 seconds]
Nate_ has joined #ruby
lemonade` has joined #ruby
awarner has quit [Remote host closed the connection]
mnaser has quit [Ping timeout: 246 seconds]
ilyam_ has joined #ruby
mikepack has quit [Remote host closed the connection]
Monofu has quit [Quit: quit]
Corey_ is now known as Corey
<delinquentme> so whats up with requires
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
<delinquentme> when 1 file you're loading is requiring another file
<delinquentme> as far as the reference to the dir is concerned
<Tasser> what to use as templating if I want to be able to pass a hash - aka named parameters?
<delinquentme> because im looking at this and for some reason when f1 calls f2
ilyam has quit [Ping timeout: 246 seconds]
ilyam_ is now known as ilyam
<delinquentme> and f2 has a reference relative to itself it breaks when f1 calls
<delinquentme> it
<Hanmac> delinquentme ... whats your ruby version?
zinjacoder has joined #ruby
<delinquentme> damnit thats right
<delinquentme> this is jruby im troubleshooting
carloslopes has quit [Quit: Leaving.]
RainbowDashh has joined #ruby
<shevy> hehe
TheFuzzball has quit [Quit: Leaving...]
<shevy> double the problems!
<delinquentme> has anyone in here used jruby
<delinquentme> i find it kind of interesting that anyone whos in CRuby
<delinquentme> they view it as different
<delinquentme> however Jrubyists are like
<xclite> I have, but didn't have any issues requiring files
<delinquentme> " If its in Ruby ... DUH its in Jruby"
<xclite> or at least I don't recall any
<delinquentme> and like I dont want a 20 minute explanation .. but how can you be so adamant that if A then B
<shevy> my gripe with jruby is that it requires java
A124 has joined #ruby
balki has quit [Read error: Operation timed out]
<shevy> and I dont really use java
poindont` has quit [Ping timeout: 245 seconds]
<shevy> Tasser what I usually do is I just pass the hash in directory
<shevy> def initialize(hash = {})
<shevy> and then pass this hash to a method in initialize that handles the "making sense of what that hash contains"
peregrine81 has joined #ruby
rgrinberg has joined #ruby
<delinquentme> what is the ruby "up a level" command
alanp has quit [Read error: Operation timed out]
<shevy> what does that mean hehe
<shevy> ::Foo ?
<delinquentme> would it be require '../file'
<shevy> ah
<shevy> you can use require_relative
<shevy> in 1.9.3
<shevy> or, ... let me find what I do...
<delinquentme> I mean like if i wanted to go up to a parent and then
xnm has quit [Read error: Connection reset by peer]
zeromodulus has quit [Remote host closed the connection]
schovi has quit [Remote host closed the connection]
<Tasser> shevy, for templating that is
<shevy> _ = Pathname(__FILE__).dirname.realpath.to_s+'/coloured_tags.rb'
<shevy> require _ if File.exist? _ # Load it only if it exists.
<delinquentme> THIS LOOKS GOOD!!!!!!!!1
TheFuzzball has joined #ruby
<Tasser> delinquentme, yep, I like jruby, when the task is bigger than a few minutes
<shevy> I think via Pathname, it works on 1.8.x too. if you only write 1.9.x code then you can use require_relative
<delinquentme> fix one error...
<delinquentme> 4 more pop up
<Tasser> delinquentme, someone should merge peach and threach though
<delinquentme> 3585 tests, 20793 assertions, 4 failures, 18 errors
<eam> Why wouldn't you just push the new include directory onto $: ?
<delinquentme> Tasser, *nods totally knowing whats going on*
<delinquentme> :P
<eam> this seems like a terrible hack
<shevy> eam would not work for yaml files
<Tasser> delinquentme, take a look at each gem
<eam> shevy: yaml files?
<shevy> yeah
<shevy> how do you get the dir where they are kept?
<eam> what do yaml files have to do with requiring ruby modules?
<shevy> like your project is called "foobar" and has the typical lib/foobar/ and lib/foobar.rb structure
<shevy> and then somewhere else a yaml/ dir
<eam> once your module is required, __FILE__ tells you where you are, right?
<delinquentme> Tasser are these requires for jruby?
<eam> though I don't see why one would locate data near their code
<eam> that sounds broken
<delinquentme> im in the process of jruby includes for bioruby
fayimora_ has joined #ruby
<delinquentme> #nicheProblems
AlbireoX`Laptop has quit [Remote host closed the connection]
<Tasser> delinquentme, nah, just a way to make real use of jruby
macer1 has joined #ruby
<macer1> .
<macer1> hey
zinjacoder has quit [Read error: Connection reset by peer]
joshman_ has quit [Ping timeout: 244 seconds]
macer1 has quit [Remote host closed the connection]
<delinquentme> Tasser, So I've used it only really on 1 project ... to integrate a 3rd party lib called OSCAR for NLP chemical parsing
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
digitalcakestudi has quit [Read error: Operation timed out]
wangr has joined #ruby
stephenjudkins has joined #ruby
macer1 has joined #ruby
<macer1> I have a problem
<delinquentme> I mean could I get the TLDR breakdown on percing peach with treach?
xnm has joined #ruby
<macer1> I have two arrays like
<delinquentme> macer1, ambiguity
<macer1> what?
<delinquentme> </troll>
<delinquentme> go on hahah
sailias has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
chson has joined #ruby
Ontolog has joined #ruby
<Tasser> delinquentme, never heard of... used our own product here for that :-)
<macer1> ["A","B","C] and [1,2,3] and I need to get ["A1","A2","A3","B1","B2" etc.]
<delinquentme> Tasser, you're working in computational chemistry?
<delinquentme> @_@
<Tasser> delinquentme, depends, did a small work there
Bosma has quit [Quit: leaving]
<Tasser> programming project, that is
<delinquentme> Tasser, lol umm tell moar
<delinquentme> I'm kind of nerding out in the bio sphere
Bosma has joined #ruby
<delinquentme> being a total masshole and telling scientists I know better than they do what they should be working on
<delinquentme> it doesnt come across well ... however I've got a propensity for argument
theRoUS has joined #ruby
<macer1> any ideas :D?
<macer1> like a.each_with b
<shevy> macer1, array = []; array2.each_with_index {|x,index| array << array1[index] + x.to_s}
<Tasser> delinquentme, I don't really have a clue, just attached a bit of lucene :-)
<macer1> @_@
<shevy> but I am sure there are better ways
wangr_ has quit [Ping timeout: 265 seconds]
<delinquentme> macer1, sounds like a .map
<xnm> macer1: array1.zip(array2).map(&:join)
<shevy> :)
<shevy> there the better way is!
<delinquentme> ^
<macer1> what the heck
<macer1> @_@
<delinquentme> ruby black magic
<delinquentme> >_<;;;;;;;;;;;;;;;;;
<delinquentme> I mean they're both from the land of ninjitsu
froy has quit [Quit: kablam!]
<shevy> damn it
<shevy> I even have it in my collection
<shevy> a = [1,2,3]
<xnm> macer1: ["A","B","C"].zip([1,2,3]) returns [["A",1], ["B", 2], ["C", 3]]
<shevy> b = ['a','b','c']
<shevy> a.zip(b) # => [[1, "a"], [2, "b"], [3, "c"]]
<shevy> even though it is not exactly the same
<macer1> i tried zip but it worked somehow wrong
<shevy> oh
<xnm> shevy: just flip a and b
<shevy> ["A","B","C] and [1,2,3] and I need to get ["A1","A2","A3","B1","B2" etc.]
<shevy> I actually misread that
<shevy> you need to do a permutation?
<Tasser> shevy, use product then
dv310p3r has joined #ruby
<shevy> product?
<Tasser> Array#product
<shevy> hah
<shevy> first time I heard that :)
<xnm> ["A","B","C"].zip([1,2,3]).map(&:join)
youdonotexist has quit [Quit: youdonotexist]
<xnm> shevy: oh... i see
<Tasser> [1] pry(main)> %w(a b c).product([*1..3]).map(&:join)
<Tasser> => ["a1", "a2", "a3", "b1", "b2", "b3", "c1", "c2", "c3"]
<xnm> yeah, you want to use product
<shevy> cool, never saw #product before
<macer1> oooh
<macer1> this is awesome
<xnm> I thought you just wanted ["A1", "A2", "A3"]
<macer1> :D
<xnm> err.. ["A1", "B2", "C3"]
<Tasser> [4] pry(main)> [*'a'..'c'].product([*1..3]).map(&:join)
<shevy> this product is mysterious to me
<xnm> ["A","B","C"].product([1,2,3]).map(&:join)
<shevy> "Returns an array of all combinations of elements from all arrays."
<Tasser> xnm, get yer speed up a bit
<shevy> "The length of the returned array is the product of the length of self and the argument arrays."
<shevy> "If given a block, product will yield all combinations and return self instead."
<xnm> Tasser: yeah, i know, right?
froy has joined #ruby
<shevy> Tasser is on fire today
<Tasser> shevy, oh, they coerced you into a bot?
<Tasser> shevy, nah, just tired
<macer1> ^^
<macer1> epic win :D
RORgasm has quit [Remote host closed the connection]
<shevy> Tasser, I am trying to slowly understand what that means :D
<shevy> my brain will going to save it as "some kind of permutation thingy"
<shevy> *be going
<shevy> and in 3 days I'll have forgotten it entirely :(
<Tasser> shevy, you can also use #permutation
<Tasser> shevy, it's basically cross product
whitenoise has quit [Quit: Leaving]
peterhil has quit [Ping timeout: 252 seconds]
brasten has quit [Quit: brasten]
the_jeebster has quit [Quit: Leaving.]
oooPaul has quit [Quit: Ciao for now!]
nari has joined #ruby
<macer1> https://gist.github.com/305bae499a2074660d0b <= this may be useful
Bosma has quit [Remote host closed the connection]
<Tasser> macer1, I'd give you a frown for that code if you were my coworker
Jake232 has quit [Quit: Computer has gone to sleep.]
<macer1> why :D?
sailias has quit [Ping timeout: 260 seconds]
ankakusu has quit [Ping timeout: 245 seconds]
ephemerian has quit [Quit: Leaving.]
<macer1> what's wrong with that
<Hanmac> macer1 your code is possible without eval
hemanth has quit [Read error: Connection reset by peer]
kevinbond has joined #ruby
<Tasser> because it's importing a concept from outside which has a very small useage if you use symbols properly
hemanth has joined #ruby
beilabs_ has joined #ruby
<macer1> I know I know
sailias has joined #ruby
sailias has quit [Client Quit]
<macer1> Too much java programming -.-
<Tasser> macer1, don't worry, use jruby :-)
w3stack has joined #ruby
<macer1> :P
fayimora has quit [Ping timeout: 240 seconds]
<macer1> hmm
<w3stack> hey where we download ruby modules from
<w3stack> is there some good tutorial for ruby . any recommendations
<macer1> I am actually trying to port some java code now, so enum's because of that :P
<macer1> but I think I can do it with symbols...
blacktulip has quit [Remote host closed the connection]
<macer1> Can I made module SomeEnum :a,:b end and then SomeEnum::a?
xaq has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
vladiim has joined #ruby
uris has quit [Quit: leaving]
<macer1> oooh maybe like that!! http://www.lesismore.co.za/rubyenums.html
apeiros_ has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
hunglin has quit [Ping timeout: 244 seconds]
fayimora has joined #ruby
ghanima has quit [Quit: Leaving.]
w3stack is now known as jgrep
Criztian has joined #ruby
Ontolog_ has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
Nate_ has left #ruby [#ruby]
sailias has joined #ruby
Ontolog has joined #ruby
Ontolog_ has quit [Read error: Connection reset by peer]
<macer1> how is ruby performance compared to openjdk7?
<shevy> macer1, with constants you can
jgrep has left #ruby [#ruby]
<macer1> shevy I will be using thing from link
<shevy> hehe
<macer1> it look ok
<macer1> looks
atmosx has quit [Ping timeout: 276 seconds]
<Hanmac> shevy in oneof my C++ binding i do an nice fix that automatic convert enums into symbols ... and backwards
Chryson has joined #ruby
Criztian has quit [Ping timeout: 276 seconds]
dnyy has quit [Remote host closed the connection]
delinquentme has quit [Quit: Leaving]
atmosx has joined #ruby
<shevy> hmmm
<shevy> very peculiar
<macer1> enum %w{U R F D L B}.product([*1..9]).map(&:join).map(&:to_sym)
<macer1> ugly but works
<shevy> hehe
jgrep has joined #ruby
<shevy> I am fighting with ld from binutils right now
poindont` has joined #ruby
<shevy> I'd wish all this C would be ruby code instead
<shevy> :(
<Hanmac> ld? ... why you so deep into the abyss?
<macer1> I was fighting with enums like a hour and there are a lot of other stuff to convert to ruby…x_x
`brendan has joined #ruby
kevinbond has quit [Quit: kevinbond]
<shevy> Hanmac I could not compile openssl with that ld
<Hanmac> macer1 for what do you need it? maybe for some kind of binding?
<shevy> it gave me "recompile with -fPIC"
<shevy> now I recompiled binutils
kirun has quit [Quit: Client exiting]
<shevy> I also had to use --with-sysroot
<shevy> now I removed my old binutils, used the new binutils, and openssl compiled
<macer1> Hanmac: hmm, not binding, it is algorithm in java to solve the rubiks cube :)
<Hanmac> shevy ... you need a shared flag
Xai has quit [Quit: Konversation terminated!]
<werdnativ> I'm defining some rspec matchers that share a lot of commonality… is there a way to reuse helper methods and match, failure_message, etc. blocks inside the matcher definition? https://www.relishapp.com/rspec/rspec-expectations/v/2-10/docs/custom-matchers/define-matcher#6
seanstickle has joined #ruby
MrGando has joined #ruby
<macer1> what is best way in gem to include other file? require './file.rb'?
mikepack has joined #ruby
<werdnativ> macer1: where is the other file?
Xai has joined #ruby
<macer1> it is a component like Gem::ClassOne, Gem::ClassTwo
<macer1> include classone from two
<werdnativ> if it's in lib/yourgem/file.rb then just require 'file'
williamcotton has quit [Quit: williamcotton]
RORgasm has joined #ruby
<Hanmac> in 1.9 my rule is: require for stdlib and other external, require_relative for internal files
<shevy> macer1 should work require 'file/name_here.rb'
chienpo has quit [Quit: Leaving.]
benjammin891 has joined #ruby
<Hanmac> like <> and "" includes in C
<macer1> ok, thanks :)
<werdnativ> macer1: require 'yourgem/file', the load paths will include yourgem/lib/yourgem
<macer1> in mygem.rb, require 'myclass1', require 'myclass2' to load them?
<werdnativ> require 'mygem/myclass1'
<macer1> like net/http
<macer1> but http needs to load it internal files
kevinbond has joined #ruby
<Hanmac> werdnativ if both files (the mygem.rb and the myclass1) are in the same gem-dir i think require_relative is better
Markvilla has quit [Quit: Markvilla]
<werdnativ> wouldn't it be better to avoid require_relative in a gem, for 1.8 compatibility?
<macer1> who cares about 1.8 compatiblity x_x?
* Hanmac does not care
<werdnativ> depends who the library is for.
<fowl> if Hanmac doesnt care then neither do i
<werdnativ> if it's new then I guess not… :)
dnyy has joined #ruby
<Hanmac> the oldest version my c++ gems will MAYBE support is 1.8.7 ... and only with fixes (1.8 is to dumb to use the currect compiler)
yoklov has quit [Quit: bye!]
jrist is now known as jrist-afk
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
<shevy> hmmm
<shevy> can't they include require_relative in 1.8.x too?
cyborgv7 has quit [Quit: JediRC Beta v3.3 By: CastorTroy]
<Hanmac> hm ... its MAYBE possible
<shevy> what would be needed?
<shevy> I guess it is too late now...
poindont` has quit [Ping timeout: 245 seconds]
Xai has quit [Quit: Konversation terminated!]
<macer1> is ruby faster than java and why it's not?
<Hanmac> shevy ... hm i saw an ruby variant of require_relative ... but http://www.ruby-doc.org/core-1.9.3/Kernel.html#method-i-require_relative shows a C variant
ciopte7 has quit [Quit: ciopte7]
<shevy> macer1 it is interpreted so it is not faster
<Hanmac> macer1 ruby1.8 is much slower ... ruby1.9 is fater but not as fast as java ... but C is the fastest ...
<shevy> Hanmac, I'll suggest the require_relative in 1.8.x but I think matz and yugui won't like to make any changes anymore. this month is the last chance for any new code anyway, 1.8 is dead soon
ackz has quit [Quit: Leaving...]
<Hanmac> but i saw an Document about that ruby should get some kind of boost to make it nearly as fast as C
wilmoore has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
<macer1> Hanmac: and I was thinking that Java was slow...x_x