<ramfjord>
I'm trying to do something similar with sql.erb files, but I don't want the whole view structure that comes with ActionView
<Radar>
ramfjord: #rubyonrails
<ramfjord>
hmmm, would have thought this would be more of an ERB question
<ramfjord>
I'll ask there
theberlin has quit [Remote host closed the connection]
charliesome has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
pietr0 has quit [Quit: pietr0]
paulcsmith_ has quit [Quit: Be back later ...]
mleung has quit [Quit: mleung]
jonatin has quit [Ping timeout: 252 seconds]
SouL_ has quit [Remote host closed the connection]
graydot has joined #ruby
deol is now known as michaeldeol
<pipework>
ramfjord: Have you perused actionview as whale? I haven't looked in a long time but it might be your best bet for a definitive answer.
bruno- has quit [Ping timeout: 256 seconds]
startupality has quit [Quit: startupality]
sevenseacat has joined #ruby
CorySimmons has quit [Quit: Bye!]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
startupality has joined #ruby
graydot has quit [Client Quit]
sevvie has joined #ruby
Spami has joined #ruby
n_blownapart has quit []
adriancb has quit [Remote host closed the connection]
jonr22 has quit [Quit: WeeChat 1.1.1]
<ramfjord>
pipework: no, I was trying to avoid that haha
<pipework>
ramfjord: PROFESSIONAL LEVEL DOCUMENTATION!
<ramfjord>
I'll probably just assign the varaibles in the template before rendering the partial if I can't figure out how to pass locals in within the next 20 mins
marr has quit []
kblake has quit [Remote host closed the connection]
<pipework>
ramfjord: What's wrong with what I suggested about using a tree of objects to halp manage scope of variables?
<pipework>
A sad thing you might be able to do is munge those variables so that each scope they exist in have uniquely munged variables that they end up calling so you can make a single call to ERB with the whole string later.
Sawbones has joined #ruby
<pipework>
But that's trying to optimize.
nii2361 has quit [Ping timeout: 252 seconds]
zorak8 has quit [Quit: Leaving]
<ramfjord>
pipework: I'm not seeing your suggestion...?
Cache_Money has quit [Quit: Cache_Money]
freerobby has quit [Quit: Leaving.]
<pipework>
ramfjord: How are you passing variables at the very beginning to the first view?
lordkryss has quit [Quit: Connection closed for inactivity]
bim has quit [Remote host closed the connection]
<ramfjord>
they are in the current binding
thumpba_ has quit [Ping timeout: 248 seconds]
<ramfjord>
of what calls render_sql
reinaldob has joined #ruby
Motoservo has joined #ruby
<pipework>
Alright, so, whenever your current binding calls the thing that you call to render a partial, have that method that you call get a new object. Then within that new object that was passed locals, you can on initialize either define methods or be lazy and use method_missing to both call those locals as whale as probably define a method.
<pipework>
Like render would call, SQLPartial.new and pass it whatever is appropriate, including self so that you can let a template call the parent's 'locals'
<pipework>
If you want.
<ramfjord>
ahh, pass in self as the parent and method_missing? delegate anything that's not in the new object's binding to self
bim has joined #ruby
arescorpio has joined #ruby
<pipework>
ramfjord: Whale, I'd check current self first, then I'd check parent, then I'd raise.
jonr22 has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
<ramfjord>
right - by self I meant parent, and by new object I meant current self
<pipework>
Yeah.
GaryOak_ has quit [Remote host closed the connection]
icebourg has joined #ruby
Takle has quit [Remote host closed the connection]
<pipework>
Or, if you're awesome, you won't allow partials to call parents at all and you'll require that anything it needs be passed in.
<pipework>
That would make it even easier.
milesmatthias has quit [Remote host closed the connection]
bim has quit [Remote host closed the connection]
milesmatthias has joined #ruby
delianides has joined #ruby
Lewix has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
gluten_hell_ has joined #ruby
adriancb has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
Motoservo has quit [Quit: Over & out.]
jonr22 has quit [Quit: WeeChat 1.1.1]
jonr22 has joined #ruby
oo_ has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
reinaldob has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
milesmatthias has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit [Ping timeout: 248 seconds]
Yzguy has joined #ruby
mjuszczak has quit []
gluten_hell_ has quit [Ping timeout: 264 seconds]
jgrevich has joined #ruby
Sid05 has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Ping timeout: 245 seconds]
Sid05 has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
startupality has quit [Quit: startupality]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devyn has quit [Read error: Connection reset by peer]
paulcsmith_ has joined #ruby
nettoweb has joined #ruby
devyn has joined #ruby
paulcsmith_ has quit [Client Quit]
sparch has joined #ruby
riotjones has joined #ruby
spyderman4g63 has joined #ruby
zarubin_ has joined #ruby
bricker has quit [Ping timeout: 272 seconds]
Stalkr^ has quit [Quit: Leaving...]
spyderma_ has joined #ruby
adriancb has joined #ruby
krisquigley has joined #ruby
arrubin has joined #ruby
sevvie has joined #ruby
Nuck has joined #ruby
bim has joined #ruby
RegulationD has joined #ruby
riotjones has quit [Ping timeout: 256 seconds]
DavidDud_ has joined #ruby
freerobby has joined #ruby
zarubin_ has quit [Ping timeout: 256 seconds]
bim has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 272 seconds]
sankaber has joined #ruby
bim has joined #ruby
freerobby has quit [Client Quit]
bim has quit [Remote host closed the connection]
ramfjord_ has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
DavidDudson has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
sevvie has quit [Remote host closed the connection]
doritostains has quit [Quit: WeeChat 1.0.1]
sevvie has joined #ruby
zacts has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dude007 has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
DavidDud_ has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
DavidDudson has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
colorisco has quit [Ping timeout: 255 seconds]
iteratorP has joined #ruby
Deele has quit [Ping timeout: 256 seconds]
iteratorP has quit [Remote host closed the connection]
einarj has joined #ruby
mjuszczak has joined #ruby
DavidDudson has quit [Client Quit]
iteratorP has joined #ruby
DavidDudson has joined #ruby
mjuszczak has quit [Client Quit]
basiclaser has quit [Quit: Connection closed for inactivity]
bim has joined #ruby
DavidDudson has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
nii2361 has joined #ruby
Sid05 has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 272 seconds]
Rollabunna has quit [Remote host closed the connection]
<gr33n7007h>
boo
jonr22 has quit [Quit: WeeChat 1.1.1]
zzing has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sankaber has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
rrichardsr3 has joined #ruby
oo_ has quit [Remote host closed the connection]
yqt has quit [Ping timeout: 250 seconds]
palms has joined #ruby
iliketurtles has joined #ruby
kaleido has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
davispuh has quit [Remote host closed the connection]
astrobun_ has joined #ruby
babykosh has quit [Quit: babykosh]
bigkevmcd has quit [Ping timeout: 250 seconds]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
tkuchiki has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
bruno- has quit [Ping timeout: 264 seconds]
adriancb has joined #ruby
ascarter has joined #ruby
dfinninger has quit [Remote host closed the connection]
oo_ has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
chipotle has joined #ruby
freerobby has joined #ruby
babykosh has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
baweaver has joined #ruby
juanpaucar has joined #ruby
babykosh has quit [Client Quit]
zacts` has joined #ruby
amclain has joined #ruby
sparch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
adriancb has quit [Remote host closed the connection]
DavidDudson has joined #ruby
gsd has joined #ruby
bigkevmcd has joined #ruby
icebourg has quit []
zacts has quit [Ping timeout: 265 seconds]
juanpaucar has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanca_ has joined #ruby
jerematic has joined #ruby
sevvie has joined #ruby
jeromelanteri has joined #ruby
benlieb_ has joined #ruby
Yzguy has quit [Read error: Connection reset by peer]
OtterCoder has quit [Ping timeout: 272 seconds]
kaleido has joined #ruby
kaleido has quit [Client Quit]
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cocotton has quit [Remote host closed the connection]
zacts` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
adriancb has joined #ruby
cmckee has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
sparch has joined #ruby
mistermocha has joined #ruby
bigkevmcd has quit [Ping timeout: 264 seconds]
iamninja has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Soliah has joined #ruby
iamninja has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
Filete has joined #ruby
patrick99e99 has quit [Read error: Connection reset by peer]
leafybasil has quit [Remote host closed the connection]
zzing has joined #ruby
patrick99e99 has joined #ruby
Renich has joined #ruby
sevvie has quit [Remote host closed the connection]
palms has quit [Ping timeout: 264 seconds]
Synthbread has joined #ruby
tcrypt has quit [Remote host closed the connection]
Jadam has joined #ruby
tcrypt has joined #ruby
CodyStringham has joined #ruby
juanca_ has quit []
iasoon has quit [Read error: Connection reset by peer]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
<sevenseacat>
and that sucks, but this is a public forum
<gr33n7007h>
fucking my apologies :(
<pipework>
This isn't America, this is the internet.
<ebbflowgo>
hi, i'm using jruby with a clojure file... one of my variables returns an array in clojure but with the jrclj it returns a Java::Clojure::PersistentArrayMay I'm struggling with converting this to a ruby array https://gist.github.com/ebbflowgo/12ccaf0a0b783de984d7
panga has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
5EXAAWDAF has quit [Remote host closed the connection]
<pipework>
You might have to cast that to something first.
<pipework>
Ask #jruby
<ebbflowgo>
pipework: tjat
<gr33n7007h>
pipework: wtf?
<ebbflowgo>
great suggestion, i'll ask in there
<CorySimmons>
Anyone here use Sass/Compass? Their channels are dead.
delianides has quit [Ping timeout: 255 seconds]
<sevenseacat>
yes.
sevvie has quit [Ping timeout: 244 seconds]
ponga has quit [Ping timeout: 248 seconds]
<Radar>
!used
<helpa>
Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
cmckee has quit [Quit: cmckee]
ghostpl_ has joined #ruby
mjuszcza_ has quit []
dexteryy has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CodyStringham has quit [Remote host closed the connection]
sevvie has joined #ruby
CodyStringham has joined #ruby
panga has quit [Remote host closed the connection]
dexteryy has quit [Max SendQ exceeded]
dexteryy has joined #ruby
milesmatthias has joined #ruby
julieeharshaw has quit [Ping timeout: 252 seconds]
ponga has joined #ruby
mjuszczak has joined #ruby
ghostpl_ has quit [Ping timeout: 264 seconds]
CodyStringham has quit [Ping timeout: 252 seconds]
julieeharshaw has joined #ruby
reinaldob has joined #ruby
kreeves has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
dexteryy has quit [Max SendQ exceeded]
mjuszcza_ has joined #ruby
DerisiveLogic has quit [Ping timeout: 264 seconds]
mjuszczak has quit [Ping timeout: 264 seconds]
Rapier- has quit [Quit: (null)]
dexteryy has joined #ruby
reinaldob has quit [Ping timeout: 252 seconds]
postmodern has quit [Ping timeout: 265 seconds]
iterator_ has joined #ruby
oo_ has quit [Remote host closed the connection]
nii2361 has quit [Ping timeout: 272 seconds]
iterator_ has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
krisquigley has joined #ruby
DeathCode has quit [Client Quit]
iamninja has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
benlieb_ has joined #ruby
ahmetkapikiran has quit [Quit: ahmetkapikiran]
wildroman2 has joined #ruby
vtunka has joined #ruby
dopie has joined #ruby
_1_saransh has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
lolmaus has joined #ruby
colorisco has joined #ruby
devoldmx_ has quit [Remote host closed the connection]
benlieb_ has quit [Quit: benlieb_]
Joufflu has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
ramfjord has joined #ruby
agrinb has joined #ruby
ahmetkapikiran has joined #ruby
juanpaucar has joined #ruby
jimms has joined #ruby
towski_ has joined #ruby
Zai00 has joined #ruby
lessless has quit [Max SendQ exceeded]
agrinb has quit [Ping timeout: 265 seconds]
juanpaucar has quit [Ping timeout: 255 seconds]
devoldmx has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babykosh has joined #ruby
arup_r_ has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
zzing has joined #ruby
elaptics_away is now known as elaptics
aswen has quit [Quit: WeeChat 1.0.1]
Mon_Ouie has quit [Ping timeout: 246 seconds]
zarubin_ has joined #ruby
towski_ has quit [Remote host closed the connection]
<SebastianThorn>
hi guys, can i differ in my sinatra code how my app is run? i would like to use "puts" when shotgun, and logger when apache is run
stef204 has joined #ruby
<SebastianThorn>
or is there an easier way of doing this?
chinmay_dd has quit [Ping timeout: 245 seconds]
<adaedra>
Use environments
<adaedra>
Use a single logger with different parameters (minimal level, output) under different environments (development, production)
camilasan has quit [Ping timeout: 255 seconds]
<adaedra>
And let apache use your app in production mode
bim has joined #ruby
rayleigh415 has quit [Remote host closed the connection]
<SebastianThorn>
ok, sorry if i misunderstood, is this something i set manually, or something that i can do dynamicly? So i can run the exact same code in dev and production
zarubin_ has quit [Ping timeout: 264 seconds]
<adaedra>
there’s multiple ways of setting this
camilasan has joined #ruby
<adaedra>
I think the RACK_ENV environment variable is the most common
<SebastianThorn>
ok, i found some pieces on google regarding this now, thank you for pointing me in the right direction :)
<adaedra>
np
edwinvdgraaf has joined #ruby
blackmesa has joined #ruby
delianides has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
Takle has quit [Remote host closed the connection]
djbkd has joined #ruby
quimrstorres has joined #ruby
mengu has quit [Ping timeout: 248 seconds]
Rollabunna has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
delianides has quit [Ping timeout: 244 seconds]
DavidDudson has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
pagios has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 246 seconds]
Trioxin_ has joined #ruby
julweber has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lkba has joined #ruby
lkba_ has quit [Read error: Connection reset by peer]
julweber has quit [Remote host closed the connection]
ahmetkapikiran has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jimms has joined #ruby
chihhsin has quit [Ping timeout: 264 seconds]
chihhsin has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Klaidas has joined #ruby
bruno- has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
mengu has joined #ruby
piotrj has joined #ruby
stoffus has quit [Ping timeout: 272 seconds]
withnale_ has joined #ruby
senayar has quit [Ping timeout: 244 seconds]
wicope has quit [Read error: Connection reset by peer]
bruno- has quit [Ping timeout: 252 seconds]
_1_leon11 has joined #ruby
<_1_leon11>
hii
User458764 has joined #ruby
Klaidas has quit [Quit: Leaving]
_1_leon11 has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wicope has joined #ruby
AlphaTech has joined #ruby
juanpaucar has joined #ruby
agrinb has joined #ruby
Akagi201_ has quit []
juanpaucar has quit [Ping timeout: 256 seconds]
agrinb has quit [Ping timeout: 265 seconds]
sevvie has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Ping timeout: 256 seconds]
Pharaoh2_ has joined #ruby
Pharaoh2 has quit [Disconnected by services]
nakano_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
vtunka has joined #ruby
pwattste has joined #ruby
mistermocha has joined #ruby
nakano_ has joined #ruby
iteratorP has quit [Ping timeout: 250 seconds]
wildroman3 has quit [Remote host closed the connection]
babykosh has quit [Quit: babykosh]
wildroman2 has joined #ruby
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
multiscan has joined #ruby
Pharaoh2_ has quit [Quit: Byebye]
DeathCode has joined #ruby
<DeathCode>
is java ever used for web dev?
<adaedra>
I’m not sure this is the place for this, DeathCode
<DeathCode>
oh wrong channel
<DeathCode>
this was meant for ##java
<adaedra>
that makes sense
sdothum has joined #ruby
<workmad3>
DeathCode: in answer to your question though, 'yes, lots'
<DeathCode>
workmad3:what about web databases?
<workmad3>
DeathCode: what about them?
<DeathCode>
can java be used for them?
<workmad3>
DeathCode: as in "What you do mean by 'web databases'?"
Dude007 has quit [Remote host closed the connection]
<adaedra>
Java is a generic language, it can be used for many things
<DeathCode>
can java develop web databases?
<DeathCode>
that was my question
<adaedra>
and his was « what do you mean by 'web databases'? »
Pupeno has quit [Remote host closed the connection]
<workmad3>
DeathCode: I have no clue what the fuck a 'web database' is though... it's not actually a term that makes sense
<DeathCode>
like a database stored on the web
<DeathCode>
like profile information
<DeathCode>
data
<DeathCode>
for each profile
<workmad3>
DeathCode: ok... and now you're still spouting nonsense... 'database stored on the web'???
<DeathCode>
i dunno how to explain
<DeathCode>
but can java be used for that
<workmad3>
DeathCode: considering I have no clue what you're even asking, I don't know how you expect an answer...
<adaedra>
if we cannot understand what you mean, we can’t give you an answer
<DeathCode>
ok hold on
<DeathCode>
let me try
<adaedra>
begin*
<workmad3>
DeathCode: do you mean 'A web app that stores data in a database'?
iasoon has joined #ruby
<DeathCode>
ok so lets say i have this website where i have people's information, banking info, pictures, text, aboue me section, etc. as profiles on there where people can log in and stuff and access that etc.
<DeathCode>
kinda like facebook or tinder or what have you
<workmad3>
DeathCode: ok... you just described a fairly typical web app, yes
<DeathCode>
i want to use java to handle those "databases"
<workmad3>
DeathCode: or at least, part of one
<DeathCode>
can that be done?
<workmad3>
DeathCode: that's not a 'database'... that's a web app
<DeathCode>
ok its kind of like a database though
<DeathCode>
lol
<workmad3>
DeathCode: it most likely *uses* a database
<DeathCode>
but ye thats what i mean
<adaedra>
You’re still not really clear
<DeathCode>
YES YES
devoldmx has joined #ruby
<workmad3>
DeathCode: but it has application logic that handles the stuff like 'logging in' and 'access control' in ways beyond what a generic database server provides
<DeathCode>
so thats good?
<workmad3>
DeathCode: so basically your question is twofold - "Can java do webapps?" which was already answered, and "Can java access databases?" to which the answer should be pretty damn obvious :P
<adaedra>
yes, a web application, even database-backed, can be developped in Java, if it’s what you’re asking
piotrj has quit [Remote host closed the connection]
jimms has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
jimms has joined #ruby
banister has joined #ruby
Dude007 has joined #ruby
vdamewood has joined #ruby
<certainty>
what's so hot about crystal?
phreakocious has quit [Ping timeout: 250 seconds]
phreakocious has joined #ruby
startupality has quit [Quit: startupality]
<jhass>
feels a lot like writing ruby
einarj has quit [Remote host closed the connection]
startupality has joined #ruby
<jhass>
but you end up with a regular binary
Takle has quit [Remote host closed the connection]
<certainty>
alright
Mon_Ouie has quit [Ping timeout: 250 seconds]
<livcd>
how does it compare to something like Elixir ?
<certainty>
if it supports static linkage that would be awin
cpt_yossarian has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
piotrj has joined #ruby
<jhass>
certainty: totally possible
workmad3 is now known as wm3|away
elfuego has joined #ruby
quimrsto_ has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
<certainty>
i don't use ruby for anything performance critical so speed is not a reason. having a single binary is nice for deployment and having a statically linked binary even more so.
wildroman2 has quit [Remote host closed the connection]
<certainty>
i had hoped that the language offered some more niceties though
quimrstorres has joined #ruby
<certainty>
(it may. i haven't looked closely)
Aswebb_ has quit [Read error: Connection reset by peer]
bim has quit [Remote host closed the connection]
Aswebb_ has joined #ruby
v0dro has quit [Quit: Leaving.]
brb3 has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
lanemeyer has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
<certainty>
how do you approach the problems that arise with the usage of let in rspec? I mean when you have let-bound a value and want to make sure it exists before something else. Before-hooks don't work nice here. Also let! doesn't work so nice in situations whith nested contexts where the order of the creation of values matters, and a let! at the top is simply too early.
Takle has joined #ruby
<certainty>
my current solution is a small helper: def force(*); end which i use to deliberately force those values
nfk has joined #ruby
msgodf has joined #ruby
yh has quit [Ping timeout: 250 seconds]
serivich has joined #ruby
Lewix has joined #ruby
juanpaucar has joined #ruby
agrinb has joined #ruby
oo_ has quit [Remote host closed the connection]
<jhass>
certainty: it's easy to write C bindings in it and thus it could be great as a glue language to Ruby for example, a PoC of writing a Ruby extension in it is here: https://github.com/manastech/crystal_ruby
mpistone has joined #ruby
moeSeth_ has joined #ruby
bim has joined #ruby
teddyp1cker has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
mostlybadfly has joined #ruby
<jhass>
the macro language has (potentially) complete AST access, so that offers some nice metaprogramming possibilities for being a compiled language
agrinb has quit [Ping timeout: 256 seconds]
symbol has joined #ruby
<jhass>
I'm not saying it'll replace Ruby though
arup_r has quit [Remote host closed the connection]
<jhass>
but it could bring the feeling of writing Ruby into other areas, like GUI applications where Ruby is not very popular atm
deuteriu_ has joined #ruby
mistermocha has joined #ruby
jheg has joined #ruby
mhib has joined #ruby
sigurding has joined #ruby
g105b has joined #ruby
Soda has joined #ruby
arup_r has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
<g105b>
Hi I'm meant to be fixing some JavaScript on a project made in Ruby... I don't know anything about Ruby, so I was wondering if someone could tell me what to do to get the project running locally? I have a Gemfile, a Gemfile.lock, then all the source, and I don't know how to get started.
silkfox has joined #ruby
<jhass>
g105b: do you have ruby installed?
<g105b>
jhass: yes
Takle has quit [Remote host closed the connection]
<jhass>
is there a ruby line in the Gemfile or a .ruby-version or .rvmrc file?
<g105b>
jhass: ruby '2.1.5'
Rollabunna has quit [Remote host closed the connection]
<g105b>
that's inside Gemfile
djellemah_ has joined #ruby
<jhass>
do you have that version of ruby?
sandelius has joined #ruby
<g105b>
Ah, no I'm a couple of minor versions back.
<jhass>
okay, if it's still 2.1 you can get away with changing that line to the version you have or removing it
<jhass>
how did you install ruby? package manager?
adriancb has quit [Read error: Connection reset by peer]
<g105b>
jhass: yeah, Debian.
<arup_r>
from array `[//, /^GET$/, /^GET$/, /^GET$/, /^POST$/, /^DELETE$/] I want only the verb names
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<arup_r>
what is the good regexp for that ?
adriancb has joined #ruby
jamto11 has joined #ruby
<jhass>
g105b: alright, run sudo gem install bundler; and then bundle install --path vendor/bundle
<g105b>
Am I right in thinking that the Gemfile is used by the bundler application?
<jhass>
if you don't you loose the main point of using bundler in fact
<g105b>
jhass: ah it looks like I need to have that version of ruby installed. I changed it in the Gemfile to match mine, but I get this error: mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
<adaedra>
I always leave it ignored, as it is generated by bundle
<arup_r>
looking for cool solutions
teddyp1cker has quit [Remote host closed the connection]
<g105b>
jhass: can you confirm that my error is due to ruby version?
<jhass>
g105b: no it's not, you need to install the ruby-dev package
<jhass>
because debian likes to cripple stuff ;P
ascarter has joined #ruby
<jhass>
adaedra: as said, you loose the main point of using bundler this way
Takle has joined #ruby
<g105b>
jhass: I understand why Debian does what it does, but it's times like these you wish you had more control.
sevvie has quit [Ping timeout: 252 seconds]
ponga_ has joined #ruby
<certainty>
jhass: i see. not a must have for me though (being able to use the C FFI). I tend to avoid C, but it might me nice for others
<g105b>
jhass: ok, the bundle install has completed successfully, now all I need to do is build/serve the app so I can view it in my local browser.
AlexRussia has quit [Remote host closed the connection]
v0dro has joined #ruby
tgunr has quit [Ping timeout: 245 seconds]
<jhass>
certainty: yeah, the binding case might be a bit contrived, an easier way to port some performance critical code to native code might be more realistic
<jhass>
g105b: yup, how to do that depends on what it actually is, there are many webframeworks in Ruby
<certainty>
jhass: yeah
ponga has quit []
ponga_ is now known as ponga
adriancb has quit [Remote host closed the connection]
senayar has quit []
senayar has joined #ruby
sevvie has joined #ruby
DerisiveLogic has joined #ruby
Megtastique has joined #ruby
arup_r has quit [Remote host closed the connection]
Vivex has quit [Read error: Connection reset by peer]
<g105b>
jhass: looks like something called sprockets
gr33n7007h has quit [Quit: WeeChat 1.1.1]
<g105b>
jhass: just installed sprockets, from seeing it mentioned at the top of config.ru, so all I need to know now is how to tell sprockets to ... sprock.
<jhass>
g105b: that's used in for example Rails but not a webframework in itself
<g105b>
jhass: ah , well I'm getting there :)
<jhass>
maybe just gist your Gemfile ;)
<g105b>
jhass: could it be "rack"?
<adaedra>
gist you Gemfile, we would find quicker
julweber has quit [Remote host closed the connection]
<jhass>
rack is a generic interface for ruby webframeworks and application servers
<jhass>
all remotely popular Ruby webframeworks run on top of it these days ;)
multiscan has quit [Remote host closed the connection]
multiscan has joined #ruby
<jhass>
gregf_: that's what I wrote...
davidhq has quit [Max SendQ exceeded]
<gregf_>
jhass: i know. :). possibly yours was better :/
<jhass>
for three items it's more clear to have it with three modifier ifs IMO
Lewix has quit []
<gregf_>
3 if's is PHP style of coding :/
<avril14th>
:)
yqt has quit [Ping timeout: 244 seconds]
<jhass>
no, PHP doesn't have modifier-if ;
<jhass>
;P
<gregf_>
heh
clumps has joined #ruby
<jhass>
if Permssion would allow hash style access (like an OpenStruct, AR::Base, Hashie::Whatever etc.) you could access.concat %w(create edit track).select {|perm| permission[perm] }
tcrypt has quit [Remote host closed the connection]
<jhass>
which I would consider for three items already, though not with public_send/end
<jhass>
*/send
elfuego has left #ruby [#ruby]
piotrj has quit [Remote host closed the connection]
<clumps>
hi -- how do I add a member variable at run time? I do class << MyClass, add attr_accessor :foo, but also add "to_s", in which I add @foo, but when the code runs, it claims @foo is not defined. What else do I need to do to make this work?
<jhass>
clumps: strong indication that you're doing something wrong. But just reopen the class
<jhass>
class << MyClass reopens the class' singleton class
<jhass>
(it's the same as class << self inside class MyClass)
<clumps>
jhass: so when I add attr_accessor :foo to that opened class will using "@foo" just not work?
<jhass>
sorry?
GnuYawk has joined #ruby
hs366 has joined #ruby
<apeiros>
clumps: btw., note that all your ruby code is "run time"
<clumps>
if I create a class like: class Foo\n def initialize\n @foo = "Hello";\n end\n end\n, then later class << Foo\n attr_accessor :new_foo\n def some_method\n@new_foo = 12 ....
<clumps>
apeiros: yes, that is the intention
<jhass>
clumps: did you even read what I said?
piotrj has joined #ruby
<clumps>
jhass: I did, but not 100% sure I comprehend it yet :)
<jhass>
then why do you continue to use class << Foo?
<clumps>
I must have a poor understanding of how this works. Don't you want to tweak the singleton that produces all new Foos?
<wasamasa>
"I know what you did coerce last night.:
<wasamasa>
"
Delsol has joined #ruby
<arcanez>
gregf_: I prefer legacy over nightmare.
<gregf_>
arcanez: especially the one that will read/maintain your code. * hopes he's a psycopath that lives next door to you and has a history of using axes *
<toertore>
writing two expressions on two lines instead of one is exactly the same amount of work as writing them on one line; the only difference is that the delimiter is ; instead of \n
rippa has joined #ruby
workmad3 is now known as botdude
botdude is now known as workmad3
QuintinAdam has joined #ruby
workmad3 is now known as dudebot
dudebot is now known as workmad3
julweber has quit [Remote host closed the connection]
<Delsol>
is there any way to easily find where @item is called as Item so I can eager_load some things?
MatthewsFace has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 272 seconds]
<sweeper>
what you want is to ensure it's always an array
<sweeper>
you can use Array.concat for that purpose I suppose :3
adriancb has quit [Remote host closed the connection]
hanmac has joined #ruby
bricker has joined #ruby
msgodf has quit [Ping timeout: 244 seconds]
PaulCapestany has joined #ruby
dangerousdave has joined #ruby
mpistone has quit []
iamjarvo has quit [Ping timeout: 264 seconds]
Megtasti_ has quit [Ping timeout: 272 seconds]
Cust0sL1men has quit [Ping timeout: 246 seconds]
DerisiveLogic has joined #ruby
kyrylo_ has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
lkba has joined #ruby
MatthewsFace has joined #ruby
sevvie has joined #ruby
Megtastique has joined #ruby
kyrylo has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
willharrison has joined #ruby
mistermocha has joined #ruby
aswen has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Remote host closed the connection]
multiscan has quit []
mistermocha has quit [Client Quit]
x1337807x has joined #ruby
axilla has joined #ruby
<gregf_>
arcanez: hope you din mind what i said :/, its just a funny quote from a book i read
<arcanez>
gregf_: you can't have a thin skin and be a developer.. nor be a developer and come on freenode and ask for help
sevvie has quit [Ping timeout: 250 seconds]
icebourg has quit [Ping timeout: 252 seconds]
agrinb has quit [Remote host closed the connection]
<gregf_>
arcanez: well, its not a question of having a thick skin. not all developers have a thick skin ;). its about listening twice before answering. no wonder we've got 2 ears and 1 mouth ;)
spider-mario has joined #ruby
agrinb has joined #ruby
znst has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<arcanez>
gregf_: aside how funny we'd look otherwise.
<gregf_>
heh
icebourg has joined #ruby
agarie has joined #ruby
Aswebb_ has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
agrinb has quit [Ping timeout: 248 seconds]
sevvie has joined #ruby
MasterPiece`` has joined #ruby
kyrylo_ is now known as kyrylo
iamjarvo has joined #ruby
<arcanez>
gregf_: but to answer your question, you're fine.
agrinb has joined #ruby
rbennacer has quit [Remote host closed the connection]
m4rCsi_ has joined #ruby
phutchins has joined #ruby
m4rCsi has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Quit: Leaving...]
agarie has quit [Ping timeout: 264 seconds]
ldnunes has quit [Quit: Leaving]
MasterPiece has quit [Ping timeout: 256 seconds]
aswen has quit [Ping timeout: 248 seconds]
<workmad3>
gregf_: the quote is actually more along the lines of "Imagine the future maintainers of your code are psychopaths with axes and that they know where you live"
<gregf_>
heh. spot on
<gregf_>
workmad3++
<GaryOak_>
imagine the previous maintainers of your code are psychopaths with axes
<workmad3>
gregf_: that's normally followed by a self-deprecating comment along the lines of "That psychopath is normally me"
<gregf_>
indeed
rbennacer has joined #ruby
<certainty>
quick poll: do you guys have the feeling that you have arrived at your language or do you seek for something else? I find myself constantly seeking for more as it seems as i look around and investigate languages. I have a clear tendency and can say to what languages i don't want to return
<certainty>
idk, i just wondered what is it that makes me urge in that direction
sankaber has joined #ruby
<marahin>
Hey guys! I have created a simple daemonized ruby script (using 'daemons' gem) to operate my LEDs on the Rasp. Pi. However I want all the LEDs to turn off when I use the ./daemon stop command, and I'm not really sure how should I wrap it in the code (tried to find it in the 'daemons' docs, haven't got it tho). Code: https://gist.github.com/Marahin/93321c42f54f2825b94d
baroquebobcat has joined #ruby
<marahin>
Point me in the right way, please :-)
Filete has joined #ruby
<wasamasa>
certainty: write moar scheme
<wasamasa>
certainty: that should cure it
Dude007 has quit [Remote host closed the connection]
<certainty>
wasamasa: hehe, scheme is actually a good example. it got me hooked immediatly when i started. I did a substantial amount of work with it when i learned it and didn't look for anything else for a long time
chthon has quit [Ping timeout: 244 seconds]
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
<certainty>
but that has changed. Scheme was an important milestone and i love it
<certainty>
but it doesn't satisfy me :/
<wasamasa>
._.
momomomomo has joined #ruby
<jhass>
marahin: I guess you want to trap sigterm
michaeldeol has joined #ruby
<toertore>
marahin: don't daemonize inside the program itself
<toertore>
and as jhass says, trap a sig and do what you need from there
<marahin>
allright, i'll read about the signals
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty>
wasamasa: do you look for better languages? (for whatever your definition of better is)
<marahin>
toertore, not sure what you mean by daemonizing in the program itself? I'm daemonizing it from another script, don't I?
maletor has joined #ruby
<marahin>
(thanks a lot jhass :) )
ghostpl_ has quit [Remote host closed the connection]
<toertore>
don't use the daemons gem is what it means
<wasamasa>
certainty: I'm having loads of fun writing elisp and am currently learning CHICKEN to have something to write utilities in
<workmad3>
certainty: personally, I think I'm comfortable expressing what I want in ruby now, and I'm currently more interested in larger problems than 'how can I be more expressive at the code-level' which is where a language would optimise me, IMO
lemur has joined #ruby
<dorei>
hello, how could one serve dynamically created .js files with sinatra?
<arcanez>
certainty: I started with perl.. now I do ruby & perl.. java if I have to.. no interest in python.. go piques my interest
<wasamasa>
certainty: I still know python pretty well and learned ruby for the job
<toertore>
well ok, you are doing it from another script, and as long as that's just for testing i guess it's ok
<workmad3>
certainty: that could easily change in the future though, as I do tend to flick through interests :) and I'm definitely not adverse to looking @ other languages, I've just not gotten as comfortable in any others yet
<wasamasa>
certainty: if I learn stuff about other languages, it's either to be able to read sources written in them when necessary (which I find an useful skill to have) or to learn about new concepts
dangerousdave has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<wasamasa>
certainty: but not to find a "better" language than the ones I already know
<marahin>
toertore, well I assume that's not the /best/ way to do that. What would you suggest? Google brings up this gem in most results. :/
ghostpl_ has joined #ruby
<certainty>
workmad3: interesting. my colleague said roughly the same.
freerobby has joined #ruby
<toertore>
marahin: what you want is something that runs in the foreground and that's it. then you will probably be using systemd, startup or something similar that will take care of the rest
allenn has quit [Read error: Connection reset by peer]
<wasamasa>
certainty: in other words, I suspect I've arrived at the point where I perceive languages as tools
O_the_Del has quit [Remote host closed the connection]
<marahin>
ah, I see :) so going on a system-level tools
<toertore>
marahin: what i'm saying is that it's not your program's responsibility to daemonize itself
<marahin>
toertore, will check that out, it's for the Pi so nothing too funky
gsd has joined #ruby
<toertore>
yes, exactly
<wasamasa>
toertore: upstart you mean
<toertore>
yeah, upstart
<marahin>
alright
<marahin>
thanks guys
<certainty>
wasamasa: yeah they are tools. I know i probably get way too attached to PLs anyway, but i want to use the best tools for my job
<marahin>
have a nice day!
psy_ has quit [Remote host closed the connection]
<workmad3>
wasamasa: I'm not sure I'd go as far as to say languages are tools... they affect my way of thinking too much for me to push them down that far
<certainty>
lately i find types extremely important and it's painful to not have a decent typesystem in my dayjob
riotjones has joined #ruby
ponga has quit [Remote host closed the connection]
<wasamasa>
like, if I have to do something client-side in the browser, I buckle up and write JS
<workmad3>
wasamasa: I switch between JS and ruby a lot... and I definitely don't write JS and ruby the same way... I don't even structure the code the same
terlar has quit [Ping timeout: 265 seconds]
<wasamasa>
workmad3: of course not, who'd want to maintain that mess
sevvie has quit [Remote host closed the connection]
zenith_ has joined #ruby
<workmad3>
wasamasa: heh :)
<workmad3>
wasamasa: I quite like JS nowadays, tbh... I've written enough of it that I've succumbed to stockholm syndrome ;)
<certainty>
workmad3: hehe, yeah i tend to switch views as well. but what i demand from a language didn't change so much. At least i have the feeling that always want more from the good stuff. expressiveness of scheme? yeah, i take that. Immutable data? sure, give me that! Need Objectorientation? no thanks. Controllable side-effects? for sure. Sophisticated typesystem? sure.
<certainty>
that's how i tend to think
<toertore>
people are way too obsessed with their tools
xcombelle has joined #ruby
<certainty>
because i see what those stuff would've changed in existing projects
* wasamasa
coerces workmad3 to [object Object]
<certainty>
toertore: yeah, I certainly am. I'm a PL nerd anyway
milesmatthias has joined #ruby
tcrypt has joined #ruby
<toertore>
being interested is good
jamto11 has joined #ruby
<toertore>
so am i
palms has joined #ruby
<toertore>
but then you get people saying shit like "objects are for children"
mostlybadfly has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
<toertore>
if your fn isn't 100% pure, you have failed
Dude007_ has joined #ruby
milesmatthias has quit [Client Quit]
Dude007 has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
julweber has joined #ruby
<workmad3>
toertore: how about something like "Object Oriented programming, just like Functional Programming, has a lot of advocates who continually espouse supposed benefits in a reasonably fanatical way, despite the fact that these paradigms have both been around for 30+ years and yet have 0 empirical evidence supporting pretty much any view you pick"
<certainty>
well ok i'm not talking about that. That's usully too fanatic
fryguy9 has quit [Quit: Leaving.]
<toertore>
workmad3: that'd work :P
<certainty>
workmad3: my theory is that our brains work differently. I have a colleague that is wired in such a way that it's most easy for him to use OOP. That's not so much the case for me
piotrj has quit [Remote host closed the connection]
<certainty>
so while technically all major paradigms should work. They don't tend to work equally well for everybody
motehfucer has joined #ruby
<motehfucer>
ruby sucks
<toertore>
most people have been taught to "think in objects", it's not natural
<workmad3>
toertore: worse, the way people 'think in objects' bears little resemblance to the way that OO was originally envisioned and described
<certainty>
yes. most of the stuff we do is not natural i reckon
zenith_ has quit [Ping timeout: 264 seconds]
<toertore>
workmad3: you mean as (gasp!) distributed objects?
msnyon has joined #ruby
<gregf_>
arcanez: since you do Perl could you write the shortest code to find duplicates in an array ;)
<motehfucer>
fuck u
jamto11 has quit [Ping timeout: 248 seconds]
<gregf_>
o_O
<certainty>
lelele
<motehfucer>
nigger
<wasamasa>
trololol
<toertore>
motehfucer: no fuck u
motehfucer has left #ruby [#ruby]
<workmad3>
drats, just a bit too late
Takle has quit [Remote host closed the connection]
steven43126 has quit [Ping timeout: 250 seconds]
<workmad3>
toertore: and yeah, as something resembling cellular automata :)
* toertore
pretends to know what that means
<certainty>
is that a fancy word for body?
* certainty
hides
<toertore>
i guess it refers to the way cells are isolated from each other and communicate by sending messages?
<workmad3>
toertore: I don't buy the "it's not natural argument" though... as certainty said, pretty much nothing we do is 'natural' (natural in this case meaning 'stuff that we did in the ancestral environment')
<workmad3>
toertore: yup
Takle has joined #ruby
parduse has quit []
<toertore>
workmad3: yeah, i guess functions and objects are both quite unnatural
<certainty>
i also enjoy ruby and i'm glad i can use it on a daily basis, but not in the absolute sense. It's more that i think it could be way worse
<toertore>
i see how people can think that modelling the world with classes and objects makes sense though.. i think it does anyway
Takle has quit [Remote host closed the connection]
<workmad3>
certainty: that can be empirically demonstrated at least ;)
<certainty>
so i'm thankful i don't have to use C or PHP
Takle has joined #ruby
tkuchiki has quit [Remote host closed the connection]
dpatel has joined #ruby
<workmad3>
certainty: in terms of pure syntax comprehension, ruby is quite a bit better than C, Java, Perl... in many repeated and repeatable tests now, Java and Perl have failed to perform better than randomised syntax in terms of ease of comprehension :)
<certainty>
toertore: yeah in the real world that might be true. But here is one of the cruxes for me. In my programs i don't model the real world
<toertore>
people also mistake what sort of features a language has "built in" with what it can be extended to do
QuintinAdam has quit [Ping timeout: 248 seconds]
The_Phoenix has joined #ruby
<toertore>
certainty: sure, it depends on what you're doing
The_Phoenix has quit [Max SendQ exceeded]
<certainty>
workmad3: yeah i can second that. so good that we have ruby. And ruby is an interesting language in its own way
nfk|laptop has joined #ruby
<toertore>
web apps with "tangible things" are easily modeled as objects
kyrylo_ has joined #ruby
<certainty>
yepp they can be
<toertore>
other things are more easily modeled as processes
<workmad3>
toertore: the 'distributed objects' view of OO works quite well for a higher-level view of processes... each process is an object in that sense, and you can model the internals in whatever way you want, all the 'Object' constraint imposes on you is a boundary and a way to communicate beyond that boundary :)
The_Phoenix has joined #ruby
<certainty>
toertore: indeed. yet the programmers i know seem to always aim for the paradigm they like the most or know the best. i'm not sure
kyrylo has quit [Ping timeout: 252 seconds]
pietr0 has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
Zai00 has quit [Quit: Zai00]
rbennacer has quit [Remote host closed the connection]
<workmad3>
certainty: people don't like altering how they think... thinking is hard, and thinking about thinking is even harder... so most people don't bother and stick with what they already know
psy has joined #ruby
fryguy9 has joined #ruby
<toertore>
workmad3: i agree; the soa paradigm that is all the rage now attests to the validity of the original idea
n008f4g_ has joined #ruby
psy has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
<certainty>
workmad3: yeah seems like it. I wonder why that is. It's not so hard to think. I think :)
<toertore>
workmad3: though the whole "distributed objects" thing didn't work out so well
<certainty>
even I think, I should say
The_Phoenix has quit [Max SendQ exceeded]
<toertore>
you gotta keep things separate from each other and have strict and small interfaces
psy has joined #ruby
<workmad3>
toertore: it works quite well for erlang ;)
The_Phoenix has joined #ruby
rodfersou has quit [Remote host closed the connection]
<toertore>
what is erlang? ;)
rodfersou has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
nfk|laptop has quit [Client Quit]
Behold has joined #ruby
<toertore>
it works as long as all you use is erlang
<workmad3>
toertore: the language that your telephone exchange was probably coded in
<toertore>
erlang people use erlang for *everything*
Dude007_ has quit []
<certainty>
erlang was never on my list of languages to look closer, oddly
dx7 has quit [Ping timeout: 245 seconds]
The_Phoenix has joined #ruby
<toertore>
workmad3: but i don't think erlang's actors are == distributed objects
pdoherty has joined #ruby
<toertore>
distributed actors that are not coupled to their implementation language is fine
<toertore>
i'm not sure how erlang does it, but i'm guessing they just serialize erlang data structures and send them across the pipes
Kricir has joined #ruby
yh has quit [Ping timeout: 244 seconds]
<toertore>
if they used json/whatever instead you could substitute one end with something other than erland
<toertore>
g
Hobogrammer has quit [Ping timeout: 265 seconds]
<toertore>
and as long as the network is not "hidden" from the programmer
<toertore>
the cost must be clear
Mon_Ouie has joined #ruby
<toertore>
anyway, i must be going, see you all later
<workmad3>
hf :)
sevvie has quit [Ping timeout: 264 seconds]
<certainty>
have fun
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
OrbitalKitten has joined #ruby
<toertore>
there will be food, it is... how can i say this.. a certainty
lemur has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has joined #ruby
<c_nick>
ruby 1.8.6 is not able to evaluate the xls file i need to change it to xml .. is there a way i can actually evaluate xls file without having issues with the workbook
* certainty
stares at that sentence
Guest35208 has joined #ruby
<apeiros>
c_nick: 1.8.6?
* apeiros
checks watch
* apeiros
checks calendar
Dude007 has joined #ruby
<certainty>
he must be from the past
withnale_ has quit [Ping timeout: 245 seconds]
<jhass>
finally the internet passes a time singularity!
<jhass>
common examples for that are calling Nokogiri::XML() and Nokogiri::HTML()
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
mrsolow has joined #ruby
<c_nick>
arcanez, hehe
<latemus>
jhass: Okay nice
<latemus>
thanksn
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
zenith_ has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
jamto11 has joined #ruby
agarie has joined #ruby
Volsus has joined #ruby
kyrylo__ has joined #ruby
Volsus has quit [Client Quit]
ghr has joined #ruby
palms has joined #ruby
kyrylo_ has quit [Ping timeout: 255 seconds]
mrbond has quit [Ping timeout: 255 seconds]
Volsus has joined #ruby
<latemus>
I want to use this code to post some data to an external url in rails. https://gist.github.com/anonymous/0ec2989f3dc8c86e2911 but i need line te url in line 5 to change dynamically by placing a variable in there. Can I just leave off the single quotess
gsd has joined #ruby
jamto11 has quit [Ping timeout: 246 seconds]
<jhass>
you can just pass a variable to URI.parse
<arcanez>
that almost reads like Perl 6.
O_the_Del has quit [Quit: Leaving...]
<arcanez>
what little I know.
<latemus>
jhass: you mean like uri = URI.parse(variable_name)
<jhass>
yes
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
milesmatthias has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MasterPiece has quit [Remote host closed the connection]
SouL has quit [Read error: Connection reset by peer]
mkode has quit [Quit: Now if you will excuse me, I have a giant ball of oil to throw out my window]
leafybasil has quit [Ping timeout: 272 seconds]
leafybas_ has quit [Ping timeout: 252 seconds]
n80 has joined #ruby
kyrylo__ has quit [Ping timeout: 264 seconds]
musl has joined #ruby
adriancb has joined #ruby
OrbitalKitten has joined #ruby
quimrstorres has quit [Remote host closed the connection]
timonv has joined #ruby
moeSeth_ has quit [Quit: Connection closed for inactivity]
zenith_ has joined #ruby
<arcanez>
do you really have to quote the key in a hash in ruby?
<arcanez>
unless you use a symbol?
tier has quit [Remote host closed the connection]
<centrx>
Why wouldn't you?
checkit has quit [Quit: (null)]
<arcanez>
perl => is a fat comma.. it quotes the LHS for you
willharrison has joined #ruby
<arcanez>
ruby doesn't appear to do the same for you
adriancb has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
<jhass>
Rubys grammar is already ambiguous enough I guess
<arcanez>
I tend to lean towards symbol use
stef204 has joined #ruby
c_nick has joined #ruby
<centrx>
Usually not much reason to use a string key
<arcanez>
but rails screws that up.. it does things with HWIA and pure ruby doesn't..
startupality has quit [Quit: startupality]
<arcanez>
and methods on HWIA return the actual key (string or symbol)
<centrx>
arcanez, that's going to change in Rails 5
devoldmx_ has joined #ruby
<centrx>
arcanez, The reason Rails uses strings everywhere is to avoid DOS attacks by symbols created from user input
<arcanez>
centrx: howso?
<centrx>
This is not longer necessary in Ruby 2.2, with the Symbol GC
lioninawhat has quit [Remote host closed the connection]
MatthewsFace has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
startupality has joined #ruby
jshultz has joined #ruby
GnuYawk has quit [Ping timeout: 264 seconds]
varunwachaspati has joined #ruby
marr has joined #ruby
yqt has joined #ruby
devoldmx_ has quit [Ping timeout: 264 seconds]
<hanmac>
arcanez: also ruby supports any kind of object as key in a hash, so you can use Strings, Symbol or each other class you can image, i for myself still prefers symbols because they are making more sense for me
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0.4/2015032000]]
aswen has joined #ruby
davidhq has joined #ruby
MatthewsFace has joined #ruby
slothman has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<slothman>
fdfsdf
<slothman>
sdf
<slothman>
sfdfsd
<jhass>
slothman: sup?
spider-mario has quit [Ping timeout: 252 seconds]
<Volsus>
error, try again.
sandelius has joined #ruby
<slothman>
sorry, figuring out IRSSI for the first time
x1337807x has joined #ruby
fryguy9 has quit [Quit: Leaving.]
x1337807x has quit [Client Quit]
spider-mario has joined #ruby
Kricir has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 250 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zenith_ has quit [Read error: Connection reset by peer]
lostcuaz has quit [Read error: Connection reset by peer]
lostcuaz_km has joined #ruby
zenith_ has joined #ruby
zarubin_ has joined #ruby
ghr has joined #ruby
bim has quit [Remote host closed the connection]
dx7_ has quit [Remote host closed the connection]
tier has joined #ruby
sevvie has joined #ruby
Musashi007 has joined #ruby
slothman has quit [Quit: leaving]
Notte has quit [Remote host closed the connection]
_1_phonse has joined #ruby
zarubin_ has quit [Remote host closed the connection]
zarubin_ has joined #ruby
mjuszczak has joined #ruby
ghostpl_ has joined #ruby
wallerdev has joined #ruby
zenith_ has quit [Ping timeout: 244 seconds]
eshiffob has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 246 seconds]
cefkamcau has quit [Ping timeout: 250 seconds]
izhak has quit [Ping timeout: 255 seconds]
zarubin_ has quit [Ping timeout: 264 seconds]
timonv has quit [Ping timeout: 252 seconds]
sevvie has quit [Ping timeout: 256 seconds]
ghr has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
dangerousdave has joined #ruby
sgambino has quit [Remote host closed the connection]
sgambino has joined #ruby
kyrylo has quit [Ping timeout: 256 seconds]
kyrylo_ has joined #ruby
dangerousdave has quit [Client Quit]
zarubin_ has joined #ruby
palms has quit [Ping timeout: 252 seconds]
makepkgnotwar has joined #ruby
gfawcettpq has quit [Ping timeout: 264 seconds]
agarie has quit [Remote host closed the connection]
lolmaus has joined #ruby
sgambino has quit [Ping timeout: 252 seconds]
fryguy9 has joined #ruby
Musashi007 has quit [Quit: Musashi007]
wallerdev has quit [Ping timeout: 245 seconds]
_1_phonse has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 252 seconds]
kyrylo_ has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
tier has quit [Ping timeout: 244 seconds]
jamto11 has quit [Ping timeout: 272 seconds]
DerisiveLogic has joined #ruby
dangerousdave has joined #ruby
kblake has quit [Remote host closed the connection]
bruno- has joined #ruby
triple_b_ has joined #ruby
<apeiros>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<apeiros>
DeBot: ea#
<DeBot>
␣␣␣e␣e␣␣#␣␣␣␣␣␣e␣␣ [a] 1/12
pdoherty has quit [Ping timeout: 255 seconds]
<apeiros>
DeBot: rn
<DeBot>
␣␣␣e␣e␣␣#␣r␣␣␣ne␣␣ [a] 1/12
<apeiros>
DeBot: i
<DeBot>
␣i␣e␣e␣␣#␣r␣␣␣ne␣␣ [a] 1/12
mark06 has joined #ruby
<crowell>
DeBot: st
<DeBot>
␣i␣eTest#␣r␣␣␣ne␣␣ [a] 1/12
<shevy>
hmm
<apeiros>
DeBot: mn
<DeBot>
␣i␣eTest#␣r␣␣␣ne␣␣ [am] 2/12
<apeiros>
oh
<apeiros>
DeBot: fl
<DeBot>
FileTest#␣r␣␣␣ne␣␣ [am] 2/12
<jhass>
oO
<jhass>
what's FileTest
<crowell>
DeBot: u
<DeBot>
FileTest#␣r␣␣␣ne␣␣ [amu] 3/12
<jhass>
DeBot: _
<DeBot>
FileTest#␣r␣␣␣ne␣␣ [amu_] 4/12
<apeiros>
jhass: what? you don't know FileTest? I'm so disappointed now :(
<apeiros>
;-)
<jhass>
I didn't know Rinda either :D
<apeiros>
DeBot: u
<DeBot>
FileTest#␣r␣␣␣ne␣␣ [amu_] 4/12
<apeiros>
jhass: rinda is iirc part of drb
<crowell>
DeBot: p
<DeBot>
FileTest#␣rp␣␣ne␣␣ [amu_] 4/12
<havenwood>
TupleSpace \o/
<jhass>
yeah, it's an implementation of Linda
<jhass>
obviously
<centrx>
DeBot, riparian
<DeBot>
FileTest#␣rp␣␣ne␣␣ [amu_] 4/12
<crowell>
DeBot: prepend
<DeBot>
FileTest#␣rp␣␣ned␣ [amu_] 4/12
<arcanez>
DeBot: gow?
<DeBot>
FileTest#grpowned? [amu_] 4/12 You won!
<jhass>
you looked that up!
<centrx>
outrageous
<crowell>
dafuq is grpowned?
<apeiros>
grp -> group
<arcanez>
owned by a group
<apeiros>
FileTest is to test file properties
<jhass>
"It exists as a standalone module, and its methods are also insinuated into the File class. (Note that this is not done by inclusion: the interpreter cheats)."
<jhass>
wat
<arcanez>
apparently they were charged per character
triple_b has quit [Ping timeout: 248 seconds]
mjuszczak has quit []
<jhass>
"Returns true if the named file exists and the effective group id of the calling process is the owner of the file. Returns false on Windows. file_name can be an IO object."
<jhass>
that module is hilarious
<arcanez>
weird that they don't have an alias group_owned?
senayar has quit [Remote host closed the connection]
yalue has quit [Quit: return 0;]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lavros has quit [Quit: leaving]
<jhass>
meh, still bored
<jhass>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣ [] 0/12
<centrx>
DeBot, ruby
<DeBot>
␣␣␣␣␣␣␣␣␣ [ruby] 4/12
<jhass>
DeBot: ernstl
<DeBot>
␣␣le␣s␣␣e [rubynt] 6/12
x77686d has joined #ruby
freerobby has quit [Quit: Leaving.]
<centrx>
DeBot, abcdefghijklmnopqrstuvwxyz
<DeBot>
File#size [rubyntacdghj] 12/12 You lost!
<jhass>
:(
<GaryOak_>
hahaha
centrx has quit [Quit: Shutting down, Please wait...]
<jhass>
and there the shame took down his PC
zarubin_ has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
replicant has joined #ruby
sevvie has joined #ruby
dangerousdave has joined #ruby
Soda has quit [Read error: Connection reset by peer]
<replicant>
having a time finding the context of what to even search for.. in a pry debugger from a haml file, i want to see what the :id and :name symbols' values are that get set from a `form_for do |f|`
<replicant>
or better yet, i'm having a time seeing what the backing value is for a symbol (again, :id or :name)
<jhass>
A symbol is a value
<jhass>
not doesn't point to a value
krisquigley has joined #ruby
<jhass>
so I'm having a time understanding your question :)
dangerousdave has quit [Client Quit]
<jhass>
s/not/it/
<shadoi1>
replicant: you've tried putting 'binding.pry' in the context you're looking at?
<replicant>
shadoi1: yes, and i see i can get the value of `f.object` and see the backing object's attributes. i just want to know what :id and :name are giving
<replicant>
giving=given
<jhass>
willharrison: nope, @a = x is plain assignment
<jhass>
no method calls involved
<willharrison>
jhass ah ok
codecop has quit [Remote host closed the connection]
<willharrison>
is there a way to call that method?
<jhass>
sure, self.n = x
<willharrison>
cool thanks
kyrylo has joined #ruby
<shadoi1>
replicant: should be f.id or f.name?
<replicant>
shadoi1: so that doesn't exist for some reason
<jhass>
^
<havenwood>
willharrison: The instance variable assigned when the class is instanciated on line 6 is the one used in the methods on lines 11 and 15.
<replicant>
that was my firs tthought too :/
<shadoi1>
I'm assuming :id and :name are parameters to some URL?
<shadoi1>
or just variables in the template?
timonv has joined #ruby
<jhass>
oor actually it's the fields of the model you pass to form_for
baweaver has quit [Remote host closed the connection]
<willharrison>
havenwood ah yeah, I see now. I didn't even think about that
kyrylo__ has quit [Ping timeout: 250 seconds]
jheg has quit [Quit: jheg]
<havenwood>
willharrison: It's also read by `KaraInt#n` because of the getter on line 3.
<shadoi1>
replicant: we'd need to know a bit more about what :id or :name could be, those are just symbols. Where you're looking they could refer to hash keys, query parameters, etc. etc.
krisquigley has quit [Ping timeout: 250 seconds]
varunwachaspati has quit [Quit: Leaving]
<replicant>
will get back to you on that. i believe I don't have enough information to adequately ask this question, and i know i'm overlooking something
<replicant>
thanks for your time
OrbitalKitten has joined #ruby
rbennacer has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.1.1]
jherbst has joined #ruby
zzing has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
jimms has joined #ruby
xnr is now known as idgaf
ghostpl_ has quit [Remote host closed the connection]
<willharrison>
havenwood yeah, that's not affecting anything else in the class tho right?
riotjones has joined #ruby
<havenwood>
willharrison: nope, just a reader
baroquebobcat has joined #ruby
<havenwood>
willharrison: it creates a method to read that instance variable
<willharrison>
yeah, I meant to put it in there
kirun has quit [Quit: Client exiting]
<willharrison>
havenwood do you know why KaraInt#to_s is returning an array instead of a string in that code?
elaptics is now known as elaptics_away
replicant has left #ruby ["WeeChat 1.1.1"]
imranr has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 252 seconds]
JoshGlzBrk has joined #ruby
<havenwood>
willharrison: Show an example of exactly what you're running to produce what you're asking about
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood>
maybe #rubyonrails is a good place to go
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nettoweb>
but this file: /shared/tmp/sockets/myapp.sock wasnt created so I create manually and now Im getting this error log: failed (13: Permission denied) while connecting to upstream
bim has joined #ruby
wicope has quit [Read error: Connection reset by peer]
<jhass>
how did you create it?
Rephiax has joined #ruby
<nettoweb>
touch
palms has quit [Ping timeout: 245 seconds]
<jhass>
that won't work
<nettoweb>
with my app user
<jhass>
it needs to be a special file
<ericwood>
mkfifo, right?
<jhass>
no
<jhass>
you need to instruct puma to listen to it
<jhass>
(and that will create it at the same time)
<nettoweb>
jhass but I dont understand why this file wasnt created automatically
<jhass>
me neither
<jhass>
probably you didn't configure something correctly
auxbuss has quit [Quit: I'm gone.]
krisquigley has joined #ruby
DerisiveLogic_ has quit [Remote host closed the connection]
<jhass>
and pumas logs report it created that socket successfully?
<Ellis>
i’m trying to find a diagram of all the ruby methods, i googled ruby method map but nothing showed up, anyone have any suggestions on what i could search?
kyrylo__ has quit [Ping timeout: 244 seconds]
<jhass>
nettoweb: ah I see
postmodern has joined #ruby
<jhass>
server unix://home/myapp/apps/www.app.com/shared/tmp/sockets/myapp.sock;
<jhass>
skyjumper: mitmproxy could also be great to compare the request to the working one
<skyjumper>
haven't looked into that yet, the requests seem identical-ish in wireshark
zarubin_ has quit [Ping timeout: 250 seconds]
<jhass>
mh
jottr_ has quit [Read error: Connection reset by peer]
<jhass>
sensitive or can you share the pcap?
CorySimmons has joined #ruby
<skyjumper>
it's got auth keys
<jhass>
yeah, probably better not
<GaryOak_>
oh god we're testing our crazy ruby/python server stack, and it's actually working
jottr_ has joined #ruby
x1337807x has joined #ruby
<workmad3>
GaryOak_: is it stable?
<GaryOak_>
yeah
<skyjumper>
curiously, the "bad" request is being sent in 2 tcp segments, with all of the missing content in the 2nd segment
silkfox has joined #ruby
<workmad3>
GaryOak_: or kinda stuck together with duct tape and the sticky bits well lubricated with wd40? :)
<jhass>
GaryOak_: is it webscale?
<GaryOak_>
it is webscale
<jhass>
workmad3: so that's a yes
<workmad3>
wait, webscale *and* stable? I'm not sure that's possible!
<GaryOak_>
workmad3: using http as the glue :P
baweaver has joined #ruby
Cloudzy has quit [Ping timeout: 272 seconds]
<jhass>
skyjumper: oh, that could in theory be the issue, though would pretty clearly be their fault if it fails on that
jamto11 has quit [Ping timeout: 256 seconds]
jordsmi has joined #ruby
gilest has joined #ruby
<bonhoeffer>
anyone had luck installing rb-gsl on heroku?
kreeves has joined #ruby
<skyjumper>
jhass: wonder what sort of config on their end could cause that?
<jhass>
skyjumper: not sure you can do much on your side, besides switching libs, like ethon/typhoeus for another curl based one
gilest has quit [Client Quit]
<jhass>
skyjumper: silly custom HTTP server? who knows
<skyjumper>
hah. just as you say that, their guy emails back "It's a custom software"
<skyjumper>
ffs.
Asher has joined #ruby
<workmad3>
skyjumper: if you're not using at least one crappy third-party system that sends screwed-up data, you're not dealing with 'real-world' systems :P
<jhass>
skyjumper: might be worth porting your code to faraday
<jhass>
so you can just switch out all the http libraries we got
gregf1 has quit [Quit: WeeChat 1.0.1]
<skyjumper>
true, we have a few
<workmad3>
skyjumper: you could also consider an 'unfucking proxy' that you send your requests through, and it has the logic of waiting until you seem to have a request that looks sane
<skyjumper>
hopefully at least one works with VCR *and* their f'd up http server
<workmad3>
(that would be some custom middleware proxy you wrote, btw... if only there was a magic, off-the-shelf proxy that did that already :( )
Azure has joined #ruby
<skyjumper>
that'd be cool, but justifying the time to the paycheck-signers...
enebo has quit [Quit: enebo]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex88 has quit []
pdoherty has quit [Quit: Leaving]
OrbitalKitten has joined #ruby
sgambino has joined #ruby
Hijiri has quit [Ping timeout: 265 seconds]
yqt has quit [Ping timeout: 250 seconds]
cocotton has joined #ruby
doodlehaus has joined #ruby
mistermo_ has joined #ruby
crueber has quit [Quit: Leaving.]
<bonhoeffer>
for i in range(1,n/2 + 1) from python seems like it would be (1..(n/2+1)).each do |i| <— best way?
babykosh has quit [Quit: babykosh]
CorySimmons has quit [Quit: Bye!]
OrbitalKitten has quit [Client Quit]
<jhass>
I like .upto
<jhass>
1.upto(n/2+1)
<jhass>
takes a block directly
<havenwood>
i find that aesthetically pleasing too
<bonhoeffer>
jhass: got it — agree
<bonhoeffer>
(felt bad asking such a simple question, but i’m glad i did)
mistermocha has quit [Ping timeout: 250 seconds]
bigmac has quit [Ping timeout: 252 seconds]
<jhass>
don't worry
lordkryss has quit [Quit: Connection closed for inactivity]
mistermo_ has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
P1RATEZ has quit []
jimms has joined #ruby
Hijiri has joined #ruby
senayar has quit [Remote host closed the connection]
Hijiri has quit [Client Quit]
Hijiri has joined #ruby
yh has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
JDiPierro has quit [Ping timeout: 245 seconds]
palms has quit [Ping timeout: 264 seconds]
bigkevmcd has quit [Ping timeout: 245 seconds]
havenwood has quit []
Channel6 has joined #ruby
Sawbones_ has joined #ruby
n80 has quit [Quit: n80]
gluten_hell__ has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
jherbst has joined #ruby
bigkevmcd has joined #ruby
jefus_ has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
gluten_hell_ has quit [Ping timeout: 265 seconds]
silkfox has joined #ruby
jefus has quit [Ping timeout: 250 seconds]
DerisiveLogic_ has joined #ruby
imranr has joined #ruby
jimms has quit [Read error: Connection reset by peer]
jimms has joined #ruby
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rephiax has quit [Ping timeout: 272 seconds]
DerisiveLogic has quit [Ping timeout: 248 seconds]
jimms has quit [Read error: Connection reset by peer]
jimms_ has joined #ruby
_maes_ has quit [Ping timeout: 252 seconds]
silkfox has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 246 seconds]
einarj has quit [Remote host closed the connection]
Takle has joined #ruby
vozcelik has joined #ruby
imranr has quit [Ping timeout: 245 seconds]
jerematic has quit [Remote host closed the connection]
paulcsmith has joined #ruby
paulcsmith has quit [Client Quit]
Hijiri has quit [Ping timeout: 252 seconds]
benlieb has quit [Read error: Connection reset by peer]
lkba has quit [Read error: Connection reset by peer]
lkba has joined #ruby
<nettoweb>
jhass now im getting this info: /index.html" is not found (2: No such file or directory) I think rails is not starting, is there a way to check this?
centrx has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
Kilo`byte has quit [Ping timeout: 252 seconds]
jerius has joined #ruby
<jhass>
nettoweb: did you change something in the nginx config?
marr has quit []
<nettoweb>
jhass somethings because Im setting to show on a sub uri... I'll show you the gist
benlieb has joined #ruby
djellemah_ has quit [Ping timeout: 272 seconds]
sankaber has joined #ruby
c_nick has quit [Ping timeout: 252 seconds]
jimms_ has quit [Remote host closed the connection]
<nettoweb>
jhass nginx is looking for index.html but I want to run the rails app
centrx has quit [Client Quit]
<jhass>
wait, do you passenger in your nginx?
jerius has joined #ruby
DerisiveLogic_ has quit [Remote host closed the connection]
<jhass>
nettoweb: the rewrite on line 38 doesn't make any sense, in three ways
rocknrollmarc has quit [Quit: BitchX-1.2.1 -- just do it.]
<jhass>
1) it's after proxy_pass, so never reached. 2) it would be reached, what do you want? pass the request to the app or redirect? 3) you map /portal to the same named location, so if it would be reached, it would loop endlessly
<nettoweb>
jhass no passenger, and the redirect is that every request I send to /portal at first
GaryOak_ has quit []
<jhass>
nettoweb: then how does line 13 not fail your nginx to start?
oo_ has quit [Remote host closed the connection]
<nettoweb>
jhass I can't use rails_env ? I'll remove
<jhass>
also if that's your full config, serving assets won't work properly since you don't define any mimetypes
<nettoweb>
jhass It's a trash from my old passenger config file