<jfarmer>
But assuming you were being literal and want "0xDD" where "D" is an uppercase hex digit, sprintf is more straightforward.
starless has joined #ruby
<jfarmer>
(vs. something like "0x#{n.to_s(16).upcase}")
ghr has quit [Ping timeout: 250 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has quit [Ping timeout: 265 seconds]
<EllisTAA>
i’ve been seeing this geometric shapes on so many websites, besides looking good what is the point? is there some reference i’m not getting? http://bowery.io/
freerobby has quit [Quit: Leaving.]
veduardo has quit [Ping timeout: 265 seconds]
phutchins has quit [Ping timeout: 272 seconds]
<pontiki>
EllisTAA: i don't know, but i'm assuming it's a template thingie. I saw something about how to make them somewhere in the recent past, but i can't be arsed to go dig it up.
Musashi007 has quit [Quit: Musashi007]
<EllisTAA>
i see
ismaelga has quit [Remote host closed the connection]
balazs has joined #ruby
Kharma has quit [Ping timeout: 265 seconds]
meph has quit [Read error: Connection reset by peer]
keen___________3 has quit [Read error: Connection reset by peer]
dc has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
keen___________3 has joined #ruby
codecop has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
balazs has quit [Remote host closed the connection]
oo_ has joined #ruby
bigmac is now known as i8igmac
allcentury has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
_djbkd has quit [Remote host closed the connection]
phizzbuzz has joined #ruby
_djbkd has joined #ruby
<Aeyrix>
jfarmer: Worked for me, thanks.
ismaelga has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
ohaibbq has quit [Quit: Leaving...]
balazs has joined #ruby
govt has joined #ruby
allcentury has joined #ruby
commondream has quit [Remote host closed the connection]
<govt>
http://repl.it/qN5 : I am having trouble with an instance variable I'm defining in a module, its turning to nil somehow when I go to call methods from it
neanderslob has joined #ruby
jstanton has joined #ruby
retornam has quit [Ping timeout: 246 seconds]
<Radar>
govt: repl.it isn't loading for me. Please gist.github.com it instead
<govt>
loads just fine for me
<Radar>
That won't help me fix your problem.
<Aeyrix>
govt: Under def initialize
<Aeyrix>
@stats = CharacterStats.stats
jpfuentes2 has joined #ruby
krz has quit [Ping timeout: 255 seconds]
<govt>
I thought thats what the module was supposed to do
Musashi007 has quit [Quit: Musashi007]
<govt>
otherwise I might as well just eliminate the module entirely, and generate the stats hash from an array of the stat names for each object
preller has quit [Read error: Connection reset by peer]
Jonah11_ has joined #ruby
<pontiki>
an instance variable in a module is not directly accessible to classes that include it
fedexo has quit [Quit: No Ping reply in 180 seconds.]
robustus has quit [Read error: Connection reset by peer]
<pontiki>
what you may want in the module is a method that freezes that hash
vivekananda has joined #ruby
havenwood has joined #ruby
<Aeyrix>
govt: Let me see properly, hang on.
<Aeyrix>
Why is repl.it's formatting so bad?
<pontiki>
sorry, not freeze; memoize
Ropeney has joined #ruby
Heartmender has left #ruby ["boop~"]
mistermocha has joined #ruby
retornam has joined #ruby
<jfarmer>
govt I strongly recommend against that pattern (using instance variables as an interface between a module and the objects it's included in)
fedexo has joined #ruby
<govt>
what would ya recommend? as you can see i have no what im doing
<govt>
no idea*
twistedpixels is now known as zz_twistedpixels
<jfarmer>
Given the code as it exists, it's hard to see why a module make sense here in the first place.
BadBoy20 is now known as HotCoder
<Aeyrix>
jfarmer: I figured it was part of something larger and required the module.
<jfarmer>
Sure, maybe
krz has joined #ruby
robustus has joined #ruby
DynamicMetaFlow has joined #ruby
<jfarmer>
I'm generally good at imagining "alternate universes" where someone's code makes sense, and I don't really see it here. If every character has the same set of possible stats, plain ol' inheritance from a +Character+ base class makes the most sense.
zz_twistedpixels is now known as twistedpixels
<shadeslayer>
so, curious, does anyone know how Array::min is implemented
<shadeslayer>
I couldn't grep it in the code
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jfarmer>
shadeslayer It's defined in the numerable module
<jfarmer>
(That's info you could get from the docs.)
<jfarmer>
But more generally...
<shadeslayer>
yeah, I was merely grepping the code
<shadeslayer>
just trying to figure out why [ nil, nil ].min returns nil
<jfarmer>
Every C file that defines a class/module/whatever has a big collection of C calls at the bottom of the file that map the name of a method in Ruby-land to a C function
mistermocha has quit [Ping timeout: 258 seconds]
<jfarmer>
shadeslayer I would guess that "nil <=> nil" is a totally valid expression
bogdanteleaga has quit [Ping timeout: 256 seconds]
<jfarmer>
and returns 0
<shadeslayer>
jfarmer: yeah, but nil < nil doesn't
<shadeslayer>
so I suppose the spaceship operator is implemented in the NilClass
twistedpixels is now known as zz_twistedpixels
<jfarmer>
Sortable things in Ruby generally use <=>
<shadeslayer>
but somehow it doesn't include the Comparable module?
<shadeslayer>
right, however, with <=> and the comparable module, it'd work out
<pontiki>
be careful about treating nil as something
<shadeslayer>
pontiki: right, it's just a thought excercise at 3 AM in the morning :P
<shadeslayer>
and made me quite curious as to why it's behaving the way it is
<jfarmer>
shadeslayer Anyhow, re: finding methods starting from the C code, every file has a big list of calls that bind a Ruby name to an actual C function
zz_twistedpixels is now known as twistedpixels
<pontiki>
so does it appear any different than doing [1,1].min #=> 1 ?
RegulationD has joined #ruby
<jfarmer>
shadeslayer Using that knowledge, I know that searching for the string +"min"+ will turn up one of those rb_define_method calls
<govt>
http://repl.it/qN5/1 : reorganized into separate classes, still having same problem of nil instance variable
<Aeyrix>
govt: Look at what I pasted.
<jfarmer>
+enum_min+ isn't doing anything besides calling another C-level function depending on the argument (was the argument nil, were we given a block, etc. etc.)
freerobby has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mello has quit [Ping timeout: 265 seconds]
kinduff has joined #ruby
zotherstupidguy has joined #ruby
Musashi007_ has joined #ruby
<govt>
ive done something similar, but for whatever reason, the instance variable im defining in the base class is nil whenever i use it in the child class
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix>
govt: That's because you haven't done something similar.
kinduff_ has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
__chris has joined #ruby
s2013 has joined #ruby
<govt>
i just want the child class to recieve the instance variable, and not have to boilerplate @stats = someStatsSomewhereElse everytime I define a new player class
<jfarmer>
govt If you override +initialize+ in a subclass, the +initialize+ from the parent class will never get called
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aeyrix>
govt: ... wat
<Aeyrix>
What I pasted doesn't do that.
jstanton has quit [Ping timeout: 264 seconds]
<Aeyrix>
To define a player is a grand total of four lines.
<govt>
jfarmer: gotcha, didnt know about that
<jfarmer>
Aeyrix I think govt is just not reading you code (or not reading it closely) and is instead focused on what he's written.
<jfarmer>
(explaining, not justifying)
<govt>
i read it
<Aeyrix>
govt: What you're saying is indicating otherwise.
oo_ has quit [Remote host closed the connection]
<govt>
when I inherit a class like A < B how can I give A access to B's instance variables without having to call a separate method in initialize?
sye has joined #ruby
<shadeslayer>
jfarmer: while I'm still trying to read that min call code, any thoughts on why NilClass implements <=> but doesn't include comparable?
choke has joined #ruby
<jfarmer>
I don't know that it implements it itself; for all I know there's a base <=> defined on every object.
<govt>
if I have to go and set each subclass' instance variables to the parent class' by hand each time then there is really no point in bothering making a base class if I'm going to have boilerplate
meph has quit [Quit: Leaving.]
victorkohl has joined #ruby
<Aeyrix>
govt: ... by calling the variable?
EllisTAA has quit [Quit: EllisTAA]
choke has quit [Client Quit]
<Aeyrix>
if you did, as per my code: class PlayerCharacter < Entity; p @stats; end;
<Aeyrix>
it'd work
DynamicMetaFlow has quit [Remote host closed the connection]
Channel6 has joined #ruby
<Aeyrix>
It'd be nil, because it's not been defined until you run generate_stats(x), but it's there.
EllisTAA has joined #ruby
<noethics>
Aeyrix, ya but do you even m8
nettoweb has joined #ruby
<Aeyrix>
tbh govt I don't even know what you're asking. Your question just doesn't even line up with the code I gave you.
<Aeyrix>
The only "boilerplate" for the RandomizedCharacter class you had, in my code, is " < Entity".
<jfarmer>
He wants some "default" instance variable to be defined in every Character object he creates.
<govt>
you know, fuck it
govt has quit [Quit: Page closed]
<jfarmer>
without having to call a method or do anything special
oo_ has joined #ruby
balazs_ has joined #ruby
<Aeyrix>
jfarmer: You can do that with the #inherited method.
sye has quit [Quit: Bye!]
<shadeslayer>
jfarmer: you're probably right that Object implements <=> and would explain why NilClass doesn't include Comparable then
<shadeslayer>
jfarmer: thanks for all the help, it's been insightful, I'll try and read this C code tomorrow though :P
<jfarmer>
shadeslayer I'm with you in the sense that I think <=> should _always_ return -1, 0, or 1
ismaelga has quit [Remote host closed the connection]
<jfarmer>
but don't see how that's possible for a generically-defined <=>
<jfarmer>
My guess is that Ruby does something like...
<jfarmer>
def <=>(other); self == other ? 0 : nil; end
<shadeslayer>
well, the problem is that Object implements <=> but then it doesn't actually use <=> for implementing < , =, or >
Musashi007 has quit [Quit: Musashi007]
<shadeslayer>
so you have <=> defined, but not < and causes nil < nil to not work
<jfarmer>
In my mind that's a design choice, not a problem.
<jfarmer>
Why do we care if nil < nil works or not?
<shadeslayer>
right, just trying to understand the justification
moretti has quit [Quit: Leaving...]
<jfarmer>
I don't know; if <=> is allowed to return nil in general then I think it's fine to have it defined the way I just described.
<jfarmer>
nil could mean "not comparable" or something like that
sye has joined #ruby
<shadeslayer>
that would be what I'd prefer honestly
oo_ has quit [Ping timeout: 255 seconds]
allcentury has quit [Ping timeout: 256 seconds]
<shadeslayer>
are 2 nil's really comparable? idk ...
<Radar>
that govt fellow was charming
<Radar>
I really hope he comes back
<shadeslayer>
and apparently doesn't allow comparing None types
<noethics>
>> class A; attr_accessor :stats; def initialize; @stats = [1,2,3]; end; end; class B < a; end; b = B.new; puts b.stats
<ruboto>
noethics # => undefined local variable or method `a' for main:Object (NameError) ...check link for more (https://eval.in/373494)
<shadeslayer>
( just a observation )
choke has joined #ruby
<noethics>
>> class A; attr_accessor :stats; def initialize; @stats = [1,2,3]; end; end; class B < A; end; b = B.new; puts b.stats
<apeiros>
wow, the day has come when I had more patient than other ops :D
<baweaver>
apeiros is just a bit less trigger happy with the hammer
<Radar>
:)
<baweaver>
fair warning, same person is in elixir-lang sevenseacat
CustosLimen has quit [Max SendQ exceeded]
<Radar>
I don't take kindly to pretentious nerds who are not me.
<Radar>
baweaver: lol if you think sevenseacat has ops there (yet)
* baweaver
chokes on drink
<ex0ns>
Hahaha
<baweaver>
I figured not, but I know she's on there.
* Radar
resumes battling SOAP-ish API
<Aeyrix>
Radar: I noticed. :^)
CustosLimen has joined #ruby
<baweaver>
Radar: Poor soul
ndrei has joined #ruby
<Radar>
It isn't that bad. They return data in a mostly clean XML format, and they also provide JSON
towski_ has joined #ruby
<Radar>
The part where they return an array if there's > 1 item in the result, or just an object if there's exactly 1... well that was easy enough to work around
<Radar>
thing.is_a?(Array) ? thing : [thing]
<baweaver>
Ah, so that explains the tweet
<baweaver>
Radar: Array(thing)
<Radar>
baweaver: That won't work :)
<apeiros>
I hate that kind of anti-normalization
<Aeyrix>
The only thing stopping me suggesting that hours ago
<Aeyrix>
was assuming you'd already tried it.
<Radar>
baweaver: If thing is a Hash, that won't work.
<baweaver>
ah
<Aeyrix>
apeiros: come again?
<Radar>
(and thing is going to be either a Hash or an Array)
<baweaver>
that'd do it
<Radar>
I don't know why they do it. This is the second API this year that I've worked with that does it.
<apeiros>
Aeyrix: the "1 = object, many = array" kind of anti-normalization. I hate that.
<Radar>
I'd love an explanation.
<Aeyrix>
apeiros: I... kinda like it from a uh
<Aeyrix>
I guess from an end-user point of view.
<Aeyrix>
From a developmental point of view I can see how it'd be a problem.
<Radar>
The API is Item.json, which may return 1) a single item or 2) a list of items
<apeiros>
if it can be many, always return an array. less code paths on all sides.
<Aeyrix>
But you don't buy a carton of one drink. You buy one drink.
<Aeyrix>
If you want many drinks, you buy a carton.
<Radar>
When really they should split the API to make it Items.json return an array and Item.json return a single item.
<baweaver>
ding ding ding ^
<apeiros>
precisely. and usually when you do that you notice it's not even worth it and just use the plural :)
<Aeyrix>
Radar: We have a mutual acquaintance but I forget his name.
<Aeyrix>
He leads the Swinburne cyber haquer group, was at Ruby meetup.
<Aeyrix>
Maybe he just said he knew you, idk.
<Radar>
That isn't useful. I have a lot of acquaintances :)
<Aeyrix>
I was talking about your book on Friday.
<Radar>
Younger looking guy? Still in uni?
<Aeyrix>
Yes.
<Aeyrix>
Scraggly a/f beard.
<Radar>
I spoke to someone who fits that description at the Ruby meetup. Met him last December at the Envato party thing
<Aeyrix>
That would be him.
<Aeyrix>
He's trying to get into Envato.
* Aeyrix
is trying to help as I have a mate there.
<Radar>
He should keep trying. It's a good place so I've heard.
<Aeyrix>
Brendan was his name.
<Aeyrix>
It is, yeah.
<Radar>
I wish they were more open to hiring newbies.
<Aeyrix>
They are if you ask the right guy. :^)
<baweaver>
Radar: Curious, what do you qualify as newbie?
bluOxigen has joined #ruby
<baweaver>
I've seen it range from fresh out of college to 3-5 years exp
<Aeyrix>
baweaver: 3-5y exp in <x> is not a newbie in <x>.
<Radar>
baweaver: Someone with only a couple of months Ruby experience. They've written a basic Rails application and can demonstrate that they know at least how to write Ruby without syntax erroring all over the place.
RegulationD has quit [Ping timeout: 258 seconds]
<Radar>
Essentially: someone who's made it all the way through TWGR and Rails 4 in Action :P
* baweaver
hasn't been through R4iA
* baweaver
is being cheeky
<Radar>
of course
* Aeyrix
hasn't even looked at TWGR.
<baweaver>
Yeah, some people define Junior as anyone under 5 years
<baweaver>
The Well Grounded Rubyist
<baweaver>
decent book
<baweaver>
Practical Object Oriented Design in Ruby is a good one as well at that stage
<Radar>
indeed
sigurding has joined #ruby
GriffinHeart has joined #ruby
<baweaver>
Though I really enjoyed Raganwald's Kestrels, Quirky Birds, and Hopeless Egocentricy
<baweaver>
(functional combinators in Ruby)
<Ox0dea>
baweaver: I assume you've seen Programming with Nothing?
<baweaver>
Definitely a trip though for people not versed in Haskell
<baweaver>
Not offhand Ox0dea
* baweaver
googles it
<Ox0dea>
Tom Stuart writes FizzBuzz in, essentially, the lambda calculus.
<flughafen>
apeiros: don't ever tell radar to eat emu
unshadow has joined #ruby
KrzaQ has quit [Disconnected by services]
<apeiros>
o0
KrzaQ has joined #ruby
<apeiros>
I think I'll just not go down that rabbit hole.
<adaedra>
Tell hello to Morpheus for me, apeiros
doodleha_ has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
gr33n7007h has joined #ruby
nhhagen_ has quit []
mello has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
gr33n7007h is now known as al2o3-cr
<arup_r>
ok..
doodleha_ has quit [Read error: Connection reset by peer]
<arup_r>
apeiros: Hello!
mrsolo has quit [Quit: This computer has gone to sleep]
<arup_r>
I am doing good,,, n U ?
Zai00 has quit [Quit: Zai00]
watchtheblur has quit [Ping timeout: 258 seconds]
Zai00 has joined #ruby
<apeiros>
I'm fine
idafyaid has quit [Ping timeout: 252 seconds]
mello has quit [Ping timeout: 246 seconds]
ponga has joined #ruby
rdark has joined #ruby
TinkerTyper has quit [Ping timeout: 240 seconds]
TinkerTyper has joined #ruby
User458764 has joined #ruby
jgt has joined #ruby
doodleha_ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
rippa has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fabrice31_ has joined #ruby
senayar has joined #ruby
<adaedra>
I can't find a documentation about using Gemfiles with gem command, does someone has that?
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
doodleha_ has joined #ruby
<ljarvis>
adaedra: rubygems doesn't manage Gemfiles, bundler does
<ljarvis>
so you want bundler documentation
<adaedra>
we discussed that the other day, gem begins to have some support of it
<jhass>
is there anything beyond gem install -g?
rubie has quit [Remote host closed the connection]
doodleha_ has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 244 seconds]
<jhass>
adaedra: gem help install has a section
<jhass>
"Gem Dependency Files"
<adaedra>
Ah, here it is
<adaedra>
Thanks
fabrice31 has quit [Ping timeout: 255 seconds]
clauswitt has joined #ruby
kp666 has joined #ruby
charliesome has joined #ruby
ndrei has joined #ruby
doodleha_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
doodleha_ has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
GriffinHeart has joined #ruby
meph has joined #ruby
anisha has quit [Ping timeout: 252 seconds]
Eddieh_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
doodleha_ has joined #ruby
platzhirsch has joined #ruby
ndrei has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
<Eddieh_>
I have a Ruby gem that provides a binary that can be run from the terminal. How do I go about overriding a specific method in that binary? I already have the code that overrides the method in the library (works if I want to use the override inside my own code), but can't seem to figure out where to put it to make the binary load it :/
dionysus69 has joined #ruby
platzhirsch has left #ruby [#ruby]
ndrei has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
selu has joined #ruby
selu has quit [Client Quit]
<jhass>
binary = ruby script with a hashbang & the executable flag?
mrsolo has joined #ruby
avril14th has joined #ruby
anisha has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
fabrice31_ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
workmad3 has joined #ruby
<Eddieh_>
jhass yeah looks like it. Although I don't know what a hashbang is (very new to Ruby)
<jhass>
#!/usr/bin/ruby or something
<flughafen>
wooo ! new tires arrived
ndrei has quit [Ping timeout: 264 seconds]
<ljarvis>
#!/usr/bin/env ruby probably
<Eddieh_>
indeed it is: #!/usr/bin/env ruby
quimrstorres has joined #ruby
<jhass>
call it executable then ;P
quimrstorres has quit [Remote host closed the connection]
<jhass>
and it's no different from any other ruby file, you can do everything there to
<Aeyrix>
Technically still incorrect.
<Aeyrix>
It's a script.
<jhass>
*too
fabrice31_ has joined #ruby
<Eddieh_>
alright, awesome! thanks for the help :)
icedp has quit [Ping timeout: 265 seconds]
<apeiros>
Eddieh_: hashbang/shebang is a shell thing, not a ruby thing. it tells the shell what executable to use to run a script
<apeiros>
just fyi :)
<Eddieh_>
oooh. Cool
<Darkwater>
for completeness, a ruby script isn't a binary
<Aeyrix>
[19:20:34] <Aeyrix>It's a script.
<Aeyrix>
late
<Darkwater>
a human-unreadable, computer-readable file is often referred to as a binary
<Aeyrix>
:^)
ndrei has joined #ruby
<Darkwater>
ah, scanned too quick
<Aeyrix>
lmao you explained it more than me, probably good supplementary
<Eddieh_>
Darkwater it was included in a directory called /bin and referred to as a binary in the docs of the gem haha
fabrice31 has quit [Ping timeout: 256 seconds]
icedp has joined #ruby
<Aeyrix>
Eddieh_ wait what gem
<Aeyrix>
that sounds like
<Aeyrix>
B A D C O D I N G
<Darkwater>
yeah 'bin' has partially lost its meaning
mrmargolis has joined #ruby
<Eddieh_>
It's kramdown
<Darkwater>
mostly means 'executable files' these days
<zotherstupidguy>
whats your favourite language for building internal dsls?
<zotherstupidguy>
other than ruby.
fabrice31_ has quit [Remote host closed the connection]
<canton7>
depends what tool the dsl is for. If, say, it's a config interface for a C# tool, I'll write a custom grammar and a parser using C# libraries, etc
professor_soap has joined #ruby
fabrice31 has joined #ruby
<sevenseacat>
i dont like the term 'dsl'
RegulationD has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
<zotherstupidguy>
sevenseacat what you suggest?
<sevenseacat>
depend what you mean by it. it can mean a buttload of different things.
<zotherstupidguy>
sevenseacat inlightin me, i only know external and internal dsls!
<sevenseacat>
how can i enlighten you when you cant tell me what you want?
wjimenez5271 has joined #ruby
<zotherstupidguy>
well i thought the term DSL is well defined in the ruby community as there are "many" talks about it
<sevenseacat>
and its a term as meaningless as 'service oriented architecture'
<sevenseacat>
it can mean just about anything
kirun has joined #ruby
RegulationD has quit [Ping timeout: 272 seconds]
<zotherstupidguy>
hmmm
n008f4g_ has quit [Ping timeout: 250 seconds]
mandarinkin has joined #ruby
<zotherstupidguy>
if someone said SOA to me i would say a program talking to another program via a protocol, but now i think that a browser is also a program so a webservice talking to a browser negates the original definition
professor_soap has quit []
ndrei has joined #ruby
dseitz_ has joined #ruby
olistik has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 255 seconds]
<zotherstupidguy>
but back to the point, a DSL or a domain-speciic langauge fits nice in the much older area of domain engineering
<zotherstupidguy>
semantically i mean
Eddieh_ has quit [Read error: Connection reset by peer]
<zotherstupidguy>
jhass i didnt know about crystal before! thanks
dseitz has quit [Ping timeout: 252 seconds]
HotCoder has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Xiti` has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
peteykun has quit [Ping timeout: 272 seconds]
Xiti has quit [Ping timeout: 265 seconds]
Guest16 has joined #ruby
ahmetkapikiran has joined #ruby
flak has joined #ruby
flak is now known as Guest43972
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nfk has joined #ruby
oo__ has joined #ruby
dseitz_ is now known as dseitz
<mandarinkin>
crystal still uses 2.6G for building from source?
banister has joined #ruby
<mandarinkin>
tmp dir
banister has quit [Max SendQ exceeded]
sigurding has quit [Quit: sigurding]
Rickmasta has joined #ruby
Brock has joined #ruby
yardenbar has joined #ruby
SHyx0rmZ has quit [Ping timeout: 250 seconds]
awwaiid has quit [Ping timeout: 250 seconds]
rippa has quit [Ping timeout: 250 seconds]
oo_ has quit [Ping timeout: 250 seconds]
unreal_ has quit [Ping timeout: 250 seconds]
sumark has quit [Ping timeout: 250 seconds]
psy_ has quit [Ping timeout: 250 seconds]
armyriad has quit [Ping timeout: 250 seconds]
armyriad has joined #ruby
<jhass>
well, I guess you can reduce it by not running the checks
sumark has joined #ruby
unreal has joined #ruby
<mandarinkin>
what need to do to disable checks?
timonv has joined #ruby
psy_ has joined #ruby
gluten_hell_ has joined #ruby
anytimebutnow has joined #ruby
<jhass>
don't run make spec or makepkg --nocheck for AUR the package
ndrei has quit [Ping timeout: 244 seconds]
<mandarinkin>
can't find doc about --nocheck
<jhass>
man makepkg
senayar has quit [Remote host closed the connection]
slackbotgz has quit [Remote host closed the connection]
yqt has joined #ruby
pygospa has joined #ruby
razorgfx has quit [Client Quit]
mcpierce has quit [Ping timeout: 258 seconds]
MuffinPimp has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 258 seconds]
jobewan has quit [Ping timeout: 258 seconds]
moted has quit [Ping timeout: 258 seconds]
premera has quit [Ping timeout: 258 seconds]
j416 has quit [Ping timeout: 258 seconds]
russt has quit [Ping timeout: 258 seconds]
drizz has quit [Ping timeout: 258 seconds]
slash_nick has quit [Ping timeout: 258 seconds]
Guest46133 has quit [Ping timeout: 258 seconds]
ptierno_ has quit [Ping timeout: 258 seconds]
sumark has quit [Ping timeout: 258 seconds]
serivichi has quit [Ping timeout: 258 seconds]
Jackneill has quit [Ping timeout: 258 seconds]
Mia has quit [Ping timeout: 258 seconds]
nickjj has quit [Ping timeout: 258 seconds]
Ankhers has quit [Ping timeout: 258 seconds]
TheRealPygo has quit [Ping timeout: 258 seconds]
ziprar has quit [Ping timeout: 258 seconds]
Dopagod has quit [Ping timeout: 258 seconds]
i8igmac has quit [Ping timeout: 258 seconds]
rikai has quit [Ping timeout: 258 seconds]
bmn has quit [Ping timeout: 258 seconds]
PaulePanter has quit [Ping timeout: 258 seconds]
Luyt__ has quit [Ping timeout: 258 seconds]
cats has quit [Ping timeout: 258 seconds]
CpuID has quit [Ping timeout: 258 seconds]
yxhuvud has quit [Ping timeout: 258 seconds]
dreinull75 has quit [Ping timeout: 258 seconds]
MuffinPimp_ is now known as MuffinPimp
yxhuvvd has joined #ruby
Ankhers_ has joined #ruby
drizz_ is now known as drizz
rikai has joined #ruby
russt has joined #ruby
dfoolz has quit [Ping timeout: 258 seconds]
yh has quit [Ping timeout: 272 seconds]
cats has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bmn has joined #ruby
i8igmac has joined #ruby
Jackneill has joined #ruby
j416 has joined #ruby
dfoolz has joined #ruby
Dopagod has joined #ruby
johnny_dz has quit [Ping timeout: 258 seconds]
brandon has joined #ruby
brandon is now known as Guest27228
<mandarinkin>
seems guys with 4G memory not able install crystal
phutchins has joined #ruby
scripore has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
Fluent has left #ruby ["That's how I feel about this channel"]
jacor has quit [Read error: Connection reset by peer]
jacor has joined #ruby
haxrbyte_ has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
Papierkorb has joined #ruby
banister has joined #ruby
<jhass>
uh, I did manage on a half gig VPS
haxrbyte has joined #ruby
<jhass>
just don't build in /tmp and use --nocheck
toretore has joined #ruby
yh_ has joined #ruby
jimms has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
Guest16 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 244 seconds]
Vile` has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
doublemalt_ has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
dorei has joined #ruby
Vile` has joined #ruby
woodruffw has quit [Remote host closed the connection]
tkuchiki_ has quit [Ping timeout: 256 seconds]
yqt has quit [Ping timeout: 256 seconds]
CamonZ has joined #ruby
ag4ve has quit [Ping timeout: 248 seconds]
edwinvdgraaf has quit []
terlar has quit [Quit: WeeChat 1.2]
ringarin has joined #ruby
woodruffw has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
bosma has quit [Ping timeout: 272 seconds]
ndrei has joined #ruby
edwinvdgraaf has joined #ruby
mrmargolis has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
oo__ has quit [Remote host closed the connection]
root____4 has joined #ruby
root____4 has quit [Client Quit]
sigurding has joined #ruby
ringaring has joined #ruby
iwishiwerearobot has joined #ruby
arup_r has joined #ruby
yardenbar has joined #ruby
PaulePan1er is now known as PaulePanter
mrmargolis has quit [Ping timeout: 258 seconds]
hectortrope has joined #ruby
<yardenbar>
Hi, I'm getting "TypeError: can't convert Timestamp into Rational" when subtracting dates. the purpose is to get the # of milliseconds between two timestamps.
<jhass>
Timestamp doesn't seem to be a standard Ruby class
<adaedra>
Haha jahss
Pupeno has quit [Quit: Leaving...]
ahmetkapikiran has joined #ruby
rodfersou has joined #ruby
ringaring has quit [Quit: leaving]
dionysus69 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0/20150511103303]]
bentanweihao has quit [Remote host closed the connection]
<yardenbar>
My bad, "<TypeError: can't convert Date into Rational>", jhass
<jhass>
above stands
bruno- has quit [Read error: Connection reset by peer]
<yardenbar>
How can I convert Time.now to millisecond from epoch ?
<apeiros>
?xy
<ruboto>
I don't know anything about xy
<apeiros>
damn
<jhass>
add it!
Eddieh_ has joined #ruby
<jhass>
(I thought I had already too btw :D)
<heftig>
yardenbar: to_f
<apeiros>
!fact add xy You are asking for a specific solution to a problem, instead of asking about your problem. This will lead to bad solutions. Also see http://meta.stackexchange.com/a/66378
<ruboto>
apeiros, I will remember that xy is You are asking for a specific solution to a problem, instead of asking about your problem. This will lead to bad solutions. Also see http://meta.stackexchange.com/a/66378
<apeiros>
?xy yardenbar
<ruboto>
yardenbar, You are asking for a specific solution to a problem, instead of asking about your problem. This will lead to bad solutions. Also see http://meta.stackexchange.com/a/66378
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
ismaelga has joined #ruby
peteykun has joined #ruby
<apeiros>
but to answer your question: see Time#to_f
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
<apeiros>
note that you're probably doing it wrong if you use .to_f.
Superflat has joined #ruby
vire has joined #ruby
Eddieh__ has joined #ruby
iamninja has joined #ruby
naftilos76 has joined #ruby
Eddieh_ has quit [Ping timeout: 276 seconds]
scripore has quit [Quit: This computer has gone to sleep]
pulgolino has joined #ruby
aryaching has joined #ruby
sandelius has joined #ruby
mello has joined #ruby
pengin has joined #ruby
nfk has quit [Remote host closed the connection]
yqt has joined #ruby
<yardenbar>
apeiros, Didn't want to pollute channel. The question itself is about Logstash, calculate filter processing duration
Eddieh__ has quit [Read error: Connection reset by peer]
Eddieh_ has joined #ruby
catphish has joined #ruby
<catphish>
does ruby have a built-in mutable integer?
<apeiros>
catphish: no
Mon_Ouie has quit [Ping timeout: 256 seconds]
<yardenbar>
I'm creating a field that holds Time.now, and at the end of the processing I execute 'event['processing_time'] = (Time.now - event['start_time'])*1000'
<catphish>
i'd like to be able to: my_number++
<catphish>
apeiros: thanks, i'll make one
<apeiros>
catphish: hf
psy_ has quit [Ping timeout: 246 seconds]
<catphish>
high five?
<apeiros>
have fun
<apeiros>
high five is ^5 ;-)
<catphish>
:D
ldnunes has joined #ruby
<apeiros>
yardenbar: time - time would work. figure out what event['start_time'] truly is. e.g. using `p event['start_time']`
parduse has joined #ruby
mello has quit [Ping timeout: 265 seconds]
c355E3B has joined #ruby
<yardenbar>
apeiros, event['start_time'] is initilized with event['start_time'] = Time.now
workmad3 has quit [Ping timeout: 246 seconds]
<apeiros>
yardenbar: that would not give the error you reported.
<yardenbar>
Can you elaborate, I'm not a ruby dev, just doing some Logstash
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Darkwater>
just call it increment
alex88 has joined #ruby
<Darkwater>
or += 1
decoponio has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
<apeiros>
yardenbar: as shown above, time - time works. so you're either looking at the wrong line or event['start_time'] is not (no longer) a Time instance.
<catphish>
but you're right, for any proper modular programming, they're a terrible idea
RegulationD has joined #ruby
pengin has quit [Ping timeout: 256 seconds]
<apeiros>
catphish: instead of writing a MutableInteger class, better write a Counter class
<apeiros>
and then MyCounter.increment(key)
CustosLimen has joined #ruby
<catphish>
apeiros: that's not a bad idea, though actually i'm questioning why i need a mutable integer at all now, as long as += is atomic it doesn't matter
nonparfumee has joined #ruby
doublemalt_ has quit [Ping timeout: 265 seconds]
simi has joined #ruby
mujou has joined #ruby
wohlert has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<apeiros>
catphish: += isn't atomic. sorry.
nettoweb has joined #ruby
<catphish>
oh, i see why i had a problem, i need to create a new key in the hash, default it to zero, and increment it, all at once
RegulationD has quit [Ping timeout: 244 seconds]
<apeiros>
you know Hash.new(0), right?
<catphish>
i wanted a mutable integer so i could increment it in a threadsafe manner
<catphish>
apeiros: actually, did you have an idea for me, or were you recommending jhass's code?
<jhass>
lol, I wouldn't recommend my code
dwithers1 is now known as pl1ght
<catphish>
:)
<wasamasa>
such honesty
pl1ght has quit [Quit: WeeChat 0.4.2]
<jhass>
it was about fooling around with the syntax really
pl1ght has joined #ruby
<catphish>
this is cool: c = Hash.new(0); c[:key] += 1
allcentury has quit [Ping timeout: 264 seconds]
<catphish>
i just need a way to make the +=1 atomic
<Darkwater>
what's unatomic about it? (I don't exactly understand atomic yet)
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__chris has joined #ruby
<catphish>
Darkwater: imaging you run x +=1 simultaneously in 2 threads, an atomic version would increment the number in one operation, so after both threads has run, the result would be +2
<apeiros>
catphish: mostly just a class with an @counter = Hash.new(0), a .increment method protected by either Mutex or Monitor, and Forwardable to forward all hash methods you want
<jhass>
Darkwater: it's short for c[:key] = c[:key] + 1
<jhass>
3 method calls
<catphish>
Darkwater: but a non-atomic version would fetch the value, add one to it, then put the value back in the variable
<ljarvis>
Darkwater: if it were an atomic operation, one could assume that the value would be incremeneted without interference (for example, from another process)
<jhass>
catphish: ... if it's still the same as the old one
<exadeci>
Hello, URI.escape(path, /[^#{URI::REGEXP::PATTERN::UNRESERVED}\/]/) encodes ? and = but that creates a 404 with the url, how can I prevent that ?
<ljarvis>
+1 for a class that uses a mutex/monitor
<exadeci>
shouldn't ? and = be encoded ,
<exadeci>
?
n008f4g_ has joined #ruby
<catphish>
i could just mutex it, or not care :) no idea how expensive a mutex is
<jhass>
exadeci: encode the components manually and rebuild the URL
<Darkwater>
so how could you make a method like increment atomic?
codecop has joined #ruby
<ljarvis>
Darkwater: by wrapping it in a mutex
<apeiros>
Darkwater: wrap a mutex around the fetch+inc+store
<catphish>
oh, += is purely a syntax alias for x = x + 1, thats why you can't redefine it and why its default implementation is not atomic, i get it now
<apeiros>
catphish: correct
User458764 has joined #ruby
<ljarvis>
:)
<jhass>
there's also stuff like CPU level atomic operations, but I haven't seen interfaces in Ruby for that yet
<Darkwater>
ah, I think I understand it now
<Darkwater>
thanks
<jhass>
talking about stuff like Java's AtomicInteger, forget the general name
<Darkwater>
it sounds pretty meta
<Darkwater>
the mutex thing
<wasamasa>
jhass: wasn't that wat got intel bad headlines for not supporting it properly?
bentanweihao has joined #ruby
<jhass>
no idea
<ljarvis>
ruby has an atomic gem, so you can do `x = Atomic.new(0); x.update { |v| v += 1 }
<wasamasa>
"Unluckily, the hardware bug that prompted Intel to disable hardware transactional memory (TSX) in August 2014 is still there, and very few new models are available without the bug. So for the moment STMX will be software-only on many CPUs."
<ljarvis>
prolly
<apeiros>
jhass: I remember looking into hardware concurrency primitives ~10y ago and being surprised how f'ing little there was. I was left with the impression that software defined concurrency was more or less russian roulette with very good survival chances…
<exadeci>
jhass: you made me notice that I should have added those in params and not path ... thanks
<catphish>
i saw the atomic gem, though that still just uses a retry model of doing things
<wasamasa>
jhass: so, perhaps hardware stx is what you're looking for
<jhass>
yeah I guess
<wasamasa>
err, TSX
* wasamasa
shakes fist at acronyms
<catphish>
could make a native gem that uses a CPU increment, but i'm not going to
<catphish>
thanks for the *pointers anyway
<wasamasa>
this readme also suggests performance increases of 5x with hardware support over the software solution
__chris has quit [Quit: This computer has gone to sleep]
<ljarvis>
def
ta has joined #ruby
r4pha has quit [Quit: bye]
ta_ has quit [Ping timeout: 240 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Tamae has joined #ruby
lxsameer has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 256 seconds]
platzhirsch has joined #ruby
banister has joined #ruby
gagrio has quit [Ping timeout: 265 seconds]
[k- has joined #ruby
arup_r has joined #ruby
Rapier- has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
<platzhirsch>
yeah installing Ruby on my Raspberry, takes aaages
Jonah11_ has quit [Remote host closed the connection]
livathinos has joined #ruby
sdwrage has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mwlang has joined #ruby
CustosLimen has joined #ruby
aryaching_ has quit []
riotjones has quit [Quit: Leaving...]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
bmurt has joined #ruby
olistik_ has joined #ruby
olistik has quit [Read error: Connection reset by peer]
segfalt has joined #ruby
victorkohl has joined #ruby
qwertme has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TheMoonMaster is now known as blake
hanmac1 has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
victorkohl has quit [Client Quit]
<ljarvis>
wow I have the weirdest issue. I have a Dir glob with a sort and an assignment, ie: foo = Dir[...].sort; the specs fail due to some kind of sorting issue; however, when i add a line below with the variable in void context it works fine :|
OrbitalKitten has joined #ruby
armyriad has joined #ruby
<ljarvis>
something else must be amiss. HELLO MONDAY
yalue has joined #ruby
davedev24_ has joined #ruby
<mwlang>
ljarvis: huh? “void context”? gist some code?
<apeiros>
ljarvis: the one time I had that kind of issue (just add a line and it works) I had a syntax error which didn't raise
CamonZ has quit [Remote host closed the connection]
<apeiros>
i.e. I had an ongoing open statement, due to a trailing "," on the line before
<ljarvis>
hmm
<apeiros>
took 2 devs 15min and tons of "what what what whaaat?!?"
<jhass>
mostly backone/scss/bootstrap on the frontend side
<jhass>
hbs/haml
<zotherstupidguy>
so each dpod got its own UI?
jacor has quit [Read error: Connection reset by peer]
<jhass>
no
<jhass>
few customize it a bit
g0bl1n has quit [Quit: g0bl1n]
jacor has joined #ruby
Spami has joined #ruby
<zotherstupidguy>
wouldn't it be nicer if they were two seperate projects, one for UI and one for API?
jimms has joined #ruby
nfk|laptop has quit [Quit: yawn]
<zotherstupidguy>
UI projects attracts the UI guys
blandflakes has joined #ruby
mrmargolis has joined #ruby
<jhass>
long way to go
sdothum has joined #ruby
someword has joined #ruby
yqt has quit [Ping timeout: 250 seconds]
denver has joined #ruby
<zotherstupidguy>
jhass is this harder than just one big rails project?
<jhass>
it's not been setup that way and moving towards is a lot of work
<jhass>
we're basically doing it by porting everything to backbone/handlebars
<jhass>
you can do a lot of contributions without touching anything outside app/assets ever
chrissonar has quit [Remote host closed the connection]
yqt has joined #ruby
delianides has joined #ruby
juanpaucar has joined #ruby
<zotherstupidguy>
i like backend more, but UI guys maybe a bit scared of most server-side technologies, so if it is just UI project, the UI might have a lot of good contributions, just saying! overall i think its a great movement!!!
msgodf has quit [Remote host closed the connection]
msgodf has joined #ruby
mello has joined #ruby
balazs_ has joined #ruby
bkxd_ has quit [Quit: Reconnecting]
bkxd has joined #ruby
rocknrollmarc has quit [Remote host closed the connection]
amystephen has joined #ruby
<bootstrappm>
that loomio site looks cool
<bootstrappm>
you're contributing to diaspora jhass?
<jhass>
yeah
OrbitalKitten has quit [Ping timeout: 265 seconds]
<zotherstupidguy>
jhass in theory this can actually beat fb :) i think
workmad3 has joined #ruby
<bkxd>
is that the one where the founder committed suicide?
OrbitalKitten has joined #ruby
<jhass>
yep
Macaveli has quit [Ping timeout: 272 seconds]
mello has quit [Ping timeout: 252 seconds]
<bkxd>
ouch. yeah, seems like a cool project though
coderkevin has joined #ruby
<jhass>
ilya had similar issues like aaron
<jhass>
all I'm going to say
catcher has joined #ruby
<bkxd>
i don't know what/who ilya is
commondream has joined #ruby
<jhass>
the one that committed suicide
<catcher>
Is it possible / okay to use string interpolation in variable names?
<bkxd>
ah, i see
<jhass>
catcher: no, sounds like you want a hash
<catcher>
jhass, my goal is to reference 1 of 2 instance variables based on the method arg
<jhass>
yeah, sounds like you want a hash or perhaps a simple ternary
n008f4g_ has quit [Ping timeout: 240 seconds]
<catcher>
jhass, got it, thanks. I have a ternary now, looking for the most 'ruby way'.
balazs_ has quit [Ping timeout: 265 seconds]
joelataylor has quit [Ping timeout: 264 seconds]
<jhass>
depends
senayar has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
<catcher>
Here's the idea, which is obviously not ideal: class Foo @new_thing @old_thing; def bar(type) puts "this instance's #{type} val is @#{type}_thing"
<jhass>
show your real code and we'll tell whether it's good of theirs a nicer way
<jhass>
discussing this on fake code is useless
<jhass>
*or if
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
Macaveli has joined #ruby
kies has quit [Ping timeout: 258 seconds]
hanmac1 has quit [Quit: Leaving.]
someword has quit [Quit: Leaving.]
bkxd_ has joined #ruby
bkxd_ has quit [Client Quit]
Jonah11_ has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
enebo has joined #ruby
<dudedudeman>
have we all paid our respects to #ruby-lang this morning?
<dudedudeman>
or did i already miss that boat
<centrx>
dude man
<ccooke>
What happened to #ruby-lang?
<dudedudeman>
it redirects to here now, as of this morning
<dudedudeman>
sup centrx
<havenwood>
ccooke: Check the topic. :)
<centrx>
What!?
<bootstrappm>
what was the community split like before? or was it just random?
<dudedudeman>
we've assimilated
tjohnson has joined #ruby
<centrx>
bootstrappm, #ruby-lang was the one listed on the Ruby website
bkxd has joined #ruby
<centrx>
bootstrappm, So uniquely it had a) some guru crusty experts who refused to join #ruby and b) lots of newbies coming from the website
<dudedudeman>
which i guess makes sense, given the website is ruby-lang.org
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs_ has joined #ruby
<havenwood>
dudedudeman: Just because ruby.com is selling jewelry. ;)
bluish has joined #ruby
hector__ has quit [Ping timeout: 255 seconds]
darkf has quit [Quit: Leaving]
vivekananda has joined #ruby
umgrosscol has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
<jhass>
the issue was that we weren't able to properly moderate this channel, that has been fixed so #ruby-lang became redundant
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
fabrice31_ has quit [Remote host closed the connection]
Master44 has quit [Client Quit]
sdothum has joined #ruby
ag4ve has joined #ruby
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Remote host closed the connection]
commondream has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
iwishiwerearobot has quit [Quit: >:(]
sdothum has joined #ruby
jimms has quit [Remote host closed the connection]
PaulCapestany has joined #ruby
sdothum has quit [Client Quit]
lkba has joined #ruby
Superflat has quit [Ping timeout: 272 seconds]
snockerton has joined #ruby
jimms has joined #ruby
fuzzyhorns has quit []
dumdedum has quit [Quit: foo]
bentanweihao has quit []
sinkensabe has joined #ruby
sdothum has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m8 has joined #ruby
<shevy>
sorbo_ I assume there are always variations; I first ate Dunkin' Donuts in london
iamninja has joined #ruby
<shevy>
I always thought they to be typical UK food henceforthwith
<shevy>
and everywher else, they tasted like garbage :(
<shevy>
I could only eat it with hot chocolate though, so perhaps it was a conglomerate meal
kinduff has joined #ruby
bjornar has quit [Ping timeout: 272 seconds]
slackbotgz has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olistik_ has quit [Read error: Connection reset by peer]
olistik has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rdark has quit [Quit: leaving]
mello has joined #ruby
rdark has joined #ruby
gauke has quit [Quit: gauke]
axwel has quit [Remote host closed the connection]
slash_ni1k has quit [Changing host]
slash_ni1k has joined #ruby
slash_ni1k is now known as slash_nick
banister has joined #ruby
senayar has quit [Remote host closed the connection]
<sorbo_>
shevy: haha yeah, fair
nonparfumee has joined #ruby
GriffinHeart has joined #ruby
<sorbo_>
Tim Hortons in Canada is somehow way better than TH in the US
<sorbo_>
despite their refusal to accept my middling non-Canadian French
platzhirsch has quit [Ping timeout: 256 seconds]
<shevy>
what is Tim Hortons? I don't think I have heard that name before
jaequery has joined #ruby
<shevy>
and let's be honest here
<shevy>
people who speak french are discriminated
<shevy>
like adaedra :)
<dudedudeman>
it's the canadian version of a dunkin donuts
<shevy>
cool
<adaedra>
mmmh?
<sorbo_>
shevy: coffee & donut place
<shevy>
haha sure thing that the dudedudeman knows stuff when it centers around the topic "food"
<dudedudeman>
shutup
<dudedudeman>
lol
jpfuentes2 has joined #ruby
<dudedudeman>
:P
gauke has joined #ruby
<dudedudeman>
you're not wrong, though. my dad's a chef, and i love me some food.
mello has quit [Ping timeout: 265 seconds]
<adaedra>
I'm discriminated?
<adaedra>
Since when?
<dudedudeman>
i live in a very dangerous place to be a foodie
<shevy>
dudedudeman well, if I ever actually manage to go to canada I'll be sure to visit a Tim Hortons (weird name though... Donkin donut is such a catchy phrase...)
_ixti_ has quit [Ping timeout: 272 seconds]
parduse is now known as Guest58233
Guest58233 has quit [Ping timeout: 256 seconds]
<dudedudeman>
it's true. and i believe there are dunkin's in canada, as well
<shevy>
adaedra because of your french accent when you speak english
<sorbo_>
don't say that, you'll wake the vengeful ghost of Tim Horton
<ljarvis>
oh damn i miss timmies
dseitz has joined #ruby
<dudedudeman>
i actually went to dunkin this morning
<shevy>
you are a true dudedudemanman
<ljarvis>
dat french vanilla doe
wookiehangover has quit [Ping timeout: 256 seconds]
<dudedudeman>
if you're a coffee conisseruer(i butchered that spelling, i know) you won't like their coffee
pardusf has joined #ruby
<adaedra>
shevy: ok, whatever
jcaho has joined #ruby
platzhirsch has joined #ruby
last_staff has quit [Quit: last_staff]
dvxam has joined #ruby
<sorbo_>
dudedudeman I'm picky about coffee but I like Dunkin's
gauke has quit [Client Quit]
<sorbo_>
I loathe starbucks though
<sorbo_>
it tastes like burnt hobo urine
pengin has joined #ruby
<shevy>
lol
<dudedudeman>
haaaaa. there's a starbucks near me that has a clover machine and real niche, specialty coffees. i do like those
iamninja has quit [Read error: Connection reset by peer]
treehug8_ has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jacor has quit [Ping timeout: 265 seconds]
Ropeney has quit [Quit: Leaving]
<dvxam>
Hi everyone! I'm having a little problem right using mkmf for a home-made c++ extension. How is it possible to use two different directory : one for headers and one for implementions? If yes, how to tell mkmf#create_makefile method?
sinkensabe has quit [Remote host closed the connection]
<sorbo_>
dudedudeman I've heard good things about the clover machine but never experienced one
mrmargolis has quit [Remote host closed the connection]
<ljarvis>
also, ugh @ separating them into different folders
<ljarvis>
please reconsider that
chinmay_dd has quit [Remote host closed the connection]
<dvxam>
@thx so much @ljarvis
<dvxam>
thx @sorbo_ too ;)
<dudedudeman>
sorbo_: if you can find one, definitely check it out. it retains so much of the flavor of the original roast. starbucks actually now owns the clover company, so you can find them in some of their locations, or in coffee shops that owned them before starbucks bought them
ismaelga has quit []
delianides has quit [Remote host closed the connection]
iamninja has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<kinduff>
Morning everyone
<dudedudeman>
sup, yo!
<havenwood>
kinduff: g'mornin
<bootstrappm>
kinduff: morning!
Rickmasta has joined #ruby
<sorbo_>
dudedudeman good to know!
<kinduff>
havenwood bootstrappm :)
<bootstrappm>
anybody have a place where to upload / share their dotfiles?
pengin has quit [Remote host closed the connection]
<bootstrappm>
just looked at dotfiles.org and it has no way to signup
nonparfumee has quit [Max SendQ exceeded]
pengin has joined #ruby
jimms has quit [Remote host closed the connection]
<bootstrappm>
I'm writing some salt files (from SaltStack) and I always include Vim. I want to my include my config too but not sure where to upload it to subsequently download it from
<bootstrappm>
some palce I won't accidentally change like my s3 buckets
chinmay_dd has joined #ruby
mrsolo has joined #ruby
<wasamasa>
including vim on your production servers??
<bootstrappm>
yep, always do
<wasamasa>
that sounds like you don't deploy properly :P
<bootstrappm>
sounds like you've never had to debug on production ;)
<wasamasa>
at least according to hackernews
* wasamasa
coughs
<bootstrappm>
ahh
<dudedudeman>
could anyone help me out turning a seqel statement in to an activerecord query?
<wasamasa>
yeah, I was surprised to read about how people invest a ridiculous amount of time in making sure you don't ever change something in a non-reproducible way
<bootstrappm>
assuming you have a DreamColorMonitor model. I changed your where to a join, if you're using postgres it translates to the same thing under the hood
mrmargol_ has quit [Read error: Connection reset by peer]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
Luyt has quit [Read error: Connection reset by peer]
yh has quit [Ping timeout: 256 seconds]
<bootstrappm>
PG speaks the truth, I forgot to use the alias everywhere: DreamColorMonitor.select('dream_color_monitors.id, c.dream_color_monitor_id, tag, min(date)').joins('JOIN calibrations c ON dream_color_monitors.id = c.dream_color_monitor_id').where("date > date('now') - 90").group('tag')
<bootstrappm>
last go!
nahtnam has quit [Quit: Connection closed for inactivity]
<dudedudeman>
would it need to be .group(dream_color_monitors.id.tag)?
<bootstrappm>
hm, now that looks like an error with the actual logic of the query
<bootstrappm>
you sure that query was running fine?
lindii_ has quit [Ping timeout: 256 seconds]
<bootstrappm>
because the SQL it spit out matches the SQL in your gist now, at least (phew!)
slackbotgz has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
<bootstrappm>
well, dudedudeman, what its saying is that if your doing a GROUP BY, then all the information that identifies individual rows (like IDs) doesn't make sense in the select
<bootstrappm>
because you're grouping a ton of rows together
<bootstrappm>
so those aggregate results won't have any one specific .id
<dudedudeman>
ok, that makes sense
pengin has joined #ruby
alex88 has joined #ruby
paulcsmith has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
<dudedudeman>
bah, i'm pretty sure this sql logic is working
<dudedudeman>
:(
<dudedudeman>
i sat down with a db whiz at work and we worked through it together
bruno- has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
<bootstrappm>
yeah? have no DB to test it on?
<dudedudeman>
i'm pushing it through sqlite now
coderhs has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
<dudedudeman>
apparently i suck at sqlite3 cli stuff
<dudedudeman>
or at least, i have no clue what i'm doing
ThoMe has quit [Ping timeout: 272 seconds]
<bootstrappm>
hahah what are you trying to do
<dudedudeman>
take that original list of sql statements that i gisted to you and push them through sqlite3 cli to see if they work
Spami has quit [Quit: This computer has gone to sleep]
<bootstrappm>
also, FWIW I'm pretty sure if you remove the GROUP BY clause there that query will work in PostgreSQL
baweaver has joined #ruby
snockerton has quit [Quit: Leaving.]
<bootstrappm>
and yeah, I don't remember much of sqlite, but I'm pretty sure you can put them in a text file and "cat text_file.sql > sqlite3"
<dudedudeman>
wat
kinduff has quit [Quit: leaving]
scripore has joined #ruby
<bootstrappm>
wait dudedudeman ... are you on windows? if so that won't work, for obvious reasons hahah
<dudedudeman>
oh no, linux boy here
timonv has quit [Ping timeout: 244 seconds]
konsolebox has quit [Quit: Leaving]
<jhass>
cat file | command or just command < file
<jhass>
cat file > command is actually cp file command
<bootstrappm>
^ that, my mistake
<dudedudeman>
that definitely returns something, but i'm not sure that's what i want. lol
<bootstrappm>
also, just checked the sqlite3 --help and it takes a filename as an arg "sqlite3 text_file.sql <name_of_database>
<bootstrappm>
"
rubie has joined #ruby
casadei has quit [Remote host closed the connection]
sdwrage has quit [Quit: Leaving]
iliketurtles has joined #ruby
snockerton has joined #ruby
<dudedudeman>
meh, that's complicated. lol
<dudedudeman>
well, it's not. but now i'm trying to learn that. and am missing the sql goodness here
<mistergibson>
I have had great results from using sequel gem - makes db handling easy
delianides has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<dudedudeman>
ok, yeah. i'm in my db and it tells me there's no such column dream_color_monitors.id
<dudedudeman>
so there's a giant fail for me
snockerton has quit [Client Quit]
scripore has joined #ruby
lindii_ has joined #ruby
<bootstrappm>
gluck :)
dvxam has quit [Ping timeout: 264 seconds]
<dudedudeman>
but it's weird...
<dudedudeman>
because i'm reading/writing to that database no problems
sorbo_ has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
bb010g has quit [Quit: Connection closed for inactivity]
delianides has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
jpfuentes2 has quit [Ping timeout: 265 seconds]
<dudedudeman>
well, it could be because the dream_color_monitor_id is a column that is in my calibrations table
paulcsmith has joined #ruby
jackjackdripper has joined #ruby
<bootstrappm>
careful, dream_color_monitors.id is not the same as dream_color_monitor_id
<dudedudeman>
oh you're right
<dudedudeman>
ok, there's an id column in my dream_color_monitors table
<dudedudeman>
am i just hooking in to it wrong?
<bootstrappm>
probs yes, is the error you're getting in sqlite or postgres?
<dudedudeman>
i get the error in both
Spami has joined #ruby
phale has joined #ruby
<dudedudeman>
but sqlite3 really should be the focus, as that's truly what i'm using in production
yh has joined #ruby
<dudedudeman>
(which, i should have specified earlier and for that i am sorry)(
phale has left #ruby ["Leaving"]
<bootstrappm>
I would recommend not using sqlite in production. It's file based, you'll run into contention REALLY FAST if you have more than a few users accessing the same resources
<dudedudeman>
well, there's a total of 3 users using this app
baweaver has quit [Remote host closed the connection]
<dudedudeman>
lol
<bootstrappm>
ok cool, lets troubleshoot this sqlite thing
<bootstrappm>
gist the error
Gate has joined #ruby
<dudedudeman>
and it'll never be more than 1 of us using it
<bootstrappm>
not gonna lie to you, I really don't know what that result set means ... logically speaking hahaha
<phale>
quantum physics and astrophysics can be applie to a set of ruby programs right
Pumukel has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
charliesome has quit [Quit: zzz]
<bootstrappm>
I would be very suspicious of that data
Zai00 has quit [Quit: Zai00]
failshell has quit [Remote host closed the connection]
<bootstrappm>
phale: troll or 4realz?
<dudedudeman>
oh, the result set is monitors in the database that have calibrations from over 90 days ago
<phale>
bootstrappm: real
chinmay_dd has quit [Remote host closed the connection]
<jhass>
bootstrappm: troll
<phale>
jhass: i'll k-line him
<phale>
dont worry
shevy has quit [Ping timeout: 252 seconds]
<jhass>
say what?
Senjai has quit [Ping timeout: 245 seconds]
mrmargol_ has joined #ruby
jimms has joined #ruby
charliesome has joined #ruby
momomomomo has quit [Quit: momomomomo]
yfeldblum has quit [Read error: Connection reset by peer]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phale has left #ruby ["Leaving"]
yfeldblum has joined #ruby
mrmargolis has quit [Ping timeout: 258 seconds]
OrbitalKitten has joined #ruby
rocknrollmarc has joined #ruby
<imperator>
gem install quantum_leap
User458764 has joined #ruby
mikecmpbll has joined #ruby
casadei has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
<dudedudeman>
bootstrappm: i'm goign to have to poke around some more with this. you're a trooper for spending the last couple hours with me
<dudedudeman>
this kind of stuff can definitely wear a man out
<jhass>
dudedudeman: you've been nowhere here :P
<dudedudeman>
meaning?
<dudedudeman>
i've gotten nowhere? then yes, that's definitely true. lol
<jhass>
in the SQL hell
<dudedudeman>
not want
<dudedudeman>
lol
yaw has joined #ruby
shevy has joined #ruby
Musashi007 has joined #ruby
yaw has left #ruby [#ruby]
<dudedudeman>
jhass: i'd be lying if i said i hadn't toyed with it all weekend, either, after you got me started on working through this
shadoi has joined #ruby
Senjai has joined #ruby
mase-chatter has quit [Quit: Leaving]
finisherr has joined #ruby
baweaver has quit [Remote host closed the connection]
paulcsmith has joined #ruby
<finisherr>
Hello Folks. I’m having some issues with the Proxy object ruby koan. I’m not sure how to intercept the method calls. Do I override the send method and wrap it so I can add each method call to a message_log array or something?
scripore has quit [Quit: This computer has gone to sleep]
Vendella has joined #ruby
<Vendella>
Hey, why can't I load test/unit?
<Vendella>
require 'test/unit' fails
<centrx>
Use Minitest
<Vendella>
?
<centrx>
Test::Unit has been deprecated for a long time and it looks like it was removed in 2.2
<Vendella>
Really?
<centrx>
"Test::Unit is an implementation of the xUnit testing framework for Ruby. \ If you are writing new test code, please use MiniTest instead of Test::Unit. \ Test::Unit has been left in the standard library to support legacy test suites."
iliketurtles has joined #ruby
<Vendella>
I'm not gonna use it, I'm reading Eloquent Ruby.
<centrx>
ok
<centrx>
I mean you can install the gem, test-unit
<centrx>
or just skip over those parts in the book
<apeiros>
imperator: awesome! so I've got a reputation! :D
<apeiros>
imperator: anyway, #ruby-lang closes today. this issue will be reduced significantly. probably mostly #rubyonrails cross-posts from now on.
someword1 has joined #ruby
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
mello has joined #ruby
<Vendella>
I see. How about RSpec?
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
wallerdev has joined #ruby
iliketur_ has joined #ruby
<Vendella>
Also, are specs here to replace the artificial checking we do in statically typed languages? Such as, raise unless x.is_a?(Fixnum) etc
someword has quit [Ping timeout: 264 seconds]
givello has quit [Quit: leaving]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Palmer11 has joined #ruby
dp has joined #ruby
jerius has quit [Quit: /quit]
nofxx has joined #ruby
baweaver has quit [Remote host closed the connection]
drbrain has joined #ruby
jerius has joined #ruby
iliketurtles has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
pabs has joined #ruby
aaeron has joined #ruby
pengin has quit [Remote host closed the connection]
djbkd has joined #ruby
pabs has left #ruby [#ruby]
pabs has joined #ruby
pengin has joined #ruby
finisherr has quit [Quit: finisherr]
<dp>
hi all
<dp>
i need a little help while installing shoppe framework on ubuntu 15.04
<batasrki>
why tdd when you can switch to a statically typed language and gush about performance
baweaver has joined #ruby
<batasrki>
yes, it's sarcasm
<havenwood>
999 users
<batasrki>
but a test ain't one?
jenksy has joined #ruby
krz has quit [Ping timeout: 240 seconds]
<dfockler>
I'll just switch to rust, and starting writing tests there
<imperator>
havenwood, take one down, pass him around...
* dudedudeman
bristles with excitment
<imperator>
TDD is dead? news to me
<batasrki>
dfockler: good idea, :p
* imperator
continues writing tests
* dudedudeman
tests imperator's test
<imperator>
it's tests all the way down
<imperator>
written on the back of a turtle
bmurt has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
<batasrki>
ha, turtle
<apeiros>
999 members
bmurt has joined #ruby
<dudedudeman>
1000!!!!!!!!!!!!
<apeiros>
tadaa
<dfockler>
\o/
<imperator>
latest language i heard about was Nim
<dudedudeman>
\m/
jlast has joined #ruby
<dudedudeman>
and there was much rejoicing
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dfockler>
\o/
momomomomo has joined #ruby
finisherr has joined #ruby
<imperator>
what's the limit? doesn't it spillover to another channel at some level?
<dfockler>
spills over to ruby-lang
Rickmasta has joined #ruby
<dudedudeman>
heh
<jhass>
uh, doubt it
<MrBeardy>
think archlinux has 2000+
<bootstrappm>
o/ o/ o/!
<jhass>
I've seen 1700+
<bootstrappm>
arch is that popular? I had no idea
<jhass>
so we still have some slop at least :D
<imperator>
i thought some channels would do ##ruby ###ruby and so on
<jhass>
oh right, arch is at 2.1k
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Vendella>
Where can I learn more about specs?
baweaver has quit [Remote host closed the connection]
<Vendella>
The Eloquent Ruby explains an outdated method.
blandflakes has quit [Ping timeout: 256 seconds]
kriskropd has joined #ruby
rubie has joined #ruby
Iskarlar has joined #ruby
<imperator>
Vendella, depends on which camp you're in - minitest or rspec
fgo has quit [Ping timeout: 256 seconds]
<Vendella>
I'm not in any. Which one is preferred?
<havenwood>
Vendella: Minitest ships with Ruby and is simpler.
angry_cat has joined #ruby
blandflakes has joined #ruby
<Vendella>
I see. Well, let's go with Minitest then.
kinduff has quit [Ping timeout: 264 seconds]
Hijiri has joined #ruby
sinkensabe has quit [Remote host closed the connection]
kadoppe has quit [Ping timeout: 245 seconds]
<Vendella>
Also, can I finish Eloquent Ruby before diving into Minitest ?
kinduff has joined #ruby
<jhass>
most likely
mistym has joined #ruby
<MrBeardy>
Vendella: (on eloquent ruby) You might also want to give "Programming Ruby 1.9 & 2.0: The Pragmatic Programmers' Guide" a read, it's more recently up to date
<Vendella>
Aight, so I'm skipping the whole, "Write Specs" chapter.
sinkensabe has joined #ruby
kadoppe has joined #ruby
whippythellama has joined #ruby
<dudedudeman>
love the pickaxe book!
<Vendella>
MrBeardy, I have that book right next to me :)
sinkensabe has quit [Remote host closed the connection]
<MrBeardy>
Oh, great then :D
snockerton has joined #ruby
mistym has left #ruby ["Leaving..."]
mistym has joined #ruby
Brozo has joined #ruby
<bootstrappm>
what's new between 2.0 and 2.2 that the pickaxe book doesn't cover?
<bootstrappm>
stabby arrow?
zendrix has quit [Remote host closed the connection]
<bootstrappm>
ah nvm, 1.9
<Vendella>
Should I raw read the pickaxe book?
<Vendella>
bootstrappm, It's 1.9 and 2.0
<bootstrappm>
read it read it read it
yh has quit [Ping timeout: 250 seconds]
<miah>
its good, i liked The Well Grounded Rubyist more though
<Vendella>
Ah, I don't have that one..
Papierkorb_ has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
<dudedudeman>
i like the well grounded pragmatic programmer book
<miah>
pickaxe has some great details in it; but i found it more difficult to learn from as a ruby newbie
<MrBeardy>
wonder how many people go on that domain looking for help with their IBS
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman>
MrBeardy: i feel like that's a joke that shevy would appreciate
angry_cat has quit [Ping timeout: 265 seconds]
<imperator>
i guess i don't know http very well, sorta confused by oauth here
<Vendella>
imperator, I have a very good book on HTTP
<imperator>
basically, got a url from oauth2, paste it into browser, and it gives me a code
<Vendella>
David Gourley, Brian Totty, Marjorie Sayer, Sailu Reddy, Anshu Aggarwal HTTP- The Definitive Guide 2002
Papierkorb has quit [Ping timeout: 272 seconds]
<imperator>
catch is the code is now part of the url, not in the body
derekv has joined #ruby
clauswitt has quit [Max SendQ exceeded]
<imperator>
how do i dig that out of a response?
<imperator>
i'm using Faraday, btw
<derekv>
feeling dumb here, with rvm I followed the instructions here https://rvm.io/integration/jenkins but my build fails, it seems to be looking for the ruby specified in the .rvmrc and then failing because it tries to install it with sudo (jenkins doesn't have sudo)
dagda1 has joined #ruby
<Vendella>
Try Maxwell out.
clauswitt has joined #ruby
<imperator>
well, until i understand what it's doing, i don't think using a different http lib will matter for now
<bootstrappm>
never using CI, sorry derekv
last_staff has joined #ruby
<bootstrappm>
imperator I used to use oauth2 for something, let me refresh my memory and see if i can help
<imperator>
bootstrappm, privmsg ok?
<jhass>
?crosspost derekv
<ruboto>
derekv, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<bootstrappm>
cool imperator
bertocode has joined #ruby
<derekv>
ruboto: sorry, embarrassed here.
<MrBeardy>
Don't worry, he's a robot, he can't see your feelings
<derekv>
ok
<dudedudeman>
oh, he knows
<jhass>
also don't worry, just keep it in mind for the future ;)
txrx has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
dzejrou has joined #ruby
mrmargolis has quit [Ping timeout: 256 seconds]
<derekv>
jhass: heh, I know better anyways... just saw "post and wait" i the topic on #rvm and thought "oh, should have went right to #ruby"
BanzaiJoe has joined #ruby
<jhass>
prefix with "already asked in #rvm" and all is fine ;)
jgpawletko has joined #ruby
blueOxigen has joined #ruby
<derekv>
cool.
rikkipitt has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
symm- has joined #ruby
fujimura has joined #ruby
_seanc_ has quit [Quit: _seanc_]
<symm->
neat.
<derekv>
yep. getting help on #rvm now btw =]
rikkipitt has quit [Client Quit]
iliketur_ has quit [Quit: zzzzz…..]
sorbo_ has joined #ruby
timonv has joined #ruby
choke has joined #ruby
lennae has joined #ruby
cryptarium has quit [Ping timeout: 256 seconds]
DerisiveLogic has joined #ruby
fujimura has quit [Ping timeout: 265 seconds]
phutchins has quit [Ping timeout: 246 seconds]
Voker57 has joined #ruby
dzejrou has quit [Read error: Connection reset by peer]
edwinvdg_ has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
nettoweb has joined #ruby
mois3x has quit [Ping timeout: 244 seconds]
ttilley has joined #ruby
lennae has quit [Ping timeout: 255 seconds]
Zai00 has joined #ruby
f3lp has joined #ruby
OrbitalKitten has joined #ruby
mois3x has joined #ruby
edwinvdgraaf has joined #ruby
yfeldblum has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
rocknrollmarc has joined #ruby
kinduff has quit [Ping timeout: 245 seconds]
scripore has quit [Quit: This computer has gone to sleep]
zendrix has quit [Ping timeout: 264 seconds]
choke has joined #ruby
jaequery has joined #ruby
jackjackdripper1 has quit [Read error: Connection reset by peer]
Palmer11 has left #ruby [#ruby]
jackjackdripper has joined #ruby
Palmer11 has joined #ruby
rocknrollmarc has quit [Ping timeout: 246 seconds]
jlast has quit [Remote host closed the connection]
Axy has joined #ruby
Axy has joined #ruby
t-richards has joined #ruby
waxjar has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
thiagofm has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.1.1]
Mia has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has quit [Quit: WeeChat 1.0.1]
OrbitalKitten has quit [Ping timeout: 272 seconds]
zendrix has joined #ruby
devdazed has joined #ruby
d5sx43 has quit [Remote host closed the connection]
fgo has joined #ruby
weaksauce has quit [Ping timeout: 264 seconds]
tvw has quit [Remote host closed the connection]
_ht has quit [Quit: Konversation terminated!]
atmosx has quit [Quit: parting / quiting]
Soda has quit [Remote host closed the connection]
scripore has joined #ruby
txrx has joined #ruby
rocknrollmarc has joined #ruby
segfalt_ has joined #ruby
frem has joined #ruby
segfalt has quit [Ping timeout: 256 seconds]
segfalt_ is now known as segfalt
waxjar has joined #ruby
workmad3 has joined #ruby
sinkensabe has joined #ruby
gambl0re has joined #ruby
ta has quit [Ping timeout: 265 seconds]
alex88 has quit [Read error: Connection reset by peer]
delianides has joined #ruby
icarus has joined #ruby
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski__ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
toretore has quit [Quit: This computer has gone to sleep]
alex88 has joined #ruby
d5sx43 has joined #ruby
fgo has quit [Ping timeout: 246 seconds]
leat4 has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Read error: Connection reset by peer]
towski__ has quit [Read error: Connection reset by peer]
towski_ has quit [Ping timeout: 256 seconds]
ruby_nuby has joined #ruby
towski_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
yfeldblum has joined #ruby
drefined has joined #ruby
_seanc_ has joined #ruby
sandstrom has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
leat4 has joined #ruby
CustosLimen has quit [Max SendQ exceeded]
edwinvdgraaf has joined #ruby
circ-user-dsELh has joined #ruby
workmad3 has joined #ruby
batasrki has left #ruby [#ruby]
<ruby_nuby>
Is anyone using Neo4J.rb and ActiveRel? I'm trying to work out how 'find_or_create_by' a relationship so I can increment its weight rather than create a second, third etc relationship
arBmind has joined #ruby
kristofferR has joined #ruby
finisherr has quit [Quit: finisherr]
andereld has joined #ruby
iliketur_ has joined #ruby
mello has quit [Ping timeout: 272 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andereld has left #ruby [#ruby]
andereld has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
Channel6 has joined #ruby
kinduff has joined #ruby
iliketurtles has quit [Ping timeout: 265 seconds]
_ixti_ has joined #ruby
nobitanobi has joined #ruby
datanoise has joined #ruby
<bougyman>
.26
alex88 has quit []
nfk|laptop has joined #ruby
<nobitanobi>
If I want to check the boolean value of a hash (:success) I am doing this @my_hash.present && @my_hash[:success] - I do the .present?, because that hash can be nil. Any cleaner way of doing that?
aryaching has quit []
mrdmi has left #ruby ["Leaving"]
_seanc_ has quit [Quit: _seanc_]
CustosLimen has joined #ruby
rocknrollmarc has quit [Ping timeout: 244 seconds]
<apeiros>
nobitanobi: make sure @my_hash can't be nil
centrx has joined #ruby
<apeiros>
often there's no good reason for such things
rocknrollmarc has joined #ruby
datanoise has quit [Client Quit]
_seanc_ has joined #ruby
<apeiros>
if for some reason you can't - `@my_hash.present && @my_hash[:success]` can be shortened to `@my_hash && @my_hash[:success]`
<ruby_nuby>
nobitanobi: you can just do @my_hash[:success] as the result will be either true, or nil and nil is a falsy value
datanoise has joined #ruby
<apeiros>
ruby_nuby: their problem is @my_hash being nil. and nil[:success] will raise.
<nobitanobi>
yep
<ruby_nuby>
apeiros: my bad
<nobitanobi>
ok, will see how can I change so that var is always defined.
<ruby_nuby>
Neo4J.rb — anyone using?
dagda1 has joined #ruby
edwinvdg_ has joined #ruby
j4cknewt has joined #ruby
scripore has joined #ruby
_seanc_ has quit [Client Quit]
dfinninger has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
malconis has joined #ruby
hahuang65 has joined #ruby
edwinvdg_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
dagda1 has quit [Client Quit]
jlast has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
Limix has joined #ruby
ag4ve has quit [Ping timeout: 248 seconds]
Jackneill has quit [Remote host closed the connection]
simi has quit [Ping timeout: 256 seconds]
jlast has joined #ruby
jaequery has joined #ruby
finisherr has joined #ruby
icarus has quit [Quit: leaving]
_seanc_ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
casadei has quit []
baweaver has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
kinduff has quit [Ping timeout: 256 seconds]
Zai00 has quit [Quit: Zai00]
circ-user-dsELh has quit [Ping timeout: 264 seconds]
sdwrage has joined #ruby
finisherr has quit [Client Quit]
blackmesa has joined #ruby
finisherr has joined #ruby
Zai00 has joined #ruby
spider-mario has joined #ruby
drefined has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei has joined #ruby
d5sx43 has quit [Quit: Leaving...]
datanoise has quit [Quit: WeeChat 1.2]
Rickmasta has joined #ruby
drefined has joined #ruby
jaequery_ has joined #ruby
jaequery has quit [Ping timeout: 264 seconds]
Zai00 has quit [Quit: Zai00]
Zai00 has joined #ruby
baweaver has joined #ruby
blackmesa has quit [Quit: WeeChat 1.1.1]
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
Vendella has quit [Ping timeout: 258 seconds]
hellboy_1981 has joined #ruby
freerobby has joined #ruby
hellboy_1981 has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.1/20150513174244]]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ziioynx has quit [Quit: Connection closed for inactivity]
simi has joined #ruby
Brozo has left #ruby ["Leaving..."]
caseypat_ has quit [Ping timeout: 276 seconds]
senayar has joined #ruby
datanoise has joined #ruby
Rapier- has quit [Quit: (null)]
ChasedSpade has joined #ruby
dagda1 has joined #ruby
lele is now known as Guest24
workmad3 has quit [Ping timeout: 252 seconds]
dreinull75 has joined #ruby
phutchins has joined #ruby
sinkensabe has joined #ruby
Iskarlar has joined #ruby
qwertme has quit [Read error: Connection reset by peer]
concave has joined #ruby
choke has joined #ruby
Zai00 has quit [Quit: Zai00]
delianides has quit [Remote host closed the connection]
Vile` has quit [Quit: brb]
choke has quit [Client Quit]
<dreinull75>
is this a good idea? class A; def foo; A.new; end; end; I'm returning an instance of A inside A because I need a modified version of A. But is this a good idea? Possibly deeply nested objects et al?
workmad3 has joined #ruby
<centrx>
dreinull75, Is foo supposed to be a class method?
<dreinull75>
Arrays return modified arrays all the time
<dreinull75>
centrx no, instance method
<centrx>
Seems like a bad idea
Zai00 has joined #ruby
choke has joined #ruby
<dreinull75>
I'm using a Sequel dataset and my method returns a modified dataset. Unless I create a new instance of it it's returned as a Dataset without all the bells and whistles I've added before.
doertedev has quit [Ping timeout: 246 seconds]
Zackio has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
jgt has quit [Ping timeout: 258 seconds]
baweaver has quit [Remote host closed the connection]
datanoise has quit [Quit: WeeChat 1.2]
datanoise has joined #ruby
<ljarvis>
dreinull75: it's not a bad idea
_ixti_ is now known as ixti
<ljarvis>
I would use self.class.new though
<dreinull75>
ok, why's that?
<dreinull75>
style?
TheHodge has joined #ruby
drefined has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis>
dreinull75: mostly, just makes more sense to refer to the current class as self.class
ghr has joined #ruby
<dreinull75>
ljarvis definitely looks better than my examle
A205B064 has joined #ruby
<ljarvis>
dreinull75: might be worth showing your code, people could suggest a better way of doing something
olistik has joined #ruby
olistik_ has quit [Read error: Connection reset by peer]
codecop has quit [Remote host closed the connection]
merqlove has joined #ruby
bmurt has quit []
blackmesa has joined #ruby
<dreinull75>
ljarvis: it's nothing special. I create a Presenter class like this Presenter.new(Data.where(:x => "y")). Then inside Presenter I have a more narrow def like def narrow; self.class.new(self.where(:foo => "bar"))); end;
hectortrope has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
Xiti` has quit [Quit: Xiti`]
datanoise has quit [Ping timeout: 264 seconds]
Xiti has joined #ruby
<dreinull75>
ljarvis there's more than one of those extra filters so this just makes it easier for me to continue working with the data as expected. Without creating the Presenter again outside.
woodruffw has quit [Ping timeout: 265 seconds]
jlast has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
<ljarvis>
dreinull75: so it re-uses the existing query and builds upon it? (i.e AND query)
baweaver has quit [Remote host closed the connection]
<dreinull75>
ljarvis yes, basically
last_staff has quit [Ping timeout: 265 seconds]
weaksauce has joined #ruby
nettoweb has joined #ruby
<ljarvis>
dreinull75: I think that's fine, though I would probably have all of this decision making stuff in my model
mello has joined #ruby
<ljarvis>
but it's hard to comment without knowing everything. I think what you have is fine though
<wallerdev>
no more #ruby-lang?
<wallerdev>
:(
<ljarvis>
wallerdev: nope
nettoweb has quit [Client Quit]
<ljarvis>
we're one big house
<wallerdev>
sigh
<wallerdev>
i guess ill socialize with the #ruby plebs
<ljarvis>
happy sigh
<ljarvis>
aha
<wallerdev>
haha
<ljarvis>
we are one
<ljarvis>
one pleb to rule them all
jpfuentes2 has quit [Ping timeout: 256 seconds]
fujimura has joined #ruby
kirun has quit [Quit: Client exiting]
woodruffw has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Guest43972 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<centrx>
there's the rub
<merqlove>
Hello guys. I need help me with such trouble. Singletones like rails model classes save his state between http requests? Trying to fix multi tenant app. Every part of my app have access to model Tenant, which has Tenant.subdomain methods for read/write. Also I use middleware who starts before rails cache/session middlewares and save subdomain with this
<merqlove>
method. This is wrong way? I need to create something which will have call to .new every request?
m8 has quit [Quit: Sto andando via]
<ljarvis>
?ror
<ruboto>
I don't know anything about ror
<ljarvis>
?rails
<ruboto>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
MrBeardy has quit []
<dreinull75>
wallerdev were the hoi polloi
<ljarvis>
!fact add ror Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<ruboto>
ljarvis, I will remember that ror is Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
victorko_ has joined #ruby
jpfuentes2 has joined #ruby
jgt has joined #ruby
csmb has quit [Ping timeout: 255 seconds]
<merqlove>
Yeah ror and rack
mello has quit [Ping timeout: 276 seconds]
<ljarvis>
merqlove: please join #rubyonrails for rails questions
marr has joined #ruby
devyn has quit [Ping timeout: 255 seconds]
datanoise has joined #ruby
<wallerdev>
should just merge #rubyonrails next :p
dvxam has joined #ruby
* ljarvis
strikes wallerdev
devyn has joined #ruby
<merqlove>
Already, thanks
<merqlove>
Haha:)
csmb has joined #ruby
spiderbyte has quit [Ping timeout: 272 seconds]
fujimura has quit [Ping timeout: 272 seconds]
iliketur_ has quit [Read error: Connection reset by peer]
iliketurtles has joined #ruby
jpfuente_ has joined #ruby
nonparfumee has joined #ruby
idafyaid has quit [Remote host closed the connection]
jpfuentes2 has quit [Ping timeout: 245 seconds]
<merqlove>
Primary question is about Ruby classes with class << self do ... end constructions. This object have to reset its state between requests or not. Seems that not, as i see in Rubymine debugger.
<dudedudeman>
so i have three databases in my database.yml(test, development, production), and when i do rake db:create, or rake db:setup, it sets up two out of the three. It leaves out production for some reason. am i missing something important?
bricker has joined #ruby
rocknrollmarc has quit [Ping timeout: 276 seconds]
<jhass>
!ban TripleK !T 1d TripleK troll
TripleK was kicked from #ruby by ChanServ [Banned: TripleK troll]
<bootstrappm>
was just about to call you :)
* dudedudeman
is in awe and wonder
rdark has quit [Quit: leaving]
rocknrol_ has quit [Read error: Connection reset by peer]
circ-user-dsELh has joined #ruby
<dudedudeman>
so i can set my environment variable in Puma to development or test and it works great, but setting it to production fails, because obviously a production database doesn't exist yet
rocknrollmarc has joined #ruby
Takasm has joined #ruby
mujou has quit [Quit: Leaving...]
<bootstrappm>
dudedudeman IIRC that's by design. So you don't accidentally nuke your production DB
rocknrollmarc has quit [Read error: Connection reset by peer]
<bootstrappm>
do RAILS_ENV=production rake db:create and you should be good
<dudedudeman>
well... dat sinatra doe
rocknrollmarc has joined #ruby
<bootstrappm>
hm. RACK_ENV?
rocknrollmarc has quit [Read error: Connection reset by peer]
idafyaid has joined #ruby
<bootstrappm>
or alternatively try: rake db:create:all
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
<dudedudeman>
well hot damn. that did it
rocknrollmarc has quit [Read error: Connection reset by peer]
ta has quit [Read error: Connection reset by peer]
zendrix has joined #ruby
ta has joined #ruby
bollullera has left #ruby [#ruby]
pengin has quit [Remote host closed the connection]
watchtheblur has quit [Ping timeout: 256 seconds]
<merqlove>
This is gist of current question, @ljravis
pengin has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
datanoise has quit [Read error: Connection reset by peer]
brixen has quit [Ping timeout: 256 seconds]
adeponte has quit [Ping timeout: 256 seconds]
<jhass>
merqlove: that's a good property to explicitly pass around (for example set it in your rack env), doing it with global state will only give you headaches, no matter the variant
nitrix has quit [Ping timeout: 256 seconds]
aytch has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
watchtheblur has joined #ruby
aytch has joined #ruby
adeponte has joined #ruby
rocknrollmarc has joined #ruby
moretti has quit [Quit: Leaving...]
Takasm has quit [Quit: Leaving.]
jlast has quit [Remote host closed the connection]
rocknrollmarc has quit [Read error: Connection reset by peer]
brixen has joined #ruby
rocknrollmarc has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
ikbenhet has joined #ruby
circ-user-dsELh has quit [Remote host closed the connection]
<merqlove>
haha, i can't
rocknrollmarc has joined #ruby
<merqlove>
app multi-tenant
davasaurous has joined #ruby
DEA7TH has quit [Ping timeout: 264 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rocknrollmarc has quit [Read error: Connection reset by peer]
j0n3 has quit [Quit: Leaving]
rocknrollmarc has joined #ruby
jgt has quit [Ping timeout: 256 seconds]
verto has joined #ruby
rocknrollmarc has quit [Read error: Connection reset by peer]
rocknrollmarc has joined #ruby
djbkd has quit [Remote host closed the connection]
Guest71779 has joined #ruby
freerobby has quit [Quit: Leaving.]
mc_fail has joined #ruby
Iskarlar has joined #ruby
<merqlove>
jhass: i will try it now with siege :)
rocknrollmarc has quit [Read error: Connection reset by peer]
rocknrollmarc has joined #ruby
<mc_fail>
hi guys, i'm trying to use a "filesize" gem to convert gigabytes to bytes & etc, and i have the following error on it:
<mc_fail>
[2015-06-02T01:11:42+03:00] ERROR: /usr/lib/ruby/gems/1.8/gems/filesize-0.1.0/lib/filesize.rb:6: odd number list for Hash
rocknrollmarc has quit [Read error: Connection reset by peer]
jmhmccr has joined #ruby
<mc_fail>
does it really has a mistake in gem code?
rocknrollmarc has joined #ruby
baweaver has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 258 seconds]
<jhass>
probably, why not *1024**3
<jhass>
also why are you still using Ruby 1.8?
Kricir has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rocknrollmarc has quit [Read error: Connection reset by peer]
rocknrol_ has joined #ruby
rocknrol_ has quit [Read error: Connection reset by peer]
kies has quit [Ping timeout: 272 seconds]
thiagofm has quit [Remote host closed the connection]
Takasm has joined #ruby
<mc_fail>
jhass because i'd like to specify size in user-friendly format, like 500MB, and i'm lazy enought to avoid rewriting code
volkk has joined #ruby
axl_ has quit [Quit: axl_]
iliketurtles has quit [Quit: zzzzz…..]
<jhass>
ah, didn't sound like that
volkk has left #ruby [#ruby]
Musashi007 has joined #ruby
DLSteve has quit [Quit: Leaving]
Xiti` has joined #ruby
<shevy>
whoa
umgrosscol has quit [Quit: Quit]
<shevy>
freshmeat.net died?
<jhass>
I see
<miah>
freshmeat dead a while ago
<jhass>
mc_fail: simply incompatible with your dead version of Ruby
kfpratt has joined #ruby
<shevy>
hmm I see
<mc_fail>
jhass ok, i guess i should just try an older version of gem...
tubbo has quit [Ping timeout: 250 seconds]
<jhass>
mc_fail: no, wrong approach
<shevy>
I am slower than a coding poodle
northfurr has quit [Quit: northfurr]
commondream has joined #ruby
<jhass>
mc_fail: 1.8 is dead, it's successor 1.9 is dead, 2.0 will die on February 2016
<jhass>
you should update your Ruby version
northfurr has joined #ruby
jud^ has joined #ruby
<shevy>
you are so negative jhass!
<jhass>
what's negative about getting them to an supported Ruby version?
<shevy>
you speak about death
<mc_fail>
jhass updating ruby is pain
caseypatrickdris has quit [Remote host closed the connection]
<jhass>
mc_fail: only because you didn't do it for such a long time
rocknrollmarc has joined #ruby
iliketurtles has joined #ruby
Xiti has quit [Ping timeout: 256 seconds]
headius has quit [Ping timeout: 256 seconds]
<shevy>
mc_fail well the error seems to be at the least not very logical
rocknrollmarc has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
<shevy>
ruby loves key->value associations, so it's weird if you provide just a key but no value for it
rocknrollmarc has joined #ruby
<jhass>
shevy: it's Ruby 1.9 hash syntax with uppercase key, Ruby 1.8 is just confused about it
queequeg1 has quit [Ping timeout: 256 seconds]
rocknrollmarc has quit [Read error: Connection reset by peer]
<mc_fail>
jhass if i have somethig works perfectly, why i should waste time to update it just because developers destroyed compatibility with older versions?
<shevy>
oh, then that is even easier to change
ur5us has quit [Remote host closed the connection]
dvxam has joined #ruby
leat4 has quit [Ping timeout: 256 seconds]
kadoppe has quit [Ping timeout: 256 seconds]
rocknrollmarc has joined #ruby
tenseiten has joined #ruby
tenseiten has joined #ruby
queequeg1 has joined #ruby
<shevy>
all you have to do is to re-package that gem with backwards compatible syntax
mansel has quit [Ping timeout: 264 seconds]
seitensei has quit [Read error: Connection reset by peer]
DerisiveLogic has quit [Ping timeout: 264 seconds]
vcoinminer has quit [Ping timeout: 256 seconds]
nisstyre has quit [Ping timeout: 256 seconds]
leat4 has joined #ruby
jud has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby
mansel_ has joined #ruby
<jhass>
mc_fail: because there are no more security updates, if somebody finds a major security issue in 1.8 (a minor one is already known), you'll have to backport a patch for 1.8 on your own or do the update to a major Ruby version as a security patch
gregf has quit [Quit: WeeChat 1.1.1]
<mc_fail>
shevy is there any tools for such kind of repacking?
baweaver has joined #ruby
kadoppe has joined #ruby
vcoinminer has joined #ruby
headius has joined #ruby
<shevy>
mc_fail not sure. There are probably not many people who need it, so you may have a niche there. Basically, if the error is really only about :foo => 'bar' versus foo: 'bar' then writing the code that does such a change back should not be impossible to write
baroquebobcat has quit [Quit: baroquebobcat]
<jhass>
that's only one easy symptom of a much larger problem here
<shevy>
that is your statement here, why should it be valid for anyone else? are you seeking to convince him?
<jhass>
yes, in fact I do
<shevy>
I mean what is your problem if he wants to use an old ruby version?
<bootstrappm>
you know whats annoying? new syntax when constructing mongodb queries in ruby. {$operator: {key: 'val'} } does not work
baroquebobcat has joined #ruby
<mc_fail>
jhass i'm using ruby only with chef\puppet, i don't think security in code there is really important, also i have fedora16 with an old kernel on thousland of servers, and update ruby means update fedora, which is impossible
yqt has quit [Ping timeout: 252 seconds]
DerisiveLogic has joined #ruby
Zai00 has quit [Quit: Zai00]
moretti has joined #ruby
<miah>
good thing you dont have to pass pci
<jhass>
mc_fail: that's sad. I hope I'll never have to be your customer then.
<bootstrappm>
mc_fail are you using system ruby?
rocknrol_ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
rocknrollmarc has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
fgo has joined #ruby
djbkd has joined #ruby
DEA7TH has joined #ruby
nisstyre has joined #ruby
enebo has joined #ruby
rocknrollmarc has joined #ruby
banister has joined #ruby
<baweaver>
As a DevOps / Infrastructure Automation / Security person, I have to say that's a horrible mindframe to have mc_fail
<shevy>
mc_fail when you have the .gemspec file of a gem, you can unpack the gem via "gem unpack *.gem", or the name, then change the necessary files in question, and then rebuild the gem: "gem build *.gemspec". if the gem is https://rubygems.org/gems/filesize then it is so tiny, 6 KB, that you can finish in like 5 minutes or so :P note that the gem has not been updated in 6 years
_seanc_ has joined #ruby
enebo has quit [Client Quit]
<shevy>
ohhhh
<shevy>
it's dominikh right?
rocknrollmarc has quit [Read error: Connection reset by peer]
<shevy>
I think he may hang out on #ruby-lang
rocknrollmarc has joined #ruby
<shevy>
cinch autor then
<jhass>
shevy: funny
<shevy>
hehe
<baweaver>
shevy: Oh, you mean the channel that no longer exi....
<shevy>
well
* baweaver
sees what he did there
<shevy>
I don't know why the guys on #ruby-lang just can not accept jhass' suggestion to move here :)))
<shevy>
I should possibly point it out more often to them
<jhass>
shevy: try joining #ruby-lang ;)
rocknrollmarc has quit [Read error: Connection reset by peer]
OtterCoder has quit [Quit: No Ping reply in 180 seconds.]
<shevy>
ack
<shevy>
* Cannot join #ruby-lang (Channel is invite only).
<shevy>
they raised their shields!
scripore has joined #ruby
davedev2_ has joined #ruby
<jhass>
yeah...
<baweaver>
didn't they make #ruby-pro out of spite?
davedev24_ has quit [Ping timeout: 245 seconds]
rocknrollmarc has joined #ruby
<shevy>
Lower your shields and surrender your ships.
<shevy>
We will add your biological and technological distinctiveness to our own.
<shevy>
lol baweaver
<jhass>
shevy: let's have another try, look at the /topic
<miah>
lol
sethetter has quit [Quit: leaving]
<shevy>
oh yeah "Welcome new users migrating from #ruby-lang!"
<shevy>
I normally never look on the topic, it's on the far left upper corner. All fun action happens at the bottom area
<miah>
why did they go +i?
yqt has joined #ruby
shawnacscott has joined #ruby
rocknrol_ has quit [Ping timeout: 252 seconds]
OtterCoder has joined #ruby
<bootstrappm>
ruby-lang sounds it should be a place for core language devs
<jhass>
shevy: miah: they've gone empty, we merged ;)
datanoise has joined #ruby
AlphaAtom has quit [Ping timeout: 258 seconds]
<zenspider>
baweaver: ruby-pro wasn't out of spite. gah... what was the one that was... -heros ? something. I remember imagining them as sitting around wearing capes
<miah>
lol
<baweaver>
Ah
rocknrollmarc has quit [Read error: Connection reset by peer]
<baweaver>
that mess
OtterCoder has quit [Client Quit]
<baweaver>
well that's a whole other can of worms then
wallerdev has joined #ruby
<zenspider>
welcome... here's your cape
rocknrollmarc has joined #ruby
<jhass>
there's ##ruby I think?
<zenspider>
because it's commercial? isn't that the distinction?
<zenspider>
I'm in ##mathematica
<shevy>
well it would be cool to have people like chris2 drbrain lianj dominikh etc... etc... etc... here
fgo has quit [Ping timeout: 245 seconds]
<centrx>
too bad shevy is still here
<jhass>
zenspider: freenode policy is #associated_with_a_project ##whatever
<centrx>
||=
<baweaver>
Did they just refuse to migrate?
<jhass>
not that it's enforced much
<shevy>
centrx I am having way too much fun with you whenever PHP is mentioned
<zenspider>
mathematica is certainly associated with a project. just not an open source one
* baweaver
ducks
<jhass>
shevy: drbrain is here (and appointed as founder), others probably just didn't run into the forward yet
<shevy>
ohhhh
<shevy>
I did not notice!
<shevy>
he was so quiet
b_hoffman has joined #ruby
<dfockler>
is his name really drb rain, as in distributed ruby rain?
<baweaver>
So we're done heckling the usage of 1.8 then?
rocknrollmarc has quit [Ping timeout: 258 seconds]
<miah>
i am too lagged to heckle
<shevy>
well not many people will use 1.8 really
<dfockler>
1.8, It's no longer great!
* baweaver
is referring to above case of it
<dfockler>
1.9, It's still fine!
<xxneolithicxx>
tell that to people still supporting RHEL 5
<shevy>
even they will eventually change!
graft has joined #ruby
graft has joined #ruby
<baweaver>
build from source
<bootstrappm>
I'm surprised people are still using 1.9, what breaks if you upgrade that to 2.0 at least?
<dfockler>
2.0, Will soon go!
<baweaver>
Very very little.
<shevy>
bootstrappm good question
<shevy>
probably some different warnings will be shown... not sure about any breaks though
arBmind1 has joined #ruby
yaw has joined #ruby
ikbenhet has quit []
datanoise has quit [Quit: WeeChat 1.2]
arBmind has quit [Ping timeout: 256 seconds]
yaw has quit [Max SendQ exceeded]
<mozzarella>
maybe they like debian
baweaver has quit [Remote host closed the connection]
Takasm has quit [Quit: Leaving.]
yaw has joined #ruby
<zenspider>
I can't stand 1.9. I'd rather use 1.8.
<zenspider>
I still test against 1.8. I don't test against 1.9 at all.
<zenspider>
I figure if it works in 2.x, it probably works in 1.9
<mozzarella>
what was wrong with 1.9? I don't remember
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yaw has quit [Max SendQ exceeded]
centrx has quit [Quit: Shutting down, Please wait...]
failshell has quit [Ping timeout: 256 seconds]
DerisiveLogic has quit [Ping timeout: 265 seconds]
kinduff has joined #ruby
kinduff has joined #ruby
failshell has joined #ruby
<bootstrappm>
IIRC character encodings were pretty annoying in 1.9.3
Brozo has joined #ruby
yaw has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
yaw has quit [Max SendQ exceeded]
<zenspider>
all of the 1.9s, but yeah.
yaw has joined #ruby
yaw has left #ruby [#ruby]
Palmer11 has quit [Quit: Palmer11]
jgpawletko has quit [Quit: jgpawletko]
<zenspider>
the fact that 1.9.0 & 1.9.1 were never really production ready (yet, people tried) and 1.9.2 was buggy as fuck and hard to build... encodings were just awful and not nearly as transparent as they are in 2.x... lots. really. I would like that era to be dead and gone
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neanderslob has joined #ruby
dfinninger has quit [Remote host closed the connection]
LMity has joined #ruby
caseypatrickdris has joined #ruby
dru` has quit [Ping timeout: 255 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
dvxam has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
moretti has quit [Quit: Leaving...]
fher503 has joined #ruby
jgpawletko has joined #ruby
<fher503>
hi everyone
mello has joined #ruby
mello has joined #ruby
<konr>
hello, my little friend
iliketurtles has quit [Quit: zzzzz…..]
jcaho has quit [Read error: Connection reset by peer]
jcaho has joined #ruby
drefined has joined #ruby
whippythellama has quit [Quit: whippythellama]
datanoise has joined #ruby
djbkd has quit [Remote host closed the connection]
fujimura has joined #ruby
jaequery_ has joined #ruby
g0rx has joined #ruby
mary5030 has quit [Ping timeout: 256 seconds]
<g0rx>
any ruby coder ?
<fher503>
yes i'm here
dopie has quit [Quit: This computer has gone to sleep]
LMity has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
mello has quit [Ping timeout: 272 seconds]
psy_ has quit [Read error: No route to host]
jaequery has quit [Ping timeout: 244 seconds]
senayar has quit [Read error: Connection reset by peer]
fujimura has quit [Ping timeout: 244 seconds]
senayar has joined #ruby
iliketurtles has joined #ruby
woodruffw has quit [Quit: And then he took off.]
dfockler has quit [Remote host closed the connection]
woodruffw has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
robustus is now known as robustus|Off
mrsolo has quit [Quit: Leaving]
someword1 has quit [Quit: Leaving.]
haxrbyte has quit [Ping timeout: 276 seconds]
SalexW has joined #ruby
<g0rx>
any ruby coder ?
<havenwood>
g0rx: many ruby coders.
<g0rx>
any one
<havenwood>
g0rx: Have a question?
fher503 has quit [Ping timeout: 246 seconds]
<g0rx>
i need a coder :D
segfalt has quit [Quit: segfalt]
<bootstrappm>
g0rx: we're all coders, say something else
jimms has quit []
<miah>
ask?
<noethics>
i think he wants to hire a programmer
<bootstrappm>
yep
mois3x has joined #ruby
simi has quit [Ping timeout: 256 seconds]
<womble>
New lows in the world of recruiters.
<merqlove>
jhass: Tested, seems that both variants works well if i have not use such cleanup Middleware at the end.
vdamewood has quit [Quit: Life beckons.]
mordocai has quit [Ping timeout: 255 seconds]
<g0rx>
i need a programmer :)
<miah>
use your words, elaborate.
<kinduff>
g0rx: for what?
<g0rx>
for coding
* womble
sings, "everybody... neeeeeeds somebody, to code!"
<g0rx>
i pay by bitcoin
<womble>
(Someone to code)
<womble>
Sounds legit.
<g0rx>
:D
<g0rx>
too much
* g0rx
slaps womble around a bit with a large trout
* g0rx
slaps womble around a bit with a large trout
<jhass>
didn't they'd have that macro
<jhass>
*think
* kinduff
understands all the queen references in the world