<woodruffw>
cagomez: a trivial subclass like that makes `rescue` blocks more explicit
<woodruffw>
even if it doesn't add any actual features/information to the exception
<woodruffw>
oh, did you mean the way it's initialized? if so, then the answer is no: those forms are identical
<cagomez>
yes, by how they are initialized. So they both raise an exception inheriting from StandardError to the caller, right?
<woodruffw>
yup, exactly right
<woodruffw>
(AFAIK the class declaration syntax is just sugar for Class.new, since classes are first-class objects anyways)
<cagomez>
Ugh, makes me want to make a PR to have all of them initialized with the same syntax
<woodruffw>
haha
<woodruffw>
i'd say it's worth it, shouldn't cause any harm ;)
<cagomez>
Hmm, maybe I will :)
<baweaver_away>
I LIVE
baweaver_away is now known as baweaver
<baweaver>
ohai
KeyJoo has quit [Ping timeout: 240 seconds]
faitswulff has quit [Remote host closed the connection]
Dirak has quit [Ping timeout: 260 seconds]
chrisarcand has quit [Ping timeout: 244 seconds]
braincrash has quit [Quit: bye bye]
planigan has quit [Ping timeout: 252 seconds]
AJA4350 has quit [Remote host closed the connection]
planigan has joined #ruby
braincrash has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
faitswulff has joined #ruby
orbyt_ has joined #ruby
_za1b1tsu_ has joined #ruby
gix has joined #ruby
faitswulff has quit [Remote host closed the connection]
chouhoulis has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
RougeR has quit [Ping timeout: 252 seconds]
quazimodo has joined #ruby
<quazimodo>
hey all
<quazimodo>
given an array of ints between -100 and 100, would be expect ruby to be 'fast' at calculating a standard deviation?
<quazimodo>
by fast i mean not going through all the method lookups and gc that could slow down other more comlpicated algorithms. Here we're just doing a little bit of floating point stuff
Azure|dc has joined #ruby
tag has quit [Quit: Connection closed for inactivity]
Sina has quit [Quit: Connection closed for inactivity]
Azure has quit [Ping timeout: 245 seconds]
creat has quit [Ping timeout: 264 seconds]
creat has joined #ruby
<baweaver>
quazimodo: Rephrase that a bit, I'm not sure I understand what you're asking
cpruitt has joined #ruby
<quazimodo>
is it worth it to delegate the calculation of standard distributions of large arrays of integers to another language
<baweaver>
Depends on how much you're working with
<quazimodo>
10million members is taking about 400ms to standard deviate here
<baweaver>
Is that acceptable?
<quazimodo>
not really, that's only for stuff matching one filter, i need to do this another 10-15 times for other graphs5
<TheBrayn>
what's the best way to handle these cases?
Dirak has quit [Ping timeout: 272 seconds]
_za1b1tsu_ has joined #ruby
Dirak has joined #ruby
Dirak has quit [Ping timeout: 260 seconds]
Dirak has joined #ruby
maufart__ has joined #ruby
aufi_ has quit [Ping timeout: 252 seconds]
Dirak has quit [Ping timeout: 252 seconds]
arup_r has quit [Remote host closed the connection]
Dirak has joined #ruby
aufi_ has joined #ruby
maufart__ has quit [Ping timeout: 260 seconds]
beefjoe has quit [Quit: <3]
Dirak has quit [Ping timeout: 252 seconds]
beefjoe has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beefjoe has quit [Client Quit]
Dirak has joined #ruby
arup_r has joined #ruby
AJA4350 has joined #ruby
Dirak has quit [Ping timeout: 240 seconds]
arup_r has quit []
Nicmavr has quit [Read error: Connection reset by peer]
Tuor has joined #ruby
Dirak has joined #ruby
Nicmavr has joined #ruby
Dirak has quit [Ping timeout: 252 seconds]
GodFather has quit [Ping timeout: 240 seconds]
Dirak has joined #ruby
Dirak has quit [Ping timeout: 245 seconds]
jcalla has joined #ruby
Dirak has joined #ruby
akem__ has quit [Remote host closed the connection]
akem__ has joined #ruby
Dirak has quit [Ping timeout: 260 seconds]
Dirak has joined #ruby
Dirak has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 260 seconds]
Dirak has joined #ruby
faitswulff has joined #ruby
bak1an has joined #ruby
Dirak has quit [Ping timeout: 240 seconds]
Dirak has joined #ruby
m27frogy has quit [Ping timeout: 252 seconds]
Dirak has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
Azure has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure|dc has quit [Ping timeout: 260 seconds]
TomyLobo has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
Dirak has joined #ruby
Dirak has quit [Ping timeout: 245 seconds]
Azure has quit [Ping timeout: 252 seconds]
NL3limin4t0r has joined #ruby
wojnar has quit [Remote host closed the connection]
Inline has joined #ruby
venmx has quit [Ping timeout: 240 seconds]
Inline has quit [Read error: Connection reset by peer]
venmx has joined #ruby
Inline has joined #ruby
Bounga has joined #ruby
Dirak has joined #ruby
jottr has joined #ruby
Dirak has quit [Ping timeout: 244 seconds]
cajone has left #ruby [#ruby]
faitswulff has quit [Remote host closed the connection]
Dirak has joined #ruby
faitswulff has joined #ruby
faitswulff has quit [Remote host closed the connection]
Dirak has quit [Ping timeout: 252 seconds]
faitswulff has joined #ruby
faitswulff has quit [Remote host closed the connection]
m27frogy has joined #ruby
RougeR has quit [Remote host closed the connection]
bmurt has joined #ruby
Dirak has joined #ruby
Dirak has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 252 seconds]
bak1an has joined #ruby
Dirak has joined #ruby
akem__ has quit [Remote host closed the connection]
Dirak has quit [Ping timeout: 264 seconds]
akem__ has joined #ruby
tdy has joined #ruby
Dirak has joined #ruby
tdy has quit [Ping timeout: 260 seconds]
yokel has quit [Remote host closed the connection]
Yxhuvud has quit [Remote host closed the connection]
yokel has joined #ruby
samort7 has joined #ruby
Dirak has quit [Ping timeout: 272 seconds]
lomex has joined #ruby
Rapture has joined #ruby
Dirak has joined #ruby
kpoman has joined #ruby
<kpoman>
Hello to everyone ! Can someone give me a tip, I am trying to do a rake migrate command and get this error (Airbrake) :project_id is required excluded from capture: DSN not set
ur5us has joined #ruby
<kpoman>
btw, rake db:create RAILS_ENV=production worked without errors
Yxhuvud has joined #ruby
Dirak has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby
Dirak has joined #ruby
Dirak has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
Dbugger has joined #ruby
Dirak has joined #ruby
Dirak has quit [Ping timeout: 272 seconds]
spiette has quit [Ping timeout: 240 seconds]
spiette has joined #ruby
aufi_ has quit [Remote host closed the connection]
Dirak has joined #ruby
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wojnar has joined #ruby
RougeR has joined #ruby
bga57 has joined #ruby
<RougeR>
anyone got experience with ruby/docker/linux. having issues with mine
<TvL2386>
if I recall correctly you are missing openssl-dev packages, so rvm builds ruby without openssl support
<RougeR>
yeah ive seen that come up a few places
<RougeR>
but i cant seem to fix it
<RougeR>
and i dont quite understand why that causes issues with the docker images i generate
<TvL2386>
but this docker container you're running: workflow_workflow-api_1, is based on some image right and that image is missing things
<TvL2386>
so something is missing in your Dockerfile
<RougeR>
no, not at all
<TvL2386>
ok
<RougeR>
rest of the dev team build from the same dockerfile
<RougeR>
ive commited my repo, theyve pulled it, they build. then i pull it onto my aws server
<RougeR>
runs fine
<RougeR>
if i build it on my laptop, it doesnt run on the aws server
Dirak has joined #ruby
<TvL2386>
I'm missing the details to understand why it works for the rest of your team, but not for you... I also don't know the difference between them building it and you. If the Dockerfile is the same, the build should be the same and the result as well :)
<RougeR>
yeah thats what i thought as well
<TvL2386>
that's the way it works :)
<RougeR>
but its not working that way
<TvL2386>
I've never seen it go differently
<TvL2386>
so something must be different
<RougeR>
weve got identical repos with identical docker images
<RougeR>
only difference is the machine doing the building
<RougeR>
and the os building it i guess
<RougeR>
just run this command
<TvL2386>
yeah I don't think that really matters much... all the build commands are run inside the docker container, which is exactly the same
<TvL2386>
it could be that the build is failing for you, because some steps silently fail for you
<RougeR>
im not building from a docker container?
ivanskie has joined #ruby
<TvL2386>
well, your Dockerfile should say "FROM ruby-2.5.1" in the top, so `docker build . -t my_image:latest` should start a docker container `ruby-2.5.1:latest`
<TvL2386>
I guess ruby-2.5.1 of course... no idea of course
<RougeR>
building from the local repo on my desktop. then pushing to the docker remote
<RougeR>
then pulling from an aws ubuntu box
<RougeR>
i dont run docker locally other than the build
Dirak has quit [Ping timeout: 244 seconds]
<TvL2386>
that's fine
<RougeR>
to build*
<TvL2386>
so you docker build and push the resulting image to a registry
<TvL2386>
other servers cann pull the image from that registry
<TvL2386>
great
<RougeR>
yes
<TvL2386>
but your build is not going well, because you are missing stuff and your colleagues don't. So something goes differently for you
<RougeR>
correct
<TvL2386>
that OPENSSL hint is a nice one
clemens3 has quit [Ping timeout: 260 seconds]
<TvL2386>
if you need OPENSSL, you should have it in your image
<RougeR>
yeah its something to do with OPENSSL
<RougeR>
well something is wrong there
ivanskie has quit [Client Quit]
<TvL2386>
so somewhere in your Dockerfile the dependencies for rvms ruby build should be installed
<RougeR>
i cant seem to even run the project locally i think
<TvL2386>
what I tend to do to troubleshoot this stuff
<RougeR>
locally i get libssl-dev is already the newest version (1.0.2g-1ubuntu4.13).
<TvL2386>
locally or inside your container
<TvL2386>
because what you locally have does not matter at all
<RougeR>
mm
<TvL2386>
anyway:
<TvL2386>
something goes wrong in your build, so lets troubleshoot that
<TvL2386>
what I would do: start the docker image which your build process is depending on
<TvL2386>
docker run --rm -it my_image /bin/bash
<TvL2386>
now you have a container running based on your build image and you're dropped in a bash shell over there
<TvL2386>
now you can simply paste in the commands you would normally have `docker build` do
<TvL2386>
1 by one
<RougeR>
reading
<TvL2386>
and see where you get strange results
<RougeR>
yeah thats not a bad result
<RougeR>
i vaugely think i can do that (im new to docker)
<TvL2386>
haha :)
<RougeR>
honestly, im an ex systems guy. just started my first dev job
<TvL2386>
just check the FROM line in your Dockerfile and replace my "my_image" with your FROM
<RougeR>
haha
<RougeR>
kk ill have a look
<RougeR>
on a sidenote
<TvL2386>
congratz on the new job
<TvL2386>
:)
tpendragon has joined #ruby
<RougeR>
im getting ssl issues when just trying to run puma
<TvL2386>
yeah but your colleagues do exactly the same thing and they don't right
<TvL2386>
that's how I interpreted the story :)
<RougeR>
thankyou r.e job :). i just write ruby n do devops now.
<RougeR>
and yes. he can build on his OSX machine with the same repo. i cant build on my linux mint machine
<RougeR>
but even as a side note puma should work...
<TvL2386>
you can build right, it's just that you have a different result right
apparition has quit [Quit: Bye]
duderonomy has quit [Ping timeout: 260 seconds]
yohji has quit [Remote host closed the connection]
kpoman1 has joined #ruby
Dirak has joined #ruby
kpoman has quit [Ping timeout: 252 seconds]
kpoman1 is now known as kpoman
RougeR has quit [Remote host closed the connection]
a1ph4g33k has joined #ruby
Dirak has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 260 seconds]
samort7 has quit [Quit: Leaving]
a1ph4g33k has left #ruby ["Leaving"]
a1ph4g33k has joined #ruby
Dirak has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
Tuor has quit [Quit: Konversation terminated!]
orbyt_ has joined #ruby
ivanskie has joined #ruby
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dirak has quit [Ping timeout: 252 seconds]
<crankharder>
anyone have a good pattern for overwriteable configuration? Where the base class has a set of configs, and subclasses can individually overwrite those configs.
Dirak has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
wojnar has quit [Remote host closed the connection]
Dirak has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby
lxsameer has joined #ruby
wojnar has joined #ruby
salasrod has quit [Quit: /quit]
chouhoulis has quit [Remote host closed the connection]
salasrod has joined #ruby
Dirak has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dirak has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
cthulchu_ has joined #ruby
elphe has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 252 seconds]
bak1an has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
cthu| has joined #ruby
MoritaShinobu has quit [Quit: Leaving]
cthulchu_ has quit [Ping timeout: 260 seconds]
NL3limin4t0r has quit [Quit: WeeChat 1.9.1]
chouhoulis has joined #ruby
elphe has joined #ruby
<Eiam>
that sounds like a generic module?
<Eiam>
or class.. you just described the gist of the design anyway? I dont follow what more you are after. declare your attributes and carry on?
SeepingN has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 252 seconds]
duderonomy has joined #ruby
conta1 has joined #ruby
chouhoulis has joined #ruby
sanscoeur has joined #ruby
Krzysiek1 has joined #ruby
cthulchu has joined #ruby
snuz has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
dinfuehr has quit [Ping timeout: 240 seconds]
reber__ has joined #ruby
cthu| has quit [Ping timeout: 252 seconds]
Technodrome has joined #ruby
dinfuehr has joined #ruby
<Krzysiek1>
Hello. I’ve visited ruby-lang.org and the first impression is that the newest stable version is 2.2. That’s because the site is displayed in Polish by default and the translation seems to be outdated. Maybe then non-translated news should also be displayed?
reber has quit [Ping timeout: 244 seconds]
cthu| has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
elphe has joined #ruby
venmx has quit [Ping timeout: 244 seconds]
ivanskie has quit [Ping timeout: 252 seconds]
cthulchu has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
ciscam has joined #ruby
cthulchu has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
brent__ has joined #ruby
chouhoulis has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
cthu| has quit [Ping timeout: 260 seconds]
Krzysiek1 is now known as KrzysiekJ
<cthulchu>
can we create async functions in native Ruby?
Sina has quit [Quit: Connection closed for inactivity]
akem has quit [Ping timeout: 260 seconds]
<baweaver>
KrzysiekJ: Good catch, I'll do some reading into where that's set up.
chouhoulis has quit [Ping timeout: 245 seconds]
<baweaver>
cthulchu: Read into GIL (Global Interpreter Lock)
elphe has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
<cthulchu>
is that a yes or a no?
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<cthulchu>
I'm not very eager to use threads
snuz has quit [Quit: WeeChat 2.2]
<cthulchu>
I don't want memory management pain
croberts has joined #ruby
agent_white has joined #ruby
elphe has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
lxsameer has joined #ruby
SeepingN has joined #ruby
akem has joined #ruby
elphe has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
faitswulff has quit [Remote host closed the connection]
elphe has quit [Ping timeout: 252 seconds]
_za1b1tsu_ has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 252 seconds]
fluxAeon has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
faitswulff has joined #ruby
elphe has quit [Ping timeout: 246 seconds]
bak1an has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
_za1b1tsu_ has joined #ruby
elphe has joined #ruby
Technodrome has joined #ruby
Dbugger has quit [Ping timeout: 260 seconds]
_za1b1tsu_ has quit [Ping timeout: 245 seconds]
sauvin has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 252 seconds]
lxsameer has quit [Ping timeout: 260 seconds]
cthu| has joined #ruby
elphe has joined #ruby
cthulchu has quit [Ping timeout: 246 seconds]
elphe has quit [Ping timeout: 252 seconds]
jp has quit [Ping timeout: 252 seconds]
elphe has joined #ruby
bmurt has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endofline has quit [Remote host closed the connection]
chouhoulis has joined #ruby
elphe has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
fluxAeon has joined #ruby
jp has joined #ruby
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
bak1an has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
DTZUZO_ has joined #ruby
chouhoulis has joined #ruby
elphe has joined #ruby
nowhere_man has quit [Ping timeout: 252 seconds]
fluxAeon has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 245 seconds]
chouhoulis has joined #ruby
elphe has quit [Ping timeout: 252 seconds]
conta1 has quit [Quit: conta1]
sameerynho has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
faitswulff has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
elphe has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
dostoyevsky has joined #ruby
faitswulff has joined #ruby
<dostoyevsky>
I tried installing the pg gem but it couldn't find pg's header files... so I went to ~/.gem/ruby/1.9.1/gems/pg-0.18.4 and passed the correct path to extconf.rb but I am not sure how to complete the installation, so that require 'pg' would work
eckhardt has joined #ruby
chouhoulis has joined #ruby
elphe has quit [Ping timeout: 260 seconds]
wojnar has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
Xiti` has joined #ruby
Xiti` has quit [Read error: Connection reset by peer]
chouhoulis has quit [Ping timeout: 272 seconds]
Xiti has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
arup_r has joined #ruby
Dirak has quit [Ping timeout: 244 seconds]
Dirak has joined #ruby
arup_r has quit [Client Quit]
chouhoulis has quit [Ping timeout: 240 seconds]
jp has quit [Ping timeout: 240 seconds]
mike11 has quit [Quit: Leaving.]
Dirak has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
joast has quit [Ping timeout: 272 seconds]
_za1b1tsu_ has joined #ruby
elphe has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
Xiti has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
_za1b1tsu_ has quit [Ping timeout: 252 seconds]
elphe has quit [Ping timeout: 240 seconds]
DTZUZO_ has quit [Ping timeout: 252 seconds]
beowuff has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jp has joined #ruby
faitswulff has quit [Remote host closed the connection]