pastorinni has quit [Remote host closed the connection]
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
randomstrangerb has joined #ruby
dstrunk has joined #ruby
guardianx has joined #ruby
<darix>
weaksauce: 1.9.3 is lacking a lot and i mean a lot of security fixes
<darix>
weaksauce: you do not want to use it anymore
<darix>
distros backport fixes for older versions. but source install lacks all those backports
<weaksauce>
I don't actually use it but the client is not paying me to upgrade it
<weaksauce>
it's going to heroku and i assume they use a patched version
<darix>
heroku is really still offering 1.9????
dogweather has joined #ruby
<weaksauce>
seeing as how the push worked and the changes look good, yeah they still do
baroquebobcat has quit [Quit: baroquebobcat]
guardianx has quit []
<havenwood>
"When a Ruby version reaches EOL security patches will no longer be available. We highly recommend running on a version of Ruby that is actively supported by Ruby core." ~Heroku
<havenwood>
"Ruby ... 1.9.3 [has] reached EOL. While you can still run [it] on cedar-14 stack, security patches are not be applied."
<havenwood>
weaksauce: It's not patched. It's vulnerable. FWIW
<darix>
weaksauce: it actually will be more work for you to use 1.9.3
<darix>
than a recent version ;)
<havenwood>
They do a great job of patching supported Rubies.
tipyn has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
<weaksauce>
yeah. it's vulnerable but it's not a high traffic site and doesn't have anything of real value on the server and doesn't run a database or anything like that. it's not my call anyway
<weaksauce>
but yeah I appreciate the heads up. I use recent rubies for my stuff.
Dimik has quit [Ping timeout: 240 seconds]
<havenwood>
heroku stack:set heroku-16
pwnd_nsfw has quit [Ping timeout: 240 seconds]
<havenwood>
^ that and a Ruby version bump to 2.3 might be relatively painless
<havenwood>
but yeah, I suppose you'd have to be paid to do it ;-P
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
I wonder what this means...: "Matz: I have a rough idea to use backtick as a namespace separator."
guille-moe has joined #ruby
sepp2k has quit [Quit: Leaving.]
<havenwood>
I wonder what that would look like?
tcopeland has joined #ruby
tipyn has joined #ruby
justinfaler has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
cdg has joined #ruby
<havenwood>
Does he mean like Net`HTTP and Digest`MD5? Hrm.
<havenwood>
I do think that's what's meant. Mmm.
cdg has quit [Read error: Connection reset by peer]
wilbert has joined #ruby
cdg has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 268 seconds]
nowhere_man has joined #ruby
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
nowhereman_ has joined #ruby
guille-moe has quit [Ping timeout: 252 seconds]
<darix>
havenwood: that wont screw with things like `shell command`
<darix>
;)
nowhere_man has quit [Ping timeout: 252 seconds]
<havenwood>
darix: deprecated
<darix>
havenwood: I find it ugly even in shell scripts
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
camfowler has quit [Quit: leaving]
justinfaler has joined #ruby
camfowler has joined #ruby
AJA4350 has quit [Quit: AJA4350]
jottr_ has joined #ruby
rrutkowski has quit [Quit: rrutkowski]
rrutkowski has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
wilbert has quit [Read error: Connection reset by peer]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
camfowler has quit [Quit: leaving]
tipyn has quit [Read error: Connection reset by peer]
belmoussaoui has quit [Quit: belmoussaoui]
milardovich has joined #ruby
AJA4350 has joined #ruby
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
nowhereman_ has quit [Read error: Connection reset by peer]
rrutkowski has left #ruby [#ruby]
nowhere_man has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
mtkd has joined #ruby
kryptoz has joined #ruby
pwnd_nsfw has joined #ruby
RougeT430 has quit [Ping timeout: 268 seconds]
milardovich has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw` has quit [Ping timeout: 240 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 252 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
kryptoz has quit [Ping timeout: 252 seconds]
nowhereman_ has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
justinfaler has quit [Ping timeout: 240 seconds]
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
justinfaler has joined #ruby
milardovich has quit [Remote host closed the connection]
DTZUZO has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
veduardo_ has joined #ruby
nowhere_man has joined #ruby
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
marr has quit [Ping timeout: 268 seconds]
nowhereman_ has quit [Ping timeout: 240 seconds]
veduardo_ has quit [Ping timeout: 240 seconds]
rrutkowski has joined #ruby
dstrunk has joined #ruby
alfiemax has joined #ruby
jottr_ has joined #ruby
rrutkowski has quit [Client Quit]
rrutkowski has joined #ruby
rrutkowski has quit [Remote host closed the connection]
alfiemax has quit [Ping timeout: 252 seconds]
Sans has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
<Sans>
Hi, I'm trying to install the gem json, version it's trying to install is 1.7.7, version of ruby is *apparently* 2.6.0-dev but the issue exists in 2.3.0 as well, issue is, it doesn't work, and I'm losing it
<Sans>
can anyone perhaps tell me if there's a better version of json than 1.7.7, or is that it
<Sans>
Also, I'm so sorry in advance if this is in the wrong channel, I'm new to managing Ruby apps.
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 264 seconds]
vondruch_ is now known as vondruch
vondruch has quit [Client Quit]
vondruch has joined #ruby
jnyw has quit [Ping timeout: 252 seconds]
troys is now known as troys_
AJA4350 has quit [Quit: AJA4350]
ramfjord has quit [Ping timeout: 252 seconds]
Psybur__ has quit [Ping timeout: 248 seconds]
bmurt has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore|2 has joined #ruby
dogweather has quit [Ping timeout: 252 seconds]
gizmore has quit [Ping timeout: 252 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
dstrunk has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<darix>
Sans: there is 1.8 available
<darix>
actually 2.1 is out
drowze has joined #ruby
cdg has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aguestuser has quit [Remote host closed the connection]
jottr_ has joined #ruby
bronson has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bawNg>
that's much better than the only options for packaging ruby apps for distribution a few years ago
<bawNg>
I haven't needed to package anything for distribution recently
jottr_ has quit [Ping timeout: 240 seconds]
<havenwood>
The binary starts faster than Pry with full Ruby. ¯\_(ツ)_/¯
<havenwood>
It shaves more than a second off of coolline Pry startup time.
<bawNg>
that's probably mostly rubygems fault
bronson has joined #ruby
<bawNg>
I think rubygems accounts for the vast majority of start up time, the actual ruby boot up is something like 50ms
<havenwood>
time ruby --disable-gems -e 'exit' #>> ruby --disable-gems -e 'exit' 0.01s user 0.01s system 88% cpu 0.015 total
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
<havenwood>
time ruby -e 'exit' #>> ruby -e 'exit' 0.05s user 0.01s system 94% cpu 0.061 total
<havenwood>
bawNg: Yeah, it's quite fast without RubyGems. Not too bad with.
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
kryptoz has quit [Remote host closed the connection]
kryptoz has joined #ruby
kryptoz has quit [Remote host closed the connection]
<Sans>
darix: hey, yeah I know, unfortunately it was forcing 1.7.7?? I got t to work somehow, not sure how, I’m just damn glad it’s working.
<bawNg>
seems rubygems is a lot faster than it used to be, but you're also not requiring any gems in that benchmark
GodFather has quit [Ping timeout: 268 seconds]
GodFather has joined #ruby
<JJonah>
Is there a good way to remove the repetition here while keeping the behavior the same (required args, conversion of port to int, format of to_json):
<JJonah>
ignore commas in the assignments, those are a bad cut n paste
careta has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 240 seconds]
gix- has joined #ruby
gix has quit [Disconnected by services]
pwnd_nsfw has joined #ruby
LocaMocha has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 252 seconds]
dankeast has joined #ruby
jottr_ has joined #ruby
crankharder has quit [Quit: leaving]
dankeast has quit [Ping timeout: 252 seconds]
LocaMocha is now known as Sauvin
Guest23132 is now known as c-c
careta has quit [Ping timeout: 240 seconds]
cdg_ has quit [Remote host closed the connection]
cdg has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
thejamespinto has joined #ruby
jackjackdripper has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
<bawNg>
JJonah: you could write a class method that generates that based on the attributes given
oleo has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
dogweather has joined #ruby
jamesaxl has joined #ruby
hfp_work has quit [Ping timeout: 240 seconds]
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight__ has joined #ruby
<knight__>
I'm trying to use Net::HTTP to post a form for logging in, but the post itself seems to redirect to the sign in page. Any ideas?
justicefries has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<c-c>
knight__: missing header
* c-c
estimates 87% probability
dogweather has quit [Ping timeout: 268 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
<c-c>
knight__: test login from browser, copy the post from browser dev tools network-tab and compare to the ones you sent
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
jamesaxl has joined #ruby
crankharder has joined #ruby
dogweather has joined #ruby
lytol has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
alfiemax has quit [Read error: Connection reset by peer]
dreamthese has quit [Remote host closed the connection]
dreamthese has joined #ruby
xuyuheng has joined #ruby
xuyuheng has quit [Client Quit]
jackjackdripper has joined #ruby
alfiemax has joined #ruby
xuyuheng has joined #ruby
xuyuheng has quit [Client Quit]
xuyuheng has joined #ruby
dogweather has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
jottr_ has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
alfiemax_ has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 240 seconds]
dogweather has quit [Ping timeout: 240 seconds]
careta has joined #ruby
Guest6096 has joined #ruby
xuyuheng has quit [Ping timeout: 240 seconds]
Guest6096 has left #ruby [#ruby]
oleo has quit [Quit: Leaving]
xuyuheng has joined #ruby
workmad3 has joined #ruby
djbkd has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
sundhell_away is now known as sundhell
GodFather has quit [Ping timeout: 248 seconds]
rrichardsr3 has joined #ruby
bronson has joined #ruby
GodFather has joined #ruby
dogweather has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
careta has quit [Ping timeout: 240 seconds]
pwnd_nsfw` has joined #ruby
pwnd_nsfw has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
jottr_ has joined #ruby
justicefries has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
xuyuheng has quit [Remote host closed the connection]
xuyuheng_ has joined #ruby
cdg has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
RougeR has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
RougeR is now known as Guest42976
alfiemax has joined #ruby
Xiti has quit [Quit: Xiti]
Caerus has quit [Quit: Leaving]
alfiemax_ has quit [Ping timeout: 256 seconds]
axsuul has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
dogweather has quit [Ping timeout: 248 seconds]
naprimer has joined #ruby
djbkd has quit []
naprimer2 has quit [Ping timeout: 248 seconds]
dogweather has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
darkhanb has joined #ruby
Xiti has joined #ruby
shaman42 has joined #ruby
conta has joined #ruby
darkhanb has quit [Ping timeout: 248 seconds]
KeyJoo has joined #ruby
troys_ is now known as troys
dogweather has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
conta has quit [Remote host closed the connection]
dogweather has quit [Ping timeout: 252 seconds]
troys has quit [Quit: Bye]
darkhanb has joined #ruby
sammi` has joined #ruby
ta_ has quit [Remote host closed the connection]
darkhanb has quit [Ping timeout: 264 seconds]
alfiemax has quit [Remote host closed the connection]
s2013 has joined #ruby
s2013 has quit [Client Quit]
rabajaj has joined #ruby
roshanavand has joined #ruby
xpt has joined #ruby
darkhanb has joined #ruby
dogweather has joined #ruby
xuyuheng_ has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
xuyuheng_ has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
dogweather has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
istrasci1 has joined #ruby
<istrasci1>
If I call a rake task programmatically, how do I pass an environment variable to it? Calling Rake::Task["db:drop RAILS_ENV=test"] doesn't work.
<noocx>
baweaver: yes i did this, rvm and ruby is installed fine, i think all of the required packages installed too, but i still get this error when i try to install bundler
istrasci1 has left #ruby [#ruby]
<noocx>
gem install bundler --no-rdoc --no-r
<noocx>
ERROR: While executing gem ... (NoMethodError)
<noocx>
undefined method `invoke_with_build_args' for nil:NilClass
<noocx>
with --no-ri too:)
conta has joined #ruby
jaruga has quit [Quit: jaruga]
jenrzzz has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
mtkd has quit [Ping timeout: 260 seconds]
<noocx>
maybe this will be my problem when i install ruby the installer says to install these packages: Install: build-essential libreadline zlib1g libyaml libc6 libgdbm ncurses
<noocx>
but there is no zlib1g on amazon linux?
mtkd has joined #ruby
kryptoz has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
andikr has joined #ruby
cdg has joined #ruby
kryptoz has quit []
xfbs has joined #ruby
<noocx>
ok working now
<noocx>
needed to recompile ruby after zlib install
workmad3 has joined #ruby
dogweather has quit [Ping timeout: 260 seconds]
cdg has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
jaruga has joined #ruby
coderobe has joined #ruby
<coderobe>
is there any working dbus gem besides "ruby-dbus"? ruby-dbus has some issues that prevent me from using it
KeyJoo has quit [Quit: Good luck! Have a nice Day!]
dogweather has joined #ruby
<c-c>
ist
<c-c>
pardon my german, wrong win
ramfjord has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
jud has joined #ruby
mark_66 has joined #ruby
dogweather has quit [Ping timeout: 252 seconds]
dogweather has joined #ruby
stan has quit [Ping timeout: 265 seconds]
stan has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cdg has joined #ruby
dogweather has quit [Remote host closed the connection]
dogweather has joined #ruby
Burgestrand has joined #ruby
rrichardsr3 has quit [Quit: He who dares .... wins.]
sundhell is now known as sundhell_away
jenrzzz has quit [Ping timeout: 252 seconds]
cdg has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
Burgestrand has quit [Quit: Good bye and have a nice day!]
nowhere_man has quit [Ping timeout: 264 seconds]
yohji has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
jottr_ has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 240 seconds]
alex`` has joined #ruby
justinfaler has quit [Ping timeout: 252 seconds]
<noocx>
have you got any idea why i cant bind webrick to a public iface at aws?:)
<dminuoso>
?xy noocx
<dminuoso>
,xy noocx
<dminuoso>
!xy
<dminuoso>
?xy
<noocx>
ok my bad
* dminuoso
sighs
<dminuoso>
noocx: You know what Im getting at?
<noocx>
Errno::EADDRNOTAVAIL
<noocx>
dminuoso: ?
imode has quit [Ping timeout: 248 seconds]
<noocx>
dminuoso: no
<dminuoso>
noocx: Okay well maybe its the wrong factoid anyway.
<dminuoso>
noocx: Gist your code, and the full stack trace of your error.
<dminuoso>
Rather than asking "why I cant bind webrick to a public iface at aws"
<dminuoso>
Because it's implying that what you are trying to do is impossible, which is implying that your cost must be infallable.
<noocx>
dminuoso: ok you are right, but solved it sorry
<dminuoso>
noocx: No sweat. :)
<dminuoso>
>> puts "where are you bot"
<noocx>
:)
* dminuoso
pokes apeiros with a coalgebra of a costate comonad
bkxd has joined #ruby
xuyuheng_ has quit [Ping timeout: 240 seconds]
<noocx>
do you use redmine?
<noocx>
with what webserver?
BuildTheRobots has joined #ruby
<dminuoso>
No.
<dminuoso>
But apeiros does
jenrzzz has joined #ruby
Burgestrand has joined #ruby
Ishido has joined #ruby
<tbuehlmann>
I'm looking for a neat way to find the next number that is a multiplicative of 10_000 for a given integer. so foo(1) # => 10_000, foo(10_000) # => 10_000, foo(10_001) # => 20_000
aufi has joined #ruby
xuyuheng_ has joined #ruby
<tbuehlmann>
is there a clever method I could use or do I have to manually ceil/round/floor/whatever?
<tbuehlmann>
thanks for the suggestions so far *tips hat*
<dminuoso>
havenwood: neato!
ur5us has joined #ruby
<tbuehlmann>
I like that as well, thanks!
<dminuoso>
tbuehlmann: But if you wanted an efficient solution, .ceil(-4) is still your best bet ;)
<c-c>
I don't quite see where the problem is, I need more coffee
<tbuehlmann>
I'd use that, but I fear the number changes :)
<dminuoso>
I'd go for havenwoods solution then. :)
<dminuoso>
My solution is a bit heavy because of the modulo.
s2013 has joined #ruby
za1b1tsu has joined #ruby
Beams has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
alfiemax has joined #ruby
plexigras has joined #ruby
jnyw has quit [Quit: WeeChat 2.0.1]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
qba73 has quit [Remote host closed the connection]
jottr_ has joined #ruby
qba73 has joined #ruby
workmad3 has joined #ruby
Serpent7776 has joined #ruby
cdg has joined #ruby
jetpack_joe has quit [Quit: Connection closed for inactivity]
nadir has quit [Quit: Connection closed for inactivity]
jottr_ has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
drewmcmillan has joined #ruby
anisha has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<noocx>
which webserver should i use for redmine?
<noocx>
puma + apache?
ramfjord has joined #ruby
<dminuoso>
People need to stop using Apache seriously.
<bawNg>
^
<tobiasvl>
yes why not nginx
cdg has quit [Ping timeout: 252 seconds]
xfbs has quit []
<noocx>
ok nginx then
<noocx>
whats yourproblem with apache?:D
<tobiasvl>
noocx: let's turn it around, why did you automatically suggest apache? :P
<noocx>
or for 20 ppl puma is just enough?
<noocx>
or do i need to use nginx?
<bawNg>
nginx is great, unicorn is good for a blocking ruby web server, thin is great for an eventmachine based one
<dminuoso>
Only if you want TLS.
<dminuoso>
Or do some other shenanigans.
<dminuoso>
noocx: The configuration is inconsistent, annoying and totally weird. Apache is also slow. And meh.
<noocx>
:)
<dminuoso>
nginx is just a better Apache.
bkxd_ has joined #ruby
<noocx>
i saw some statistic and in some thigns apache was better
<dminuoso>
But ultimately it depends on your environment. If you have apache everywhere, stick to apache.
<noocx>
maybe with static files dont remember
bkxd has quit [Ping timeout: 268 seconds]
<bawNg>
nginx is a non-blocking reactor based server, it can handle hundreds of thousands of requests in a single thread, which is way more efficient than apache's threaded design
<bawNg>
there is no reason to use apache for anything
<noocx>
you use nginx with nodejs too?
<dminuoso>
bawNg: well there is one reason: consistency.
<bawNg>
you can use nginx for anything, it's a reverse proxy server, you put it in front of all your services and have it serve static files and proxy dynamic requests to your services
<dminuoso>
bawNg: If for some reason you already have apache everywhere with people used to it, and dont need the performance benefits or benefits of a much more consistent configuration - then you might as well stick to Apache.
bronson has joined #ruby
<bawNg>
I'd recommend anyone who uses apache looks at migrating to nginx
<bawNg>
apache is horrible for so many reasons
<dminuoso>
+1
Ishido has quit [Ping timeout: 268 seconds]
<dminuoso>
Configuring Apache is quirky and totally weird.
<noocx>
its a fresh ec2, so i can use nginx too:)
<dminuoso>
With random directives lfet and right..
s2013 has quit [Max SendQ exceeded]
s2013 has joined #ruby
<bawNg>
Unicorn is a great blocking ruby web server, designed very efficiently using a forking process model instead of threads, just like nginx
anisha has quit [Ping timeout: 240 seconds]
<bawNg>
postgres is a great SQL database for the same reason, it is also based on forking processes
mlehrer has quit [Ping timeout: 240 seconds]
mlehrer has joined #ruby
xuyuheng_ has quit [Ping timeout: 268 seconds]
tvw has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
bkxd has joined #ruby
xuyuheng_ has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
DTZUZO has quit [Ping timeout: 264 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
marr has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
qba73 has joined #ruby
stoffus has joined #ruby
funnel has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
xuyuheng_ has quit [Ping timeout: 240 seconds]
arne is now known as Bish
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
funnel has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
xuyuheng_ has joined #ruby
kapil___ has joined #ruby
Cavallari has joined #ruby
etehtsea has joined #ruby
belmoussaoui has joined #ruby
ldnunes has joined #ruby
sundhell_away is now known as sundhell
fumk has quit [Quit: It wasn't me, it was the papers :(]
fumk has joined #ruby
bkxd_ has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
xuyuheng_ has quit [Ping timeout: 240 seconds]
xuyuheng_ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
loveablelobster has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
careta has joined #ruby
Burgestrand has quit [Quit: Closing time!]
qba73 has joined #ruby
InfinityFye has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
InfinityFye has left #ruby [#ruby]
Burgestrand has joined #ruby
cdg has joined #ruby
make has joined #ruby
xuyuheng_ has quit [Ping timeout: 248 seconds]
_aeris_ has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
cdg has quit [Ping timeout: 265 seconds]
make has quit [Quit: leaving]
<darix>
bawNg: for webservers event based works really well
<darix>
I prefer puma as ruby app server
alfiemax has quit [Ping timeout: 260 seconds]
<bawNg>
for any IO-bound application, async event based is the most efficient and ideal implementation
bkxd_ has quit [Ping timeout: 256 seconds]
<bawNg>
the vast majority of ruby applications that I've always built are eventmachine based
<noocx>
how fast is that compared to nodejs?
alfiemax has joined #ruby
<noocx>
cause i cant decide to build my app with nodejs or ruby
<bawNg>
darix: why would you prefer puma over unicorn?
<darix>
bawNg: seems to use a little less memory
<bawNg>
nodejs is a bit faster than ruby due to the very optimized V8 runtime which has a very good JIT, but most applications don't need to scale to the point that the difference really matters
<bawNg>
the advantages of being able to use ruby outweight the performance benefit of using JS for server-side applications, at least for me
Burgestrand has quit [Quit: Closing time!]
<bawNg>
darix: well it's based on threads, not forked processes, so it will use less memory if CoW is not great
<bawNg>
new ruby versions should have better CoW support, but it also depends on the implementation of your application
<bawNg>
Unicorn's forked processes will give considerably better performance than puma's threads
<bawNg>
threading in ruby is not very useful since the GVL means that only one thread can call into the ruby API or extensions at a time
loveablelobster has joined #ruby
<bawNg>
so there are very few cases where multiple threads can even execute at the same time
<darix>
bawNg: discourse on puma. and unicorn for gitlab
<darix>
currently
make has joined #ruby
<bawNg>
I use unicorn to serve haml and slim pages very fast, nginx to serve static files, and then do long polling or websockets to an eventmachine based backend for everything after the page is loaded
mistym has quit [Ping timeout: 276 seconds]
lunarkitty7 has quit [Ping timeout: 256 seconds]
<noocx>
what framework do you use with ruby?
<bawNg>
I use sinatra for web requests and roll almost everything else from scratch myself
<noocx>
cool:)
<bawNg>
if you want a nodejs alternative, look at eventmachine
<bawNg>
for any IO-bound application, it is ideal
mistym has joined #ruby
mistym has joined #ruby
mistym has quit [Changing host]
<noocx>
thanks, i will
bkxd has quit []
_aeris_ has joined #ruby
<darix>
maybe celluloid?
<bawNg>
personally not a fan, but it would work too
<bawNg>
you'll probably want to do some research and see what libraries that you need are supported by eventmachine and celluloid, and decide based on that
<bawNg>
I end up writing my own eventmachine based libraries from scratch most of the time, or I monkeypatch blocking gems to be EM-based
<bawNg>
there are a lot of EM libraries available, but most of the time they don't suit my needs for various reasons
alfiemax has quit [Remote host closed the connection]
madhatter has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
nicosmaris has quit [Quit: Leaving]
nicosmaris_ is now known as nicosmaris
madhatter has joined #ruby
alfiemax has quit [Remote host closed the connection]
cdg has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
bmurt has quit [Ping timeout: 240 seconds]
Cavallari has quit [Quit: Cavallari]
bronson has joined #ruby
dogweather has joined #ruby
<prutheus>
hey za1b1tsu thanks for you suggestion but this is not working. the problem is, taht i dont know the main categories yet. here a bpaste of the data: https://bpaste.net/show/cca898ae8a85 I want to get a hash with main as keys and subcats in arrays as values of them.
bronson has quit [Ping timeout: 265 seconds]
Emmanuel_Chanel has quit [Ping timeout: 246 seconds]
dogweather has quit [Ping timeout: 252 seconds]
guille-moe has quit [Remote host closed the connection]
<baweaver>
you can spend a few hours on that, or a few weeks trying to get commands piecemeal. Trust me when I say you want to read through a tutorial first, it'll save you a lot of headaches.
<baweaver>
anyways, off I go.
Asher has quit [Quit: Leaving.]
<Raffy>
once rails installed, type rails new app-name that will create you rails project, inside this project there is a file named gemfile
jaruga has joined #ruby
jaruga has quit [Remote host closed the connection]
<void9>
Raffy: thanks, I think I get it now
guille-moe has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
belmoussaoui has quit [Quit: belmoussaoui]
camilasan has quit [Remote host closed the connection]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
Success has quit [Remote host closed the connection]
Success has joined #ruby
sergio_101 has joined #ruby
acovrig has joined #ruby
belmoussaoui has joined #ruby
bronson has joined #ruby
<acovrig>
I’m trying to encrypt a string with GPGME, when I encrypt I get a strange string, hex maybe? (\x8C\r\x04\x03 for example) - I’d like a string that I’d get from gpg like "-----BEGIN PGP MESSAGE-----“, should I use a different gem?
jottr_ has joined #ruby
ur5us has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
bronson has quit [Ping timeout: 268 seconds]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr_ has quit [Ping timeout: 240 seconds]
mtkd has quit [Ping timeout: 240 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
jackjackdripper has joined #ruby
ldnunes has quit [Quit: Leaving]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
mtkd has joined #ruby
Psybur_ has quit [Ping timeout: 240 seconds]
<graft>
anyone familiar with Rack::Test? I'm trying to figure out how i can peer into the cookie jar it keeps across requests, to no avail
belmoussaoui has quit [Quit: belmoussaoui]
GodFather has joined #ruby
<graft>
acovrig: are you using github:ueno/ruby-gpgme?
<acovrig>
graft: yes
belmoussaoui has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
drowze has quit [Remote host closed the connection]
<graft>
acovrig: how are you encrypting your string? can you show some code?
apeiros has joined #ruby
<acovrig>
graft: I tried https://stackoverflow.com/a/17142403 but the file just contains \x**\x**… text, if I dump it to a file, `file` says “PGP RSA encrypted session key” - I’d like a BEGIN PGP MESSAGE … END PGP MESSAGE sorta string I can copy/paste through `gpg --decrypt`
baroquebobcat has quit [Quit: baroquebobcat]
<graft>
acovrig: yeah just do GPGME::Crypto.new(armor: true) and it should do it
conta has quit [Remote host closed the connection]
sameerynho has joined #ruby
orbyt_ has joined #ruby
troys is now known as troys_
alfiemax has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
inanepenguin has joined #ruby
<graft>
to answer my own question, if anyone is interested, you can get the cookie with rack_mock_session.cookie_jar
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jottr_ has quit [Ping timeout: 268 seconds]
belmoussaoui has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
s3nd1v0g1us has joined #ruby
s3nd1v0g1us has quit [Max SendQ exceeded]
al2o3-cr has quit [Ping timeout: 240 seconds]
jetpack_joe has joined #ruby
pastorinni has joined #ruby
za1b1tsu has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
apeiros has joined #ruby
Success has quit [Read error: Connection reset by peer]
Success has joined #ruby
myarta has joined #ruby
belmoussaoui has quit [Quit: belmoussaoui]
alfiemax has joined #ruby
camilasann has joined #ruby
<myarta>
#join ruby-lang
myarta has quit [Client Quit]
myarta has joined #ruby
<myarta>
I'm having a hard time figuring out how to split a string that is returned from Mysql2 gem with \n in it as two literal characters. Tried different combinations of escaping but can't see to get it to recognise: http://dpaste.com/0D3182W
<myarta>
any ideas? thanks in advance
belmoussaoui has joined #ruby
<apeiros>
myarta: not quite sure I follow. you want e.g. from "foo\nbar" to get ["foo", "bar"]?
jottr_ has joined #ruby
<apeiros>
also #ruby-lang no longer exists, it's just #ruby now ;-)
<apeiros>
my greek is rather limited, but those two seem to be names?
belmoussaoui has quit [Quit: belmoussaoui]
al2o3-cr has joined #ruby
Success has quit [Changing host]
Success has joined #ruby
jottr_ has quit [Ping timeout: 240 seconds]
nowhere_man has joined #ruby
<myarta>
apeiros Oh, so is mine. I thought your name was the ancient form of the greek kingdom of the Epirotes, a rival of Rome during the war that gives us the phrase Pyrric Victory
<apeiros>
(of course it also has its own meanings)
<myarta>
apeiros So I was just saying aha, I see your obscure reference and appreciate it! Except I think I read one into it that wasn't there.
<apeiros>
ah no, it's supposed to be the male form of apeiron. the original matter from which everything was created.
<apeiros>
that nick is now >20y old. I'm old.
* apeiros
sobs silently into the night
<baweaver>
apeiros: want me to drive in the knife?
<apeiros>
et tu, baweavere?
illsorted has quit [Quit: Lost terminal]
<baweaver>
That nick isn't much older than I am
belmoussaoui has joined #ruby
<apeiros>
(what the heck is the vocative of baweaver?)
<baweaver>
(close enough)
spiette has quit [Quit: :qa!]
<myarta>
ah yeah something different then. same spelling
spartacus has joined #ruby
<spartacus>
No, I AM Spartacus
jeffreylevesque has quit [Ping timeout: 240 seconds]
rwb has quit [Ping timeout: 248 seconds]
spartacus has quit [Client Quit]
<Raffy>
k
eckhardt has joined #ruby
<baweaver>
odd
Rapture has joined #ruby
tvw has quit []
tvw has joined #ruby
Jake_ has joined #ruby
Success has quit [Ping timeout: 240 seconds]
<apeiros>
awkward silence
tejasvi5 has joined #ruby
<tejasvi5>
Hello
belmoussaoui has quit [Quit: belmoussaoui]
<apeiros>
hi
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<tejasvi5>
Hello, everyone. I'm new around here.
<tejasvi5>
Trying to figure how this works and what the channel is about
<apeiros>
it's about the ruby programming language
<tejasvi5>
Could anyone please help
<guacamole>
ask ruby questions here, or provide ruby answers here
Jake_ has quit [Changing host]
Jake_ has joined #ruby
Jake_ is now known as Success
<apeiros>
tejasvi5: with what specifically do you need help?
<tejasvi5>
@guacamole Thank you
pastorinni has joined #ruby
<tejasvi5>
I do not need help with anything specific. Just exploring, trying to know how these work
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SCHAPiE has quit [Read error: Connection reset by peer]
<tejasvi5>
Thank you, again
<guacamole>
np!
<tejasvi5>
That was a lot to take at once but sure helps
tomphp has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
synthroid has quit []
<guacamole>
tejasvi5 a lot of open source projects will have a contributing guide, or guidelines, so check if the project you want to work on has one
<tejasvi5>
Oh. All right.
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 240 seconds]
<tejasvi5>
I'm unsure about which one to pick or which one I can contribute to
SCHAPiE has joined #ruby
<tejasvi5>
Do you any where beginners can do good?
<guacamole>
tejasvi5 pick one that is interesting to you! maybe that aligns with a hobby you have
<guacamole>
tejasvi5 a lot of people get started contributing with writing documentation
<tejasvi5>
That should be boring, no?
LocaMocha has joined #ruby
lcarlson has quit [Quit: Leaving]
jottr_ has joined #ruby
<guacamole>
maybe, maybe not. either way its super helpful. most of my open source contributions are clarifying docs
<guacamole>
you can learn the "flow"
<guacamole>
if nothing else it'll teach you how to fork a project and make a PR etc.
roshanavand has quit [Ping timeout: 246 seconds]
<Raffy>
and by writing doc you learn the language and you can then contribute to it ;)
jottr_ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sergio_101 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
za1b1tsu has quit [Remote host closed the connection]
belmoussaoui has joined #ruby
jottr_ has joined #ruby
<weaksauce>
tejasvi5 i added a feature to firefox because it scratched an itch. that's pretty much the way it works. find something you desire to have or a bug that needs fixing and fix it
bronson has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
LastWhisper____ has joined #ruby
drewmcmillan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Flashynuff has joined #ruby
Success has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 268 seconds]
mtkd has joined #ruby
troys_ is now known as troys
amatas has quit [Quit: amatas]
Success has joined #ruby
<tejasvi5>
Thank you so much. weak Sauce, Raffy and guacamole
giraffe has quit [Remote host closed the connection]
tpendragon has quit [Remote host closed the connection]
rwb has joined #ruby
<tejasvi5>
And sorry, I'm so noob I don't even know how to tag the nicks.
belmoussaoui has quit [Quit: belmoussaoui]
Asher has joined #ruby
wilbert has quit [Ping timeout: 240 seconds]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
belmoussaoui has joined #ruby
kapil___ has joined #ruby
knight_ has quit [Remote host closed the connection]
knight__ has quit [Remote host closed the connection]
<bawNg>
tejasvi5: just like that
<tejasvi5>
bawNg: like this?
<bawNg>
yes, it's up to each person to setup their IRC client to highlight their name
<tejasvi5>
Okay, cool
knight_ has joined #ruby
knight_ has quit [Disconnected by services]
knight__ has joined #ruby
knight__ is now known as knight_
knight- has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
<bawNg>
wait, how does my actuator gem have 492 downloads already after less than 3 days on rubygems? I'd expect very few people to even have a use case for it, and out of those none would have even know that it exists yet
hahuang65 has joined #ruby
bkxd has joined #ruby
bkxd has quit [Max SendQ exceeded]
<guacamole>
bawNg there are bots that download them all