apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
vlad_sta_ has joined #ruby-lang
charlies_ is now known as charliesome
toretore has quit [Quit: Leaving]
vlad_starkov has quit [Ping timeout: 272 seconds]
Glass_saga has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
stamina has quit [Read error: Operation timed out]
<postmodern>
i know this has been answered before, but I can't find it on google
<postmodern>
how do you define generic file tasks in rake?
<postmodern>
file '*.o' => '*.c' do ... ?
yfeldblum has quit [Remote host closed the connection]
<drbrain>
postmodern: rule, I think
bastilian has quit [Quit: Leaving...]
<drbrain>
postmodern: ri Rake::DSL#rule
zz_michael_mbp is now known as michael_mbp
bf4 has joined #ruby-lang
<postmodern>
drbrain, ah yes that's it! thank you
bf4 has quit [Ping timeout: 240 seconds]
hogeo has joined #ruby-lang
yfeldblum has joined #ruby-lang
shinnya has joined #ruby-lang
tough_griff has quit []
enmand has joined #ruby-lang
slyphon has joined #ruby-lang
Iskarlar has joined #ruby-lang
Iskarlar has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
Iskarlar has quit [Remote host closed the connection]
ruurd has joined #ruby-lang
Iskarlar has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Iskarlar has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
CoreData1 has quit [Ping timeout: 252 seconds]
slyphon has quit [Quit: WeeChat 0.4.1]
mistym has quit [Quit: Leaving]
Iskarlar has joined #ruby-lang
CoreData has joined #ruby-lang
tkuchiki has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
yxhuvud has quit [Read error: Operation timed out]
slyphon has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Coincidental has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
slyphon has quit [Client Quit]
slyphon has joined #ruby-lang
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
ruurd has quit [Quit: Leaving...]
mistym has joined #ruby-lang
yxhuvud has joined #ruby-lang
julweber has quit [Remote host closed the connection]
julweber has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
cnivolle has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 252 seconds]
Coincidental has quit [Ping timeout: 260 seconds]
nathanstitt has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
JoshuaPaling has joined #ruby-lang
Coincidental has joined #ruby-lang
datanoise has joined #ruby-lang
charliesome has joined #ruby-lang
havenwood has joined #ruby-lang
thepumpkin has quit [Remote host closed the connection]
thepumpkin has joined #ruby-lang
Domon has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thepumpkin has quit [Ping timeout: 248 seconds]
VTLob has quit [Quit: VTLob]
havenwood has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
mmorga has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
Domon has joined #ruby-lang
micalexander has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mmorga has quit [Remote host closed the connection]
micalexander has quit [Ping timeout: 265 seconds]
MrPoT4tO has joined #ruby-lang
MrPoT4tO has quit [Client Quit]
MrPoT4tO has joined #ruby-lang
julweber has joined #ruby-lang
havenwood has joined #ruby-lang
eric__ has joined #ruby-lang
eric__ has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
enmand has quit [Ping timeout: 272 seconds]
ndrst has quit [Ping timeout: 252 seconds]
julweber has quit [Ping timeout: 272 seconds]
Jeticus has joined #ruby-lang
enmand has joined #ruby-lang
jmeeuwen has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has joined #ruby-lang
CaptainJet has quit [Ping timeout: 240 seconds]
bf4 has joined #ruby-lang
jmeeuwen has joined #ruby-lang
lfox has joined #ruby-lang
ndrst has joined #ruby-lang
bf4 has quit [Read error: Operation timed out]
My_Hearing has joined #ruby-lang
sevvie has joined #ruby-lang
Mon_Ouie has quit [Read error: Operation timed out]
enmand has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrst has quit [Ping timeout: 248 seconds]
datanoise has joined #ruby-lang
sevvie has quit [Ping timeout: 252 seconds]
lfox has quit [Quit: ZZZzzz…]
ndrst has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
jaimef has quit [Excess Flood]
jaimef has joined #ruby-lang
lsegal has joined #ruby-lang
datanoise has quit [Ping timeout: 240 seconds]
ledestin has quit [Ping timeout: 246 seconds]
<cschneid>
I have a friend who's interested in giving programming a shot. After tryruby, what would you recommend for tutorials?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bastilian_ has joined #ruby-lang
ebetancourt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
earthquake has quit [Quit: earthquake]
bastilian has quit [Ping timeout: 264 seconds]
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bf4 has joined #ruby-lang
rickhull has joined #ruby-lang
bf4 has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
michael_mbp is now known as zz_michael_mbp
<Senjai>
Barrin6: sup
<Senjai>
Barrin6: heh, not bad, my first commercial use was to compare two csv's and create a third containing only entries that were not in common between the two
mark06 has left #ruby-lang [#ruby-lang]
<Barrin6>
moce
<Barrin6>
tjat
<Barrin6>
nice
<Barrin6>
that's what I"m going to try next
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
jerrytgarcia has quit [Quit: WeeChat 0.4.1]
ikrima has joined #ruby-lang
dhruvasagar has joined #ruby-lang
antonversal has joined #ruby-lang
workmad3 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Mr_Wharfsnort has joined #ruby-lang
Barrin6 has quit [Read error: Connection reset by peer]
tommylommykins has quit [Remote host closed the connection]
micalexander has quit [Remote host closed the connection]
julweber has joined #ruby-lang
micalexander has joined #ruby-lang
mmorga has joined #ruby-lang
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jeer has joined #ruby-lang
amerine has joined #ruby-lang
jeer has quit [Max SendQ exceeded]
jeer has joined #ruby-lang
hotpancakes has quit [Ping timeout: 240 seconds]
soba has quit [Ping timeout: 240 seconds]
micalexander has quit [Ping timeout: 246 seconds]
mistym has joined #ruby-lang
CoreData has quit [Ping timeout: 252 seconds]
CoreData has joined #ruby-lang
cored has quit [Ping timeout: 252 seconds]
iraja has quit [Remote host closed the connection]
Coincidental has quit [Write error: Broken pipe]
iraja has joined #ruby-lang
heftig has joined #ruby-lang
Coincidental has joined #ruby-lang
shinnya has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
slyphon has joined #ruby-lang
soba has joined #ruby-lang
Coincidental has quit [Ping timeout: 265 seconds]
iraja has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
julweber has quit [Remote host closed the connection]
soba_ has joined #ruby-lang
CoreData has quit [Ping timeout: 252 seconds]
julweber has joined #ruby-lang
julweber has quit [Remote host closed the connection]
soba has quit [Ping timeout: 272 seconds]
julweber has joined #ruby-lang
antonversal has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has quit [Ping timeout: 272 seconds]
heftig has quit [Read error: Connection reset by peer]
heftig has joined #ruby-lang
amerine has quit [Read error: No route to host]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TCMSLP>
Hmm, will any p/puts/print command print control codes?
<TCMSLP>
As in, I think a variable has a control code hiding within in - but it's not printable
<TCMSLP>
so debug is 'fun'
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
<zzak>
maloik: ive been using ActiveRecord::Base.establish_connection 'sqlite3:///:memory:'
slyphon has quit [Ping timeout: 260 seconds]
<zzak>
currently trying to decide the best way to manage that connection across threads and multiple processes :(
nathanstitt has joined #ruby-lang
lfox has joined #ruby-lang
postmodern has quit [Quit: Leaving]
slyphon has joined #ruby-lang
wallerdev has joined #ruby-lang
yfeldblum has joined #ruby-lang
<cschneid>
is there a tool that wraps a ruby file/set of files into a runable executable on windows (without the recipient being required to install the runtime)
GaelanAintAround is now known as Gaelan
<bougyman>
there have been a few projects that do that.
<bougyman>
I had spotty luck with a few.
<cschneid>
any that are good? And work with ruby 1.9/2?
<bougyman>
maybe omnibus would be a solution, now.
soba_ has quit [Ping timeout: 272 seconds]
<bougyman>
that's what we use for things such as sensu, now. and chef, of course.
charliesome has joined #ruby-lang
<zzak>
cschneid: you would want to package whatever ruby with your app
<zzak>
shoes does this in previous versions
tkolstee has joined #ruby-lang
<cschneid>
zzak: yeah, trying to get a person off of perl for these little one-off scripts that get shared around between support people - trying to solve the compiled-ruby issue at the same time
<zzak>
you could also check jruby, the new version of shoes got something working with packaging it all up (they would need java i think)
<cschneid>
omnibus seems slick
tkolstee has left #ruby-lang [#ruby-lang]
tkolstee has joined #ruby-lang
micalexander has joined #ruby-lang
hotpancakes has joined #ruby-lang
havenwood has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
Gaelan is now known as GaelanAintAround
stardiviner has quit [Ping timeout: 246 seconds]
bf4 has joined #ruby-lang
hotpancakes has quit [Ping timeout: 272 seconds]
slyphon has quit [Ping timeout: 248 seconds]
tbuehlmann has joined #ruby-lang
fmccann has joined #ruby-lang
momomomomo has joined #ruby-lang
antonversal has joined #ruby-lang
bzalasky has joined #ruby-lang
MrZYX|off is now known as MrZYX
yfeldblum has joined #ruby-lang
soba has joined #ruby-lang
<tkolstee>
Good morning all. I'm trying to build ruby from a source RPM on a RHEL5/ppc64 box and the build is failing. Hoping someone here can help me.
<tkolstee>
The src RPM I'm using is in puppetlabs' yum repo and is ruby-1.8.7.374-1.el5.src.rpm. When I build on the PPC64 box, it fails when trying to compile and link the ruby binary itself. Says the lib it built is incompatible. Looks like it's building the lib as 32-bit.
<tkolstee>
After the build fails I can delete the libruby.so.1.8.7, add -m64 to the DLDFLAGS in the Makefile, and rerun "make". This builds the binary correctly but won't finish the RPM build
<tkolstee>
I've tried modifying the specfile to add -m64 after the "configure" step, but this causes the build to fail at an earlier step
<tkolstee>
I'm on IRC from personal laptop, and build is on work computer which is locked down; if someone's willing to look at cut-and-paste output I'll have to email it.
mbj has joined #ruby-lang
fmccann has quit [Remote host closed the connection]
fmccann has joined #ruby-lang
failshell has joined #ruby-lang
<tkolstee>
...or if someone knows of a 1.8.7 package binary or that builds cleanly on ppc64, that would work too
momomomomo has quit [Quit: momomomomo]
<tkolstee>
I need 1.8.7 or better to install puppet client 3.x
mbj has quit [Client Quit]
datanoise has quit [Ping timeout: 260 seconds]
mbj has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<whitequark>
tkolstee: try using alien to convert 1.8.7 ppc64 debs to rpm.
soba has quit [Ping timeout: 272 seconds]
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
momomomomo has joined #ruby-lang
<tkolstee>
whitequark: Thanks, I'll give that a try....
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
bzalasky has quit [Read error: Connection reset by peer]
bzalasky has joined #ruby-lang
momomomomo has joined #ruby-lang
sepp2k has quit [Quit: Konversation terminated!]
ecnalyr has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
jiuweigui has quit [Quit: iQuit!]
MaddinXx_ has joined #ruby-lang
<tkolstee>
whitequark: is it supposed to be more complicated than "alien -r packagefile.deb"?
sevvie has joined #ruby-lang
tough_griff has quit [Quit: computer went to sleep.]
tylersmith has joined #ruby-lang
soba_ has joined #ruby-lang
<whitequark>
no
MaddinXx_ has quit [Ping timeout: 268 seconds]
<tkolstee>
Alien isn't able to extract data.tar.gz from the package. I've tried downloading the same pkg from 2 different sources
hahuang65 has joined #ruby-lang
<tkolstee>
Pardon my deb ignorance, I've been working with RHEL for the last 8 years
mmorga has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
tough_griff has joined #ruby-lang
bzalasky has joined #ruby-lang
apeiros has quit [Ping timeout: 248 seconds]
soba__ has joined #ruby-lang
arBmind has joined #ruby-lang
<tkolstee>
Ah, got it... it's looking for data.tar.gz and the pkg contains data.tar.xz
x0f_ has quit [Read error: Operation timed out]
soba_ has quit [Ping timeout: 240 seconds]
bzalasky has quit [Ping timeout: 260 seconds]
soba__ has quit [Read error: Connection reset by peer]
sevvie has quit [Quit: leaving]
apeiros has joined #ruby-lang
slyphon has quit [Ping timeout: 252 seconds]
cored has quit [Ping timeout: 272 seconds]
x0f has joined #ruby-lang
pothibo has joined #ruby-lang
mmorga has joined #ruby-lang
xrq has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
<tkolstee>
Alien generated the RPM packages from the debs, but there are glibc dependencies that it doesn't like, it needs a bunch of symbolic links, and the naming conventions are different meaning I can't handle the ppc64 and x86_64 boxen in my environment the same.
<tkolstee>
It looks like a huge mess to sort out
carlosdo has joined #ruby-lang
<tkolstee>
It seems like going this route I'd have to make a whole bunch of "special case" changes to my ppc64 machines. I'd rather try getting the source RPM built on ppc64 if I can.
carlosdo has quit [Client Quit]
banisterfiend has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 245 seconds]
bastilian has joined #ruby-lang
intellitech has joined #ruby-lang
tisba has quit [Ping timeout: 260 seconds]
tough_griff has quit [Quit: computer went to sleep.]
jaimef has joined #ruby-lang
thepumpkin has joined #ruby-lang
kek has joined #ruby-lang
julweber has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
jiuweigui has joined #ruby-lang
kek has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
CaptainJet has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby-lang
huma has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby-lang
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby-lang
jeff_r has joined #ruby-lang
pglombardo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<mark06>
$stdout.isatty, $stdout.tty or STDOUT.isatty?
<apeiros>
a quick google said something about using tput, haven't read it yet
<mark06>
or ENV['TERM']?
ecnalyr has joined #ruby-lang
<eam>
TERM gives vague hints but isn't super reliable
<apeiros>
$stdout. the methods you listed are probably aliases.
<apeiros>
TERM is ugly. you can check against known color-capable ones and go color on those and require explicit flag on others. (that was my idea behind mentioning it)
<apeiros>
but: no matter what you do - make sure you make it explicitly toggleable (both, on and off)
<mark06>
also, TERM env var is not set in cdm.exe which indeed can handle some ansi escapes
<mark06>
aka basic colors
<mark06>
so TERM is not reliable
<eam>
on windows you can probably just assume ansi
<mark06>
when missing, I mean
<eam>
I don't think the concept of terminal types exist there
<eam>
terminal stuff is going to be unix specific
<mark06>
yeah but I still need to know whether stdout is a terminal or, say, a file or pipe
<eam>
does the windows platfor distinguish?
<eam>
platform
<eam>
looks like windows doesn't do ansi but has some other encoding scheme
TheMoonMaster has quit [Excess Flood]
<mark06>
apeiros: what's the difference between $stdout and STDOUT besides one being a global var and the other a constant?
fmccann has joined #ruby-lang
<apeiros>
mark06: none, unless you reassign $stdout
TheMoonMaster has joined #ruby-lang
<apeiros>
you should generally use $stdout - all Kernel methods use the globals.
<mark06>
apeiros: btw for both it's "isatty" and "tty?" (more "rubist")
breakingthings has joined #ruby-lang
<mark06>
apeiros: why should I prefer $stdout, like there are some places where STDOUT will not be defined?
<apeiros>
mark06: because it allows to reassign the global.
<havenwood>
mark06: If one is going to be pointed somewhere else, STDOUT will be left as the placeholder by convention.
<apeiros>
e.g. $stdout = SomeLoggerWithIOLikeInterface.new
<apeiros>
mark06: also it's consistent with core ruby
jeff_r has quit [Remote host closed the connection]
<havenwood>
then to go back, $stdout = STDOUT
fmccann has quit [Client Quit]
<mark06>
eam: distinguish? well, this works in cmd.exe: "\e[0;32m;green\e[0m;" but the extended colors (0;38;...) don't
<eam>
mark06: I dunno, going by what I just saw on the internet - I don't do windows
<mark06>
apeiros: but I don't want to reassign stdout
<apeiros>
mark06: you maybe not
<mark06>
apeiros: I see
<apeiros>
but say you write a library, then it's good practice you used $stdout, since maybe the user of your library wants to
<eam>
I don't like the idea of reassigning $stdout vs dup()'ing it to a new destination
<eam>
changing $stdout wouldn't actually redirect all writes to fd=2 unless ruby does dup() in some magic hook or something
<mark06>
apeiros: so I can redirect all of my script/lib output with a single command like above... with the constant, I need to search/replace all occurrences
<eam>
eg system "thing that prints to stdout"
<eam>
sorry fd=1
tkolstee has left #ruby-lang [#ruby-lang]
<mark06>
apeiros: I see you are in the another channel, it's funny these two channels, why?
<apeiros>
mark06: that's the idea, yes. if it's a library, you can't even go and replace the constants.
<apeiros>
(since you don't edit code of libraries - usually)
jeff_r has joined #ruby-lang
<mark06>
right
skade has quit [Quit: Computer has gone to sleep.]
tdm00 has quit [Quit: Make like a banana and split!]
tubbo has quit [Ping timeout: 245 seconds]
<mark06>
thanks all
GaelanAintAround is now known as Gaelan
iraja has joined #ruby-lang
jeer_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arBmind has quit [Quit: Leaving.]
lfox has quit [Quit: ZZZzzz…]
supergeek has joined #ruby-lang
supergeek has quit [Max SendQ exceeded]
michael_mbp is now known as zz_michael_mbp
<mark06>
there was a problem, isatty is returning false for MinTTY :(
vlad_starkov has joined #ruby-lang
tubbo has joined #ruby-lang
arBmind has joined #ruby-lang
<mark06>
what value of ENV['TERM'] should I look for when present?
<havenwood>
mark06: Also the other doesn't require nick registration to talk.
<mark06>
drbrain: so what doc says is a manual verification? like "hmm the user is not giving feedback, will remove this from my todo"?
<drbrain>
mark06: yes
<drbrain>
mark06: usually it takes at least a month
<mark06>
ok...
<mark06>
I wonder what other bugs are around the encoding stuff
<mark06>
ok for ruby-lang, but ruby staff could have used #ruby not #ruby-lang
mdedetrich has joined #ruby-lang
tomzx_mac has joined #ruby-lang
<mark06>
the #ruby channel is presumably by official staff, so they're doing it wrong I think
<mark06>
it should be ##ruby
jeer_ has joined #ruby-lang
<havenwood>
mark06: not uncommon to have an official that reqs nick reg and one that doesn't, anyways different cultures in different channels, TIMTOWTDI
nathanstitt has quit [Quit: I growing sleepy]
<mark06>
what any difference would justify it?
<mark06>
I would also never guess one is registration-required and the other not
<drbrain>
mark06: I need to try to merge the channels again
<drbrain>
I tried before, but bureaucracy ☹
<havenwood>
mark06: Maybe it is okay, even nice, to have one place with a better signal to noise ratio, and the other more lax and tolerant of Ruby chit-chat and newbie hand holding?
bzalasky has joined #ruby-lang
<havenwood>
mark06: People seem to figure it out pretty quick. :P Maybe some initial confusion though indeed.
<mark06>
havenwood: signal to noise ratio?
<mark06>
also which one is what
<havenwood>
mark06: here
<mark06>
here what?
<havenwood>
#ruby-lang
tbuehlmann has quit [Remote host closed the connection]
<Senjai>
I prefer this channel really :/
<mark06>
drbrain: I think if you ask in #freenode, you got the right to take ownership from them over #ruby, since you people are from actual ruby staff (I assume you are :) )
bri has quit [Ping timeout: 245 seconds]
<mark06>
havenwood: foo bar
<havenwood>
What i'd like to see is the messages on join updated, hehe. I mean what is?: http://www.modruby.net
<drbrain>
mark06: there's a special file you have to stick in a special place on ruby-lang.org
<mark06>
havenwood: which one is what, regarding your description of them
<havenwood>
Who owns this channel again? I can't recall.
<drbrain>
mark06: previously you could just ask, but I got laughed at when I said "I know matz!" and the staff member stopped responding (years and years ago)
<havenwood>
Not around anymore right?
<Senjai>
asdfjksha, I hate waiting for big merges to be pushed through :/
<havenwood>
drbrain: Haha, yikes.
bri has joined #ruby-lang
<drbrain>
havenwood: currently I'm listed as the channel owner
<mark06>
drbrain: haha...
<drbrain>
havenwood: this was before the automated process
<havenwood>
drbrain: aha, cool
<mark06>
drbrain: cool you know matz... tell him I like Evangelion :)
<drbrain>
mark06: come to RubyConf and tell him yourself‼
<mark06>
hahah my dream going to Japan....
Lorcatar has quit [Read error: Connection reset by peer]
<havenwood>
drbrain: So looking forward to Miami! Gosh i wish a company was paying for my hotel room though. :P
<mark06>
special file?
<havenwood>
mark06: That'd be RubyKaigi :)
<Senjai>
mark06: My girlfriends taking me there in feb
<Senjai>
mark06: You wouldn't happen to know where one could find all the eva episodes would ya?
<mark06>
nihongo wakarimasen :(
<mark06>
Senjai: where are you?
<Senjai>
mark06: Victoria, Canada
<Senjai>
I've been looking around
<Senjai>
Can't find a place to buy them, or download them
<mark06>
Senjai: hmm try amazon... I think both original and rebuild are there...
<Senjai>
mark06: mmk, whats the difference between the two
<Senjai>
My gf wants to watch them with me.. heh
momomomomo has joined #ruby-lang
<mark06>
Senjai: eva was originally produced ~1996... Anno is producing it again since 2009 or so... it's re-telling the story, with similarities and (big) differences
<mark06>
*he's
<mark06>
he's driving me crazy!
<Senjai>
mark06: so original is the way to go, its just confusing, apparently there are movies and stuff too..
<mark06>
well... that seems the original tv series...
brianpWins has quit [Quit: brianpWins]
<mark06>
the tv series had an unsatisfying end for many... then Anno produced a "proper" end which is the movie
<mark06>
The End of Evangelion... the other movie, Death & Rebirth... it's sort of a summary of the tv series, plus half the EoE...
Mothore has quit [Ping timeout: 265 seconds]
Mothore has joined #ruby-lang
Mothore has quit [Client Quit]
<mark06>
now Anno is working on rebuild, 4 movies, 3 were released... I heard he said the rebuild should be suitable for new spectators.. but I find them too summarizing for 26 episodes (for the parts that are kept as original)
<Senjai>
ahh.. cheers!
bzalasky has quit [Remote host closed the connection]
<mark06>
so watching the tv series + movies (I think there may be more releases with extra scenes etc) was already confusing... I'm not sure how one would receive these movies with being confused with the original work first :)
<Barrin6>
BUT 5 > sqrt (11), so 11 is prime, and you can stop!
<Barrin6>
I don't get that part
havenwood has joined #ruby-lang
<mark06>
TLDR
<apeiros>
Barrin6: the biggest prime factor in a number is <= sqrt(num)
<Barrin6>
ohh
<apeiros>
*the biggest possible
<Barrin6>
yea that makes sense
<Barrin6>
oh
<Barrin6>
okay
vbatts has quit [Ping timeout: 256 seconds]
<mark06>
just curious, why makes sense? I know why but still
<mark06>
the proof is not quite obvious
<Barrin6>
wait that doesn't work for the number 6 though
<Barrin6>
you take the sqrt of 6, which is 2.4
<Barrin6>
greatest prime is 3
saarinen has quit [Quit: saarinen]
<mark06>
right, it's not that simple
<Barrin6>
man
<Barrin6>
fhk math
jeer_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
*sob*, ceil(sqrt(num))
vbatts has joined #ruby-lang
<apeiros>
for larger number it shouldn't matter
<apeiros>
*numbers
<Barrin6>
ceil rounds up?
<Barrin6>
oh
<Barrin6>
yea
stardiviner has joined #ruby-lang
[spoiler] has quit [Ping timeout: 248 seconds]
Volsus has joined #ruby-lang
<mark06>
I think the right theorem is: if a given integer has no prime factors up to its square root, then that integer has no prime factors anymore and it's actually prime
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
bf4_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
<mark06>
y=xx, if you decrease one x, the other should increase... if x can't be decreased to an integer, then the other can't be increased at all... thus y is prime... I guess
vlad_starkov has quit [Read error: Connection reset by peer]
<mark06>
puts y == (a * b), for different values of a and b... different means increasing or decreasing.... if you only increase a and/or b, then a*b will be bigger, and it will be smaller if you decrease only one a and/or b.. thus you need to increase one while decreasing the other....
<mark06>
so you actually decrease one (they're initially equal, a==b) to next integer, up to 2... then on each step you increase the other (for the reason explained above), one by one... say
<mark06>
a=b ~ 2.4
enmand has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mark06>
so 6==2.3? yes! finished... how about 11?
<mark06>
a=b ~ 3.32
<mark06>
11==a*b
<mark06>
11==3*4? no, 11==2*5? no, the end, 11 is prime
mistym has joined #ruby-lang
<mark06>
why? if 3.32 can't be decreased to an integer (cause none of the opposite increases are equal to 11), it means it should be increased, which only inverts the same problem since a==b.
<ljarvis>
wat
<mark06>
Barrin6: still hurts? lol
<Barrin6>
you just made it hurt more
<mark06>
hahaha... sorry :)
ikrima has quit [Quit: Computer has gone to sleep.]
<apeiros>
Barrin6: so you're still more fresh on it than I :-p
Guest10650 has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 258 seconds]
Volsus has quit [Ping timeout: 246 seconds]
<Barrin6>
RAWR
* mark06
is partially cheating from some old doc
ruby-lang254 has joined #ruby-lang
<Barrin6>
last time i took math was in high school
<Barrin6>
and that was pre-calc honors I believe
sepp2k1 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
sepp2k has quit [Ping timeout: 268 seconds]
mdedetrich has joined #ruby-lang
<mark06>
it's actually w >= a... which means that there might not be any k greater than sqrt, if w isn't smaller... so if any factor is greater than sqrt, all the rest should be smaller... which means there should be one or more factors smaller than sqrt....
ikrima has quit [Quit: Computer has gone to sleep.]
<ruby-lang254>
hello
rickhull has quit [Quit: Leaving.]
<Barrin6>
yo what's up homie
<ruby-lang254>
maybe somebody can help me ), how can i get value from mongo db
ikrima has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
dave_ has left #ruby-lang [#ruby-lang]
tylersmith has quit [Remote host closed the connection]
DaveGomez has joined #ruby-lang
<DaveGomez>
Good night. I'm learning to program in ruby and I want to know something about the methods use for common mathematical operation like +, -, /, etc. When I do something like 3 + 5 am I sending 3 as an argument to 5's + method or viseversa?
<drbrain>
DaveGomez: 3.+(5)
<drbrain>
so you send 5 to 3's + method
<drbrain>
(order of operation is handled by the parser)
<DaveGomez>
ty, that what I was thing, but couldn't find it in the docs, maybe I was looking wrongly
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]