<opus>
bricker`work: If you're still around setting config.eager_load = false in rails solved this problem. Looking into exactly what eager_load is doing that would cause this to occur now.
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
gattuso has joined #ruby
diegoviola has joined #ruby
nmokru has joined #ruby
sepp2k has quit [Ping timeout: 255 seconds]
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
nmokru has quit [Client Quit]
mjsmith2 has joined #ruby
enebo has joined #ruby
djbkd has quit [Remote host closed the connection]
little_fu has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
little___ has joined #ruby
earthquake has quit [Quit: earthquake]
DrShoggoth has quit [Quit: Leaving]
bmurt has joined #ruby
chrishough has quit [Quit: chrishough]
<msull92_>
Has anyone in here used any of the Ruby logical syntaxes available that resemble Prolog and if so which ones? Are they still maintained?
little_f_ has quit [Ping timeout: 255 seconds]
earthquake has joined #ruby
nmokru has joined #ruby
codeurge has quit [Quit: Sleep.]
codeurge has joined #ruby
banjara has quit [Quit: Leaving.]
ddv has quit [Ping timeout: 245 seconds]
little_fu has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
nmokru has quit [Client Quit]
ddv has joined #ruby
BadQuanta has joined #ruby
nmokru has joined #ruby
stytown has joined #ruby
wildroman2 has joined #ruby
sunya7a has quit [Ping timeout: 248 seconds]
mrmargo__ has quit [Remote host closed the connection]
mattstratton has joined #ruby
codeurge has quit [Ping timeout: 248 seconds]
aniM has quit [Ping timeout: 252 seconds]
sunya7a has joined #ruby
mr_snowf1ake has joined #ruby
<StephenA1>
msull92_: have you looked at: ruby-prolog
jonahR has quit [Remote host closed the connection]
nmokru has joined #ruby
thiagovsk has joined #ruby
<thiagovsk>
testing
little_f_ has joined #ruby
ellogub has joined #ruby
yetanotherdave has quit [Ping timeout: 272 seconds]
little_f_ has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
kireevco has quit [Quit: Leaving.]
chipotle has quit [Quit: cya]
jimbow has joined #ruby
snath has joined #ruby
djbkd has quit [Remote host closed the connection]
oo_ has joined #ruby
<benzrf>
nottesting
arrubin has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
nectarys has joined #ruby
<thiagovsk>
benzrf, =D
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
icarus has quit [Ping timeout: 260 seconds]
mjsmith2 has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
jamto11 has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
beneggett has joined #ruby
sevenseacat has joined #ruby
aniM has joined #ruby
<benzrf>
:O)
x1337807x has joined #ruby
dc_ has joined #ruby
newton1 has joined #ruby
yubrew has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
StephenA1 has quit [Quit: StephenA1]
dc_ has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
stytown has joined #ruby
TorpedoSkyline has joined #ruby
earthquake has joined #ruby
Karpuragauram has quit [Ping timeout: 244 seconds]
TorpedoSkyline has quit [Client Quit]
iswell has joined #ruby
oo_ has joined #ruby
yubrew has quit [Ping timeout: 248 seconds]
hgl____ has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
brunops has quit [Ping timeout: 272 seconds]
<thiagovsk>
benzrf, you are great?
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Vivekananda_y510 has joined #ruby
edgarjs is now known as edgarjs_afk
brunops has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
MrSatann has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
TorpedoSkyline has quit [Client Quit]
<benzrf>
totdally
iswell has quit [Ping timeout: 240 seconds]
MrSatann has left #ruby [#ruby]
smathieu has quit [Remote host closed the connection]
JordanJ2 has joined #ruby
beneggett has joined #ruby
smathieu has joined #ruby
nectarys has quit [Quit: Ex-Chat]
bricker`work has quit [Quit: leaving]
mgberlin has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
<JordanJ2>
Hi all, I'm tryig to run a GitLab commit bot, and installed unicorn by 'sudo gem install unicorn' when running 'unicorn -c config/unicorn.conf -D' I get the error http://paste.ubuntu.com/7739594/
hamakn has quit [Remote host closed the connection]
hgl____ has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
hamakn has joined #ruby
jcromartie has joined #ruby
fold has joined #ruby
tjr9898 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
thesheff17 has quit [Quit: Leaving]
<opus>
Anyone here really understand rails eager loading and gem creation?
tjr9898 has joined #ruby
<opus>
Got a hard problem I'm trying to debug and hit a wall.
thesheff17 has joined #ruby
Davey is now known as Eomar
timonv has quit [Ping timeout: 240 seconds]
replay has quit []
<febuiles>
JordanJ2: does the project include a Gemfile?
<febuiles>
opus: I heard the guys who hang out in #rubyonrails are pretty good at that :)
<opus>
febuiles: Asked in both places to make sure since I wasn't sure where to direct the Gem question itself. It appears to be more Gem related than rails. I've been unable to replicate it on any other Gem.
sailias has joined #ruby
<opus>
Basically, a Gem's namespaced modules are getting injected into the root namespace
sailias has quit [Read error: Connection reset by peer]
hgl____ has joined #ruby
<febuiles>
JordanJ2: it does, you should take a look at http://bundler.io/v1.6/rationale.html and you can google more info regarding bundler, a ruby tool that takes care of doing all the gem installing for you
<febuiles>
glad I'm not the only one runnign into geokit issues this week :)
pietr0 has quit [Quit: pietr0]
<opus>
Yeah... been a fun week for both of us then =p
<opus>
Seriously though, this one has really been getting under my skin. I've already locally solved my initial problem by namespacing my own Polygon class (which I don't want to do...) because I was unable to track down exactly how this is happening.
<febuiles>
opus: I see you're in production, can you reproduce in development too?
<opus>
I wasn't able to replicate this in other gems and I couldn't see anything wrong with the gemspec or geokit code that would cause this.
<opus>
Yes, it's a result of eager_loading not dev/prod.
<opus>
If you set eager_loading in dev mode to true it still occurs.
hgl____ has quit [Ping timeout: 248 seconds]
aniM has quit [Ping timeout: 264 seconds]
<opus>
Also, it normally doesn't present itself. You have to have a project that has a class that conflicts with Geokit on application instantiation, via eager loading.
<opus>
The resulting error in that case is: superclass mismatch for class Polygon (TypeError)
<febuiles>
yeah, I was about to tell you I can't reproduce
<febuiles>
let me try to create something real quick
<opus>
I'll create a local app that should replicate a simple scenario
<opus>
one se
<opus>
c
robustus has quit [Ping timeout: 252 seconds]
<febuiles>
thanks, creating a Polygon model locally didn't trigger any issues either
moritzs has quit [Ping timeout: 252 seconds]
mrmargolis has quit [Remote host closed the connection]
<opus>
what version of geokit are you using?
stytown has quit [Quit: stytown]
<febuiles>
geokit (1.8.4)
jord has quit [Quit: Connection closed for inactivity]
sunya7a_ has quit [Quit: leaving]
robustus has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
<opus>
Do you have eager_loading enabled in dev?
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<febuiles>
yup
tokik has joined #ruby
<febuiles>
tried enabling it in irb like you show in your gist, nothing happens either
larsam has quit [Ping timeout: 248 seconds]
<febuiles>
opus: what geokit version are you using?
andrewjanssen has quit [Quit: Leaving...]
hgl____ has joined #ruby
<opus>
1.8.5, but I tried it on 1.8.4 and still had the problem
franzip has quit [Quit: ...]
hgl____ has quit [Remote host closed the connection]
chipotle has joined #ruby
hgl____ has joined #ruby
<febuiles>
weird, do you think you can get a sample app that triggers the behavior? I just tried 1.8.5 and no errors either.
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
jack_rabbit has joined #ruby
<opus>
Oh well, this makes me both happy and sad at the same time.
stytown has joined #ruby
<opus>
Creating a new application doesn't demonstrate the eager loading problem.
<febuiles>
heh
<febuiles>
are you using any geokit-* gems?
Arkaniad|Laptop has quit [Ping timeout: 255 seconds]
<febuiles>
the other only thing I can think of is an `include GeoKit` somewhere
<febuiles>
s/GeoKit/Geokit/
<owen1>
gem install debugger -- --with-ruby-include=PATH_TO_HEADERS how to find the path to headers?
<febuiles>
s/GeoKit/Geokit/
cashnguns has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<febuiles>
owen1: what's your ruby version, OS and ruby manager if any?
aspires has joined #ruby
<opus>
febuiles: Right now I'm using geokit-rails and geokit. I added both to the project. I'll check for geokit's existence else where as well.
Dreamer3 has quit [Quit: Computer has gone to sleep.]
oo_ has joined #ruby
Hanmac1 has joined #ruby
<febuiles>
owen1: by default I think it goes to /usr/lib/ruby/[version]
Matt____ has joined #ruby
<febuiles>
wait no
<febuiles>
that makes no sense :P
stytown has quit [Quit: stytown]
moritzs has joined #ruby
Spami_ has quit [Quit: This computer has gone to sleep]
<opus>
febuiles: that you for your help man. I just figured it out. There was an errant include Geokit randomly in the project added there by a non ruby dev. When I searched for it earlier I typed ack 'include geokit' instead of 'include Geokit' and as a result missed it.
<opus>
So much time wasted on that today. Thank you so MUCH =)
<opus>
I should have just tried to create a demo project earlier
<febuiles>
opus: np, glad I could be of any help :)
smathieu has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
<opus>
Sometimes you just need to talk it through with someone!
smathieu has joined #ruby
jimbow has joined #ruby
<febuiles>
owen1: maybe /usr/local/lib/ruby? It's been a while since I did a manual install :S
britneywright has joined #ruby
jimbow has quit [Client Quit]
rezzack has quit [Ping timeout: 272 seconds]
<owen1>
febuiles: /usr/local/lib/ruby/2.0.0 ? i see a lot of rb files there
britneywright has quit [Ping timeout: 248 seconds]
msull92 has joined #ruby
aniM has joined #ruby
<Guest9754>
opus has quit []
yubrew has quit [Ping timeout: 244 seconds]
<febuiles>
owen1: nah, that's not it, I'd check /usr/include/ruby-2.x.y or check the make logs to see where the files were moved
agjacome has joined #ruby
<febuiles>
you can also do find /usr -name ruby.h
<theharshest>
my rake task sets the environment for me, how can I start an "irb" with those settings? rake task name is "testing". None of these work "bundle exec irb rake testing" and "bundle exec rake testing irb"
mois3x has quit [Quit: mois3x]
<Guest9754>
<owen1>
i think it's /usr/local/include/ruby-2.0.0
Wismer has left #ruby [#ruby]
<owen1>
ruby ruby.h x86_64-linux
<owen1>
inside /usr/local/include/ruby-2.0.0/ruby i see about 10 header files
dc_ has joined #ruby
<febuiles>
try it? :)
<owen1>
suer
<owen1>
sure
little_fu has joined #ruby
<febuiles>
owen1: I'm omw out but if it doesn't work with either of those dirs then I'd suggest posting a gist with the sample error so somebody else can give you a hand :)
<owen1>
the problem is conftest.c:3:20: fatal error: method.h: No such file or directory
aspires has quit []
mconnolly has quit [Quit: mconnolly]
aspires has joined #ruby
fantasticsid has joined #ruby
<owen1>
so i need to find where method.h exist
razum2um has quit [Quit: Leaving.]
nerdy has joined #ruby
nateberkopec has quit [Quit: Leaving...]
britneywright has joined #ruby
whowantstolivef2 has joined #ruby
<thiagovsk>
ruby ruby ruby
<thiagovsk>
oooooooooooooooooooooooohhhhhhhhh
hamakn has quit [Remote host closed the connection]
moted has quit [Quit: moted]
<owen1>
ok. found method.h file inside /tmp/ruby-2.0.0-p481
<owen1>
now what?
jaimef has quit [Excess Flood]
sdouglas has joined #ruby
thiagovsk has quit [Remote host closed the connection]
Vivekananda_y510 has quit [Ping timeout: 244 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
alvaro_o has quit [Quit: Ex-Chat]
whowantstolivef3 has quit [Ping timeout: 245 seconds]
nateberkopec has joined #ruby
Alina-malina has joined #ruby
opus has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
harryk has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
tus has quit []
parkeror has quit [Quit: Connection closed for inactivity]
mgberlin has quit [Remote host closed the connection]
davispuh has quit [Read error: Connection reset by peer]
sdouglas has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eomar is now known as Davey
sdouglas has quit [Remote host closed the connection]
newton1 has left #ruby ["WeeChat 0.4.3"]
cashnguns has quit [Ping timeout: 244 seconds]
Soliah has joined #ruby
bmurt has quit [Ping timeout: 272 seconds]
tharindu has quit [Quit: Leaving...]
yubrew has quit [Ping timeout: 252 seconds]
radic has quit [Ping timeout: 244 seconds]
mocchi has quit [Ping timeout: 264 seconds]
radic has joined #ruby
hgl_____ has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
fold has quit [Ping timeout: 244 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
hgl_____ has quit [Client Quit]
smathieu has joined #ruby
krz has joined #ruby
hgl____ has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
mocchi has joined #ruby
cmoneylu_ has joined #ruby
jimbow has quit [Quit: jimbow]
jamto11 has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ekinmur has quit []
cmoneylu_ has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 240 seconds]
chrishough has quit [Quit: chrishough]
cmoneylulz has quit [Ping timeout: 252 seconds]
fantasticsid has quit [Remote host closed the connection]
cmoneylulz has joined #ruby
_ixti_ has quit [Ping timeout: 260 seconds]
simoz1111114 has quit [Ping timeout: 264 seconds]
jimbow has joined #ruby
hgl has joined #ruby
braincrash has quit [Quit: bye bye]
aspires has joined #ruby
dw5304 has joined #ruby
sputnik13 has joined #ruby
<dw5304>
eaving guys im having some difficults trying to install json in ruby version 1.9.3-p545 keeps giving me Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension.
<dw5304>
any help?
ekinmur has joined #ruby
mk2014 has joined #ruby
sputnik1_ has joined #ruby
sputnik13 has quit [Read error: Connection reset by peer]
sputnik1_ has quit [Remote host closed the connection]
<dw5304>
for get what i have wrote i am stupid someone dled the wrong devkit
earthquake has quit [Quit: earthquake]
<krz>
if i have 10 singleton methods in a class. doesnt self look redundant?
sputnik13 has joined #ruby
Arkaniad|Laptop has joined #ruby
Arkaniad has joined #ruby
<krz>
or is that best practice?
nerdy has quit [Quit: Computer has gone to sleep.]
SouL___ has joined #ruby
Arkaniad|Laptop has quit [Read error: Connection reset by peer]
braincrash has joined #ruby
sputnik13 has quit [Client Quit]
sputnik13 has joined #ruby
j_mcnally has quit [Ping timeout: 260 seconds]
<mk2014>
hello, I have a class called CurrentPlan::Subscription. How do I call the CurrentPlan::Subscription inside my CurrentPlan class? example is here: https://gist.github.com/22b5e658d720ea224be0
aspires has quit []
<krz>
ah class << self
fold has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
opus has quit []
simoz1111114 has joined #ruby
alexju has joined #ruby
alexju has quit [Read error: Connection reset by peer]
crudson has quit [Quit: q term]
pis0xpscl has joined #ruby
alexju has joined #ruby
crudson has joined #ruby
yetanotherdave has joined #ruby
p0sixpscl has quit [Ping timeout: 252 seconds]
pis0xpscl is now known as p0sixpscl
beneggett has joined #ruby
harryk has joined #ruby
stytown has joined #ruby
sdouglas has joined #ruby
earthquake has joined #ruby
TorpedoSkyline has joined #ruby
benzrf is now known as benzrf|offline
beneggett has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
benzrf|offline is now known as benzrf
dw5304 has left #ruby [#ruby]
bmurt_ has quit []
bmurt has joined #ruby
stytown has quit [Quit: stytown]
cmoneylulz has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit [Ping timeout: 255 seconds]
cocotton has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
yubrew has joined #ruby
sdouglas has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 244 seconds]
mr_snowf1ake has joined #ruby
Cache_Money has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
PanPan has joined #ruby
Takle has joined #ruby
dc_ has quit [Remote host closed the connection]
mr_snowf1ake has quit [Quit: Leaving]
CaptainJet has quit [Ping timeout: 252 seconds]
nuby has quit [Quit: Leaving]
bluOxigen has joined #ruby
Takle has quit [Ping timeout: 248 seconds]
CaptainJet has joined #ruby
hgl has quit [Ping timeout: 260 seconds]
moritzs has quit [Ping timeout: 255 seconds]
whyy has joined #ruby
tharindu has joined #ruby
codeurge has quit [Quit: Sleep.]
hgl has joined #ruby
djr has quit [Remote host closed the connection]
nateberkopec has joined #ruby
ekinmur has quit []
cmoneylulz has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
vt100 has joined #ruby
beneggett has joined #ruby
vt102 has quit [Ping timeout: 252 seconds]
Vivekananda_y510 has joined #ruby
Alina-malina has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has joined #ruby
crodas has quit [Quit: Disconnecting from stoned server.]
crodas has joined #ruby
Diaoer has joined #ruby
Diaoer has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
JBreit has joined #ruby
mary5030 has quit [Remote host closed the connection]
ascarter has joined #ruby
p0sixpscl has quit [Quit: p0sixpscl]
why_away has joined #ruby
razum2um has joined #ruby
whyy has quit [Ping timeout: 244 seconds]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 248 seconds]
kireevco has joined #ruby
larsam has joined #ruby
yubrew has joined #ruby
theharshest has joined #ruby
kaiserpathos has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
kaiserpathos has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
iswell has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
larsam has quit [Read error: Connection reset by peer]
jimbow has quit [Quit: jimbow]
finisherr has joined #ruby
why_away is now known as why
simoz1111114 has quit [Ping timeout: 264 seconds]
why is now known as Guest77258
stytown has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
aganov has joined #ruby
oo_ has joined #ruby
zkay11 has quit [Quit: Leaving.]
theharshest has quit [Quit: This computer has gone to sleep]
mk2014 has quit [Quit: mk2014]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
zz_LoRdToLsToI has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cya]
tjr9898 has joined #ruby
Guest9754 has quit [Quit: Connection closed for inactivity]
zz_LoRdToLsToI has joined #ruby
Channel6 has quit [Quit: Leaving]
tjr9898 has quit [Remote host closed the connection]
yetanotherdave has quit [Quit: Lost terminal]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
tobago has joined #ruby
crudson has quit [Quit: q term]
dc_ has joined #ruby
* agent_white
pats the crickets
nateberkopec has joined #ruby
iswell has quit [Ping timeout: 272 seconds]
garndt has quit [Quit: Connection closed for inactivity]
CorpusCallosum has quit [Ping timeout: 260 seconds]
Lewix has quit [Ping timeout: 272 seconds]
JBreit has left #ruby ["Leaving"]
St_Marx has joined #ruby
CorpusCallosum has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Morkel has joined #ruby
IceDragon has quit [Quit: Space~~~]
CorpusCallosum has quit [Ping timeout: 264 seconds]
p0sixpscl has joined #ruby
Wolland has joined #ruby
freerobby has quit [Quit: Leaving.]
mengu has joined #ruby
yubrew has joined #ruby
benzrf is now known as benzrf|offline
benzine21 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
oo_ has joined #ruby
p0sixpscl has quit [Ping timeout: 252 seconds]
JasmeetQA has joined #ruby
wildroman2 has joined #ruby
CaptainJet has quit []
jimbow has joined #ruby
jdj_dk has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 252 seconds]
BadQuanta has quit [Quit: Leaving.]
BadQuanta has joined #ruby
chrishough has quit [Quit: chrishough]
benzine21 has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<Annwyl>
i have some troubles with a hud in a rpg. actually the hp and mp bar goes from the right side to the left side, but i want that its going from the top to the bottom.i dont have that much experience with ruby, so i really dont know how i should do this http://pastebin.com/yiP1NJ4t
arrubin has quit [Ping timeout: 264 seconds]
kireevco has quit [Client Quit]
<wasamasa>
it's not a ruby problem
alexju has quit [Remote host closed the connection]
<wasamasa>
take a sheet of paper, pen and draw a coordinate system as a computer sees it
<wasamasa>
which in other words commonly has 0|0 in the left upper corner unless someone did transformations on it
<wasamasa>
the x axis goes from left to right, the y axis from up to bottom
kyb3r_ has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
<wasamasa>
now it's your turn to draw in the values from your snippet, if you did everything right you'll see the same bars as in your game
Alina-malina has joined #ruby
<wasamasa>
use your newly gained superpowers to figure out with which values the bar has to be drawn to look vertical and apply them to your code
<wasamasa>
problem solved
tharindu has quit [Ping timeout: 260 seconds]
advorak has quit [Ping timeout: 255 seconds]
<Annwyl>
well i think it would be this easy, but im really bad with ruby. i understood what you mean, but i dont know how to modify that code. i think i will work around a bit, thank you for your help
starkhalo has quit [Ping timeout: 255 seconds]
diegoviola has quit [Remote host closed the connection]
<wasamasa>
you just need to replace some numbers
<wasamasa>
it's not that hard
wildroman2 has quit [Read error: Connection reset by peer]
wildroman2 has joined #ruby
apeiros has quit [Remote host closed the connection]
yfeldblum has joined #ruby
apeiros has joined #ruby
<Annwyl>
i just dont understand which one. i tried to change width to height, but looks like this was a stupid idea
brunops has quit [Quit: leaving]
<Annwyl>
or maybe im just stupid
wildroman2 has quit [Remote host closed the connection]
bradhe has joined #ruby
echevemaster has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 255 seconds]
alec-c4 has joined #ruby
willgorman_ has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
<tobiasvl>
Radar: hey, that helpa bot is new?
crudson has joined #ruby
<Radar>
tobiasvl: it's been around for a while
<tobiasvl>
oh ok.
arrubin has joined #ruby
<Radar>
It doesn't get as much use here as it does over in #rubyonrails
<sevenseacat>
we use it a lot there lol
sigurding has joined #ruby
High-Q-Brah has quit [Ping timeout: 264 seconds]
<Radar>
tobiasvl: It's been here since 4th September, 2012.
<Radar>
First message it received in this channel was "?" from matti.
yfeldblum has joined #ruby
arrubin_ has quit [Ping timeout: 264 seconds]
ndrei_ has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 260 seconds]
bal has joined #ruby
speaking1ode is now known as speakingcode
nateberkopec has joined #ruby
<tobiasvl>
hehe, I see. never hung out in the rails channel and never saw the bot in use here but oh well!
Cache_Money has quit [Quit: Cache_Money]
yfeldblum has quit [Ping timeout: 240 seconds]
mary5030_ has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
Wolland has quit [Read error: Connection reset by peer]
jimbow has joined #ruby
banjara has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
<fastboat>
Then we say, "Take this array and for each element, print it to the console." As usual, we can use any placeholder name for the bit between two | | characters.
<sevenseacat>
right, that doesnt mean the variable is called a placeholder
Shidash has joined #ruby
<fastboat>
oh
<fastboat>
this stuff is confusing
<agent_white>
They just used that as a metaphor... or something.
<fastboat>
how do you guys get unconfused?
<sevenseacat>
what programming languages do you have a background in?
<fastboat>
none
<sevenseacat>
hmm, then i cant really draw any comparisons that you would be familiar with
febuiles has quit [Remote host closed the connection]
<agent_white>
sevenseacat: Indeed. :(
wildroman2 has quit [Ping timeout: 252 seconds]
febuiles has joined #ruby
<Noob101>
What are kernel methods, can someone explain kernel methods to me so that anyone that would hear the explanation would understand please?
<fastboat>
sevenseacat: it's totally real, i went water jetpacking it was so much fun
<shevy>
Noob101 they are methods
<fastboat>
but that has nothing to do with ruby
<sevenseacat>
methods defined on Kernel. not that hard.
<tobiasvl>
Noob101: Kernel is a class that Object inherits. hence, all methods in the Kernel class are inherited by all objects. other than that there's nothing special about them.
<Noob101>
shevy: I am trying to understand but I just don't. The only thing I get is that all objects inherit Kernel? I guess so. I also know that puts is kernel.
<tobiasvl>
I'm sure you can find out what module is without us. if you're still wondering after having read about it, tell us what you don't understand.
<Noob101>
tobiasvl: I would like an explanation, sometimes I don't get looking at these webpages. If I wanted to look at a webpage then I wouldn't be here but ok.
<shevy>
Noob101 you can include a module into your class via include
<sevenseacat>
lol
pickle_ has left #ruby ["Leaving"]
<sevenseacat>
'i would like you to regurgitate information to me in the format i desire'
<shevy>
Noob101 you honestly make this more complicated than it is. look: module Bar; def test; puts 'hi from test'; end; class Foo; include Bar; end
<tobiasvl>
several people trying to formulate explanations of the same thing on the off chance that you understand that particular way of explaining it ... isn't very economic use of our time
<shevy>
now you extended your class Cat with the functionality from Bar
<shevy>
you simply need to write this in your editor yourself Noob101
<olivier_bK>
tobiasvl, where i ' am lucky if i can choose the language for developing so i try to automate as much as possible with ruby
JasmeetQA has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
<tobiasvl>
waynr: shevy isn't trolling now, compared to when he, for example, suggests that it would be better if nobody commented code, ever, not even for rdoc
<shevy>
tobiasvl that's a complete misrepresentation
<waynr>
ha
<tobiasvl>
shevy: yeah I know, I'm just trolling you ;)
alem0lars has quit [Quit: Going AFK...]
<tobiasvl>
I like ripping up weeks-old wounds
<shevy>
I just like to see vim users in pain
JasmeetQA1 has quit [Read error: Connection reset by peer]
<Hanmac1>
sevenseacat: so you have that pidgin plugin too? ;P
nateberkopec has joined #ruby
Hanmac1 is now known as hanmac
<shevy>
did you solve your problem already waynr?
<shevy>
you could always switch to emacs
fabrice31 has quit [Ping timeout: 264 seconds]
<shevy>
matz uses it too
<shevy>
look at what he created with it!
<waynr>
shevy: no, i might try a non standard ruby ftplugin
<shevy>
hey... ruby has ftp support...
mary5030 has quit [Remote host closed the connection]
<tobiasvl>
don't listen to him waynr!
<waynr>
i tried emacs but found it unenjoyable
Takle has quit [Remote host closed the connection]
<tobiasvl>
how right you are
<shevy>
hehe
<shevy>
nobody would admit to being a emacs user here anyway
<waynr>
i appreciate the capabilities of emacs just missed my modal text editing chops
yfeldblum has quit [Ping timeout: 272 seconds]
udoprog has joined #ruby
<tobiasvl>
waynr: anyway, welcome to #ruby, I hope we have managed to give you the impression of a care-free and casual channel, enjoy your stay :B
<waynr>
thanks tobiasvl
<waynr>
i'm not a huge fan of ruby to be honest but i works with what i gots
doev has joined #ruby
<tobiasvl>
GET OUT!!!!!!!
<tobiasvl>
jk
klaut has quit [Remote host closed the connection]
<waynr>
:) my biggest qualm is that it seems really easy for projects to get tangled up like a plate of spaghetti
nateberkopec has quit [Ping timeout: 240 seconds]
<shevy>
waynr that's why you need more discipline
<sevenseacat>
thats for programming in general, not specific to ruby
<shevy>
a lot of features are given but you need to know whether they are useful or not
<shevy>
like @@vars
<sevenseacat>
ive never seen a use for those
<tobiasvl>
sevenseacat: how right you are
<waynr>
well i'm just making observations based on the projects i've worked on so far
<shevy>
sevenseacat they can be used to count how many cats instances were made
whyy has joined #ruby
<shevy>
class Sevenseacat; @@too_many_cats = 0
<sevenseacat>
shevy: but the answer is always 'not enough'
<shevy>
Garfield is a singleton cat
* sevenseacat
is a crazy cat lady
sdouglas_ has quit [Remote host closed the connection]
<shevy>
if ruby were to have traits, Garfield would have an addiction to Lasagne
sylvain31 has joined #ruby
chipotle has quit [Quit: cya]
BinaryMcAwesome has joined #ruby
mk2014_ has joined #ruby
BinaryMcAwesome is now known as Guest57705
goyox86 has joined #ruby
Derander has quit [Ping timeout: 252 seconds]
mk2014 has quit [Ping timeout: 272 seconds]
mk2014_ is now known as mk2014
willgorman_ has joined #ruby
krz has quit [Ping timeout: 252 seconds]
sigurding has quit [Read error: Connection reset by peer]
schaary|afk is now known as schaary
mijicd has joined #ruby
elaptics`away is now known as elaptics
ihme-TTilus is now known as TTilus
EasyCo has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
Derander has joined #ruby
einarj has joined #ruby
JasmeetQA1 has joined #ruby
tvw has joined #ruby
Takle has quit [Remote host closed the connection]
<tobiasvl>
sylvain31: never heard it called that but okay!
<wasamasa>
I guess it has been left out since my experiences with python's argparse have shown me it's quite of a pain to make it not require these positional arguments for special cases
JasmeetQA1 has quit [Read error: Connection reset by peer]
nfk has joined #ruby
willgorman_ has quit [Ping timeout: 240 seconds]
Guest57705 has quit [Ping timeout: 252 seconds]
DaniG2k has quit [Ping timeout: 260 seconds]
<sylvain31>
tobiasvl, you mean a vocable diff. You're right, but yes it seems what I'm looking for: subcommands.
<wasamasa>
also, note that slop is using optionparser internally
alec-c4 has quit [Remote host closed the connection]
JasmeetQA1 has joined #ruby
Derander has quit [Ping timeout: 264 seconds]
K3dare is now known as kedare
DaniG2k has joined #ruby
Takle has joined #ruby
JasmeetQA has quit [Ping timeout: 272 seconds]
Wolland has quit [Remote host closed the connection]
Derander has joined #ruby
sk87 has joined #ruby
alec-c4 has joined #ruby
DaniG2k has quit [Client Quit]
DaniG2k has joined #ruby
krz has joined #ruby
kaspergrubbe has joined #ruby
AppleStar has joined #ruby
jamto11 has joined #ruby
Vivekananda_y510 has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
klaut has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
BecauseYouCan_ has joined #ruby
<shevy>
huh
jamto11 has quit [Ping timeout: 264 seconds]
<sylvain31>
thanks guy have fun. Bye
<shevy>
where precisely is slop using optionparser internally?
<workmad3>
sts: sure... install a newer openssl and rebuild your ruby against it
intnsity has joined #ruby
<workmad3>
sts: homebrew and ruby-install can help a lot with that
hgl has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
<workmad3>
sts: that said, the fix for the bug is in 2.1.2
<sts>
workmad3: is that a bug which requires a certain server configuration to actually happen?
<workmad3>
sts: it's a bug with very old versions of openssl
<workmad3>
sts: using an old version of openssl is itself a bug, IMO ;)
schaerli has joined #ruby
<workmad3>
sts: but the bug is fixed... as can be seen by the 'backports' section saying done for 1.9.3, 2.0.0 and 2.1
<sts>
workmad3: I'd like to run with the openssl version which is supplied with osx.
<workmad3>
sts: don't
<sts>
workmad3: I want to run Puppet to configure workstations.
<sts>
workmad3: not some fancy developer workstation...
<sts>
workmad3: that would really complicate deployment if I have to compile ruby and openssl...
<workmad3>
sts: osx uses its own libraries for ssl internally and doesn't provide particularly good openssl support
* hanmac
shorted the sentence to "osx ... doesn't provide ... good ... support"
inspectah_log has quit [Quit: WeeChat 0.3.8]
<workmad3>
hanmac: :D
el_consolo has quit [Quit: leaving]
<workmad3>
sts: it's your decision... but I wouldn't advise doing much with the built-in openssl stuff with osx... outdated root certs, outdated library...
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<workmad3>
sts: you could put together something like an omnibus build for your osx setup though, which would have a ruby build with all the libraries compiled into a single directory that you could then ship out via puppet and set up (no compilation needed)
<hanmac>
IF osx would have paket management you could update all the stuff you need ;P
<workmad3>
sts: well... compilation needed initially to create the package
<workmad3>
sts: I've not done that before though, but I know it's how chef distributes its own ruby as part of their install packages ;)
eka has joined #ruby
mijicd has quit [Remote host closed the connection]
bamyyyooo14335 has joined #ruby
vifino has joined #ruby
<workmad3>
hanmac: wat? you mean the App Store isn't a package manager?!?!?!?!one111!?
<hanmac>
not in the case that you might add own repositories like lauchpad
jottr_ has joined #ruby
schaerli has quit [Ping timeout: 244 seconds]
Takle has quit [Ping timeout: 252 seconds]
Joulse has quit [Quit: Joulse]
<workmad3>
hanmac: but... but... why would I want a non-blessed repository from someone other than apple!
<workmad3>
hanmac: surely apple know better than me what I should install on my mac!
<workmad3>
</fanboi>
godd2 has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
inspectah_log has joined #ruby
inkblots has joined #ruby
ferr has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
intnsity has joined #ruby
ferr has joined #ruby
moritzs has joined #ruby
yfeldblum has joined #ruby
b1nd has joined #ruby
nszceta has quit []
yfeldblum has quit [Ping timeout: 272 seconds]
ssarah has joined #ruby
<ssarah>
hei guys
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
kiri has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
Takle has joined #ruby
bamyyyooo14335 has joined #ruby
<ddv>
hi
ARCADIVS has quit [Quit: WeeChat 0.4.3]
<techsethi>
hi ddv
<Edelwin>
\o
alec-c4 has joined #ruby
<pipework>
workmad3: I don't know if I believe that. After all, they installed iTunes.
tus has joined #ruby
<ddv>
hello techsethi
exgf_h_d has joined #ruby
exgf_h has quit [Remote host closed the connection]
lotherk has joined #ruby
yubrew has joined #ruby
obs has joined #ruby
lkba has joined #ruby
pranny has quit [Quit: Leaving.]
ferr has quit [Remote host closed the connection]
Freijo has quit [Ping timeout: 248 seconds]
troulouliou_dev has quit [Quit: Leaving]
Wolland has joined #ruby
nateberkopec has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
fantasticsid has joined #ruby
Fraeon has joined #ruby
aep has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
poimen has quit [Ping timeout: 260 seconds]
_ixti_ has joined #ruby
fearoffish has quit [Ping timeout: 260 seconds]
Morrolan has quit [Ping timeout: 245 seconds]
ferr has joined #ruby
oponder has joined #ruby
alec-c4 has quit [Remote host closed the connection]
adac has quit [Ping timeout: 260 seconds]
jprovazn has quit [Ping timeout: 260 seconds]
MissionCritical has quit [Ping timeout: 260 seconds]
grn has quit [Ping timeout: 260 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
oz has quit [Ping timeout: 245 seconds]
Doppp has joined #ruby
grn has joined #ruby
jamto11 has joined #ruby
alec-c4 has joined #ruby
jpierre03 has quit [Ping timeout: 260 seconds]
stormy3_ has quit [Ping timeout: 260 seconds]
Zackio has quit [Ping timeout: 260 seconds]
majoh has quit [Ping timeout: 245 seconds]
stormy3 has joined #ruby
aep has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
bier_ has quit [Ping timeout: 245 seconds]
lupine has quit [Ping timeout: 245 seconds]
tonini has quit [Ping timeout: 245 seconds]
tonini has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
fearoffish has joined #ruby
Morrolan has joined #ruby
lupine has joined #ruby
oz has joined #ruby
bier has joined #ruby
jprovazn has joined #ruby
majoh has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
jpierre03 has joined #ruby
Zackio has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
alec-c4 has quit [Ping timeout: 272 seconds]
schaerli has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
AppleStar has quit [Ping timeout: 244 seconds]
benzine21 has joined #ruby
poimen has joined #ruby
sigurding has joined #ruby
Arkaniad has quit [Ping timeout: 264 seconds]
MissionCritical has joined #ruby
adac has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
jack_rabbit has quit [Ping timeout: 240 seconds]
ndrei_ has quit [Ping timeout: 252 seconds]
little_fu has quit [Remote host closed the connection]
ferr has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 272 seconds]
anarang has joined #ruby
marr has joined #ruby
GriffinHeart has joined #ruby
tjr9898 has quit [Remote host closed the connection]
benzine21 has quit [Remote host closed the connection]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
ferr has joined #ruby
<dangerou_>
I am using Amazon SQS in my rails app. What is the best way to maintain a handle to the queue throughout my application? should i create a singleton to interface with the api? http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/SQS.html
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
inkblots has quit [Remote host closed the connection]
<dangerou_>
interesting, just wondering if it would be overkill for my needs.
<workmad3>
dangerou_: what app server are you planning on using?
<dangerou_>
passenger
<workmad3>
dangerou_: then no, I wouldn't say it's overkill
dANOKELOFF has joined #ruby
<workmad3>
dangerou_: anything that has the potential to preload the app and spawn off copies, you should take care with your connections to make sure the same connection isn't badly used between processes/threads/fibres
Deele has joined #ruby
LadyRainicorn has joined #ruby
schaerli has quit [Ping timeout: 264 seconds]
<dangerou_>
workmad3, ok, thanks, i'll try
<workmad3>
dangerou_: it's really easy to use ;)
mr-foobar has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
mr-foobar has joined #ruby
<dangerou_>
workmad3, thats reassuring, but my reluctance is it's another dependency to maintain
<dangerou_>
i will try however
<workmad3>
dangerou_: it really is as easy as 'ConnectionPool.new(size: x, timeout: 10) {create_connection_here}'
<workmad3>
dangerou_: it'll be *much* better for your sanity to be using a connection pool gem than trying to write your own connection pool when you have nasty thread-related connection issues in your app ;)
fantasti` has joined #ruby
<workmad3>
dangerou_: decent connection pools are not easy to write...
benzine21 has joined #ruby
fantasti` has quit [Remote host closed the connection]
fantasticsid has quit [Ping timeout: 244 seconds]
<dangerou_>
workmad3, noted
klaut has quit [Remote host closed the connection]
yacks has quit [Quit: Leaving]
sk87 has joined #ruby
mbwe1 has joined #ruby
mbwe1 has quit [Client Quit]
Rainicorn has joined #ruby
ldnunes has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
Rainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
fflush has joined #ruby
setra has joined #ruby
greenarrow has quit [Quit: 500]
kenneth has joined #ruby
donnoc has joined #ruby
kiri has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 244 seconds]
doev has quit [Quit: Verlassend]
yubrew has joined #ruby
bamyyyooo14335 has quit [Read error: Connection reset by peer]
ferr has quit [Ping timeout: 255 seconds]
phutchins has joined #ruby
ferr has joined #ruby
cashnguns has joined #ruby
bamyyyooo14335 has joined #ruby
nateberkopec has joined #ruby
whyy has quit [Remote host closed the connection]
whyy has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
joonty has quit [Quit: WeeChat 0.4.2]
oponder has quit []
donnoc has quit [Quit: WeeChat 0.4.3]
kiri has joined #ruby
donnoc has joined #ruby
jespada has joined #ruby
ndrei_ has quit [Ping timeout: 252 seconds]
phoo1234567 has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
phoo1234567 has quit [Max SendQ exceeded]
Wolland has joined #ruby
phoo1234567 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
mconnolly has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
Proshot has joined #ruby
greenarrow has joined #ruby
vifino has quit [Quit: Me sais Laptop sleepy.]
mk2014 has left #ruby [#ruby]
maximski has quit []
vt100 has quit [Ping timeout: 248 seconds]
azkah has joined #ruby
Takle has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
gwb3 has joined #ruby
<elaptics>
I prefer magical trevor :)
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
ereslibre has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
snapcase has quit [Ping timeout: 245 seconds]
snapcase has joined #ruby
superc0w has joined #ruby
aalmenar has quit [Read error: Connection reset by peer]
majoh has quit [Ping timeout: 245 seconds]
<wald0>
i have a question/doubt about programming paradigm/style about ruby
superc0w has quit [Client Quit]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
majoh has joined #ruby
<elaptics>
wald0: ask away
<wald0>
for example, i have a BASH function that before to process any action (case for the first parameter) it calls itself ($FUNCNAME) to call the cleanup parameter
<wald0>
this ends in an infinite loop, of course
Trynemjoel has joined #ruby
<tobiasvl>
elaptics: everyone loves magical trevor, coz the tricks that he does are ever so clever
mengu has quit [Ping timeout: 260 seconds]
DouweM has quit [Ping timeout: 260 seconds]
<wald0>
and im thinking that RUBY can just deal with these things just better because its much better structured
<wald0>
or it forces you to structure it better
<wald0>
im correct or ruby would have the same problem too ?
<tobiasvl>
I don't think the fault is with bash here
havenwood has joined #ruby
<sts>
workmad3: the bug is only triggered if the subjectAltNames is empty right?
<wald0>
(by problem i mean: i wrote this without even notice that can bug, because bash has no strcuture at all)
DouweM has joined #ruby
<tobiasvl>
wald0: feel free to gist the bash script, I don't really understand why you're blaming bash for creating an infinite loop
britneywright has joined #ruby
jackneill has joined #ruby
<elaptics>
wald0: you'd have the same sort of problem with recursion with any language
<elaptics>
ruby's syntax might make it easier to not make the mistake in the first place but it's no guarantee
thesheff17 has quit [Ping timeout: 255 seconds]
<wald0>
tobiasvl: the fault is not bash of course, im asking about if these things happens less in ruby because in ruby they are simply better structure (let's say for example, ruby has constructors and other things)
<wald0>
elaptics: yeah thats what i mean, i was wondering if ruby could make it easier to not make the mistake, mmh..
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<tobiasvl>
still don't understand what "the mistake" is
jcromartie has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
donnoc has quit [Ping timeout: 240 seconds]
cmoneylulz has quit [Remote host closed the connection]
<wald0>
this is an example of a simple but stupid bug easy to typo in bash
ferr has quit [Ping timeout: 244 seconds]
* wald0
asks that because since some time is learning and studying ruby which looks promising, trying to switch to it someday
Kovensky has joined #ruby
davedev24_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
davedev24_ has joined #ruby
Proshot has quit [Quit: Leaving]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
chaos___________ has quit [Ping timeout: 244 seconds]
thesheff17 has joined #ruby
kenneth has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Ping timeout: 255 seconds]
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
bamyyyooo14335 has joined #ruby
<wald0>
is there any example of how something similar can be writed in ruby ? (correctly structured/coded i mean)
yubrew has quit [Ping timeout: 255 seconds]
uresu has quit [Quit: uresu]
uresu has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
jerius has joined #ruby
hamakn has quit [Remote host closed the connection]
Hamburglr has quit [Ping timeout: 252 seconds]
setra has quit [Ping timeout: 264 seconds]
<zegerjan>
What is the filename convention for classes which inherrent. if i make Cat < Animal and Dog < Animal, should i create a subfolder or something?
moritzs has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
<lagweezle>
IIRC no subdirectory necessary.
moritzs has joined #ruby
<lagweezle>
Seperate file probably good though.
<zegerjan>
cat.rb and dog.rb is fine i guess?
Xeago has quit [Remote host closed the connection]
tjr9898 has joined #ruby
donnoc has joined #ruby
britneywright has quit [Ping timeout: 240 seconds]
robertodecurnex has joined #ruby
dblessing has joined #ruby
Mon_Ouie has joined #ruby
vt102 has joined #ruby
alexju has joined #ruby
sigurding has joined #ruby
eka has joined #ruby
vt102 has quit [Remote host closed the connection]
davedev24_ has joined #ruby
vt102 has joined #ruby
starkhalo has joined #ruby
britneywright has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
mengu__ has quit [Remote host closed the connection]
cashnguns has quit [Ping timeout: 272 seconds]
ascarter has joined #ruby
kiri has quit [Quit: Leaving]
casheew__ has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
centrx has joined #ruby
alec-c4 has quit [Remote host closed the connection]
andrewhl has joined #ruby
tvw has quit []
sdouglas has joined #ruby
Edelwin is now known as EdelwinK
Macaveli has joined #ruby
charliesome has joined #ruby
jamto11 has joined #ruby
techsethi has quit [Ping timeout: 252 seconds]
Wolland has quit [Ping timeout: 240 seconds]
kiri has joined #ruby
wildroman2 has quit [Remote host closed the connection]
djcp has joined #ruby
djcp has left #ruby [#ruby]
tjr9898 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
sdouglas has quit [Ping timeout: 244 seconds]
alec-c4 has quit [Remote host closed the connection]
freerobby has joined #ruby
alec-c4 has joined #ruby
jamto11 has quit [Ping timeout: 248 seconds]
mikesplain has joined #ruby
moritzs has quit [Ping timeout: 248 seconds]
cmoneylulz has joined #ruby
bamyyyooo14335 has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
Takle has joined #ruby
Parker0 has joined #ruby
bamyyyooo14335 has joined #ruby
tjr9898 has joined #ruby
oo_ has quit [Remote host closed the connection]
alec-c4 has quit [Ping timeout: 240 seconds]
cocotton has joined #ruby
techsethi has joined #ruby
oo_ has joined #ruby
doev has joined #ruby
mikesplain has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
<ddv>
zegerjan: namespaces (eg modules) are usually directories
tjr9898 has joined #ruby
casheew has joined #ruby
sigurding has quit [Quit: sigurding]
Takle has quit [Ping timeout: 244 seconds]
EdelwinK is now known as Edelwin
adac has quit [Ping timeout: 272 seconds]
cocotton has quit [Remote host closed the connection]
wildroman2 has joined #ruby
gowikel has joined #ruby
joonty has joined #ruby
himsin has quit [Quit: himsin]
<zegerjan>
ddv: Thanks. Ill keep it in the same dir.
casheew has quit [Ping timeout: 260 seconds]
nathamanath has joined #ruby
yfeldblum has joined #ruby
sigurding has joined #ruby
mengu has joined #ruby
kevind has joined #ruby
yfeldblum has quit [Remote host closed the connection]
TotalEvil has joined #ruby
<TotalEvil>
hi2all
yfeldblum has joined #ruby
ferr_ has quit [Quit: Konversation terminated!]
oo_ has quit [Remote host closed the connection]
nathamanath has quit [Remote host closed the connection]
yacks has joined #ruby
<TotalEvil>
can someone help me with ip address detect
schaerli has quit [Remote host closed the connection]
gowikel has left #ruby [#ruby]
gowikel has joined #ruby
cashnguns has joined #ruby
schaerli has joined #ruby
moritzs has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Takle has joined #ruby
gowikel has left #ruby [#ruby]
moritzs has quit [Max SendQ exceeded]
moritzs has joined #ruby
yacks has quit [Ping timeout: 248 seconds]
Jon` has joined #ruby
adac has joined #ruby
nathamanath has joined #ruby
lemur has joined #ruby
zorak has quit [Ping timeout: 248 seconds]
maximski has quit []
uresu has quit [Quit: uresu]
tjr9898 has joined #ruby
Zenigor has joined #ruby
alec-c4 has joined #ruby
<jhass>
TotalEvil: ask an actual question and you might find out
gowikel has joined #ruby
<TotalEvil>
i'm using chef and tryin to detect ip from possible interfaces
sigurding has quit [Quit: sigurding]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phutchin1 has joined #ruby
<TotalEvil>
#{node[:network][:interfaces].find{|k,v| k['eth0'] or k['bond0']}[:addresses]}
<TotalEvil>
i have tried something like this
<TotalEvil>
but no luck
<jhass>
what does it return, what do you expect it to return?
yacks has joined #ruby
workmad3 has joined #ruby
mrmargolis has joined #ruby
<toretore>
k is likely the name of the interface, so you'd want ==
yubrew has joined #ruby
Takle_ has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
abuzze has joined #ruby
Zenigor has quit []
Takle has quit [Read error: Connection reset by peer]
mattstratton has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
nathamanath has quit [Remote host closed the connection]
Xeago has joined #ruby
gowikel has left #ruby [#ruby]
acrussell has joined #ruby
Alina-malina has joined #ruby
vifino has joined #ruby
vifino has quit [Remote host closed the connection]
vifino has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
tmtwd has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
Zenigor has joined #ruby
sigurding has joined #ruby
sts has left #ruby [#ruby]
tmtwd has joined #ruby
yfeldblu_ has joined #ruby
wombo has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
bartj3 has joined #ruby
yfeldblu_ has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
alec-c4 has quit [Remote host closed the connection]
alec-c4 has joined #ruby
pranny has joined #ruby
fflush_ has joined #ruby
fflush_ has quit [Changing host]
fflush_ has joined #ruby
fflush has quit [Ping timeout: 272 seconds]
fflush_ is now known as fflush
ferr has joined #ruby
Solnse has joined #ruby
tjr9898 has joined #ruby
benzine21 has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
acconrad has joined #ruby
Wolland has joined #ruby
alec-c4 has quit [Ping timeout: 264 seconds]
Morkel has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
alec-c4 has joined #ruby
yfeldbl__ has joined #ruby
havenwood has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlSquire has joined #ruby
hobodave has joined #ruby
yfeldblu_ has quit [Read error: Connection reset by peer]
kaihara has joined #ruby
Morkel has joined #ruby
<krz>
wish there was something like: <% @subscription_packages.each do |package| %>
sigurding has quit [Quit: sigurding]
<centrx>
There is?
<krz>
errr <% @subscription_packages.present? then @subscription_packages.each do |package| %>
alec-c4 has quit [Remote host closed the connection]
<jhass>
so AS?
<krz>
a one liner to do above
<apeiros>
krz: that works. but not if you omit the `if`
alec-c4 has joined #ruby
<krz>
oh really,,, trying
<centrx>
krz, If @subscription package is an empty array, [].each is no-op
<apeiros>
valid ruby is still a requirement :-p
<jhass>
<% (@subscription_packages.presence || []).each do |package| %>
Wolland has quit [Ping timeout: 255 seconds]
_ixti_ has quit [Read error: Connection reset by peer]
<krz>
what if it is nil
<centrx>
nil is falsey
yfeldblum has quit [Ping timeout: 248 seconds]
<apeiros>
@subscription_packages.try(:each) do |package| # I think that should work too
<jhass>
or <% @subscription_packages.try(:each) do |package| %> should work too iirc
Macaveli has quit [Ping timeout: 240 seconds]
<jhass>
;D
<apeiros>
^5
<krz>
oh you gotta love try
<apeiros>
I don't
<apeiros>
I want syntax for that
yfeldblum has joined #ruby
_ixti_ has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
<workmad3>
apeiros: I'd prefer to ensure @subscription_packages never contained nil personally :)
yfeldblum has quit [Remote host closed the connection]
sigurding has joined #ruby
<jhass>
^ that too
<apeiros>
workmad3: agreed
<krz>
good point
<apeiros>
normalization beats branching
volk_ has joined #ruby
<apeiros>
sadly too few coders understand the value of normalization :(
Y_Ichiro has quit [Ping timeout: 240 seconds]
[gmi] has joined #ruby
<krz>
btw is it possible to avoid something like foo.try(:bar).try(:baz)
alec-c4 has quit [Ping timeout: 240 seconds]
<apeiros>
krz: yes. normalizer your data :-p
yfeldbl__ has quit [Ping timeout: 240 seconds]
<csmrfx>
?
<krz>
or a more elegant way of writing that
<workmad3>
krz: sure... never let 'foo' be nil, and never let 'foo.bar' return nil :P
<apeiros>
workmad3: I still want to explore null-value pattern (if that's the name, not sure)
<csmrfx>
what should I read to understand the value of normalization?
<workmad3>
apeiros: you mean NullObject patterns?
<apeiros>
probably
yfeldblum has joined #ruby
<workmad3>
apeiros: e.g. returning things like EmptyPerson instead of 'nil' to indicate no person was found
<centrx>
krz, I think the most elegant way is to set @subscription_packages to [] if it is going to be empty/nil/blank
<apeiros>
workmad3: precisely
<apeiros>
I find it an interesting concept. but I've never used it myself.
andrewhl has quit [Quit: andrewhl]
<krz>
this is more rails specific: subscription_packages = Subscription.where(user_id: current_session.try(:owner).try(:id))
<workmad3>
apeiros: I've used it a few times... mostly I find that when I'm dealing with 'empty' stuff it's an array though
<apeiros>
krz: yeah, normalization. really.
<apeiros>
*always* have a current_session.
<workmad3>
apeiros: and nothing beats an empty array for that :)
<krz>
i can do that, which AR will interpret the last bit as nil, which will return an empty array
<apeiros>
*always* have your session have an owner. e.g. use "Guest"
<krz>
but current_session.try(:owner).try(:id) loogs fugly
<krz>
loogs = looks
amargherio has joined #ruby
enebo has joined #ruby
<centrx>
krz, Why not Subscription.where(user: current_user) ?
<krz>
current_session will exist, but owner might not
<apeiros>
workmad3: with collections it's easy.
<centrx>
or current_user.user
moritzs has joined #ruby
<apeiros>
I don't think there's a reason to have specific null objects there. just have an empty one.
<centrx>
NilClass is all you need for nothing
<workmad3>
apeiros: sure :)
Pyrotecnix_ has left #ruby ["Leaving"]
moritzs has quit [Max SendQ exceeded]
<apeiros>
centrx: not the same
bennylope has joined #ruby
<krz>
centrx: what is current_user.user i nil at the moment
<workmad3>
centrx: you mean 'class NilClass; def method_missing(*args, **kwargs, &blk); nil; end; end'? :)
<apeiros>
centrx: the point of null-object is that you have an object which responds to all methods
<krz>
id will complain about nilClass
moritzs has joined #ruby
bennylope has quit [Max SendQ exceeded]
<apeiros>
and letting nil itself do that as workmad3 described it is a horrible thing
<workmad3>
apeiros: a null-object shouldn't respond to all methods... it should respond to the same interface as the non-null object :)
<apeiros>
workmad3: that's what I meant
lxsameer has quit [Quit: Leaving]
moritzs has quit [Max SendQ exceeded]
<workmad3>
heh
<apeiros>
thanks for the clarification
<centrx>
krz, current_user.user would be a custom method you define if "current_user" is not the same kind of User referenced by Subscription
<workmad3>
apeiros: I'm reading a </sarcasm> after that... correct interpretation? :)
moritzs has joined #ruby
<apeiros>
workmad3: no
<krz>
centrx: right. but if user returned nil. then current.user.id would still fail
<apeiros>
I was not precise. you clarified. that's good :)
wombo_ has joined #ruby
sigurding_ has joined #ruby
sigurding_ has quit [Client Quit]
<workmad3>
krz: don't let current_user ever return nil\
benzine21 has joined #ruby
<apeiros>
krz: see 16:05 apeiros: *always* have your session have an owner. e.g. use "Guest"
<workmad3>
krz: return something (like a GuestUser instance) at that point
<workmad3>
krz: hell, just a User.new would do in a lot of circumstances :)
<krz>
current_session also has an owner method. sometimes the current_session isnt the owner though
bennylope has joined #ruby
casheew has joined #ruby
banister is now known as banisterfiend
bennylope has quit [Max SendQ exceeded]
razieliyo has quit [Quit: Saliendo]
<krz>
and sometimes the current session is managing another user (current_session.managing) that can also be nil
sigurding has quit [Ping timeout: 264 seconds]
wombo has quit [Ping timeout: 264 seconds]
wombo_ is now known as wombo
<centrx>
This NilClass responding to everything sounds more like an EverythingClass than a NilClass
<apeiros>
sounds like a convoluted design which needs cleaning anyway
<krz>
point is, sometimes a method in current_session has the right to be nil
<workmad3>
krz: why?
<apeiros>
centrx: see workmad3's clarification
<centrx>
That would be like /dev/null responding with data
<apeiros>
centrx: with "all methods" I meant e.g. that NullPerson responds to the same methods as Person
<workmad3>
centrx: I gave that 'extension' as a joke :P
<apeiros>
centrx: and nil doesn't do that
<centrx>
It is absurd enough that there is one Object to represent nil. There cannot be more
casheew_ has joined #ruby
<centrx>
There is only nil, also called nihil, null, and nothing
<centrx>
It cannot be an Object. This is Rubheresy
<apeiros>
centrx: um, lol. ok
<krz>
workmad3: my current_session object is in charge of tracking the session of who is currently logged in. if the currently logged in user selects another user to manage. then current_session.managing is set. this means i can determine who the current session is managing
<apeiros>
IT CAN'T BEEEEE! BECAUSE DOGMA!
<krz>
however, its not alwasy the case that a current session is managing someone
<apeiros>
pointless to argue dogma.
<krz>
workmad3: hence being nil
<Xeago>
centrx: is an empty box, not a box?
<centrx>
It is called nil. If you wanted it to be everything you could have called it everything. QED
<Xeago>
it's empty afterall
<Xeago>
it's nothing
<apeiros>
centrx: are you willfully ignoring what's said?
<krz>
if its nothing, why does nil deserve a representation?
<centrx>
Does an EmptyPerson have a soul? These are impossible questions.
<apeiros>
it's *not* everything.
<krz>
i.e. nil.to_i = 0
cocotton has joined #ruby
<apeiros>
ok. I see, you're trolling.
<centrx>
Are you willfully ignoring what's nil!?
<workmad3>
krz: conceptually, the current_session is managing someone even if no-one is identified... it's still managing the guest user ;)
<krz>
workmad3: who would be the guest user though?
<apeiros>
workmad3: with non-collection null-objects, what's been your general experience? useful pattern? problematic in some aspects?
<workmad3>
krz: an instance of a GuestUser class would be a guest user
<workmad3>
apeiros: I tend to hard-code some minimal class... but I don't encounter them massively often
<workmad3>
apeiros: with activerecord, I also sometimes just use a non-persisted version of the model
<krz>
so just a dummy user? a blank object, not a real user in the user table?
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<krz>
workmad3: ^^
<workmad3>
krz: sure
casheew__ has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
<workmad3>
krz: that's kinda what we were just discussing :P
<apeiros>
workmad3: so basically something like: class NullPerson; def first_name; nil; end; …; end?
momomomomo has quit [Quit: momomomomo]
freerobby has quit [Quit: Leaving.]
<workmad3>
apeiros: yeah
<apeiros>
ever had problems which arose from that?
<workmad3>
apeiros: keeping the interface in-sync is a bit annoying
bamyyyooo14335 has joined #ruby
<apeiros>
I pondered meta-programming it
casheew_ has joined #ruby
<krz>
yea dunno about that. so i would metaprogram all possible attributes of nullperson? so current_session.managing.email actually returns nil, instead of undefined method?
<workmad3>
krz: yeah
speakingcode has quit [Ping timeout: 252 seconds]
<krz>
or can also extend method_missing
lw has joined #ruby
<workmad3>
krz: extending method_missing isn't generally a good idea
<krz>
ayt
garethrees has joined #ruby
<krz>
so should it be Guest or NullPerson? (name of class)
xcv has joined #ruby
<workmad3>
apeiros: ah, thinking about it, I've also done the equivalent of NullObject patterns for test stubs too... and at that point, I used Struct :)
<krz>
guest sounds like a real person though
<krz>
like an object that returns real values
<workmad3>
krz: whichever makes most sense... just like any naming convention :)
ghr has quit [Read error: Connection reset by peer]
xcv has quit [Client Quit]
<krz>
kk
<apeiros>
workmad3: yeah. for stubs I often used partial objects and replaced a method :)
<krz>
so normalization is the pattern for ensuring objects return nil values?
<workmad3>
apeiros: these were properly isolated tests... they only loaded rspec and the SUT... all the other dependencies were basic Structs
<apeiros>
krz: normalization is the pattern where you ensure your data has a uniform character
<apeiros>
i.e. not "once it returns A, once B"
tobago has quit [Remote host closed the connection]
<krz>
ah!
<apeiros>
which usually also means "never nil"
<workmad3>
apeiros: at that point, I did also write interface specs to ensure the stubs and the real objects supported the same expected interface...
jamto11 has joined #ruby
<apeiros>
workmad3: I still have a test-double lib lying around, "seamless", which provided a verified test double
dangerou_ has quit [Read error: Connection reset by peer]
<krz>
this is a good approach. glad you mentioned it workmad3
dangerousdave has joined #ruby
<workmad3>
krz: apeiros was the one who mentioned it
<apeiros>
i.e. you provided a fully constructed object which would only be used if you wanted an integration test
<workmad3>
krz: we just both expanded on it :)
<krz>
apeiros high five!
<apeiros>
^5
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3>
apeiros: what if what you wanted to stub out was only a small part of that object though? :)
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<apeiros>
the part of providing the fully constructed object is optional
<apeiros>
if you don't provide it, it's a normal stub/mock/spy
<workmad3>
apeiros: in my case, I was stubbing out interfaces rather than objects... and then declaring a Struct that supported just that interface and passing that into the SUT
<apeiros>
if you provide it, you can specify whether you want it to be constructed, and whether you want your stub to be verified against it
donnoc has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
bamyyyooo14335 has joined #ruby
<workmad3>
apeiros: I was on a bit of a 'mock roles, not objects' trend at the time though :)
alec-c4 has quit [Remote host closed the connection]
mjulian has joined #ruby
alec-c4 has joined #ruby
<workmad3>
apeiros: heh :) thinking about it, 'mock roles, not objects' can also be extended to normalisation/null objects by saying 'use roles, not objects'
<apeiros>
roles = ducks?
<workmad3>
apeiros: sure :)
<apeiros>
duckify all the rubies!
<workmad3>
apeiros: or collaborators, or whatever
<mjulian>
We're a Puppet shop and also need to start deploying Ruby applications. I'm trying to figure out the best way for me (ops) to deploy Ruby 2.1 on CentOS 6. I keep reading suggestions to use RVM, but I also hear rumors about how RVM is terrible. Any suggestions?
momomomomo has joined #ruby
tagrudev has quit [Remote host closed the connection]
jamto11 has quit [Remote host closed the connection]
<apeiros>
mjulian: there are a couple of ruby managers which bypass standard package manager (since they're often lagging behind or otherwise troublesome)
<workmad3>
mjulian: personally, on a server, I just use plain ruby-install... you could also see about building something like an omnibus package that you could install rather than compile ruby on the server
<apeiros>
^
havenwood has joined #ruby
<workmad3>
mjulian: you don't need a full version manager on a server where you're automating the setup though... you just need something to get ruby on there, then your automation can set up services with the correct environments :)
cocotton has quit [Quit: Leaving...]
yubrew has joined #ruby
<mjulian>
workmad3: I would really want to avoid installing build tools on production systems, and much prefer to deploy packages.
<workmad3>
mjulian: which also acts as a deterrent to doing stuff on the server manually... because it's a PITA to use ruby at that point :)
jamto11 has joined #ruby
<workmad3>
mjulian: so investigate the omnibus approach?
<mjulian>
Yeah, that sounds like a good path to look at.
alec-c4_ has joined #ruby
<workmad3>
mjulian: you might need to go a step further than just ruby with that approach though
<mjulian>
Yeah.
mengu has quit []
<workmad3>
mjulian: as many ruby apps make use of gems with native extensions... so you'd need to create a package for each app, and install that
pranny has quit [Quit: Leaving.]
<workmad3>
mjulian: basically, you'd end up creating a continuous delivery pipeline with that approach ;) something (a build server) creates your compiled packages, pushes them to a package repository (preferably a test one to start with)
<mjulian>
Yeah, and that gets nice and complex
<mjulian>
A potentially very deep rabbit role.
yubrew has quit [Ping timeout: 244 seconds]
<workmad3>
mjulian: that then acts as an archive of all possible installable versions... you can then install any one of into a test env... and when you have a version you're happy with for production, you promote that package to the production package repository
tier has joined #ruby
<workmad3>
mjulian: it bottoms out :)
duallain has joined #ruby
alec-c4 has quit [Ping timeout: 264 seconds]
<mjulian>
hah. We hope. :)
<workmad3>
mjulian: it's a setup I've seen in practice ;) although that was at the BBC....
freerobby has joined #ruby
dh64 has quit [Quit: Konversation terminated!]
<workmad3>
mjulian: one of these days, I'm gonna get around to sorting it out my current work stuff... honest :)
donnoc has joined #ruby
<mjulian>
heh
<mjulian>
We are in the super early stages of deploying webapps at my current company. Still working on technology choice and standards. Lots of legacy PHP that's being slowly moved into Ruby. :(
* mjulian
doesn't have any neat tooling or processes like that yet
geggam has joined #ruby
<workmad3>
mjulian: this is the time to get started with it then :D
nathan___ has joined #ruby
andrewhl has joined #ruby
<Burgestrand>
PHP deployment vs. Ruby deployment is quite a large gap for web applications.
Zenigor has quit [Remote host closed the connection]
elstif has joined #ruby
tier has quit [Remote host closed the connection]
<workmad3>
just yesterday, I had to expand our chef stuff to deploy a PHP site :(
bamyyyooo14335_ has joined #ruby
<mjulian>
Burgestrand: Oh, absolutely. We have one old-school PHP dev and two modern Ruby devs. I'm a Python guy. It's been an interesting time.
tmtwd has quit [Ping timeout: 264 seconds]
<hanmac>
workmad3: it could be worse ... it could be java ;P
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<Burgestrand>
I mean… PHP is more or less upload the files to the server in the right place. When it comes to Ruby it's more like uploading the files, and figuring out how to boot the application server so NGiNX or Apache can reach it…
<workmad3>
hanmac: heh
<mjulian>
ha. Thank the heavens it isn't, hanmac.
andrewhl has quit [Client Quit]
<wasamasa>
Burgestrand: well, I've been learning about the wonders of nginx reverse proxying and that makes it a ton easier
<Burgestrand>
mjulian: you're in for some fun. :)
<workmad3>
hanmac: I'd already done some java deployments though... but not webapps, so haven't had to sort out tomcat containers yet :)
bamyyyooo14335 has quit [Read error: Connection reset by peer]
<elstif>
hi! really noob question: I have a cucumber scenario that has 3 arguments, when I try to use the args inside my def it says it is not a valid variable… how do I access a step definition variable inside my defs?
<workmad3>
Burgestrand: in my case it was also googling how to set up nginx to serve PHP :)
<workmad3>
Burgestrand: thankfully it's just a simple report interface to another tool though, so I've not had to delve into tuning php.ini yet...
<Burgestrand>
workmad3: been there a few years ago, all I remember is FCGI.
<wasamasa>
Burgestrand: with that it gets down to serve the application with your prefered ruby server, supervising that and reverse proxying nginx to it
<Burgestrand>
;)
<workmad3>
Burgestrand: pretty much... nginx fcgi stuff and php5-fpm
<wasamasa>
Burgestrand: and it works with nearly anything
charliesome has joined #ruby
<Burgestrand>
wasamasa: yeah, either that or passenger!
<workmad3>
I likes puma :)
<wasamasa>
I think I'll stay with unicorn
tier has joined #ruby
<workmad3>
but our infra can go either puma or unicorn
<wasamasa>
not like I'd need to use either of those considering the nearly non-existent traffic
<wasamasa>
but it's good to be prepared
<Burgestrand>
workmad3: me too! However, is puma built to handle really slow running clients or is NGiNX recommended to have in front?
<Burgestrand>
I can't remember.
<workmad3>
Burgestrand: puma is fine for slow-running clients, and can even handle SSL
alec-c4_ has quit [Remote host closed the connection]
<workmad3>
Burgestrand: but I shove nginx in front anyway for static files and more configurable SSL termination
ta has joined #ruby
sinkensabe has joined #ruby
alec-c4 has joined #ruby
<Burgestrand>
workmad3: yeah, and it still feels better.
<Burgestrand>
workmad3: having NGiNX -> Puma -> app I mean.
tjr9898 has quit [Remote host closed the connection]
whyy has quit [Ping timeout: 272 seconds]
tmtwd has joined #ruby
tjr9898 has joined #ruby
<wasamasa>
mjulian: I'm a former python guy, too
<Burgestrand>
I remember coming from PHP, spending quite a while trying to figure out how to make Apache run my .rb-files after I uploaded them. Fun times.
CaptainJet has joined #ruby
Zenigor has joined #ruby
<Burgestrand>
Long time ago now. Time flies.
<workmad3>
Burgestrand: yeah... and then you also get access to things like X-Accel-Redirect for sending files from the app rather than a ruby interpreter sending large data files
Zai00 has quit [Remote host closed the connection]
<workmad3>
Burgestrand: if I was going to run puma unexposed though, I'd do it on jruby rather than MRI
snath has quit [Ping timeout: 264 seconds]
jhass is now known as jhass|off
havenwood has quit [Ping timeout: 264 seconds]
iceden has quit [Ping timeout: 240 seconds]
tjr9898 has quit [Remote host closed the connection]
<workmad3>
Burgestrand: heh :) I still have to deal with an old site that's using .fcgi rails handlers...
<Burgestrand>
workmad3: I'm glad I mostly don't need to deal with these things. :)
<Burgestrand>
… and a bit sad. It can be fun some times!
<workmad3>
servers are a fun diversion, but I wouldn't want to deal with them all day, every day
<Burgestrand>
Yeah, me neither.
alec-c4 has quit [Ping timeout: 240 seconds]
mutt_ is now known as mtu
<mjulian>
I wouldn't want to write code all day.
<mjulian>
Servers are fun. :)
<C0deMaver1ck>
DevOps, and Dev
<C0deMaver1ck>
I prefer dev
sunya7a has joined #ruby
<C0deMaver1ck>
though there is something strangely fulfilling about getting a heroku like deployment system working yourself
drawingthesun has joined #ruby
elstif has left #ruby [#ruby]
<workmad3>
C0deMaver1ck: I think my next big challenge is likely to be postgresql-xc :D
<Burgestrand>
mjulian: I'm glad people like you exist. :)
rippa has joined #ruby
<mjulian>
Burgestrand: Thanks. :)
yfeldblum has quit [Read error: Connection reset by peer]
<C0deMaver1ck>
workmad3: you... have fun with that :p
yfeldblum has joined #ruby
bal has quit [Quit: bal]
[gmi] has quit [Quit: Leaving]
<workmad3>
C0deMaver1ck: heh, it's not gonna be for a while yet... got plenty of stuff to do first before I'll have time to play with infrastructure again :)
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
CodeLicker has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
codeurge has joined #ruby
moritzs has quit [Ping timeout: 244 seconds]
garndt has joined #ruby
Takle_ has quit [Remote host closed the connection]
bmurt has quit []
yfeldblum has quit [Ping timeout: 272 seconds]
kenneth has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has joined #ruby
oo_ has joined #ruby
moritzs has quit [Max SendQ exceeded]
drawingthesun has quit [Quit: Leaving]
railzForDaiz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
moritzs has joined #ruby
wombo_ has joined #ruby
pranny has joined #ruby
wombo has quit [Ping timeout: 260 seconds]
wombo_ is now known as wombo
drawingthesun has joined #ruby
havenwood has joined #ruby
moritzs has quit [Max SendQ exceeded]
moritzs has joined #ruby
drawingthesun has quit [Client Quit]
tier has quit [Read error: Connection reset by peer]
drawingthesun has joined #ruby
moritzs has quit [Max SendQ exceeded]
tier has joined #ruby
bmurt has joined #ruby
moritzs has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
casheew has joined #ruby
apeiros has quit [Remote host closed the connection]
moritzs has quit [Max SendQ exceeded]
joonty has quit [Ping timeout: 252 seconds]
RaCx has joined #ruby
sdouglas has quit [Ping timeout: 255 seconds]
apeiros has joined #ruby
moritzs has joined #ruby
nathan___ has left #ruby [#ruby]
mgberlin has joined #ruby
stytown has joined #ruby
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
CodeLicker has joined #ruby
benzine21 has quit [Read error: Connection reset by peer]
benzine21 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
apeiros has quit [Ping timeout: 244 seconds]
b1nd has quit [Ping timeout: 248 seconds]
abuzze has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
alec-c4_ has quit [Remote host closed the connection]
cashnguns has quit [Ping timeout: 248 seconds]
claymore has quit [Ping timeout: 255 seconds]
garethrees has quit [Ping timeout: 248 seconds]
tjr9898 has joined #ruby
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
ascarter has quit [Max SendQ exceeded]
zigomir has quit [Remote host closed the connection]
charliesome has joined #ruby
claymore has joined #ruby
ascarter has joined #ruby
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
mgberlin has quit [Remote host closed the connection]
<olivier_bK>
how can i select x characteres after found it, i tried string.match("name")[0..10] but i get nothing . i would want to print x characters after name
Doppp has joined #ruby
jespada has quit [Read error: Connection reset by peer]
joonty has joined #ruby
<canton7>
olivier_bK, did you try string.match("name"), and see what you got back
terrellt has joined #ruby
schaerli has quit [Remote host closed the connection]
<olivier_bK>
yes
<olivier_bK>
but i need more
<olivier_bK>
:)
jespada has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
<olivier_bK>
sometimes you have name oliver
moted has joined #ruby
zigomir has quit [Ping timeout: 260 seconds]
<olivier_bK>
but sometimes you have and i dont know why, the people name is xxxxx
b1nd has joined #ruby
Y_Ichiro has joined #ruby
snath has joined #ruby
sailias has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
fflush has quit [Quit: fflush]
yubrew has joined #ruby
tier has quit [Remote host closed the connection]
s3ri0us has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
RaCx has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Barrayar has joined #ruby
bmurt has quit []
yubrew has quit [Ping timeout: 252 seconds]
Gadgetoid has joined #ruby
bmurt has joined #ruby
<canton7>
olivier_bK, I don't think you understood what I'm getting at
Barrayar has quit [Client Quit]
<canton7>
.match does not return a string
<canton7>
you seemed to assume it returned something specific, and you're wrong
railzForDaiz has joined #ruby
aspires has joined #ruby
Barrayar has joined #ruby
Lucky__ has joined #ruby
tvw has joined #ruby
zchrykng has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
donnoc has quit [Ping timeout: 255 seconds]
<zchrykng>
Hello everyone! Is someone available to help me understand some ruby code?
<zchrykng>
I am trying to port a ruby library over to javascript, but I am not sure what exactly the ruby code is doing.
gigetoo has joined #ruby
<canton7>
ask and see if anyone answers :)
<zchrykng>
https://github.com/farski/TZip <- that is the library. I can tell it is super simple, but I just don't know any ruby.
<canton7>
you'll have to ask specific questions :)
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
<canton7>
otherwise the answer will be "go read a ruby tutorial"
<zchrykng>
Heh good point...
phinfonet has joined #ruby
_maes_ has joined #ruby
bamyyyooo14335_ has quit [Ping timeout: 244 seconds]
<zchrykng>
Ok. So I know the library matches zip codes to time zones, but I don't know how it is doing that.
<zchrykng>
For instance it has this code... which I think is supposed to do the matching, but I have no idea how.
<zchrykng>
[5,4,3,2,1].each do |i|
<zchrykng>
return MAPPING[zipcode.to_s[0,i]] if MAPPING.has_key?(zipcode.to_s[0,i])
<zchrykng>
end
<olivier_bK>
match return nil or true i read the doc for find a solution
<zchrykng>
zipcode.to_s[0,i] so this would convert the number to a string and take 0 through i characters?
mr-foobar has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
jhass is now known as jhass|off
stytown has quit [Quit: stytown]
Aryasam has joined #ruby
ta has quit [Remote host closed the connection]
mijicd has joined #ruby
waynr has left #ruby ["WeeChat 0.4.3"]
<zchrykng>
Ok, I think I understand what it is doing now. Thanks for letting me talk out loud about it.
Wolland has joined #ruby
blueOxigen has quit [Ping timeout: 260 seconds]
kaspergrubbe has joined #ruby
Atttwww has joined #ruby
sinkensabe has quit [Remote host closed the connection]
bluOxigen has joined #ruby
phinfonet has joined #ruby
chipotle has joined #ruby
intnsity has quit [Ping timeout: 240 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
wombo has quit [Ping timeout: 260 seconds]
greenarrow has quit [Quit: 500]
b1nd has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
krz has joined #ruby
jhass|off is now known as jhass
theharshest has joined #ruby
agjacome has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
railzFor_ has joined #ruby
Kricir has joined #ruby
cobakobodob has quit [Ping timeout: 244 seconds]
donnoc has joined #ruby
andrewjanssen has joined #ruby
theharshest has quit [Client Quit]
ghr has joined #ruby
railzForDaiz has quit [Ping timeout: 240 seconds]
little_fu has joined #ruby
theharshest has joined #ruby
<shevy>
zchrykng yeah, although it's weird code
<shevy>
I can't recall ever having done .to_s[0,i] in my ruby code in like ten years
razum2um has quit [Quit: Leaving.]
Wolland has joined #ruby
little_f_ has joined #ruby
<shevy>
zchrykng [] for strings means: start, end ... so in your case, we start at 0, the first character, and we count up to i, where i is hopefully an integer. for instance, if i is 5, then [0,5] means take the first five characters
<zchrykng>
shevy, I think they are doing it so they can look for 1, 2, etc digits of the zip code as an index for an array (or whatever it is called in ruby).
sailias has quit [Quit: Leaving.]
codabrink has joined #ruby
<zchrykng>
They are mapping the shorted amount of each zip code to each time zone, if that makes sense.
<puddy>
is rubygems the default place gem looks to when one does a 'gem install sass'?
iamjarvo has joined #ruby
hpoydar has joined #ruby
Solnse has quit [Quit: Leaving.]
hpoydar has quit [Remote host closed the connection]
<LadyRainicorn>
Yws.
hpoydar has joined #ruby
<LadyRainicorn>
puddy: Yes.
<banisterfiend>
LadyRainicorn sup brony
<puddy>
LadyRainicorn: and is it down right now?
<puddy>
oh seems up.
phutchin1 has quit [Read error: Connection reset by peer]
b1nd has joined #ruby
<LadyRainicorn>
banisterfiend: AT, not MLP
phutchins has joined #ruby
<banisterfiend>
LadyRainicorn AT is so damn average recently
<LadyRainicorn>
aww
bluOxigen has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
puddy you can also add new remote sources btw like so: gem sources -a http://gems.github.com
oo_ has quit [Remote host closed the connection]
<LadyRainicorn>
*https
bluOxigen has joined #ruby
<LadyRainicorn>
Don't use http for sources!
<LadyRainicorn>
That is badddd
<puddy>
shevy: ah cool. thanks. just trying to get sass working, i dont think i'll be doing too much ruby dev
fflush has joined #ruby
fflush has joined #ruby
fflush has quit [Changing host]
echevemaster has joined #ruby
<LadyRainicorn>
(ie you will be instarooted by the malware living on your router)
little___ has joined #ruby
<hanmac>
LadyRainicorn: AT is mathematical!! ;P
<LadyRainicorn>
Yessss
<LadyRainicorn>
MATH YEAH!
brunops has joined #ruby
little_f_ has quit [Ping timeout: 248 seconds]
<hanmac>
best matrix-like quote ever: "i am looking at my bits ... my leg is math!" ;P
jimbow has joined #ruby
jimbow has quit [Client Quit]
CodeLicker has joined #ruby
kaiserpathos has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
hpoydar has quit [Remote host closed the connection]
techsethi has joined #ruby
mikesplain has joined #ruby
ferr has quit [Quit: Konversation terminated!]
donnoc has quit [Ping timeout: 244 seconds]
ndrei_ has quit [Ping timeout: 244 seconds]
<ponga>
when im told that one's learning 'network' at school
j_mcnally has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
<ponga>
does it mean he is learning net protocols like tcp and udp
Takle has joined #ruby
fflush has quit [Quit: fflush]
pietr0 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
fflush has joined #ruby
cobakobodob has joined #ruby
lsmola__ has quit [Ping timeout: 248 seconds]
glundgren has joined #ruby
<glundgren>
hey people
<glundgren>
i have to validate a date
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joulse has quit [Quit: Joulse]
deric_skibotn has joined #ruby
<glundgren>
but, as the user is the one that will input it, via an import file
<glundgren>
he can put anything in there
qba73 has quit []
<glundgren>
whats the best way to validate a date in this scenario?
<glundgren>
i mean, i cant use Date.parse or break the date in day, month, year
<glundgren>
because the very smart user
<glundgren>
can add a string or a number
<glundgren>
in the import file
<glundgren>
i dont know if i made myself clear
<glundgren>
pleaz halp
<glundgren>
:)
einarj has quit [Remote host closed the connection]
x1337807x has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
little___ has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
Zebroid has joined #ruby
tmtwd has quit [Ping timeout: 248 seconds]
gregf has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fflush has quit [Quit: fflush]
Takle has quit [Read error: Connection reset by peer]
BadQuanta has joined #ruby
saarinen has joined #ruby
jespada has quit [Ping timeout: 252 seconds]
troyready has joined #ruby
newton1 has joined #ruby
Takle has joined #ruby
<hanmac>
glundgren: do you have a fixed format or not?
relix has quit [Ping timeout: 244 seconds]
smathieu has joined #ruby
Zebroid has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 244 seconds]
<glundgren>
the file is an excel file
<glundgren>
hanmac
gregf has quit [Client Quit]
icarus_ has joined #ruby
hpoydar has joined #ruby
relix has joined #ruby
goyox86 has quit [Ping timeout: 255 seconds]
<glundgren>
the field in excel is supposed to be a Date, but the user can add a string or a number
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
<glundgren>
i have to check if its not a string, number, or anything else
<hanmac>
ugh that makes everything more complicated ... cant it be csv?
fflush has joined #ruby
gregf has joined #ruby
phutchin1 has joined #ruby
tmtwd has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<glundgren>
not at this time, its a bug of a software already delivered :P
icarus_ is now known as icarus
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has joined #ruby
<glundgren>
the problem is the enything else
dangerousdave has joined #ruby
<glundgren>
anything else
<ponga>
omg
<glundgren>
what i should check?
<ponga>
why did i not know that rubymotion existed?
x1337807x has joined #ruby
<ponga>
that i can waive learning obj-c?
dodosan has joined #ruby
<ponga>
*loves ruby more now
* hanmac
does not care about obj-c
<ponga>
hanmac me either but im interested in Swift
<glundgren>
ponga, you dont need obj-c, apple started swift
<glundgren>
that is ruby
<glundgren>
:P
<ponga>
glundgren:
<ponga>
i saw the video too
djbkd has joined #ruby
<ponga>
i thought it was very ruby-ish in some aspects...
iamjarvo has joined #ruby
<glundgren>
when i saw the .map, a tear slowly fell down from my eye
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
<hanmac>
glundgren: hm first i need to look how you parse that xls/csv file and what data you have ... then you can parse the date with Date.parse or strptime
<glundgren>
ponga: and it is rubysh after all?
JBreit has joined #ruby
<ponga>
it is ruby-ish
<glundgren>
hanmac: the Date.parse will not work
maximski has joined #ruby
elaptics is now known as elaptics`away
phutchins has quit [Ping timeout: 264 seconds]
<glundgren>
because it will raise an error
jottr_ has joined #ruby
<ponga>
glundgren is that tear drop part about the swift
<ponga>
cos i only watched a bit of video
<hanmac>
glundgren: yeah for wrong format it does return a error, isnt that wahat you want?
<ponga>
does swift use .map too?
<glundgren>
hanmac: i want to check in an if statement
Spami has quit [Quit: This computer has gone to sleep]
Spami__ has quit [Quit: This computer has gone to sleep]
agjacome has quit [Quit: leaving]
<hanmac>
glundgren: use regexp and match / =~
JBreit has left #ruby [#ruby]
<glundgren>
hanmac: how regex can check an object type?
x1337807x has quit [Ping timeout: 264 seconds]
<hanmac>
glundgren: the better question: what Objects do you get? Strings that need to be converted or already converted objects?
<glundgren>
i mean, the error i get is this: undefined method `to_date' for 40756:Fixnum
<glundgren>
because the user added a number, instead of a date, in the excel date column
DrCode has quit [Ping timeout: 264 seconds]
ghr has quit [Ping timeout: 260 seconds]
<glundgren>
so i need to check if this piece of data is a number, a string, or whatever it is
<glundgren>
before i call to_Date
<glundgren>
to_date
alec-c4 has joined #ruby
<glundgren>
but it can be a string lets say
<glundgren>
01-01-2014
<glundgren>
and it will parse
goyox86 has joined #ruby
<glundgren>
but if a string is 'doefrfrf3f'
<glundgren>
it will raise an error
<glundgren>
theres no method just to check if something is a valid date?
<glundgren>
whithout raising errors, just return true or false?
<ponga>
so swift uses .map and it was in video which made you do a teardrop
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ponga>
oh im so bad at jokes..
LiohAu has quit [Quit: LiohAu]
<glundgren>
ponga: .map is one of the most strange things in the world
<glundgren>
ponga: its like regex to me
<Xeago>
.map is totally sane?
<ponga>
so it was tear of sadness?
jottr_ has quit [Ping timeout: 244 seconds]
<glundgren>
ponga: mixed feelings
goyox861 has joined #ruby
<ponga>
oh
<glundgren>
ponga: now i dominated the use of .map
<zchrykng>
Though... why does ruby look like Visual Basic code?
<Xeago>
given a vector v and function f, .map behaves as v(f)
* zchrykng
runs
<Xeago>
or rather, v*f
<glundgren>
but in the beggining, when i was learning, it was like black magic
<hanmac>
glundgren: obj.is_a?(Date) or obj.respond_to?(:to_date)
<ponga>
uh oh zchrykng
brunops has quit [Ping timeout: 272 seconds]
<glundgren>
hanmac: nice! let me test it
puddy has left #ruby [#ruby]
mehlah has quit [Quit: Leaving...]
obs has joined #ruby
hpoydar_ has joined #ruby
<ponga>
i never believed my friend saying that ruby is so dead
<ponga>
*proud
hpoydar has quit [Ping timeout: 255 seconds]
Xeago_ has joined #ruby
NinoScript has quit [Ping timeout: 248 seconds]
bricker`work has joined #ruby
alec-c4 has quit [Ping timeout: 264 seconds]
hpoydar_ has quit [Read error: Connection reset by peer]
<hanmac>
ponga: maybe it was a jealous php developer?
<glundgren>
hanmac: this respond_to? is up in 1.9.3?
klaut has quit [Remote host closed the connection]
hpoydar has joined #ruby
Takle has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
<ponga>
hanmac he was a java worshipper
mehlah has joined #ruby
hpoydar has quit [Remote host closed the connection]
goyox86 has quit [Ping timeout: 272 seconds]
<hanmac>
respond_to? is veryvery old ... i dont know a ruby version where it wasnt inside
hpoydar has joined #ruby
<hanmac>
ponga: oh thats even worse
<ponga>
hanmac does the fact that he is a java worshipper makes sense to you
<glundgren>
@tabela_planejado.map {|k,v| v.map {|k,v| v[c] if k.to_date.strftime('%Y') == m.to_date.strftime('%Y')} if k == f}.flatten.compact.reduce(:+)
<shevy>
ponga what kind of tea
<glundgren>
something from an old project
<ponga>
as i said, ceylon
<ponga>
black tea
<lemur>
hash.values.flat_map
<ponga>
straight jug, no milk, no sugar
CaptainJet has quit []
<ponga>
*standards
<lemur>
Ah, you need the keys
jxf has quit [Ping timeout: 240 seconds]
<lemur>
still, flat_map the first map
<glundgren>
its to sum
<glundgren>
some values
<glundgren>
ina huge object
RaCx has joined #ruby
<glundgren>
to generate a table
<ponga>
shevy remember to drink your tea straight, have standards
<glundgren>
of data with totals
Takle has joined #ruby
<glundgren>
i made all this like
<glundgren>
blind
<glundgren>
kind of kung fu
<glundgren>
i really mastered the art of .map
fabrice31 has joined #ruby
<lemur>
hash.flat_map { |k,v| v.map { |k,v| v[c] if ... } if k == f}.compact.reduce :+
<glundgren>
flat_map is new to me
<jhass>
uhm
<jhass>
why not hash[f]
<glundgren>
i dont know why, but only worked this way
<glundgren>
it was a traumatizing project
olivier_bK has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
dodosan has quit [Remote host closed the connection]
<lemur>
considering you shadow k and v from the first block, that'd give some headaches
<jhass>
I hope you don't really have c, f, k and v as variable names
<lemur>
that, and rename those to something descriptive.
<lemur>
heh
dodosan has joined #ruby
dodosan has quit [Client Quit]
<glundgren>
hehehe nice tips
<glundgren>
and it was in a loop, as you can imagine
<hanmac>
i often use "k,v" but only when they make sense
<krz>
did i just leak the Article object into current_session via the managing record. and if so. is that bad OO design?
<krz>
managing record = managing method
bitcycle has joined #ruby
kenneth has joined #ruby
senayar has quit [Ping timeout: 264 seconds]
saarinen has joined #ruby
timonv has joined #ruby
andrewjanssen has joined #ruby
yubrew has joined #ruby
Zebroid has quit [Ping timeout: 244 seconds]
banjara has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
sepp2k has joined #ruby
heftig has quit [Ping timeout: 272 seconds]
RaCx has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
yubrew has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
smathieu has joined #ruby
ferr has joined #ruby
sunya7a_ has joined #ruby
sunya7a has quit [Ping timeout: 272 seconds]
sputnik13 has joined #ruby
ramfjord has joined #ruby
djbkd has joined #ruby
senayar has joined #ruby
tacos1de has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
ponga has quit [Remote host closed the connection]
ta has joined #ruby
acrussell has quit [Quit: Leaving.]
shlant has joined #ruby
Xeago_ has quit [Remote host closed the connection]
<shlant>
due to not being able to connect to #rubyonrails for some reason I will ask here: What is everyone using to monitor unicorn workers? monit? unicorn-worker-killer? unicorn itself?
smathieu has quit [Remote host closed the connection]
<wasamasa>
systemd
<wasamasa>
I've just set up systemd to do that
Burgestrand has quit [Quit: Burgestrand]
asterite has joined #ruby
<wasamasa>
the only thing I'm missing now is mails on failure :P
<wasamasa>
it's pretty nice to have a web application as service you can control just like every other service on the machine
<yxhuvud>
yes, except that most services isn't that hideously slow to start -_-
<wasamasa>
what?
Zamerick has joined #ruby
benzine21 has joined #ruby
<yxhuvud>
wasamasa: big rails installations tend to take ages to start.
<wasamasa>
oh that
<wasamasa>
well, I haven't gotten to that size yet
<jhass>
shlant: /msg NickServ HELP
<jhass>
yxhuvud: why would that be a problem when running under systemd?
krz has quit [Quit: WeeChat 0.4.3]
smathieu has joined #ruby
djbkd has quit [Remote host closed the connection]
Ankhers has joined #ruby
<wasamasa>
ah, found the option for actions on failure
<wasamasa>
awesome
benzine21 has quit [Ping timeout: 240 seconds]
iislpq has quit [Remote host closed the connection]
shlant has quit [Quit: Leaving.]
<yxhuvud>
jhass: it is not bigger or smaller there compared to anywhere else. I simply pointed out the big issue when restarting
shlant has joined #ruby
<wasamasa>
yeah, that would happen with any system not specifically tailored to rails
<wasamasa>
I've seen spring mentioned for that topic
djbkd has joined #ruby
<sdelmore>
Can anyone tell me which activerecord callback I would use to be able to pass extra parameters to a model and use them to instantiate another model?
dumdedum has quit [Quit: foo]
edgarjs_afk is now known as edgarjs
<sdelmore>
Would I just override initialize?
centrx has joined #ruby
Ankhers has quit [Read error: Connection reset by peer]
mr-fooba_ is now known as mr-foobar
<jhass>
doesn't AR instantiate associations if you pass a nested structure?
smathieu has quit []
<jhass>
class A; has_one :b; end; class B; belongs_to :a; end; A.new(a_attr: 1, b: {b_attr: 2}) ?
jamto11 has quit [Remote host closed the connection]
<centrx>
jhass, Yes, if class A has accepts_nested_attributes_for :b
<sdelmore>
I have a model that is in mysql, but I need to move a couple of the fields to mongo. I was hoping to still allow them to be passed into the new and then call them directly on the model instead of having active record try to find a field for it.
<jhass>
I've seen people defining a self.build that does more complex construction if needed
Spami_ has quit [Quit: Leaving]
simoz1111114 has joined #ruby
Spami has joined #ruby
<sdelmore>
Thanks.
edgarjs is now known as edgarjs_afk
techsethi has quit [Quit: techsethi]
ylluminate has quit [Ping timeout: 255 seconds]
freerobby has quit [Quit: Leaving.]
alvaro_o has joined #ruby
<jhass>
def self.build attrs; other = Other.new attrs.slice(:other); me = new attrs.except(:other); me.other = other; me; end or whatever
<jhass>
but IMO it should stay the rare case
sunya7a_ has quit [Ping timeout: 248 seconds]
x1337807x has joined #ruby
felixjet has joined #ruby
benzine21 has joined #ruby
jottr_ has joined #ruby
senayar has quit [Remote host closed the connection]
<sdelmore>
jhass: That looks like exactly what I need. It is a rare case, it is the case where I want a model to not store all of it's data in the same database.
Mongey has joined #ruby
poguez_ has joined #ruby
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
benzine21 has quit []
Elfix_113 has quit [Quit: ]
BillCriswell has quit []
exgf has joined #ruby
DrCode has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
bradleyprice has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
jxf has joined #ruby
Wolland has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
<dangerousdave>
I would like an elegant way to build a complex string, any suggestions? its an email message
Xeago has quit [Remote host closed the connection]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IceDragon is now known as Guest45473
Guest45473 has quit [Ping timeout: 240 seconds]
IcyDragon is now known as IceDragon
djbkd has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 255 seconds]
RaCx_ is now known as RaCx
AlexRussia has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
Xeago has joined #ruby
relix has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
relix has quit [Client Quit]
djbkd has quit [Ping timeout: 264 seconds]
relix has joined #ruby
amargherio has quit [Remote host closed the connection]
benkay has joined #ruby
j_mcnally has joined #ruby
fflush has quit [Quit: fflush]
benzrf|offline is now known as benzrf
<benkay>
hey ruuuuby. i'm not a rubyist but i'm following these install instructions: (https://github.com/ianyh/Amethyst, Building). are 'gem install' and 'rake install' the things i want to use here, and how badly is that going to hose my system?
nanoyak has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
s3ri0us is now known as s3ri0us|away
lkba has joined #ruby
SCHAAP137 has joined #ruby
<benzrf>
benkay: why ARENT you a rubyist
<benzrf>
what are you, some kind of pythonista
<benkay>
just a derpy lisper
<Hanmac>
maybe a javarian? ;P
<benkay>
just a parensmonkey
<benzrf>
lisp schmisp
<benzrf>
use haskell
<benkay>
nah my problems aren't so complex i need haskell
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf>
benkay: since when is haskell only for complicated probms
<benkay>
so i came to the wrong place for ruby expertise?
earthquake has joined #ruby
olivier_bK has joined #ruby
<lemur>
depends on what you qualify as expertise
<benkay>
benzrf: what do my needs have to do with what haskell is or is not for?
<benzrf>
uh
<benzrf>
i dont understand how the question is relevant
<lemur>
rake is just a ruby build tool
<lemur>
brew is also ruby
<benkay>
the strict typing is pretty cool, and were i doing fun and complex stuff like correct-by-construction flight controllers where i needed to offload as much thinking as possible haskell might be a good tool for me.
newton1 has quit [Quit: WeeChat 0.4.3]
<benkay>
but it feels like a remote-controlled telesurgeonbot when all i need is a drill press, tape measure and my brain.
<benkay>
(and maybe a stick welder, but hey - crap analogy)
<benkay>
anyways, thanks for y'alls time.
AlexRussia has joined #ruby
aspires has quit []
LadyRainicorn has quit [Quit: Bye]
thesheff17 has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
oso96_2000 has quit [Ping timeout: 252 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_2_tori has joined #ruby
Rahul_Roy has joined #ruby
Kricir has joined #ruby
Xeago has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
Kricir_ has joined #ruby
oso|away has joined #ruby
oso|away is now known as oso96_2000
alexju has joined #ruby
cgore has quit [Remote host closed the connection]
tvw has quit []
Kricir has quit [Ping timeout: 248 seconds]
end_guy_ has joined #ruby
aspires has quit []
fabrice31 has quit [Remote host closed the connection]
end_guy has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
thesheff17 has joined #ruby
chaos___________ has joined #ruby
cashnguns has joined #ruby
maximski has quit []
RaCx has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
Kricir_ has quit [Ping timeout: 248 seconds]
carraroj has quit [Quit: Konversation terminated!]
stytown has quit [Quit: stytown]
s34n has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
RaCx has joined #ruby
Elfix has joined #ruby
Ankhers has joined #ruby
banister has joined #ruby
Takle has quit [Remote host closed the connection]
goyox861 has joined #ruby
RaCx has quit [Client Quit]
RaCx has joined #ruby
fflush has joined #ruby
s3ri0us|away is now known as s3ri0us
mattmcclure has joined #ruby
fabrice31 has joined #ruby
dc_ has joined #ruby
msull92 has joined #ruby
senayar has joined #ruby
zigomir has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 255 seconds]
schaerli has quit [Remote host closed the connection]
agent_white has joined #ruby
chrishough has quit [Ping timeout: 244 seconds]
schaerli has joined #ruby
Takle has joined #ruby
chrishough has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
andrewjanssen has joined #ruby
RaCx has joined #ruby
yubrew has joined #ruby
_2_tori has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
Wolland has joined #ruby
schaerli has joined #ruby
kaiserpathos has joined #ruby
schaerli has quit [Remote host closed the connection]
<AntelopeSalad>
is there a simple way to iterate over every file/dir in a dir but then only get access to the relative paths of what it finds rather than the absolute paths?
<Stalkr_>
jhass: Excuse me for asking, but how would I do it? I see there is a span-level method called 'image(link, title, alt_text)' and I can almost guess that's the one I need to configure
SCHAAP137 has quit [Ping timeout: 248 seconds]
Deele has joined #ruby
<Stalkr_>
Would it be done using something like content_tag (I use Rails)?
<jhass>
Stalkr_: without looking up: override that method, get the HTML with super, surround it with your div. I'd probably go for straight strings here, in case you later want to externalize that thing you don't have a dependency on ActionView
<Stalkr_>
jhass: Thanks, I will try your 'super' trick
banister has quit [Client Quit]
mattstratton has joined #ruby
ylluminate` has quit [Ping timeout: 240 seconds]
<RedPunch>
That command doesnt print anything
Barrayar has quit [Ping timeout: 255 seconds]
oso96_2000 has quit [Ping timeout: 255 seconds]
<jhass>
RedPunch: hm, that's actually a good sign
<RedPunch>
Oh ok.
Barrayar has joined #ruby
fredsir has left #ruby [#ruby]
<RedPunch>
jhass, What can I try next?
<jhass>
I never had such an issue
tier has quit []
Kricir has joined #ruby
<jhass>
I'd probably hack up /com/home/users/jdoe/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/remote_fetcher.rb:88 to print what it's trying to resolve
SCHAAP137 has quit [Remote host closed the connection]
freerobby has joined #ruby
<RedPunch>
Okay. ty
wildroman2 has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has quit [Ping timeout: 248 seconds]
<RedPunch>
Did you notice though, it says ruby-2.1.2 but the folder structure has 2.1.0!
oso|away has joined #ruby
yokel has quit [Ping timeout: 255 seconds]
oso|away is now known as oso96_2000
yokel has joined #ruby
banister has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Ankhers has quit [Remote host closed the connection]
SBoolean has quit [Read error: Connection reset by peer]
<Stalkr_>
jhass: Figured I had to restart the console for the model changes to load. Any idea why it's not able to find the superclass method? `NoMethodError: super: no superclass method `paragraph' for #<Renderer:0x007f89a1aeb9d8>`
<Stalkr_>
I thought it was supposed to be able to find the inherited class' method
newton1 has joined #ruby
wildroman2 has quit [Ping timeout: 244 seconds]
vifino has joined #ruby
nopc0de has joined #ruby
Gadgetoid has quit [Ping timeout: 255 seconds]
Wolland has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
robertodecurnex has quit [Read error: Connection reset by peer]
nevans has joined #ruby
fflush has quit [Client Quit]
bradleyprice has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 252 seconds]
tvw has quit []
bradleyprice has joined #ruby
caveat- has joined #ruby
Gadgetoid has joined #ruby
Deele has joined #ruby
havenwood has joined #ruby
djbkd has joined #ruby
<finisherr>
Wow, iteration is unlike anything I’ve ever seen in Ruby
<finisherr>
noob shock
<jhass>
Stalkr_: hm, it works with the image method though? Just not with paragraph?
<thiagovsk>
ruby
<thiagovsk>
ruby
<thiagovsk>
ruby
<thiagovsk>
ooooooooooooooooooooooooohhhhhhhhhhh
fabrice31 has joined #ruby
Takle has quit [Remote host closed the connection]
itsech0 has quit [Read error: Connection reset by peer]
<Stalkr_>
jhass: No, image method too. Looks like Redcarpet::Render::HTML doesn't even have the methods defined, so not sure it's even possible to make use of super
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
perlsyntax has joined #ruby
<Stalkr_>
Looks like I am going to have to write the tag myself
Morkel has quit [Quit: Morkel]
elaptics`away is now known as elaptics
chrishough has quit [Quit: chrishough]
<jhass>
meh, stupid C-ext stuff
dideler has joined #ruby
newUser1234 has joined #ruby
<Stalkr_>
Yeah :-/
<Stalkr_>
It's a pretty nice parser though, do you know any good alternatives by any chance?
bradleyprice has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
<agent_white>
thiagovsk: doyadoyadoyadoya!!
<jhass>
didn't look for a while, it works so far for what I use it for
Deele has quit [Ping timeout: 255 seconds]
dik_dak has joined #ruby
shinobi_one has joined #ruby
SilverKey has quit [Quit: Halted.]
<jhass>
Stalkr_: they seem to check whether the renderer is from ruby or from C land and call the C functions directly without ever binding them to the Ruby class they create. So yeah, I guess you have to define the whole thing if you override, no super magic
lw has quit [Quit: s]
dangerou_ has quit [Ping timeout: 264 seconds]
keystonelemur has joined #ruby
utkarsh_ has quit [Ping timeout: 255 seconds]
goyox861 has joined #ruby
zorak has joined #ruby
utkarsh_ has joined #ruby
djbkd has quit [Remote host closed the connection]
cmoneylulz has quit [Remote host closed the connection]
iamjarvo has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
crudson has joined #ruby
cmoneylulz has joined #ruby
binaryhat has quit [Ping timeout: 244 seconds]
codeurge has quit [Quit: Sleep.]
blackgoat has quit [Ping timeout: 255 seconds]
ferr_ has joined #ruby
blackgoat has joined #ruby
zegerjan has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
qpok has quit [Ping timeout: 255 seconds]
<Stalkr_>
That's an unfortunate, would be nice with super, in case they do more stuff than just a simple img tag. It'll do for now though, thanks for the help
xcv has joined #ruby
qpok has joined #ruby
ldnunes has quit [Quit: Leaving]
ferr has quit [Ping timeout: 252 seconds]
jack_rabbit has joined #ruby
cmoneylulz has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
chrishough has joined #ruby
zastern has joined #ruby
sinkensabe has quit [Remote host closed the connection]
harryk has quit [Ping timeout: 255 seconds]
RaCx has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
harryk has joined #ruby
Zenigor has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
Deele has joined #ruby
blackmesa has joined #ruby
freerobby has quit [Quit: Leaving.]
cashnguns has joined #ruby
tommylommykins has quit [Ping timeout: 255 seconds]
tommylommykins has joined #ruby
echevemaster has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
CaptainJet has joined #ruby
binaryhat has joined #ruby
jottr_ has joined #ruby
Atttwww has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
echevemaster has joined #ruby
starkhalo has quit [Quit: WeeChat 1.0-dev]
thiagovsk has quit [Ping timeout: 246 seconds]
fabrice31 has quit [Ping timeout: 248 seconds]
banister has joined #ruby
Atttwww has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
sailias has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Deele has quit [Ping timeout: 255 seconds]
Deele has joined #ruby
fabrice31 has joined #ruby
ferr_ has quit [Quit: Konversation terminated!]
nmokru has quit [Quit: nmokru]
nanoyak has quit [Quit: Computer has gone to sleep.]
olivier_bK has quit [Ping timeout: 240 seconds]
phinfonet has quit [Ping timeout: 255 seconds]
phinfonet has joined #ruby
tvw has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mijicd has quit [Remote host closed the connection]
obs has quit [Quit: Konversation terminated!]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wildroman3 has quit [Remote host closed the connection]
Kricir has joined #ruby
peckermanzzz has quit [Ping timeout: 255 seconds]
banister has joined #ruby
banister has quit [Client Quit]
wildroman2 has joined #ruby
Zebroid has joined #ruby
mehlah has joined #ruby
peckermanzzz has joined #ruby
pasties_ has joined #ruby
pasties has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
yubrew has joined #ruby
isthisreallife has joined #ruby
Zebroid_ has joined #ruby
isthisreallife has left #ruby [#ruby]
stytown has joined #ruby
iamjarvo has joined #ruby
jerius has quit [Ping timeout: 240 seconds]
Kricir has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Client Quit]
Zebroid has quit [Ping timeout: 264 seconds]
sdelmore has quit [Ping timeout: 272 seconds]
mijicd has joined #ruby
sdelmore has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
<Hanmac>
havenwood: did you watched doctorWho again?
m8 has quit [Quit: Sto andando via]
ramfjord has quit [Read error: No route to host]
blueOxigen has joined #ruby
mtu is now known as mut_
bricker`work has quit [Ping timeout: 272 seconds]
marr has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
arrubin has joined #ruby
jack_rabbit has joined #ruby
hobodave has quit [Ping timeout: 248 seconds]
Wolland has joined #ruby
jdj_dk has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
railzFor_ has quit []
blueOxigen has quit [Ping timeout: 272 seconds]
Magus` has joined #ruby
Zesty has joined #ruby
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Magus`>
hi, I'm trying to install the compass 1.0 alpha, which requires ffi-1.9.3, but it is erroring when building, and I can't figure out why: Configuring libffi /usr/lib/ruby/gems/1.8/gems/ffi-1.9.3/ext/ffi_c/libffi/configure: line 550: 0: Bad file descriptor
<Magus`>
if I cd into that folder, I can ./configure and it works fine
alexju has quit [Remote host closed the connection]
ndrei has joined #ruby
ndrei_ has joined #ruby
keystonelemur has quit [Remote host closed the connection]
jheg has quit [Read error: Connection reset by peer]
Takle has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
nmokru has quit [Quit: nmokru]
binaryhat has quit [Remote host closed the connection]
binaryhat has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
deric_skibotn has quit [Ping timeout: 272 seconds]
geggam has quit [Remote host closed the connection]
tsunamie has quit [Ping timeout: 255 seconds]
kirun has quit [Quit: Client exiting]
newUser1234 has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
tsunamie has joined #ruby
Takle has joined #ruby
havenwood has joined #ruby
<shevy>
AntelopeSalad I don't quite like either of these
starkhalo has joined #ruby
Deele has joined #ruby
<AntelopeSalad>
shevy: what approach would you take?
binaryhat has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
binaryhat has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsunamie has quit [Excess Flood]
Hanmac has joined #ruby
tsunamie has joined #ruby
bricker`LA has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
kaiserpathos has quit []
deric_skibotn has joined #ruby
jamto11 has joined #ruby
goyox861 has quit [Ping timeout: 248 seconds]
rebelshrug has quit [Remote host closed the connection]
yubrew has joined #ruby
enebo has quit [Quit: enebo]
banister has joined #ruby
banister has quit [Client Quit]
chrishough has quit [Quit: chrishough]
<shevy>
AntelopeSalad I dunno; I tend to use Dir[] exclusively, and I work on methods, so our code would probably look different; I also tend to use File.dirname and File.basename
chrishough has joined #ruby
fabrice31_ has joined #ruby
<shevy>
AntelopeSalad do you actually need File.join ?
<shevy>
I found that on windows my code written on linux works fine as well with the same / path
<finisherr>
I know this sounds odd, but is there some sort of formal ruby documentation that gets right to the rules of the language? Reading a book is great, but sometimes I just need to get down to the bottom of something specific.
fabrice31_ has quit [Remote host closed the connection]
<sarkis>
it's complaining about the respond_with line which is strange...
AndChat|154496 has joined #ruby
little_f_ has joined #ruby
jottr_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndChat|154496 has quit [Client Quit]
<sarkis>
i noticed on the first line there its doing format=html, i guess that might be the issue since the deployments_controller is set with respond_to :json
mrunknown has joined #ruby
jamto11_ has quit [Ping timeout: 252 seconds]
<halfdan>
heya
fabrice31 has quit [Remote host closed the connection]
<halfdan>
why does '/forum' =~ /^\/forum/ not match?
RaCx_ has joined #ruby
fabrice31 has joined #ruby
RaCx has quit [Ping timeout: 252 seconds]
jamto11_ has joined #ruby
RaCx_ is now known as RaCx
himself_ has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
medibuntu has quit [Ping timeout: 248 seconds]
jamto11 has quit [Ping timeout: 264 seconds]
little_fu has quit [Ping timeout: 255 seconds]
jottr_ has quit [Ping timeout: 264 seconds]
<sarkis>
halfdan
<sarkis>
try this...
<sarkis>
'\/forum' =~ /^\/forum/
<halfdan>
that is not what I am asking
fabrice31 has quit [Ping timeout: 240 seconds]
<halfdan>
I need to escape the forward slash
ramfjord has joined #ruby
<halfdan>
and /^\/forum/.match '/forum' gives a match
<halfdan>
I am asking why this isn’t true vice versa