agrinb has quit [Remote host closed the connection]
mykoweb_ has quit [Read error: No route to host]
mykoweb has joined #ruby-lang
AncientAmateur has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
mykoweb has quit [Ping timeout: 240 seconds]
mykoweb has joined #ruby-lang
alexju has joined #ruby-lang
nofxx has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
dsp__ has joined #ruby-lang
havenwood has quit []
mykoweb has quit [Read error: No route to host]
mykoweb has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
retro|cz has quit [Ping timeout: 250 seconds]
io_syl has quit []
mykoweb has quit [Ping timeout: 252 seconds]
memorozovm has joined #ruby-lang
spuk has joined #ruby-lang
SteelGolem has quit [Remote host closed the connection]
SteelGolem has joined #ruby-lang
knu has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
momomomomo has quit [Quit: momomomomo]
nagato has joined #ruby-lang
Pain has quit [Ping timeout: 245 seconds]
nagato has quit [Ping timeout: 250 seconds]
knu has quit [Ping timeout: 250 seconds]
tkuchiki_ has joined #ruby-lang
mehlah has quit [Quit: Leaving...]
omosoj has quit [Ping timeout: 240 seconds]
nofxx has quit [Remote host closed the connection]
thomasxie has quit [Quit: Leaving.]
tkuchiki has quit [Ping timeout: 240 seconds]
wmoxam_ has quit [Quit: leaving]
wmoxam has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
nagato has joined #ruby-lang
nofxx has joined #ruby-lang
yatish27 has joined #ruby-lang
Burgestrand has joined #ruby-lang
ColdBlooder has joined #ruby-lang
diegoviola has quit [Ping timeout: 245 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
io_syl has joined #ruby-lang
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
diegoviola has joined #ruby-lang
torresga has quit [Quit: torresga]
whodunnit has joined #ruby-lang
allomov has joined #ruby-lang
<whodunnit>
The documentation for Time says "uses a signed 63 bit integer, Bignum or Rational. The integer is a number of nanoseconds since the Epoch"... But see now way to access this integer of nanoseconds directly. Is there a way?
diegoviola has quit [Quit: WeeChat 0.4.3]
<whodunnit>
I'm trying to do time addition/subtraction, with no loss of precision to 9 decimal places. I settled on converting seconds to nanoseconds, integer addition/subtraction, then converting back to a float.
allomov has quit [Ping timeout: 252 seconds]
<whodunnit>
I'm wondering if there is a more direct way. Floats have no precisions, and experiements with bigdecimals and rationals (Time.now.to_r) aren't much improvement
Burgestrand has quit [Quit: Burgestrand]
_ht has joined #ruby-lang
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
heftig has quit [Quit: Quitting]
whodunnit_ has joined #ruby-lang
whodunnit has quit [Ping timeout: 240 seconds]
woollyams has quit [Read error: Connection reset by peer]
nofxx has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
diegoviola has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
woollyams has joined #ruby-lang
michaeldeol has joined #ruby-lang
spuk has joined #ruby-lang
mistym has joined #ruby-lang
TvL2386 has joined #ruby-lang
DEac-_ has joined #ruby-lang
DEac- has quit [Ping timeout: 276 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
woollyams has quit [Ping timeout: 252 seconds]
ColdBlooder has quit [Remote host closed the connection]
xcesariox has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
michaeldeol has joined #ruby-lang
Olipro has joined #ruby-lang
michaeldeol has quit [Ping timeout: 258 seconds]
skade has joined #ruby-lang
SteelGolem has quit [Remote host closed the connection]
SteelGolem has joined #ruby-lang
Voker57 has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 276 seconds]
SteelGolem has quit [Remote host closed the connection]
SteelGolem has joined #ruby-lang
whodunnit_ has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby-lang
cnivolle has joined #ruby-lang
knu has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 252 seconds]
arBmind has joined #ruby-lang
arBmind1 has quit [Ping timeout: 258 seconds]
allomov has joined #ruby-lang
BucOder has joined #ruby-lang
allomov has quit [Ping timeout: 240 seconds]
araujo has quit [Quit: Leaving]
rahul_j has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
elia has joined #ruby-lang
BucOder has quit [Quit: Computer has gone to sleep.]
alexju has quit [Remote host closed the connection]
lolmaus has quit [Read error: Connection reset by peer]
nofxx has quit [Read error: Connection reset by peer]
yatish27 has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
face has quit [Read error: Connection reset by peer]
apeiros has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
knu has quit [Ping timeout: 250 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
|jemc| has quit [Ping timeout: 245 seconds]
vondruch has joined #ruby-lang
Coincidental has joined #ruby-lang
dsp__ has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
canton7 has joined #ruby-lang
<maloik>
yorickpeterse: I know about the name :-(
mistym has quit [Remote host closed the connection]
<maloik>
might suggest changing it for the next edition, get rid of the barcamp connotation while we're at it
lun_ has quit [Ping timeout: 252 seconds]
cnivolle has joined #ruby-lang
apeiros has joined #ruby-lang
retro|cz has joined #ruby-lang
woollyams has joined #ruby-lang
charliesome has joined #ruby-lang
allomov has joined #ruby-lang
64MAANWU8 has joined #ruby-lang
mbj has joined #ruby-lang
tomkadwill has joined #ruby-lang
tomkadwill has quit [Client Quit]
tomkadwill has joined #ruby-lang
qba73 has joined #ruby-lang
michd is now known as MichD
mbj has quit [Ping timeout: 264 seconds]
64MAANWU8 has quit [Ping timeout: 264 seconds]
Missphoenix has quit [Read error: Connection reset by peer]
ironhide_604 has joined #ruby-lang
ironhide_604 has quit [Client Quit]
<wnd>
uh, I'm so glad that normally I don't have to deal with Rails...
ironhide_604 has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
io_syl has quit []
woollyams has joined #ruby-lang
yatish27 has quit [Ping timeout: 250 seconds]
arBmind has quit [Quit: Leaving.]
RobertBirnie has quit [Ping timeout: 240 seconds]
arBmind has joined #ruby-lang
SteelGolem has quit [Remote host closed the connection]
SteelGolem has joined #ruby-lang
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
mikecmpbll has joined #ruby-lang
Intaler has quit [Ping timeout: 252 seconds]
Miphix has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
<ljarvis>
moin
joonty has joined #ruby-lang
arBmind has quit [Ping timeout: 265 seconds]
arBmind has joined #ruby-lang
qba73 has quit []
dsp__ has joined #ruby-lang
woollyams has quit [Ping timeout: 252 seconds]
dsp__ has quit [Ping timeout: 265 seconds]
Fushi has joined #ruby-lang
benlovell has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rahul_j has quit [Quit: rahul_j]
heftig has joined #ruby-lang
marr has joined #ruby-lang
nofxx has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
<ljarvis>
til github uses nanoc, did you kow that ddfreyne?
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tomkadwill has joined #ruby-lang
rahul_j has joined #ruby-lang
frobrob has joined #ruby-lang
badeball_ is now known as badeball
ta has joined #ruby-lang
knu has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
nemec__ has joined #ruby-lang
alex-quiterio has joined #ruby-lang
lun__ has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
nemec_ has quit [Ping timeout: 264 seconds]
<yorickpeterse>
morning
<yorickpeterse>
ljarvis: yes it's on the nanoc website
enkristoffer has joined #ruby-lang
<ljarvis>
oic
samuelnp_ has joined #ruby-lang
Ja_Re_Ax has joined #ruby-lang
mbj has joined #ruby-lang
woollyams has joined #ruby-lang
<Ja_Re_Ax>
I'm having difficulties compiling ruby-2.1.1 on windows :-/ I run the configure.bat in the win32 directory but when I run nmake I get the error "-IE" not recognized as an internal or external command... the ruby source code is located on E:/.../ruby-2.1.1/ and the -IE is the first part of an include statement in the Makefile...
<Ja_Re_Ax>
Anyone that have come across anything of similar nature?
lun_ has joined #ruby-lang
mehlah has joined #ruby-lang
kyb3r_ has joined #ruby-lang
allomov has quit [Remote host closed the connection]
dsp__ has joined #ruby-lang
dsp__ has quit [Ping timeout: 255 seconds]
tomkadwill has quit [Remote host closed the connection]
nofxx has quit [Remote host closed the connection]
elia has joined #ruby-lang
kitak_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby-lang
Cakey has quit [Ping timeout: 250 seconds]
alex-quiterio has left #ruby-lang [#ruby-lang]
workmad3 has joined #ruby-lang
<Ja_Re_Ax>
Why have ruby become a dependency in qtwebkit :-( its a nightmare to compile from source on windows
robbyoconnor has joined #ruby-lang
<yorickpeterse>
Ja_Re_Ax: you should bring that up with the people running qtwebkit
tomkadwill has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
lun_ has quit [Remote host closed the connection]
<apeiros>
Ja_Re_Ax: why do you compile it from source then?
<apeiros>
there's binary installers available for windows afaik
stamina has joined #ruby-lang
<whitequark>
it is a dependency? that's odd
<Ja_Re_Ax>
A requirement is more accurately put. I'm download and extract the source -> go to the win32 directory (through a vc10 prompt) and type "configure.bat" whereafter it says "Creating Makefile.new \n type 'nmake' to make ruby" -> I type nmake and starts compiling the files, but when it reaches the linkage for miniruby.exe I get 24 linking errors.
<Ja_Re_Ax>
linking miniruby.exe
<Ja_Re_Ax>
file.obj : error LNK2005: _rb_file_expand_path_internal already defined in file.obj
<Ja_Re_Ax>
dir.obj : error LNK2019: unresolved external symbol _rb_str_encode_ospath referenced in function _dir_initialize
<Ja_Re_Ax>
file.obj : error LNK2005: _rb_file_load_ok already defined in file.obj
<Ja_Re_Ax>
file.obj : error LNK2005: _Init_w32_codepage already defined in file.obj
<Ja_Re_Ax>
load.obj : error LNK2001: unresolved external symbol _rb_str_encode_ospath
<yorickpeterse>
Oh yeah very nice for DO to just fucking reboot my server
<whitequark>
<3 linode
<apeiros>
yorickpeterse: "Note that if you want to disable generational garbage collection, you can specify 0.9 (any number lesser than 1.0) for RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR"
<yorickpeterse>
Linode is expensive crap
<apeiros>
might try this if you want to try longer GC timings for less memory usage
<yorickpeterse>
apeiros: that begs the question, if it's so bad that you have to disable it, why the fuck is it there
<whitequark>
yorickpeterse: I get "expensive", but how is it crap?
<apeiros>
because there's use-cases where using more memory is acceptable price for 10x faster gc
<whitequark>
also, I guess you're paying for your server not being randomly rebooted ;)
<apeiros>
and probably because it's not x2 in all use-cases either
<yorickpeterse>
whitequark: feature wise they were ok but I kinda lost faith after they supposedly got powned
<yorickpeterse>
apeiros: I find it hard to think of a use case where 2x more memory is ok
<whitequark>
yorickpeterse: everybody gets pwned at some point. it's how they handle the fallout which is important
<yorickpeterse>
whitequark: See, they didn't
<yorickpeterse>
From what I remember it basically was "lol nothing happened"
<yorickpeterse>
When it was very clear that something *did* happen
vondruch has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
<whitequark>
seems ok (and it seemed ok to me at the time, too)
<yorickpeterse>
That's the one, I believe people afterwards showed that they did indeed gain CC access
<yorickpeterse>
I actually requested a new CC as a result of that
<surrounder>
ouch
SteelGolem has quit [Remote host closed the connection]
<yorickpeterse>
and that they apparently had private keys or something in the root www directory
<yorickpeterse>
Not sure if that was true though
<yorickpeterse>
Either way, I wasn't too happy
SteelGolem has joined #ruby-lang
<yorickpeterse>
Mostly the price drove me off though
vondruch has quit [Client Quit]
<yorickpeterse>
For a server that serves some static HTML and IRC 45 USD a month is an overkill
yalue has joined #ruby-lang
<whitequark>
45 USD?
<whitequark>
I pay 30, and it's not even the cheapest
<Ja_Re_Ax>
I figured out what my problem was in my previous posted problem. I assumed that you should make nmake in the directory where the configure makes the new makefile, but it should instead be run from the parent directory.
<whitequark>
$20 for the smallest instance
mehlah has joined #ruby-lang
tomkadwill has joined #ruby-lang
<yorickpeterse>
whitequark: 30-35USD + backups if I remember
<yorickpeterse>
"We've had to unfortunately reboot your Droplet europa.yorickpeterse.com due to an issue on the underlying physical node where the Droplet runs."
<yorickpeterse>
derp
<yorickpeterse>
50 USD even
<whitequark>
$25 for 2GB instance with backups
<yorickpeterse>
Didn't they do some price changes a while back?
<whitequark>
I'm looking at their pricing page right now
<yorickpeterse>
I think I had a beefed up 2GB instance so it actually was 4GB or something
<yorickpeterse>
(came with a bunch of free upgrades over the years)
<whitequark>
yup, I too have a grandfathered plan
<yorickpeterse>
Either way, 25 USD + 10 for backups (so 35) is still more than ~13 USD
<whitequark>
then shut up and don't complain
elia has joined #ruby-lang
<yorickpeterse>
14,43 apparently
<yorickpeterse>
which is like 5 Euros
dsp__ has joined #ruby-lang
<yorickpeterse>
close: 10 actually
vondruch has joined #ruby-lang
enmand_ has joined #ruby-lang
dsp__ has quit [Ping timeout: 252 seconds]
enmand_ has quit [Client Quit]
Cakey has joined #ruby-lang
robmiller has joined #ruby-lang
yfeldblum has joined #ruby-lang
cored has joined #ruby-lang
kitak_ has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
robbyoconnor has joined #ruby-lang
Asher has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
<darix>
o.O
leandrosnunes has joined #ruby-lang
ldnunes has joined #ruby-lang
aviator7 has quit [Quit: Leaving]
workmad3 is now known as wm3|away
matled has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 276 seconds]
frobrob has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby-lang
Guest62472 is now known as bougyman
agrinb has joined #ruby-lang
vpretzel has joined #ruby-lang
Rojo has joined #ruby-lang
saarinen has quit [Quit: saarinen]
robbyoconnor has quit [Ping timeout: 258 seconds]
rahul_j has quit [Quit: rahul_j]
Asher has quit [Quit: Leaving.]
sarkyniin has joined #ruby-lang
dsp__ has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
Cakey has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby-lang
elia has joined #ruby-lang
mbj has left #ruby-lang [#ruby-lang]
mehlah has quit [Ping timeout: 255 seconds]
atmosx has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
malconis has joined #ruby-lang
agrinb has joined #ruby-lang
saarinen has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
peterhorne has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
robbyoconnor has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
kitak_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby-lang
robbyoconnor has joined #ruby-lang
saarinen has quit [Read error: Connection reset by peer]
Asher has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.3]
saarinen has joined #ruby-lang
lun_ has quit [Remote host closed the connection]
relix has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 250 seconds]
Johz has joined #ruby-lang
peterhorn has joined #ruby-lang
peterhorne has quit [Ping timeout: 276 seconds]
memorozovm has joined #ruby-lang
TvL2386 has quit [Remote host closed the connection]
peterhorn has quit [Client Quit]
peterhorne has joined #ruby-lang
tkuchiki has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
Johz has quit [Quit: Leaving]
elia has joined #ruby-lang
mehlah has joined #ruby-lang
memorozovm has quit []
wm3|away is now known as workmad3
kitak has quit [Remote host closed the connection]
AncientAmateur has joined #ruby-lang
kitak has joined #ruby-lang
ironhide_604 has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
saarinen has quit [Quit: saarinen]
centrx has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yatish27 has joined #ruby-lang
bin7me has quit [Quit: Leaving]
VTLob has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
loincloth has joined #ruby-lang
ironhide_604 has joined #ruby-lang
<ljarvis>
hmm
<ljarvis>
where is banister
SteelGolem has quit [Remote host closed the connection]
SteelGolem has joined #ruby-lang
omosoj has joined #ruby-lang
Cakey has joined #ruby-lang
cba has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby-lang
VTLob has joined #ruby-lang
araujo has joined #ruby-lang
dstynchula has joined #ruby-lang
dstynchula has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
<darix>
ljarvis: not here?
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis>
darix: thank you, that's helpful
Cakey has quit [Ping timeout: 250 seconds]
<darix>
ljarvis: :)
nathanstitt has joined #ruby-lang
io_syl has joined #ruby-lang
io_syl has quit [Max SendQ exceeded]
io_syl has joined #ruby-lang
relix has joined #ruby-lang
WishBoy has quit [Remote host closed the connection]
WishBoy has joined #ruby-lang
vpretzel is now known as vpretzel|1403
lolmaus has joined #ruby-lang
malconis has quit [Ping timeout: 252 seconds]
tomkadwill has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
dik_dak has joined #ruby-lang
io_syl has quit []
[spoiler] has joined #ruby-lang
mikecmpbll has quit [Quit: ciao.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ColdBlooder has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
minivan has joined #ruby-lang
bjh13 has joined #ruby-lang
heftig has quit [Quit: Quitting]
|jemc| has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
joast has joined #ruby-lang
ironhide_604 has quit [Quit: ironhide_604]
jonathanmarvens has joined #ruby-lang
lolmaus has quit [Ping timeout: 265 seconds]
Jamo_ is now known as Jamo
rippa has joined #ruby-lang
ghg has joined #ruby-lang
agrinb has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
solars has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby-lang
relix has joined #ruby-lang
yfeldblum has joined #ruby-lang
djbkd has joined #ruby-lang
vpretzel|1403 is now known as vpretzel|215
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 258 seconds]
cored_ has joined #ruby-lang
mykoweb has joined #ruby-lang
cored has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 252 seconds]
rhodee has joined #ruby-lang
mistym has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
dik_dak has quit [Ping timeout: 258 seconds]
rhodee has quit [Client Quit]
agrinb has quit [Remote host closed the connection]
alexju has joined #ruby-lang
elia has joined #ruby-lang
rhodee has joined #ruby-lang
lolmaus has joined #ruby-lang
djbkd has joined #ruby-lang
joonty has quit [Quit: WeeChat 0.4.2]
dik_dak has joined #ruby-lang
<yorickpeterse>
Today I discovered some feature we have
<yorickpeterse>
I've been working here for little over 1,5 years
<yorickpeterse>
I've never heard of this one thing
<yorickpeterse>
and apparently it's used
<yorickpeterse>
and now breaks things :<
rhodee has quit [Quit: WeeChat 0.4.3]
<Senjai>
yorickpeterse: Hahaha
<Senjai>
story of my life
<yorickpeterse>
"Oh yeah that's a whitelabel thing for X, we've had that for 2 years now or so. Apparently it still works"
<yorickpeterse>
._.
wallerdev has joined #ruby-lang
apeiros has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
joost_like_toast has quit [Ping timeout: 252 seconds]
rhodee has joined #ruby-lang
enkristoffer has quit [Ping timeout: 264 seconds]
RobertBirnie has joined #ruby-lang
minivan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__butch__ has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
x0f_ has joined #ruby-lang
banister has joined #ruby-lang
rhodee has quit [Quit: WeeChat 0.4.3]
rhodee has joined #ruby-lang
x0f has quit [Ping timeout: 240 seconds]
malconis has joined #ruby-lang
rhodee has quit [Client Quit]
rhodee has joined #ruby-lang
momomomomo has joined #ruby-lang
tbuehlmann has joined #ruby-lang
dik_dak has quit [Ping timeout: 250 seconds]
dwknoxy has joined #ruby-lang
yfeldblum has joined #ruby-lang
mykoweb has quit [Remote host closed the connection]
mykoweb has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenn has joined #ruby-lang
Sirupsen has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mykoweb_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
mykoweb has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby-lang
rhodee has quit [Quit: WeeChat 0.4.3]
rhodee has joined #ruby-lang
tomkadwill has joined #ruby-lang
bjh13 has quit [Quit: Lost terminal]
symm- has joined #ruby-lang
benlovell has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
bjh13 has joined #ruby-lang
saarinen has joined #ruby-lang
mbj has joined #ruby-lang
pixelhandler has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
canton7-mac has quit [Quit: Leaving]
tomkadwill has quit []
elia has quit [Ping timeout: 250 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
AncientAmateur has joined #ruby-lang
Rylee has quit [Max SendQ exceeded]
rhodee has quit [Ping timeout: 258 seconds]
khaase has joined #ruby-lang
khaase has joined #ruby-lang
khaase has quit [Changing host]
AncientAmateur has quit [Ping timeout: 250 seconds]
agrinb has quit [Remote host closed the connection]
dik_dak has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
samuelnp has quit [Quit: samuelnp]
Coincidental has joined #ruby-lang
franzip has joined #ruby-lang
samuelnp has joined #ruby-lang
hybristic has joined #ruby-lang
BucOder has quit [Quit: Computer has gone to sleep.]
enebo has joined #ruby-lang
Burgestrand has quit [Quit: Burgestrand]
BucOder has joined #ruby-lang
samuelnp has quit [Ping timeout: 250 seconds]
peterhorne has quit [Quit: Leaving...]
yfeldblum has joined #ruby-lang
peterhorne has joined #ruby-lang
xcesariox has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
metus_violarium has joined #ruby-lang
agrinb has joined #ruby-lang
amsi has joined #ruby-lang
momomomomo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
zastern_ has quit [Quit: WeeChat 0.4.3]
peterhorne has quit [Ping timeout: 258 seconds]
jonathanmarvens has quit [Remote host closed the connection]
dik_dak has joined #ruby-lang
AncientAmateur has joined #ruby-lang
<cout>
after(:all) { it "is a small world" }
danijoo has quit [Read error: Connection reset by peer]
<metus_violarium>
Hello. I've created a gem to manage month dates and objects, atttached to them like in table_builder gem, but I tried to make it more flexible (I hope). If somebody interested to take a part in that, to blame a code, to say that it's crap :) - you are welcome: https://github.com/violarium/calendar_walker
mikecmpbll has joined #ruby-lang
SteelGolem has quit [Remote host closed the connection]
danijoo has joined #ruby-lang
SteelGolem has joined #ruby-lang
ta_ has joined #ruby-lang
tomkadwill has joined #ruby-lang
ta has quit [Read error: Connection reset by peer]
enebo has quit [Quit: enebo]
workmad3 has quit [Ping timeout: 252 seconds]
loincloth has quit [Remote host closed the connection]
tbuehlmann has quit [Ping timeout: 252 seconds]
jonathanmarvens has joined #ruby-lang
specialblend has joined #ruby-lang
elia has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
amerine_ is now known as amerine
Olipro has quit [*.net *.split]
vpretzel|215 is now known as vpretzel|910
cnivolle has quit [Remote host closed the connection]
Sirupsen has joined #ruby-lang
elia has quit [Ping timeout: 258 seconds]
dwknoxy is now known as dknox-shoveling-
specialblend has quit [Quit: specialblend]
Olipro has joined #ruby-lang
Olipro has quit [Max SendQ exceeded]
Olipro has joined #ruby-lang
Olipro has quit [Changing host]
Olipro has joined #ruby-lang
chouhoul_ has joined #ruby-lang
loincloth has joined #ruby-lang
BucOder has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
_havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
dluv has quit [Ping timeout: 240 seconds]
GaelanAintAround has quit [Ping timeout: 245 seconds]
AncientAmateur has quit [Remote host closed the connection]
peterhorne has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
atmosx has quit [Quit: Lost in trance]
dfr|work has joined #ruby-lang
yfeldblum has joined #ruby-lang
zz_dlu has joined #ruby-lang
GrooveStomp has joined #ruby-lang
arrubin has joined #ruby-lang
postmodern has joined #ruby-lang
mykoweb_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
peterhorne has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
amsi has quit [Ping timeout: 264 seconds]
mehlah has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jhass|off is now known as jhass
[spoiler] has quit [Quit: Leaving]
allomov has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
chris2 has joined #ruby-lang
nofxxx has joined #ruby-lang
omosoj has joined #ruby-lang
hybristic has quit [Remote host closed the connection]
peterhorne has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
atmosx has quit [Quit: Lost in trance]
peterhorne has quit [Ping timeout: 240 seconds]
t4nk210 has joined #ruby-lang
Coincidental has quit [Read error: Connection reset by peer]
t4nk210 has quit [Ping timeout: 240 seconds]
Sirupsen has joined #ruby-lang
wallerdev has joined #ruby-lang
Coincidental has joined #ruby-lang
Sirupsen has quit [Client Quit]
agrinb has quit [Remote host closed the connection]
loincloth has quit [Remote host closed the connection]
mistym_ has quit [Remote host closed the connection]
metus_violarium has quit [Read error: Connection reset by peer]
loincloth has joined #ruby-lang
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby-lang
AncientAmateur has joined #ruby-lang
loincloth has quit [Client Quit]
arooni-mobile has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
kyb3r_ has joined #ruby-lang
futilegames has joined #ruby-lang
futilegames has quit [Client Quit]
arooni-mobile has joined #ruby-lang
marcdel has joined #ruby-lang
rhodee has quit [Ping timeout: 255 seconds]
centrx has left #ruby-lang ["End transmission"]
arBmind has joined #ruby-lang
_havenn has quit []
agrinb has joined #ruby-lang
futilegames has joined #ruby-lang
nofxxx has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
michaeldeol has joined #ruby-lang
saarinen has quit [Client Quit]
djbkd has joined #ruby-lang
danguita has quit [Remote host closed the connection]
bjh13 has quit [Quit: leaving]
amsi has joined #ruby-lang
danguita has joined #ruby-lang
rhodee has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
<zenspider>
rawr
<zenspider>
how is everyone?
arooni-mobile has quit [Ping timeout: 255 seconds]
vpretzel|910 is now known as vpretzel|1573
leandrosnunes has quit [Quit: WeeChat 0.4.3]
ur5us has joined #ruby-lang
Coincidental has quit [Read error: Connection reset by peer]
allomov has joined #ruby-lang
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
fostertheweb has joined #ruby-lang
agrinb has joined #ruby-lang
saarinen has joined #ruby-lang
<wallerdev>
im good zenspider :)
<wallerdev>
how are you?
retro|cz has quit [Ping timeout: 240 seconds]
Coincidental has joined #ruby-lang
saarinen has quit [Client Quit]
AncientAmateur has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
michaeldeol has quit [Read error: Connection reset by peer]
<GrooveStomp>
good! :)
jhass has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
saarinen has joined #ruby-lang
futilegames has quit [Ping timeout: 264 seconds]
AncientA_ has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
benanne has quit [Quit: kbai]
ColdBlooder has quit [Remote host closed the connection]
lun_ has joined #ruby-lang
MichD is now known as michd
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
<zenspider>
wallerdev: I woke up today dreaming I was cramming for an abstract algebra math test. I prolly need to back off of project euler. :)
peterhorne has joined #ruby-lang
<wallerdev>
haha
<wallerdev>
im not great at the super mathy problems on that site
shinnya has joined #ruby-lang
<zenspider>
I'm not either... but I'm learning... Mathematica helps finding stuff a fair amount... but in some/many of the cases, I don't even know what words to use.
Rubennn has joined #ruby-lang
<zenspider>
like, I've never done stats/probability, so I'm at a total loss on that shit
<wallerdev>
yeah haha
<wallerdev>
i browsed through a few problems and just had no idea how to start
ldnunes has quit [Quit: Leaving]
lun_ has quit [Read error: Connection reset by peer]
lun_ has joined #ruby-lang
peterhorne has quit [Ping timeout: 240 seconds]
jhass|off has joined #ruby-lang
jhass|off is now known as jhass
retro|simi has joined #ruby-lang
<omosoj>
Hey guys I just posted a question about a project euler problem (#37) in #ruby. Not sure if you all are in that room too.
alex-quiterio has quit [Quit: Leaving.]
agrinb has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj>
I think recursion is required to solve the problem, but I'm completely dumbfounded by it.
Coincidental has quit [Read error: Connection reset by peer]
<zenspider>
fuck... I've solved it, but don't have code for it. re-reading
<omosoj>
I'm pretty sure I know how to do it on a very high abstract level, but don't know how to implement it.
<zenspider>
eh. I don't think you need recursion
<zenspider>
certainly doable with recursion... but also doable just using plain functional programming
bantic has joined #ruby-lang
agrinb has joined #ruby-lang
<omosoj>
Hmm.
SteelGolem has quit [Remote host closed the connection]
SteelGolem has joined #ruby-lang
<omosoj>
Is your solution to create a loop that goes n times, n being the number of digits?
ironhide_604 has joined #ruby-lang
<zenspider>
again, I don't have any code for my solution... I was sloopy when I first started out on this.
<zenspider>
I prolly did an inner-iterator with log10(n) steps
<omosoj>
Hmm, k, thanks for the help.
bradcliffe has joined #ruby-lang
bradcliffe has quit [Client Quit]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby-lang
chouhoulis has quit [Ping timeout: 264 seconds]
AncientA_ has quit [Quit: Leaving...]
<Burgestrand>
omosoj: I don't remember. Is there a time limit on how fast you should be able to compute the result?
AncientAmateur has joined #ruby-lang
AncientAmateur has quit [Remote host closed the connection]
<zenspider>
Burgestrand: should be <=1min
bantic has quit [Read error: No route to host]
<omosoj>
Burgestrand, like how long the program should take? Not necessarily, but obviously the quicker the better.
<omosoj>
Oh, hmm didn't know that. I've violated that limit a few times :p
<Burgestrand>
:p
<Burgestrand>
I have a solution. I iterate through all primes with Prime.each in stdlib, and keep a counter for how many truncatable ones I've found.
<Burgestrand>
I find if they're truncatable by turning the number to a string, iterating through it's length, grabbing the right-to-left substring and left-to-right substring, and checking if both are primes, exiting early if either of them aren't. It's brute-force, but takes 29s on my macbook.
jhass has quit [Remote host closed the connection]
<zenspider>
obviously it depends on the computer you have. but given that many of these problems are 5-10 years old... it should be even quicker if anything
<zenspider>
it'd be quicker if you used actual math. divmod is a Good Thing™
<omosoj>
Burgestrand, do you truncate through the entire number (until there is one remaining?)
franzip has quit [Quit: ...]
<Burgestrand>
Yeah, there's a some nice property to be abused here, but brute force works within the constraints :)
<workmad3>
Burgestrand: I just did that, did a break when hit 11
<Burgestrand>
omosoj: yes, from both sides
<workmad3>
Burgestrand: took 20s ;)
<Burgestrand>
omosoj: I should close down chrome!
arBmind has quit [Quit: Leaving.]
<omosoj>
Yeah, you can probably solve these much faster (than I'm solving them) if you knew the math behind them. Can probably solve a lot of them without a computer heh
<Burgestrand>
… wups. workmad3 ^
<Burgestrand>
:)
<workmad3>
Burgestrand: that was with a recursive method to check for truncation btw
<workmad3>
omosoj: nothing particularly special in it
jhass|off is now known as jhass
<omosoj>
workmad3, thanks.
<Burgestrand>
I like lazy enumerators.
mykoweb has joined #ruby-lang
<Burgestrand>
Changed my previous paste a little bit, abusing the lazy enumerator. It reads so nice. I miss haskell.
x0f_ has quit [Ping timeout: 255 seconds]
<Burgestrand>
workmad3: hah, monkeypatching Integer, how devilish
<Burgestrand>
I like it
<workmad3>
Burgestrand: I like monkeypatching integer for project euler :)
x0f has joined #ruby-lang
<omosoj>
Hey guys I need to step out for a while but I'm going to look through these two scripts very closely later tonight. Thanks so much for the help!
ghg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mykoweb has quit [Ping timeout: 240 seconds]
<Burgestrand>
omosoj: enjoy!
<Burgestrand>
Not sure what's an appropriate response. I should probably leave too though. Bai.
Burgestrand has quit [Quit: Burgestrand]
fezziwig has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]