apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
asahi has quit [Quit: Leaving.]
lexruee has left #ruby-lang ["Verlassend"]
yfeldblum has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
iamninja has quit [Quit: ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
mistym has joined #ruby-lang
pwelch has quit [Quit: Connection closed for inactivity]
symm- has quit [Quit: Leaving...]
wallerdev has joined #ruby-lang
djbkd_ has quit [Remote host closed the connection]
[H]unt3r has quit [Ping timeout: 258 seconds]
jds has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby-lang
oleo has quit [Ping timeout: 244 seconds]
[H]unt3r has joined #ruby-lang
j4cknewt has joined #ruby-lang
yield_rb has joined #ruby-lang
<apeiros_> slow as a snail, but at least steady. all 22 column types implemented :D
Missphoenix has quit [Quit: Leaving]
nathanstitt has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
<tbuehlmann> \o/
|jemc| has quit [Ping timeout: 264 seconds]
tmi1 has joined #ruby-lang
ta has joined #ruby-lang
tmi1 has quit [Client Quit]
tmi1 has joined #ruby-lang
Xney2 is now known as Xney
oleo has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
mliq has joined #ruby-lang
chills42 has joined #ruby-lang
mliqu has quit [Ping timeout: 265 seconds]
<[spoiler]> woo!
__butch__ has quit [Quit: Leaving.]
yfeldblum has joined #ruby-lang
ta has joined #ruby-lang
mcclurmc has joined #ruby-lang
duderonomy has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 258 seconds]
Zekka has joined #ruby-lang
avdi has quit [Read error: Connection reset by peer]
avdi has joined #ruby-lang
mcclurmc_ has joined #ruby-lang
Menorah has quit [Quit: This computer has gone to sleep]
mcclurmc has quit [Ping timeout: 258 seconds]
chills42 has quit [Remote host closed the connection]
hahuang62 has quit [Ping timeout: 264 seconds]
Musashi007 has quit [Ping timeout: 255 seconds]
Menorah has joined #ruby-lang
cantonic has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
|jemc| has joined #ruby-lang
djbkd has quit []
cawil has quit [Ping timeout: 258 seconds]
micmus has quit [Ping timeout: 245 seconds]
hendranata_ has joined #ruby-lang
yusuf1 has joined #ruby-lang
Musashi007 has joined #ruby-lang
duderonomy has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
Menorah has quit [Quit: This computer has gone to sleep]
mcclurmc_ has quit [Remote host closed the connection]
[spoiler] has quit [Quit: Leaving]
Jet4Fire has quit []
io_syl has quit []
oleo has quit [Read error: Connection reset by peer]
<darix> apeiros_: column types?
<apeiros_> postgres backed (mini-)orm
<darix> ah
<darix> extensions can implement column types too
<darix> ip4r e.g.
<apeiros_> I know
<darix> not to spoil your fun :p
<darix> nn
j4cknewt has quit [Read error: Connection reset by peer]
<apeiros_> you can also define user types
j4cknewt has joined #ruby-lang
<apeiros_> 2 of the 22 types are in fact user defined composite types
marr has quit [Ping timeout: 240 seconds]
RickHull has joined #ruby-lang
iamninja has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
oleo has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
shubhamgoyal has quit [Ping timeout: 255 seconds]
shubhamgoyal has joined #ruby-lang
yfeldblum has joined #ruby-lang
kiyote23 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
Menorah has joined #ruby-lang
kiyote23 has quit [Ping timeout: 265 seconds]
LBo has quit [Ping timeout: 240 seconds]
ta has joined #ruby-lang
duderonomy has quit [Ping timeout: 256 seconds]
ta has quit [Ping timeout: 258 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
chills42 has joined #ruby-lang
noah has joined #ruby-lang
ta has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
io_syl has joined #ruby-lang
_fritchie has quit [Ping timeout: 258 seconds]
chills42 has quit [Remote host closed the connection]
ta has quit [Ping timeout: 245 seconds]
noah has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
djbkd has joined #ruby-lang
nofxx has quit [Ping timeout: 255 seconds]
chills42 has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
Menorah has joined #ruby-lang
duderonomy has joined #ruby-lang
pwnz0r has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
hunter32292 has joined #ruby-lang
yfeldblum has joined #ruby-lang
[H]unt3r has quit [Ping timeout: 258 seconds]
chills42 has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
hunter32292 has quit [Quit: Leaving]
nertzy has joined #ruby-lang
io_syl has quit []
crankhar1er is now known as crankharder
j4cknewt has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
amclain has joined #ruby-lang
mistym has quit [Remote host closed the connection]
_fritchie has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby-lang
_fritchie has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has quit [Remote host closed the connection]
wallerdev has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
cawil has joined #ruby-lang
oleo has quit [Ping timeout: 265 seconds]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
ta has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
tkuchiki has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby-lang
ta has quit [Ping timeout: 258 seconds]
chills42 has quit [Read error: Connection reset by peer]
chills42 has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
_fritchie has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
chills42 has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
incomprehensibly has joined #ruby-lang
incomprehensibly has left #ruby-lang [#ruby-lang]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
nofxx has joined #ruby-lang
oleo has joined #ruby-lang
lsegal has joined #ruby-lang
lcjlls has joined #ruby-lang
postmodern has quit [Ping timeout: 258 seconds]
Jaood has joined #ruby-lang
postmodern has joined #ruby-lang
cornerma1 has joined #ruby-lang
lcjlls has quit [Ping timeout: 272 seconds]
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
yield_rb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nathanstitt has quit [Quit: I growing sleepy]
ta has joined #ruby-lang
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
mistym has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
diegoviola has quit [Remote host closed the connection]
Jaood has left #ruby-lang [#ruby-lang]
lcjlls has joined #ruby-lang
charliesome_ has joined #ruby-lang
charliesome has quit [Ping timeout: 244 seconds]
lcjlls has quit [Ping timeout: 240 seconds]
charliesome_ has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby-lang
revath has joined #ruby-lang
yield_rb has joined #ruby-lang
revath has quit [Ping timeout: 250 seconds]
red_menace has quit [Quit: Quit]
loincloth has joined #ruby-lang
RickHull has left #ruby-lang [#ruby-lang]
revath has joined #ruby-lang
loincloth has quit [Ping timeout: 250 seconds]
shankardevy has joined #ruby-lang
duderonomy has quit [Ping timeout: 258 seconds]
shankardevy has left #ruby-lang [#ruby-lang]
arooni-mobile has joined #ruby-lang
Miphix has joined #ruby-lang
jxie_ has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
robbyoconnor has quit [Ping timeout: 250 seconds]
pwnz0r has joined #ruby-lang
ur5us has joined #ruby-lang
ur5us has quit [Ping timeout: 265 seconds]
mistym has quit [Remote host closed the connection]
amystephen has quit [Quit: amystephen]
kapil__ has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 258 seconds]
michaeldeol has joined #ruby-lang
jo__ has quit [Quit: Connection closed for inactivity]
ta has joined #ruby-lang
loincloth has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has quit [Ping timeout: 258 seconds]
postmodern has quit [Quit: Leaving]
loincloth has quit [Ping timeout: 256 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
slawrenc_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
rahul_j has joined #ruby-lang
mcclurmc has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
duderonomy has joined #ruby-lang
kiyote23 has joined #ruby-lang
spastorino has quit [Quit: Connection closed for inactivity]
yatish27 has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
kiyote23 has quit [Ping timeout: 250 seconds]
pwnz0r has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
dabradley has quit [Ping timeout: 245 seconds]
dabradley has joined #ruby-lang
hahuang62 has joined #ruby-lang
ur5us has joined #ruby-lang
yatish27 has quit [Ping timeout: 245 seconds]
ur5us has quit [Ping timeout: 240 seconds]
<freedrull> i'm trying to apply the SRP i guess, i started with a single class https://gist.github.com/mcfiredrill/c88ea6f5305b2199f94f then realized my class does three things , now i have three classes. one of them is merely a collaborator between the two. https://gist.github.com/mcfiredrill/6fdbeea32de88a7adf63 this will make it easier to test, but is the indirection tradeoff worth it?
_fritchie has quit [Quit: Textual IRC Client: www.textualapp.com]
nofxx has quit [Ping timeout: 250 seconds]
mcclurmc has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
mcclurmc has quit [Ping timeout: 244 seconds]
solars has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
donove has joined #ruby-lang
ur5us has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 256 seconds]
robbyoconnor has joined #ruby-lang
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 265 seconds]
rahul_j_ is now known as rahul_j
robbyoconnor has quit [Ping timeout: 255 seconds]
tkuchiki has joined #ruby-lang
robbyoconnor has joined #ruby-lang
pwnz0r has joined #ruby-lang
pwnz0r has quit [Ping timeout: 258 seconds]
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
r0bby_ is now known as robbyoconnor
Iskarlar has joined #ruby-lang
yfeldblum has joined #ruby-lang
Missphoenix has joined #ruby-lang
Missphoenix has quit [Remote host closed the connection]
godd2 has joined #ruby-lang
Miphix has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
mcclurmc has joined #ruby-lang
mcclurmc has quit [Ping timeout: 256 seconds]
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
charliesome has joined #ruby-lang
revath has quit [Ping timeout: 272 seconds]
rahul_j has quit [Ping timeout: 250 seconds]
yock has joined #ruby-lang
rahul_j has joined #ruby-lang
Bwild has quit [Ping timeout: 250 seconds]
yock has quit [Ping timeout: 245 seconds]
micmus has joined #ruby-lang
Menorah has quit [Quit: This computer has gone to sleep]
Sadin has quit [Ping timeout: 250 seconds]
ta has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
Menorah has joined #ruby-lang
<ljarvis> freedrull: I think both are fine. Tbh the first one can be cleaned up a lot anyway
jds has joined #ruby-lang
Blackhol_ has quit [Remote host closed the connection]
<yorickpeterse> morning
fusillicode has joined #ruby-lang
revath has joined #ruby-lang
fusillicode has quit [Ping timeout: 255 seconds]
kyb3r_ has quit [Quit: Leaving]
SkramX has quit [Ping timeout: 258 seconds]
dlackty__ has quit [Ping timeout: 258 seconds]
mcclurmc has joined #ruby-lang
pskosinski has quit [Ping timeout: 258 seconds]
meizaps has quit [Ping timeout: 258 seconds]
SkramX_ has joined #ruby-lang
eristic has quit [Ping timeout: 258 seconds]
dlackty__ has joined #ruby-lang
ta has joined #ruby-lang
meizaps has joined #ruby-lang
pskosinski has joined #ruby-lang
marr has joined #ruby-lang
mcclurmc has quit [Ping timeout: 245 seconds]
eristic_ has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 272 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
<maloik> ohai
charliesome has quit [Quit: zzz]
fusillicode has joined #ruby-lang
haarchri has joined #ruby-lang
micmus has quit [Ping timeout: 244 seconds]
fusillicode has quit [Ping timeout: 272 seconds]
fclausen has joined #ruby-lang
ta has joined #ruby-lang
|jemc| has quit [Ping timeout: 240 seconds]
micmus has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
<freedrull> ljarvis: how so?
fusillicode has joined #ruby-lang
<ljarvis> freedrull: how can it be cleaned up?
<freedrull> ljarvis: can it be cleaned up in ways other than extracting classes?
benlovell has joined #ruby-lang
<yorickpeterse> hihi, tought my boss grep so he can count records in XML files
<yorickpeterse> who needs XML parsers when you have grep
<freedrull> haha cool
yfeldblum has quit [Remote host closed the connection]
<ljarvis> freedrull: I'd write something like this I guess https://gist.github.com/leejarvis/ff2a4f71864e45aec372
<ljarvis> it's easily testable because you can stub if you need to, or just run a fixture
<freedrull> ljarvis: i see i guess its less lines of code but all the complexity is still there? idk
<ljarvis> maybe i'd extract lines 15-17 into save_track or something
charliesome has joined #ruby-lang
<ljarvis> freedrull: sure, but it's in movable pieces, not just a single class method
charliesome has quit [Client Quit]
<freedrull> yeah having an initializer instead of the singleton is definitely better
<ljarvis> tbh, I'd probably have a method on my User model that handles saving the track
<ljarvis> then user.save_favorite(favorite)
<freedrull> hmm...i'd rather not honestly...seen way too many 500 line user models i guess
charliesome has joined #ruby-lang
<ljarvis> heh, fair enough
<ljarvis> also 500 lines is a small model ;)
<haarchri> can someone help me with ifconfig ... i have a lot of ppp connections on my ubuntu server ... i need all p-t-p addresses as an list
<haarchri> one ppp tunnel shows like this in ifconfig
<haarchri> ppp98 Link encap:Point-to-Point Protocol
<haarchri> inet addr:10.0.0.1 P-t-P:10.0.0.99 Mask:255.255.255.255
<freedrull> bringing it back to testing this, i'm guessing you would stub out the soundcloud library? i would probably just stub out the network with VCR or webmock
<ljarvis> haarchri: what have you tried so far?
<ljarvis> freedrull: I'd also just use vcr
<ljarvis> freedrull: but you have the option to unit test it if you want (there's really not much point, though)
hendranata_ has quit [Ping timeout: 264 seconds]
<haarchri> i tried this: https://eval.in/238320
<haarchri> but i become only one p-t-p address not all
<ljarvis> haarchri: https://eval.in/238321
ta has joined #ruby-lang
<ljarvis> haarchri: this uses String#scan with the same regexp
[spoiler] has joined #ruby-lang
charliesome has quit [Ping timeout: 272 seconds]
benlovell has quit [Ping timeout: 245 seconds]
rbrs has joined #ruby-lang
<haarchri> ahh so easy ... thank you =)
Hanmac has joined #ruby-lang
benlovell has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> hm i have problems with my binding, i could pinpoint it to a function in the C-API with RCLASS_SUPER ... the problem i have which that, since when does that return an Enumerable or something like that? because i got a included module instead of the parent class i suspected ...
ta has quit [Ping timeout: 244 seconds]
kiyote23 has joined #ruby-lang
lapide_viridi has joined #ruby-lang
marr has quit [Ping timeout: 245 seconds]
mcclurmc has joined #ruby-lang
kiyote23 has quit [Ping timeout: 255 seconds]
tmi1 has joined #ruby-lang
mcclurmc has quit [Ping timeout: 244 seconds]
bmichelsen has joined #ruby-lang
yfeldblum has joined #ruby-lang
ledestin has joined #ruby-lang
rbrs has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
lapide_viridi has quit [Quit: Leaving]
charliesome has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
hakunin has quit []
rbrs has joined #ruby-lang
yock has joined #ruby-lang
micmus has quit [Ping timeout: 256 seconds]
yusuf1 has quit [Quit: Leaving.]
yock has quit [Ping timeout: 244 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
Miphix has joined #ruby-lang
ta has joined #ruby-lang
dagda1 has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
tmi1 has quit [Quit: Leaving.]
Blackhol_ has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
fclausen has joined #ruby-lang
<haarchri> mhm when i "Push" ifconfig to the scan with an string ... the match_array is empty :/ https://eval.in/238333 .. output is []
<ljarvis> haarchri: check that 'str' actually has `P-t-P`
<ljarvis> my ifconfig for example does not
Thecrazylumberja has joined #ruby-lang
Thecrazylumberja has quit [Client Quit]
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_> \K ?
tmi1 has joined #ruby-lang
<apeiros_> haarchri: if you gist the contents of ifconfig along with the output you expect, we can help better.
<ljarvis> apeiros_: scroll up
* apeiros_ yawns & scrolls
<apeiros_> good morning btw.
<ljarvis> psh it's past morning where you live
fclausen has quit [Ping timeout: 272 seconds]
<apeiros_> if you go to sleep at 0500, it is morning
<ljarvis> :)
<ljarvis> that's late
<ljarvis> working or partying?
<apeiros_> holidays
<apeiros_> happens every time
<apeiros_> hm, don't see an explanation of \K, but found the contents :)
<apeiros_> didn't find the expected output either :-|
<apeiros_> egg & beacon? hmmm…
<ljarvis> am now hungry
<apeiros_> btw. ljarvis - do you have an opinion on postgres composite types vs. just using multiple columns? I'm experimenting and not quite sure I like composite types.
marr has joined #ruby-lang
<ljarvis> apeiros_: I think composite types are useful, but most people will just reach for multiple columns. Not really a reason to use one or the other really, though
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
mcclurmc has joined #ruby-lang
<ljarvis> plus extracting composite columns is a bit ugly imo
<apeiros_> so far the only advantage I see is that it makes it easier to figure what belongs together
<apeiros_> on the other hand, it makes it a lot harder to use things like bind variables
<ljarvis> yep
<apeiros_> I mean, I solved that part, but it made the code a bit more complex
iamninja has quit [Quit: ZZZzzz…]
mcclurmc has quit [Ping timeout: 240 seconds]
<Hanmac> apeiros_: i remember long time ago there was a snack which has the three most important eating stuff inside and all begins with B, it had "Beef, Beans and Beacon" ;P
<ljarvis> :/
<apeiros_> any column types you wish you had native support for by the orm?
<ljarvis> what do they currently support? just all simple types?
<apeiros_> https://gist.github.com/apeiros/27b7473b5deb33e59731 that's a model with all currently supported types
<apeiros_> file is a composite of exists:boolean, name:varchar, path:varchar, size:bigint, content_type:varchar, fingerprint:varchar, updated_at:timestamp with time zone
<apeiros_> money is a composite of amount:decimal, currency:varchar(3). pondering on whether I should use money instead of decimal
<apeiros_> json uses pg's jsonb type. the rest is self explanatory I guess
<ljarvis> right, you got more than I expected already
<apeiros_> ah, password.unencrypted is only available when you assigned the plaintext pw to it
<ljarvis> interval is one i use often i guess
<apeiros_> it only stores the pw hash, of course
<ljarvis> then you have all the range types and net stuff, which is all probably overkill
<apeiros_> interval & net would probably be relatively easy. range seems quite hard
ta has joined #ruby-lang
<apeiros_> array types seem to be pretty hard too. at least I have no good idea on how to populate any nested ones.
<ljarvis> maybe it could be pluggable? the geo stuff could also be done, but maybe it doesn't need to be in core
<apeiros_> geo is something I definitively plan to add
<ljarvis> ah ok
<apeiros_> yeah, adding more column types isn't hard. all you need to do is define the column class.
ta has quit [Ping timeout: 244 seconds]
<apeiros_> ah, the other problem with composite types: adding checks is harder
[spoiler] has quit [Quit: Leaving]
dagda1 has joined #ruby-lang
cantonic has quit [Quit: cantonic]
<ljarvis> apeiros_: maybe you should expose it to the wild before custom type like composite types ;)
<apeiros_> I'm timid ;-)
cantonic has joined #ruby-lang
g0bl1n has joined #ruby-lang
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby-lang
<ljarvis> psh
VictorBjelkholm has joined #ruby-lang
<apeiros_> haarchri: have you solved your problem yet?
ta has joined #ruby-lang
ta has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby-lang
<ljarvis> really tempted to move all my mail to fastmail...
<apeiros_> I'm still pondering on doing it on my own again. but the effort…
<ljarvis> yeah i thought about it too, but i don't have the patience. I'm happy to pay for a decent service
<apeiros_> I really dislike the idea of having so little control over something as important as email. but the advantage of e.g. googles defense mechanisms is hard to beat.
<ljarvis> agreed, i really want everything off of google, though
<ljarvis> i have an icloud account, but i'd rather have my email unassociated with everything else. Google and Apple are both "all or nothing" services
rahul_j has quit [Quit: rahul_j]
yfeldblum has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
kiyote23 has quit [Ping timeout: 272 seconds]
<yorickpeterse> darn it, seems my lame #code2014 troll attempts have not worked as much as I wanted to :<
<darix> apeiros_: postfixadmin+dovecot+postfix ... it isnt that hard anymore.
<ljarvis> yorickpeterse: you gotta be more obvious, everyone writes fortran
<apeiros_> darix: that's what I will install
<apeiros_> but not sure I will run it for all my private mail
<yorickpeterse> ljarvis: I was hoping ALGOL would do it
<apeiros_> I don't think I have the knowledge to properly "defend" my mailservers
<darix> apeiros_: mailbox.org is run by heinlein (he wrote the books for dovecot and postfix)
<darix> yorickpeterse: cobal60
<darix> cobol even
<darix> or the basic for kc85/4
<zenspider> I've done fortran in the past 10 years...
<darix> zenspider: you also have done phuby. so we didnt expect anything else
rahul_j has quit [Quit: rahul_j]
<zenspider> where done == debugged some code for my BFF who's a nuclear chemist.
<yorickpeterse> darix: COBOL was in my list
<zenspider> tho I also helped get RubyInline::Fortran working
<zenspider> so you could write your tests in ruby and run them against your fortran :)
Kingpin_ has joined #ruby-lang
<zenspider> aja was one of the 2-3 for forth
mcclurmc has joined #ruby-lang
<zenspider> oops. not forth... prolog
judofyr has joined #ruby-lang
mcclurmc has quit [Ping timeout: 264 seconds]
rippa has joined #ruby-lang
oleo__ has joined #ruby-lang
oleo is now known as Guest3962
Guest3962 has quit [Ping timeout: 245 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
oleo__ has quit [Quit: Verlassend]
ta has joined #ruby-lang
cantonic has quit [Read error: Connection reset by peer]
cantonic has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
ta has quit [Ping timeout: 265 seconds]
oleo__ has joined #ruby-lang
j4cknewt has joined #ruby-lang
TvL2386 has joined #ruby-lang
Cakey has joined #ruby-lang
Cakey has quit [Client Quit]
Cakey has joined #ruby-lang
Cakey has quit [Client Quit]
Cakey has joined #ruby-lang
Cakey has quit [Client Quit]
Cakey has joined #ruby-lang
Cakey has quit [Client Quit]
Cakey has joined #ruby-lang
Cakey has quit [Client Quit]
Cakey has joined #ruby-lang
Cakey has quit [Client Quit]
arBmind has joined #ruby-lang
dragonkh has joined #ruby-lang
dragonkh has quit [Client Quit]
dragonkh has joined #ruby-lang
dragonkh has left #ruby-lang [#ruby-lang]
duderonomy has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby-lang
Liquori has joined #ruby-lang
setanta__ has joined #ruby-lang
g0bl1n has quit [Ping timeout: 255 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
mliq has quit [Ping timeout: 291 seconds]
setanta_ has quit [Ping timeout: 291 seconds]
<yorickpeterse> TIL Pg window functions
<yorickpeterse> and they're pretty fucking cool
rahul_j has joined #ruby-lang
ta has joined #ruby-lang
camparijet has joined #ruby-lang
<yorickpeterse> "Review.select { ((count(star) / sum(count(star)).over) * 100.0).cast(:float).as(:percentage) }" dat Sequel/SQL
<yorickpeterse> <3 Sequel's virtual row blocks
camparijet has left #ruby-lang [#ruby-lang]
Iskarlar has joined #ruby-lang
oleo__ is now known as oleo
<ljarvis> ugh
ta has quit [Ping timeout: 250 seconds]
ItSANgo has joined #ruby-lang
unsymbol has quit [Ping timeout: 240 seconds]
maso has joined #ruby-lang
tkuchiki has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
mcclurmc has joined #ruby-lang
red_menace has joined #ruby-lang
rahul_j has joined #ruby-lang
unsymbol has joined #ruby-lang
unsymbol has quit [Changing host]
unsymbol has joined #ruby-lang
<yorickpeterse> ljarvis: don't you ugh me
<ljarvis> UGH
mcclurmc has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
yfeldblu_ has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 264 seconds]
stamina has joined #ruby-lang
tkuchiki has joined #ruby-lang
ta has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
yock has joined #ruby-lang
ta has quit [Ping timeout: 255 seconds]
yock has quit [Ping timeout: 250 seconds]
unsymbol has quit [Ping timeout: 245 seconds]
[spoiler] has joined #ruby-lang
iamninja has joined #ruby-lang
rahul_j has joined #ruby-lang
unsymbol has joined #ruby-lang
pepperbreath has quit [Quit: Leaving.]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
[spoiler] has quit [Read error: Connection reset by peer]
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
[spoiler] has joined #ruby-lang
[spoiler] has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 245 seconds]
spastorino has joined #ruby-lang
fusillicode has quit [Ping timeout: 250 seconds]
malconis has joined #ruby-lang
[spoiler] has joined #ruby-lang
tkuchiki has joined #ruby-lang
amystephen has joined #ruby-lang
<apeiros_> *sob*, 1500 already, and all I've done today so far was get gold in all MK8 rallies in 100ccm…
RbLeif has joined #ruby-lang
mattyohe has joined #ruby-lang
<RbLeif> I need help, I want to use the keys and values of a hash inside of a Model.new, how can I do this?
kiyote23 has joined #ruby-lang
ruby-lang645 has joined #ruby-lang
ruby-lang467 has joined #ruby-lang
ruby-lang645 has quit [Client Quit]
<apeiros_> RbLeif: what precisely do you mean by "use" and "a hash"?
<apeiros_> the attributes hash?
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nathanstitt has joined #ruby-lang
ruby-lang467 has quit [Client Quit]
<RbLeif> I want to avoid repetition when using new like this : http://puu.sh/dQH1N/9bf2a7e422.png so I want to make a hash which contains keys/values like http://puu.sh/dQHcf/25bf9d1d86.png and use them inside the AttackMode.new, something like this http://puu.sh/dQHeX/cd2de87208.png but I don't know how to do it really
mcclurmc has joined #ruby-lang
<apeiros_> *sob* pictures of code… why's that even a thing?
<apeiros_> RbLeif: gist.github.com
<apeiros_> much better than pics
<RbLeif> because I'm too lazy to paste it :(
<apeiros_> k, too lazy to look at it then
revath has quit [Ping timeout: 265 seconds]
yxhuvud has quit [Ping timeout: 240 seconds]
mcclurmc has quit [Ping timeout: 244 seconds]
<RbLeif> the code is not really useful I want to know if there is a way to put hash keys/values inside a method call, by using puts or something else
<judofyr> RbLeif: h = { id: 123 }; AttackMode.new(h) should work?
<judofyr> not sure what you're asking for?
<judofyr> you can build a hash with: options = {}; attack_modes_names.each do |key, value| options[key] = … }
<judofyr> and then call AttackMode.new(options)
<apeiros_> RbLeif: the code is relevant to understand what you're asking for, because your question alone makes little sense.
<RbLeif> I want to use the values and keys of the hash with a function inside of the Method.new https://gist.github.com/anonymous/22fabd45ceb9c121c7eb
Hanmac has quit [Ping timeout: 265 seconds]
<RbLeif> which probably looks stupid
<apeiros_> what judofyr said.
<apeiros_> you pass in objects as arguments
<apeiros_> and you can construct those objects before passing them in
<apeiros_> not sure what precisely you want to pass in, but it seems like you want: arg = {}; attack_modes_names.each do |key, value| arg[key] = column_content(node, value); end; attack_modes_data << AttackMode.new(arg)
<apeiros_> (this can be written in nicer ways - but sticking close to your code for better understanding)
<apeiros_> and puts is there to print stuff to $stdout. it's not there to "put data into a function".
dagda1 has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
<RbLeif> ok thank you I'll try it
Bwild has joined #ruby-lang
TvL2386 has quit [Read error: Connection reset by peer]
scampbell has joined #ruby-lang
shambrarian has joined #ruby-lang
ta has joined #ruby-lang
Hanmac has joined #ruby-lang
<RbLeif> apeiros_: It works, thank you !
Blackhol_ has quit [Remote host closed the connection]
nofxx has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
whippythellama has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Bwild has quit [Ping timeout: 245 seconds]
shambrarian has quit [Changing host]
shambrarian has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
enebo has joined #ruby-lang
Miphix has quit [Quit: Leaving]
ta has joined #ruby-lang
enebo has quit [Client Quit]
Bwild has joined #ruby-lang
ta has quit [Ping timeout: 256 seconds]
yxhuvud has joined #ruby-lang
ta has joined #ruby-lang
Bwild has quit [Ping timeout: 255 seconds]
ta has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: zzz]
dagda1 has joined #ruby-lang
rbrb has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby-lang
yfeldblum has joined #ruby-lang
rbrb has quit [Remote host closed the connection]
rbrb has joined #ruby-lang
rbrb has quit [Remote host closed the connection]
mcclurmc has joined #ruby-lang
rbrb has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
rbrb has quit [Read error: Connection reset by peer]
rbrb has joined #ruby-lang
rbrb has quit [Read error: Connection reset by peer]
rbrb has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
rbrb has quit [Read error: Connection reset by peer]
rbrb has joined #ruby-lang
rbrb has quit [Read error: Connection reset by peer]
rbrb has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
rbrb has quit [Remote host closed the connection]
rbrb has joined #ruby-lang
rbrb has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
rbrb has joined #ruby-lang
ruby-lang036 has joined #ruby-lang
<ruby-lang036> hello
<ruby-lang036> ok
<bradland> hiya
loincloth has joined #ruby-lang
dagda1 has joined #ruby-lang
Lewix has joined #ruby-lang
rbrb has quit [Remote host closed the connection]
yock has joined #ruby-lang
mcclurmc_ has joined #ruby-lang
mcclurmc has quit [Ping timeout: 244 seconds]
ruby-lang036 has quit [Ping timeout: 246 seconds]
yock has quit [Ping timeout: 245 seconds]
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
AmirolAhmad has joined #ruby-lang
Blackhol_ has joined #ruby-lang
arooni-mobile has joined #ruby-lang
[H]unt3r has joined #ruby-lang
maso has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
cmhobbs has joined #ruby-lang
yfeldblum has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
whippythellama has joined #ruby-lang
cornerma1 has joined #ruby-lang
mcclurmc has joined #ruby-lang
haarchri_ has joined #ruby-lang
yfeldblum has quit [Ping timeout: 258 seconds]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
haarchr__ has joined #ruby-lang
kiyote23 has joined #ruby-lang
haarch___ has joined #ruby-lang
mcclurmc_ has quit [Ping timeout: 244 seconds]
haarchri has quit [Ping timeout: 244 seconds]
ruby-lang86 has joined #ruby-lang
nathanstitt has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
haarchr__ has quit [Ping timeout: 244 seconds]
haarchri_ has quit [Ping timeout: 265 seconds]
rahul_j has joined #ruby-lang
petete has joined #ruby-lang
havenwood has joined #ruby-lang
jemc has joined #ruby-lang
petete has left #ruby-lang [#ruby-lang]
kiyote23 has quit [Remote host closed the connection]
petete has joined #ruby-lang
kiyote23 has joined #ruby-lang
benlovell has quit [Ping timeout: 265 seconds]
benlovell has joined #ruby-lang
<yorickpeterse> > open a random spec
<yorickpeterse> 428 characters on several lines
<yorickpeterse> (so everal lines with that char amount)
<yorickpeterse> ._.
petete has left #ruby-lang ["WeeChat 1.0.1"]
mostlybadfly has joined #ruby-lang
<yorickpeterse> something something line-wrapping is a difficult thing apparently
ikrima has joined #ruby-lang
migbar has joined #ruby-lang
g0bl1n has joined #ruby-lang
micmus has joined #ruby-lang
migbar has quit [Client Quit]
benlovell has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby-lang
RbLeif has quit [Read error: Connection reset by peer]
linc01n has quit [Ping timeout: 258 seconds]
awheeler has joined #ruby-lang
<apeiros_> but yorickpeterse, that would barely fill a full screen width…
linc01n has joined #ruby-lang
RbLeif has joined #ruby-lang
jemc has quit [Quit: WeeChat 1.0.1]
<ljarvis> heh
<yorickpeterse> Yup, I made a ticket for it so that when the dude who wrote it comes back from holidays we can fix it togheter
<yorickpeterse> * together
<yorickpeterse> because also a bunch of specs fail
<yorickpeterse> and the example blocks are massive
<yorickpeterse> and I have no idea what it does
yfeldblum has joined #ruby-lang
<yorickpeterse> oh ffs, the data has been copy-pasted into a bunch of other specs as well
matti has joined #ruby-lang
SHyx0rmZ has joined #ruby-lang
<yorickpeterse> I hate to play a fucking dictator at the office but it seems I need to whip people more often
<yorickpeterse> there, xdescribe all the things
Iskarlar has quit [Read error: Connection reset by peer]
jemc has joined #ruby-lang
Iskarlar has joined #ruby-lang
webhat has joined #ruby-lang
judofyr has joined #ruby-lang
stamina has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby-lang
Iskarlar has quit [Client Quit]
haarch___ has quit []
RbLeif has quit [Remote host closed the connection]
fusillicode has joined #ruby-lang
ta has joined #ruby-lang
diegoviola has joined #ruby-lang
bb010g has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
fusillicode has quit [Ping timeout: 240 seconds]
sideshowcoder has quit [Quit: Cheers!]
ta has quit [Ping timeout: 256 seconds]
<ljarvis> >> class Numeric; def !; downto(1).inject(:*); end; end; 5.!
<eval-in__> ljarvis => 120 (https://eval.in/238430)
yatish27 has joined #ruby-lang
symm- has joined #ruby-lang
hahuang62 has quit [Ping timeout: 272 seconds]
nathanstitt has quit [Quit: I growing sleepy]
nathanstitt has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Lewix has quit [Remote host closed the connection]
sideshowcoder has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
fusillicode has joined #ruby-lang
mattwildig has joined #ruby-lang
chouhoul_ has joined #ruby-lang
chouhou__ has joined #ruby-lang
chouhoul_ has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
chouhoulis has quit [Ping timeout: 244 seconds]
yock has joined #ruby-lang
RbLeif has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
mattwildig has quit [Ping timeout: 240 seconds]
jemc has quit [Ping timeout: 244 seconds]
awheeler has quit [Remote host closed the connection]
yock has quit [Ping timeout: 250 seconds]
mattwildig has joined #ruby-lang
petete has joined #ruby-lang
lapide_viridi has joined #ruby-lang
hotpancakes has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
VictorBjelkholm has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
benlovell has joined #ruby-lang
wallerdev has joined #ruby-lang
GBrawl has joined #ruby-lang
benlovell has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
[spoiler] has joined #ruby-lang
slawrence00 has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 1.0.1]
ta has joined #ruby-lang
j4cknewt_ has quit [Ping timeout: 245 seconds]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
ta has quit [Ping timeout: 256 seconds]
Iskarlar has joined #ruby-lang
arBmind1 has joined #ruby-lang
diegoviola has joined #ruby-lang
revath has joined #ruby-lang
arBmind has quit [Ping timeout: 264 seconds]
stamina has joined #ruby-lang
ur5us has joined #ruby-lang
AmirolAhmad has quit []
hahuang62 has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
chouhou__ has quit [Read error: Connection reset by peer]
hahuang62 has quit [Client Quit]
hahuang62 has joined #ruby-lang
chouhoulis has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
amystephen has quit [Ping timeout: 265 seconds]
ta has joined #ruby-lang
mcclurmc has quit [Remote host closed the connection]
kiyote23 has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
ta has quit [Ping timeout: 244 seconds]
Liquori has quit [Read error: Connection reset by peer]
j4cknewt_ has joined #ruby-lang
Liquori has joined #ruby-lang
mistym has joined #ruby-lang
j4cknewt has quit [Ping timeout: 258 seconds]
RbLeif has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 245 seconds]
yatish27 has quit [Remote host closed the connection]
ta has joined #ruby-lang
mattwildig has quit []
yfeldblum has joined #ruby-lang
RbLeif has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
Kabaka has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
yfeldblum has quit [Ping timeout: 244 seconds]
j4cknewt_ has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby-lang
__butch__ has joined #ruby-lang
micmus has quit [Ping timeout: 244 seconds]
ta has joined #ruby-lang
rbrs has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
mustmodify has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
micmus has joined #ruby-lang
kiyote23 has joined #ruby-lang
yatish27 has joined #ruby-lang
RobertBirnie has joined #ruby-lang
revath has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
tkuchiki has joined #ruby-lang
<mustmodify> Ruby geniuses... I patched Numeric so that I could set a "scale" attribute. I patched Numeric#to_s to respect that scale attribute, so I could see 20.to_s => '20' and other times 20.tap{|n| n.scale = 3}.to_s == 20.000. But now numbers are frozen. Should I create a wrapper class? Seems like a mess just for some formatting. Should I add view helpers and try to remember to use that everywhere in my app? Ouch. https://gist.github.com/mustmodify/564ec7886d
<ljarvis> mustmodify: gist is 404
<ljarvis> but without looking, don't monkeypatch
<mustmodify> must have been cut off
<mustmodify> ljarvis: Well, in Ruby 2 numerics are frozen so I can't do that anyway. It worked perfectly well, though. If I wrap it, should I just 'method missing' everything? That seems ... sloppy
tkuchiki has quit [Ping timeout: 240 seconds]
<ljarvis> mustmodify: use delegator then?
<headius> why do you need to keep the scale on the number?
<headius> mutable state on a number seems like a big risk
<judofyr> class ScaledNumber; def initialize(num, scale = 1); … end end
<ljarvis> ^ that's what I'd do
<ljarvis> separate this stuff
<judofyr> or: Scales = {}
ta has quit [Ping timeout: 265 seconds]
<mustmodify> headius: these are medical values. It doesn't make sense to report three decimal places for something that's measured on one... similarly, if I report 3 for 3.000, physicians scratch their heads and assume we were sloppy and didn't measure to the correct precision.
<judofyr> mustmodify: but do you really want to define a scale value for *every* number?
<judofyr> doesn't it work more like ranges?
<judofyr> oh, I see
<judofyr> I think
<judofyr> you get the number and the scale from some database?
RbLeif has quit []
<mustmodify> judofyr: generally we get the number ( and an associated normal range ) from one source. Then we'll convert units if needed. Each ( unit x measurement ) pair has a scale. So handgrip has scale 0, units kg. But icw has scale 1, units kg
pwnz0r has quit [Remote host closed the connection]
<mustmodify> so we have a config file just to track that.
<mustmodify> the measurements, their scales, units, optimal ranges, ...
yatish27 has quit [Remote host closed the connection]
<oddmunds> wouldnt it makes sense to make a Handgrip class?
<oddmunds> with this stuff in it?
<apeiros_> mustmodify: def scaled(scale) on Numeric which returns the string output with that precision?
<apeiros_> though, it'd mean you'd have to call it where you print instead of e.g. setting it from start
yock has joined #ruby-lang
ikrima has quit [Ping timeout: 256 seconds]
<mustmodify> apeiros_: that's probably what I'll end up doing, though there are some places where I take a scaled number and do math with it, so that'll be interesting.
<mustmodify> oddmunds: No. On top of the fact that we have 381 current "Noumena" ( kinds of measurements ), an upcoming feature is to support measurements that we haven't cataloged... and just figure out the scale based on the input.
<oddmunds> mustmodify: then make them objects, not classes?
<oddmunds> idk
yock has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
<headius> mustmodify: you should be using BigDecimals then
<headius> they preserve scale
<headius> is there a reason you're not?
<mustmodify> headius: Geez! I thought BigDecimal was frozen along with everything else!
<headius> does it matter?
<mustmodify> yes it matters because if it's frozen, you can't set attributes.
<headius> why do you need to set attributes?
<mustmodify> like
<headius> it's a number
<mustmodify> it's a number with a scale.
<headius> numbers shouldn't be mutable
<headius> yes, and every BigDecimal has an immutable scale
<mustmodify> to physicians, 3.0 != 3.000
arooni-mobile has quit [Read error: Connection timed out]
<headius> if you want to change the scale you make a new BigDecimal
<mustmodify> headius: it already has scale? That's awesome.
diegoviola has quit [Quit: WeeChat 1.0.1]
<mustmodify> headius: Thanks! That pretty much solves my whole problem.
arooni-mobile has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
<headius> it should...I'm confirming how that's handled
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
arooni-mobile has quit [Max SendQ exceeded]
arooni-mobile has joined #ruby-lang
<mustmodify> headius: Well, looks like you can do it with BigDecimal.new("3.0014").round(3)
<mustmodify> which should work.
kiyote23 has quit [Remote host closed the connection]
<headius> yeah I was hoping it would pick it up from the string
<headius> oh
<headius> nevermind, yeah
<headius> hmmm
<mustmodify> headius: Since we're storing the values as strings in the database (because many values aren't numeric) it's fine.
<headius> I'm not seeing the actual BigDecimal objects look differently
<headius> they both seem to normalize to 0.3E1
<headius> oh, my case is "3.000" with various rounding widths
<headius> btw
<mustmodify> headius: so it looks like BigDecimal doesn't store the scale (or, not that I'm seeing). More importantly, though, it isn't frozen, so I can add that.
<headius> it should store scale :-( sorry I mislead, the Java BigDecimal we use to implement it *does* preserve scale
<mustmodify> In fact, I already have BigDecimal extended to do that. I assume there is some place in my app where I'm not using BigDecimals and that just finding that and switching over to BD will solve my issue.
<mustmodify> headius: damn Ruby. Maybe rubinius'es slogan should be UseJava(tm). <snark />
j4cknewt has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
bmichelsen has joined #ruby-lang
<headius> I think it would be worth a feature request to add scale preservation, if only to find out why they don't do it
marr has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
vlad_starkov has quit [Quit: ZNC - http://znc.in]
ta has joined #ruby-lang
arooni-mobile has quit [Read error: Connection timed out]
kiyote23 has joined #ruby-lang
Kingpin_ has quit []
ta has quit [Ping timeout: 258 seconds]
nertzy has joined #ruby-lang
deryl has joined #ruby-lang
pwnz0r has joined #ruby-lang
fclausen has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
g0bl1n has quit [Ping timeout: 272 seconds]
scampbell has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
j4cknewt_ has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
nertzy has quit [Quit: This computer has gone to sleep]
yock has joined #ruby-lang
yfeldblum has joined #ruby-lang
micmus has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby-lang
<[spoiler]> has anyone here tried mrbuby yet? I'm wondering because I wonder if it can be compiled with -m32
<[spoiler]> LOL Mr Buby!
<[spoiler]> mruby*
ta has joined #ruby-lang
yxhuvud has quit [Remote host closed the connection]
<headius> [spoiler]: I'd be surprised if it couldn't
ta has quit [Ping timeout: 265 seconds]
<[spoiler]> headius, I'll give it a try as soon as I get home, then :D
[spoiler] has quit [Quit: Leaving]
<headius> given that the goal was for it to be embedded in small hardware, I think it will go ok :-)
stamina has quit [Quit: WeeChat 1.0.1]
mustmodify has quit [Read error: Connection reset by peer]
<darix> does it support 8 and 16bit devices with out mmu?
micmus has joined #ruby-lang
hinbody has joined #ruby-lang
<darix> just kidding... although the no mmu part ... we had people patching lighttpd to support systems without an mmu for IoT embedded arm
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby-lang
<headius> I know someone got it running on one of the larger arduinos
<headius> that's pretty limited
wallerdev has quit [Quit: wallerdev]
michaeldeol has joined #ruby-lang
Menorah has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
ta has quit [Ping timeout: 265 seconds]
r0bby_ has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 256 seconds]
konr has joined #ruby-lang
mattwildig has joined #ruby-lang
ledestin has quit [Quit: ledestin]
postmodern has joined #ruby-lang
tkuchiki has joined #ruby-lang
Sadin has joined #ruby-lang
yxhuvud has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
pwnz0r has joined #ruby-lang
tkuchiki has quit [Ping timeout: 265 seconds]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
pwnz0r has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
yfeldblum has quit [Ping timeout: 244 seconds]
Lewix has quit [Remote host closed the connection]
Musashi007 has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
j4cknewt_ has quit [Read error: Connection reset by peer]
j4cknewt has joined #ruby-lang
lapide_viridi has joined #ruby-lang
kiyote23 has joined #ruby-lang
fusillicode has quit [Ping timeout: 264 seconds]
<darix> headius: lots of freaks out there
Lewix has joined #ruby-lang
benanne has joined #ruby-lang
<headius> heheh
<headius> indeed
yatish27 has quit []
fclausen has quit [Ping timeout: 272 seconds]
petete has quit [Ping timeout: 245 seconds]
apeiros_ has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby-lang
[spoiler] has joined #ruby-lang
mustmodify has joined #ruby-lang
hotpancakes has joined #ruby-lang
hotpancakes has quit [Client Quit]
kiyote23 has quit [Remote host closed the connection]
donove has quit [Quit: Leaving]
kiyote23 has joined #ruby-lang
yfeldblum has joined #ruby-lang
kiyote23 has quit [Remote host closed the connection]
ruby-lang86 has quit [Quit: Page closed]
yfeldblum has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby-lang
shazaum has joined #ruby-lang
diegoviola has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
dellavg_ has quit [Ping timeout: 250 seconds]
mattwildig has quit []
malconis has quit [Ping timeout: 240 seconds]
iamninja has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
mistym has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
g0bl1n has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
Forgetful_Lion has joined #ruby-lang
benanne has quit [Quit: kbai]
mattwildig has joined #ruby-lang
Lewix has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
cmhobbs has quit [Remote host closed the connection]
whippythellama has quit [Quit: whippythellama]
j4cknewt_ has joined #ruby-lang
ledestin has joined #ruby-lang
j4cknewt has quit [Read error: Connection reset by peer]
shambrarian has quit [Quit: bye!]
yock has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby-lang
yfeldblum has joined #ruby-lang
koderok has joined #ruby-lang
tkuchiki has quit [Ping timeout: 244 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
koderok has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 244 seconds]
klmlfl has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
konr has quit [Quit: Connection closed for inactivity]
chouhoulis has quit [Ping timeout: 244 seconds]
arBmind1 has quit [Ping timeout: 244 seconds]
havenwood has quit []
Lewix_ has joined #ruby-lang
kiyote23 has joined #ruby-lang
jo__ has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
matp has quit [Ping timeout: 272 seconds]
boadie_ has quit [Remote host closed the connection]
Blackhol_ has quit [Remote host closed the connection]
bmichelsen has quit [Quit: ZZZzzz…]
setanta__ has quit [Quit: Leaving]
d4rksung has joined #ruby-lang
duderonomy has joined #ruby-lang
g0bl1n has quit [Ping timeout: 256 seconds]
kiyote23 has quit [Ping timeout: 245 seconds]
red_menace has quit [Ping timeout: 256 seconds]
<ironcamel> the guy in the video ^^^ comes off as such a douchebag
<ironcamel> and obviously doesn't understand perl