GodFather has quit [Remote host closed the connection]
<zenspider>
RAWR
t0xik has joined #ruby
clemens3 has quit [Ping timeout: 272 seconds]
wnd has quit [Quit: Disconnecting from stoned server.]
wnd has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
EGreg has joined #ruby
<EGreg>
hey all
<EGreg>
how do you get that nice ruby icon in bottom right of the LimeChat channel? i dont' know
<EGreg>
anyway listen .... question for you.
<EGreg>
Anyone here btw?
lxsameer has joined #ruby
<EGreg>
Hey lxsameer
<Radar>
hi.
<EGreg>
OK so here is myq ueastion
<EGreg>
Incomplete response received form application
<EGreg>
nginx error logs say nothing
<EGreg>
nginx access logs show the http request
<EGreg>
now what can I do?
<EGreg>
I already did the SECRET_KEY_ASE
<Radar>
Ask the application why.
<EGreg>
I already did the SECRET_KEY_BASE
<EGreg>
how?
<EGreg>
what logs can I look at, or what can I do
<Radar>
logs/production.log
<Radar>
Can you access the application without nginx in front of it?
<EGreg>
ahh thanks!
<EGreg>
I have no idea, honestly. SOmeone else set this up
<EGreg>
I just guessed that we have passenger instead of webrick or thin
<EGreg>
DEPRECATION WARNING: You didn't set `secret_key_base`. Read the upgrade documentation to learn more about this new config option. (called from validate_secret_key_config! at /root/.rvm/gems/ruby-2.1.2/gems/railties-4.2.8/lib/rails/application.rb:530)
<Radar>
Right.
<EGreg>
that must be it
<EGreg>
this is for redmine btw
<Radar>
Seems like a good avenue for investigation.
<EGreg>
so what can I do
<Radar>
It's always for Redmine.
<EGreg>
hehe why do you say that
<Radar>
Maybe set the secret key base?
<Radar>
Because lots of people come here for Redmine questions.
<EGreg>
look, I am a PHP and JS and Node.js expert, I know very little about Ruby
<EGreg>
seems Redmine is the most popular Ruby app :D
<EGreg>
is discourse written in ruby? or python?
<Radar>
Makes me wonder why people curse themselves with Redmine instead of using Trello / Jira.
<EGreg>
If you continue to experience problems please contact your Redmine administrator for assistance.
<EGreg>
An error occurred on the page you were trying to access.
<EGreg>
If you are the Redmine administrator, check your log files for details about the error.
<EGreg>
Back
<EGreg>
OH MOTHERCRAPPING CRAPAZOID!!!!
<EGreg>
ActiveRecord::StatementInvalid (Mysql2::Error: Unknown column 'tokens.updated_on' in 'order clause': SELECT `tokens`.`id` FROM `tokens` WHERE `tokens`.`user_id` = 3 AND `tokens`.`action` = 'session' ORDER BY `tokens`.`updated_on` DESC LIMIT 18446744073709551615 OFFSET 9):
<EGreg>
looks like a newer redmine and I have to somehow migrate database to its new schema, crap crap crap
EGreg has quit [Remote host closed the connection]
mroutis has quit [Ping timeout: 272 seconds]
EGreg has joined #ruby
<EGreg>
hi
<EGreg>
anyone here??
<EGreg>
sorry got disconnected
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
NightMonkey has joined #ruby
cagomez has joined #ruby
r29v has quit [Quit: r29v]
orbyt_ has joined #ruby
<EGreg>
I tried rake db:migrate
<EGreg>
doesn't do anyth8ing
r29v has joined #ruby
<EGreg>
rake aborted!
r29v has quit [Client Quit]
<EGreg>
NoMethodError: undefined method `observers=' for #<Class:0x00000004dc54e8>
EGreg has quit [Ping timeout: 260 seconds]
duderonomy has joined #ruby
kent\n has quit [Quit: Quitting]
kent\n has joined #ruby
dionysus69 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
<Radar>
Trello sure is looking like a good alternative right about now, eh?
orbyt_ has quit [Ping timeout: 244 seconds]
\void has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
thy0 has quit [Quit: TTFN]
dionysus69 has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
t0xik has quit [Quit: Connection closed for inactivity]
Azure has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
qolq has quit [Ping timeout: 272 seconds]
EGreg2 has quit [Remote host closed the connection]
sspreitz has quit [Ping timeout: 272 seconds]
sspreitz has joined #ruby
braincrash has quit [Quit: bye bye]
gix has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
AJA4350 has quit [Quit: AJA4350]
braincrash has joined #ruby
dionysus69 has joined #ruby
donofrio has quit [Remote host closed the connection]
akkiguru_ has joined #ruby
<akkiguru_>
anyone worked on Logstash ruby code before?
darkhanb has joined #ruby
ponzii has joined #ruby
akkiguru_ has quit [Ping timeout: 240 seconds]
<ponzii>
Is there any slice of a URL which identifies a site as a Rails site? Ok, I can search the source for data-turbolinks-track but the source code isn't necessarily available. In order to locate Rails sites in a Google search I have to use, eg. site:*.com/assets/ but I'm not sure this is unique to Rails.
wyoung has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
<wyoung>
.o/
lytol_ has quit [Remote host closed the connection]
mroutis has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 244 seconds]
s2013 has joined #ruby
akkiguru_ has joined #ruby
akkiguru_ has quit [Quit: ByrdIRC]
dionysus69 has joined #ruby
mroutis has joined #ruby
snuz has quit [Quit: WeeChat 2.2]
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus69 has joined #ruby
mroutis has quit [Remote host closed the connection]
Eiam has quit [Ping timeout: 265 seconds]
tty has quit [Quit: tty]
za1b1tsu has joined #ruby
tfitts has joined #ruby
<mrush>
termbin.com/xrl2 is it possible to cause a string of hexadecimal escapes to encode to ASCII-8BIT? why is ruby changing my string encoding to UTF-8
kujira has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
tty has joined #ruby
vonfry has joined #ruby
Dbugger has joined #ruby
bambanx has quit [Read error: Connection reset by peer]
akaiiro has quit [Remote host closed the connection]
\void has quit [Quit: So long, and thanks for all the fish.]
dviola has quit [Quit: WeeChat 2.2]
Inline has quit [Quit: Leaving]
tristanp has joined #ruby
tristanp has quit [Ping timeout: 240 seconds]
archedice has quit [Ping timeout: 245 seconds]
nibbo_ has quit [Ping timeout: 256 seconds]
kapil___ has joined #ruby
bambanx has joined #ruby
apeiros has quit [Remote host closed the connection]
aufi has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
aupadhye has joined #ruby
_whitelogger has joined #ruby
bambanx has quit [Quit: Leaving]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
reber has joined #ruby
dionysus69 has joined #ruby
vonfry has quit [Quit: WeeChat 2.2]
cibs has quit [Ping timeout: 260 seconds]
Mike11 has joined #ruby
dellavg has joined #ruby
sauvin has joined #ruby
za1b1tsu has quit [Quit: WeeChat 2.1]
za1b1tsu has joined #ruby
niexxx has joined #ruby
TomyWork has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Burgestrand has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
Burgestrand has quit [Quit: Closing time!]
LiftLeft has quit [Remote host closed the connection]
mlehrer has quit [Ping timeout: 265 seconds]
apeiros has joined #ruby
jottr has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
Beams has joined #ruby
Burgestrand has joined #ruby
nowhere_man has quit [Ping timeout: 256 seconds]
drale2k_ has joined #ruby
kerunaru has joined #ruby
outhicat has joined #ruby
ferhaty has joined #ruby
outhicat has quit []
outhicat has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
Cork has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 240 seconds]
t0xik has joined #ruby
Nicmavr has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: Closing time!]
Nicmavr has joined #ruby
nowhere_man has joined #ruby
jottr has joined #ruby
Burgestrand has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
dhollin3 has joined #ruby
dhollinger has quit [Ping timeout: 260 seconds]
vondruch has joined #ruby
alex`` has joined #ruby
titanmaru has joined #ruby
apeiros has quit []
troys has quit [Quit: Bye]
<dionysus69>
I have a rails problem and this specific one I think it applies to ruby channel too, this is the sheet I made with GC.stat per each request, my problem is that memory consumption increases drastically, from 300 to 900mb in like 10-15 requests? and, I am refreshing same page! this is the sheet, each column is one request https://docs.google.com/spreadsheets/d/16bmmoggLNUW9Qpe3q2lvLDL4eFoVe2anorKFjE70Zt8/edit?usp=sharing if anyone notices anythin
<dionysus69>
only thing I could notice that would grab my attention is that total_allocated_objects increases from 3 million to 80 million
<dminuoso>
dionysus69: I dont think it's a memory leak.
<dminuoso>
You should probably tap into ObjectSpace, trace allocations
<dionysus69>
still ? :P ok I will try disabling asset pipeline and see what happens
<dminuoso>
Do some shenanigans.
<dionysus69>
thing is that I have 0 experience in that stuff so far so I have trouble deciding what to look at exactly
<dminuoso>
I suspect it might be some sub-optimal caching behavior.
<dionysus69>
I have redis yes and I do some caching, that's what you mean? but if I do very poor caching, it's the redis server process that should get fat not the rails one right?
<dminuoso>
dionysus69: You have to dig very hard through objectspace I suspect.
<dionysus69>
I guess :D I even checked number of allocated symbols accross the app and the number doesn't grow crazily
tristanp has quit [Ping timeout: 240 seconds]
<dionysus69>
dminuoso: it maybe sprocket thing and you maybe right and this amount of ram consumption maybe normal, just got out of hand couple of times and it became suspicious, config.assets.debug = true and precompiled assets now process doesn't grow more than 300mb, 3-4 times less
Freshnuts has quit [Quit: Leaving]
jottr has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
niexxx has quit [Ping timeout: 240 seconds]
titanmaru has quit [Remote host closed the connection]
Cork has joined #ruby
aufi has quit [Ping timeout: 268 seconds]
discopatrick has joined #ruby
GodFather has joined #ruby
clemens3 has joined #ruby
graphene has quit [Read error: Connection reset by peer]
graphene has joined #ruby
kerunaru has quit [Quit: leaving]
kerunaru has joined #ruby
graphene has quit [Remote host closed the connection]
<alex``>
title, itunes:author, enclosure (url, type), guid, pubDate, etc.
<alex``>
Is there a way to expose as a Ruby object?, Hash / Array
<alex``>
instead of methods: item.title, item.itunes_author
<alex``>
like: item holding a hash, item['itunes:author'], etc.
outhicat has quit []
za1b1tsu has quit [Ping timeout: 272 seconds]
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
clemens3 has quit [Quit: quit]
kapil___ has joined #ruby
t0xik has quit [Quit: Connection closed for inactivity]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zaab1t has joined #ruby
AJA4350 has joined #ruby
Burgestrand has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
drale2k_ has joined #ruby
sticaz has quit [Quit: My name Heff]
DTZUZO has joined #ruby
clemens3 has joined #ruby
clemens3 has quit [Client Quit]
sticaz has joined #ruby
kerunaru has quit [Quit: leaving]
clemens3 has joined #ruby
hfp has joined #ruby
za1b1tsu has joined #ruby
<hfp>
Hi all, someone asked me the other day how to do this in Ruby and I'm curious what the actual solution is: assuming you have a function that takes two arguments: arg1 and library. You can pass that function any library to operate on arg1, but you don't know the API to library when writing the function. How do you make that function do its thing with arg1 when passing any arbitrary library? So I though you could
<hfp>
add a third argument to the signature and make it a block which you'd run within the function, and it's the user's responsibility to write that block using library's API to manipulate arg1. Was a right? Is there a better way?
kerunaru has joined #ruby
graphene has quit [Remote host closed the connection]
<hfp>
And can the code within the block access the function's arguments when it's executed?
graphene has joined #ruby
za1b1tsu has quit [Ping timeout: 260 seconds]
bijan_ has joined #ruby
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
thy0 has joined #ruby
nowhereman_ has joined #ruby
<kerunaru>
exit
<kerunaru>
Ooops...
<kerunaru>
Sorry, guys
kerunaru has quit [Quit: leaving]
gigetoo has joined #ruby
jcalla has joined #ruby
bmurt has joined #ruby
<ineb>
hfp: so you are basically looking for glue code that passes arg1 to library in whatever ways
<ineb>
in your scenario, your function cant do it.
graphene has quit [Remote host closed the connection]
<ineb>
iam not asking why, because usually thats the job of a function that takes the two arguments arg1 and library
za1b1tsu has joined #ruby
<ineb>
then your thoughts were right. you can pass this glue code via block
graphene has joined #ruby
bmurt has quit [Client Quit]
<ineb>
<< def glue(arg1,library); yield arg1, library end; glue("1", "2") { |a,b| p a + b }
<ineb>
>> def glue(arg1,library); yield arg1, library end; glue("1", "2") { |a,b| p a + b }
<alex``>
but I need to get the data from feeds which is useful
<alex``>
to collect the data songs
bijan_ has joined #ruby
za1b1tsu has joined #ruby
bijan_ has quit [Ping timeout: 255 seconds]
za1b1tsu has quit [Ping timeout: 260 seconds]
qolq has joined #ruby
jottr has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bijan_ has joined #ruby
tristanp has joined #ruby
ferhaty has quit [Quit: ferhaty]
bijan_ has quit [Ping timeout: 255 seconds]
tristanp has quit [Ping timeout: 260 seconds]
apeiros_ has joined #ruby
apeiros_ is now known as apeiros
bijan_ has joined #ruby
augcesar has joined #ruby
dviola has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
za1b1tsu has joined #ruby
dhollin3 is now known as dhollinger
Rapture has joined #ruby
[Butch] has joined #ruby
za1b1tsu has quit [Ping timeout: 268 seconds]
drale2k_ has joined #ruby
jottr has joined #ruby
bijan_ has joined #ruby
c0ncealed2 has quit [Remote host closed the connection]
c0ncealed2 has joined #ruby
Fr4n has quit [Read error: Connection reset by peer]
Fr4n has joined #ruby
despai has quit [Quit: ...]
blood has joined #ruby
bijan_ has quit [Ping timeout: 256 seconds]
<blood>
https://dpaste.de/GcCV ruby's win32 service keeps complaining that the service i'm trying to configure doesn't exist but it does... any ideas?
<blood>
I'm assuming the issue is it isn't handling the spaces properly
venmx has joined #ruby
dtom has joined #ruby
<dtom>
hey guys... noob question. I am trying to use net-ssh to ssh to the servers and execute some commands.... How do I write a function that if ssh password failed to try different password ??
<dtom>
Please help
bijan_ has joined #ruby
<apeiros>
soooo you're writing a brute-force cracker?
kapil___ has quit [Quit: Connection closed for inactivity]
jcarl43 has quit [Quit: WeeChat 2.2]
cajone has joined #ruby
cajone has left #ruby [#ruby]
jcarl43 has joined #ruby
apeiros_ has joined #ruby
sauvin has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Ping timeout: 256 seconds]
maciuszek has quit [Excess Flood]
maciuszek has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
aeontech has joined #ruby
<aeontech>
hi all
<aeontech>
has anyone here done much raw arel?
<aeontech>
i can't figure out the syntax to generate "WHERE ? = ANY(column)" for an array column
Zaab1t has quit [Quit: Zaab1t]
doubledup has joined #ruby
aeontech has quit [Client Quit]
aeontech has joined #ruby
dionysus70 has joined #ruby
<Criten>
aeontech: like .where("? = ANY('asdf')", 'asdfasdf')
<Criten>
or whatever
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
<apeiros_>
?ar aeontech
<ruby[bot]>
aeontech: For activerecord/arel questions, please join #RubyOnRails, since they're maintained as a part of it. Note: you need to be identified with NickServ, see /msg NickServ HELP
<apeiros_>
chances over there are probably better
apeiros_ is now known as apeiros
IanMalcolm has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
kujira has quit [Quit: leaving]
akaiiro has quit [Ping timeout: 272 seconds]
dviola has quit [Quit: WeeChat 2.2]
go|dfish has joined #ruby
<aeontech>
thanks!
<aeontech>
@Criten: that's good for records against activerecord models, I think, but not if I'm not using activerecord models (this is for stats/aggregations, which don't make sense to have model representations for each row.
aeontech has quit [Quit: aeontech]
<Criten>
apeiros: just run a raw query then?
<Criten>
I guess i havent really looked into arel without AR
dionysus69 has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: No Ping reply in 180 seconds.]
pskosinski has joined #ruby
aeontech has joined #ruby
za1b1tsu has quit [Ping timeout: 272 seconds]
za1b1tsu has joined #ruby
fluxAeon has quit [Read error: Connection reset by peer]
fmcgeough has quit [Quit: fmcgeough]
Rapture has quit [Read error: Connection reset by peer]
fluxAeon has joined #ruby
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
Nicmavr has quit [Read error: Connection reset by peer]
faitswulff has joined #ruby
Nicmavr has joined #ruby
nowhereman_ has joined #ruby
kryptoz has joined #ruby
jottr has joined #ruby
discopatrick has quit [Quit: Connection closed for inactivity]
<apeiros>
Criten: I assume you meant aeontech?
<Criten>
correct :P
graphene has quit [Remote host closed the connection]
graphene has joined #ruby
za1b1tsu_ has joined #ruby
za1b1tsu_ has quit [Ping timeout: 272 seconds]
eyeris has joined #ruby
ur5us has joined #ruby
<eyeris>
At some point an ancient version of the tzinfo gem was installed. Now I have .rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/specifications/tzinfo-0.3.52.gemspec, which causes the newest rubygems to complain about the deprecated has_rdoc= method. What command will get rid of this ancient specification? I've tried gem cleanup to no avail.