superscott[8] has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 248 seconds]
TorpedoSkyline has joined #ruby
radic has joined #ruby
sdwrage_ has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
bricker`LA has joined #ruby
<bricker`LA>
Anybody who fills out invoices frequently, how do you specify a date range when the final date is non included? eg. an invoice for the month of June: June 1, 2014 - July 1, 2014 is ambiguous
nateberkopec has joined #ruby
zorak has joined #ruby
rlazoti has joined #ruby
sdwrage has quit [Ping timeout: 260 seconds]
jxf has joined #ruby
<Steve21>
it would be June 1 to June 30
cearls has joined #ruby
cearls has quit [Client Quit]
cearls has joined #ruby
<Steve21>
What are you trying to accomplish?
<Steve21>
Can you not just add the last day of month from they do not select a end date?
<bricker`LA>
Steve21: write an invoice for the month of June :P
<bricker`LA>
Steve21: sorry, this isn't a ruby question
nateberkopec has quit [Read error: Connection reset by peer]
<bricker`LA>
just figured there'd be a lot of freelancers in here
<Steve21>
ya
<Steve21>
but just not clear what the actual issue is
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve21>
you have two dates
<Steve21>
Start and End Date
<Steve21>
If its for the Month of June then you get the First Day of Month and the Last Day of Month
<bricker`LA>
Steve21: right, "end date" is the issue. It's ambiguous whether or not "last of month" is "12:00am June 30" or "11:59:59 June 30", you know?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Steve21>
Output the “Month” value of the Start Date or End Date (does not really matter if its the same month)
<bricker`LA>
11:59:59pm*
<bricker`LA>
I'll just use "through"
<bricker`LA>
that's clear enough
<Steve21>
its 11:59:59
kickr has quit [Quit: Leaving]
<Steve21>
Its June 30 11:59:59pm
<Steve21>
But if this is for a invoice dont both with the time
<bricker`LA>
Steve21: again, I am not writing invoicing software or anything
<bricker`LA>
I'm just making an invoice, wanted to know about grammar
<eam>
Steve21: will take care of leap seconds? They totally won't
JJMalina has quit [Ping timeout: 240 seconds]
sdwrage_ has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
mikesplain has joined #ruby
Channel6 has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
<Steve21>
eam: fair enough. It understands leap years, but yes the lead second is usually passed onto the cpu to hand that stuff. But ruby supports lead seconds as part of its time lib in the sec method
sdwrage_ has quit [Quit: This computer has gone to sleep]
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby
sinkensabe has joined #ruby
coderhs has joined #ruby
wildroman2 has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
bradhe has quit [Remote host closed the connection]
sdouglas_ has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
sigurding has quit [Quit: sigurding]
abdulsattar has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
superscott[8] has joined #ruby
bradhe has joined #ruby
senayar has joined #ruby
davedev24_ has joined #ruby
davedev24_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
wildroman2 has quit [Read error: Connection reset by peer]
claymore has joined #ruby
nateberkopec has joined #ruby
GriffinHeart has joined #ruby
superscott[8] has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
ziyadb has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
agjacome has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
coderhs has quit [Ping timeout: 255 seconds]
fantasticsid has joined #ruby
kiri has joined #ruby
JoshGlzBrk has joined #ruby
mr-foobar has joined #ruby
alem0lars has joined #ruby
ericboehs has quit [Ping timeout: 272 seconds]
JBreit has left #ruby ["Leaving"]
wildroman2 has joined #ruby
earthquake has quit [Quit: earthquake]
davedev24_ has joined #ruby
shredding has joined #ruby
earthquake has joined #ruby
uresu has quit [Quit: uresu]
relix has joined #ruby
jimbow has quit [Quit: jimbow]
claymore has joined #ruby
whyy has quit [Ping timeout: 240 seconds]
coderhs has joined #ruby
buub has quit [Remote host closed the connection]
Takle has joined #ruby
lxsameer has joined #ruby
whyy has joined #ruby
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gue______ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
greenarrow has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
<tobiasvl>
at least a couple of months
<tobiasvl>
maybe you can do it with a few weeks
qaumvy has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
stytown has quit [Quit: stytown]
p0sixpscl has joined #ruby
<sevenseacat>
i didnt study it at all, i picked them both up at the same time >_> (not really recommended)
sdouglas has joined #ruby
alexju has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<shevy>
you are a true ocean cat
* sevenseacat
is a special snowflake
<shevy>
I think they are finally forcing me to decide between python and perl
bradhe has quit [Ping timeout: 255 seconds]
<shevy>
because the main cluster I am working with now has perl and python available, but no ruby :(
<sevenseacat>
is that even a choice?
<kalleth_>
no sevenseacat I AM A SPECIAL SNOWFLAKE
kilk_ has joined #ruby
kalleth_ is now known as kalleth
wildroman2 has quit [Remote host closed the connection]
adac has joined #ruby
<shevy>
I dunno
<shevy>
it's some python 2.5 version I think... and some perl from 3 years ago
<shevy>
their gcc in use is gcc 4.3.something
earlgreyhot has joined #ruby
earlgreyhot has left #ruby [#ruby]
<tobiasvl>
lol. what
<tobiasvl>
what's that cluster running
<tobiasvl>
RHEL5?
sk87 has joined #ruby
olivier_bK has joined #ruby
klaut has joined #ruby
hgl has joined #ruby
earthquake has quit [Quit: earthquake]
IceDragon has quit [Quit: Space~~~]
atraylen has quit [Ping timeout: 272 seconds]
earthquake has joined #ruby
tesuji has joined #ruby
s_e has quit [Ping timeout: 252 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
p0sixpscl has quit [Quit: p0sixpscl]
sdouglas has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 244 seconds]
wildroman2 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Spami__ has quit [Quit: This computer has gone to sleep]
s_e has joined #ruby
jpierre03 has quit [Quit: -]
<Schmidt>
(something something, debian stable)
<shevy>
some fedora thing if I remember correctly; I am at home right now so I can't check but I will know after some hours
p0sixpscl has joined #ruby
<tobiasvl>
fedora? then you probably mean RHEL5 (Red Hat Enterprise Linux 5)
whyy has quit [Remote host closed the connection]
<tobiasvl>
unless it's an old Fedora version which doesn't make a lot of sense
maximski has quit []
nateberkopec has joined #ruby
meinside has joined #ruby
yubrew has joined #ruby
abdulsattar has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 252 seconds]
kaspergrubbe has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Takle has quit [Remote host closed the connection]
dangerousdave has quit [Max SendQ exceeded]
elaptics`away is now known as elaptics
yubrew has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
bradhe has joined #ruby
sunya7a_ has joined #ruby
bradhe has quit [Write error: Connection reset by peer]
<bato>
Schmidt debian stable has at least python 2.7 :P
<bato>
(and there's always backports)
bradhe has joined #ruby
timfoo has joined #ruby
<tobiasvl>
has to be RHEL5. I'm running it at work too. it's still supported by Red Hat whose logo is a fedora (hence shevy's confusion) and it has python 2.5.
<tobiasvl>
but we're upgrading to RHEL6 this summer \o/
<miah>
looks like it should work, its ages since i touched puppet though.
jamto11 has joined #ruby
<TomyWork>
ruby -e 'puts $:' prints, among others, /usr/lib/ruby/1.8
<miah>
what happens if you `irb`
<miah>
can you require 'puppet' ?
<TomyWork>
which is odd, cause that's not where "gem" installs them
havenwood has quit [Ping timeout: 264 seconds]
<TomyWork>
irb gives me "LoadError: no such file to load -- puppet"
<Schmidt>
TomyWork: how did you install puppet? gems or os package manger ?
<TomyWork>
through a .deb package
nateberkopec has joined #ruby
earthquake has quit [Quit: earthquake]
<TomyWork>
i also tried installing it through "gem install puppet", but that ended up installing a 2nd version of puppet in the same folder (/usr/lib/ruby/gems/1.8/gems/puppet-3.6something)
<TomyWork>
it didnt fix the situation either
Takle has quit [Remote host closed the connection]
earthquake has joined #ruby
tmtwd has quit [Ping timeout: 272 seconds]
razum2um has joined #ruby
qba73 has joined #ruby
<TomyWork>
can you install gems in the local dir somehow? like with node.js's node_modules directory or what it's called
timonv has joined #ruby
jamto11 has quit [Ping timeout: 272 seconds]
bradhe has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
r_rios has quit [Ping timeout: 272 seconds]
Wolland has quit [Remote host closed the connection]
tvl is now known as tobiasvl
nateberkopec has quit [Ping timeout: 240 seconds]
abdulsattar has quit [Ping timeout: 248 seconds]
ephemerian has joined #ruby
Joulse has joined #ruby
bradhe_ has joined #ruby
<Hanmac>
TomyWork: the problem is the 1.8 in the path ruby1.8 is dead
tmtwd has joined #ruby
<miah>
my guess is TomyWork is on a enterprise linux
<TomyWork>
debian squeeze
bradhe has quit [Ping timeout: 264 seconds]
<miah>
why not at least ruby1.9?
<miah>
or use the puppet omnibus
<TomyWork>
the what?
<TomyWork>
i'm using what's installed on this machine
<miah>
pretty sure they have a 'complete' installer that will also bundle ruby
<TomyWork>
they supply debian packages
<miah>
does puppet work?
<TomyWork>
yes
AlSquire has joined #ruby
<TomyWork>
or i wouldnt have a report i want to look at :)
<miah>
my guess is then, their binary does some magic to make the load_paths all proper
marr has joined #ruby
<miah>
i dont know how otherwise that script wouldnt work
bradhe_ has quit [Ping timeout: 260 seconds]
<miah>
eg, somethings funky and its really dark here =)
<miah>
i might not be able to offer you the best help in my current state
jpierre03 has joined #ruby
superscott[8] has joined #ruby
kwd has quit [Quit: kwd]
Ankhers has joined #ruby
wildroman2 has quit [Read error: No route to host]
wildroman3 has joined #ruby
Takle has joined #ruby
superscott[8] has quit [Ping timeout: 244 seconds]
coderhs has joined #ruby
inkblots has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
bricker`LA has joined #ruby
mengu has quit [Remote host closed the connection]
echevemaster has quit [Remote host closed the connection]
nateberkopec has joined #ruby
earthquake has quit [Quit: earthquake]
hgl___ has quit [Read error: Connection reset by peer]
hgl___ has joined #ruby
earthquake has joined #ruby
Takle has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
aganov has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lkba has quit [Ping timeout: 240 seconds]
einarj has quit []
Platini has joined #ruby
mary5030 has joined #ruby
mk2014 has quit [Quit: mk2014]
rdark has joined #ruby
inkblots has left #ruby [#ruby]
Charliebr73 has joined #ruby
einarj has joined #ruby
mk2014 has joined #ruby
Wolland has joined #ruby
stef_204 has joined #ruby
vaz_ar has joined #ruby
vaz_ar has left #ruby [#ruby]
<shevy>
miah are you drunk again!
<AlexRussia>
anyone know good forum on ruby with support i18n?
Takle has quit [Remote host closed the connection]
phantasm66 has joined #ruby
ekinmur has quit [Client Quit]
Bira has joined #ruby
ekinmur has joined #ruby
fabrice31 has joined #ruby
Xeago has quit [Remote host closed the connection]
garethrees has joined #ruby
fabrice31 has quit [Remote host closed the connection]
hgl___ has quit [Remote host closed the connection]
fabrice31 has joined #ruby
hgl___ has joined #ruby
chipotle has quit [Quit: cya]
webgen has joined #ruby
ghr has quit [Read error: Connection reset by peer]
kilk_ has quit [Remote host closed the connection]
Charliebr73 has quit []
GriffinHeart has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
cmoneylulz has joined #ruby
Atttwwww has joined #ruby
enebo has joined #ruby
tesuji has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
anaeem1 has joined #ruby
sigurding has quit [Quit: sigurding]
Atttwww has quit [Ping timeout: 244 seconds]
anaeem1 has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 240 seconds]
tmtwd has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
garethrees has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
banister has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
sunya7a has joined #ruby
sunya7a has quit [Changing host]
sunya7a has joined #ruby
Macaveli has joined #ruby
AlSquire has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
DaniG2k has joined #ruby
tmtwd has joined #ruby
freerobby has quit [Quit: Leaving.]
banister_ has quit [Ping timeout: 264 seconds]
earthquake has quit [Quit: earthquake]
St_Marx has quit [Quit: Ex-Chat]
earthquake has joined #ruby
ppinto has joined #ruby
phantasm66 has quit [Quit: *poof*]
garethrees has joined #ruby
sigurding has joined #ruby
Shidash has joined #ruby
TomyWork has quit [Ping timeout: 252 seconds]
ghr has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Takle has joined #ruby
LadyRainicorn has joined #ruby
AntelopeSalad_ is now known as AntelopeSalad
jackneill has joined #ruby
endash has joined #ruby
yakko has joined #ruby
wmoxam has joined #ruby
C0deMaver1ck has joined #ruby
Vivekananda_y510 has joined #ruby
yubrew has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
jdj_dk has joined #ruby
saravana has joined #ruby
<saravana>
Hi I am unable to run the rails server in windows 8, I am able to create a project
DouweM has joined #ruby
amargherio has joined #ruby
Zenigor has quit [Remote host closed the connection]
<saravana>
when I am running rails server it says "autodetect" could not find a javascript runtime
alexju has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
<saravana>
I even install gem install execjs successfully, but not sure why system showing this error
ghr has joined #ruby
garethrees has quit [Read error: Connection reset by peer]
<saravana>
anyone help?
meinside has quit [Quit: Connection closed for inactivity]
<ddv>
saravana: get linux or osx
<saravana>
Not possible, mine is licensed Windows os
<ddv>
Windows is crap for ruby development
<saravana>
Yeah I heared it from my friends, but atleast for doing basic tasks i need that
DaniG2k has quit [Quit: leaving]
<wasamasa>
get paid rails support, then that might work out :P
stytown has joined #ruby
jdj_dk has quit [Remote host closed the connection]
gr33n7007h has quit [Quit: Leaving]
<saravana>
where do i get that?
<saravana>
in rails home page?
thesheff17 has joined #ruby
<wasamasa>
never heard of consultants?
Darryl has joined #ruby
AlSquire has quit [Ping timeout: 264 seconds]
<wasamasa>
these guys do that for a living
stytown has quit [Client Quit]
wildroman2 has quit [Remote host closed the connection]
himsin has joined #ruby
stytown has joined #ruby
<saravana>
can you share the url of rails paid support?
earthquake has quit [Quit: earthquake]
<wasamasa>
never heard of search engines?
lagweezle has quit [Quit: leaving]
<saravana>
and I new to this rails environment
wildroman2 has joined #ruby
earthquake has joined #ruby
<yakko>
saravana: they are trolling you
<saravana>
wasamasa: I am not doing this for living FYI
jonno11 has joined #ruby
Hanmac1 is now known as Hanmac
<wasamasa>
I don't search the internet for a living either
eka has joined #ruby
<wasamasa>
besides, if I were to give out links, I'd most likely get kicked for stealth advertising
<Hanmac>
saravana: did you try the #rubyOnRails channel?
<yakko>
saravana: if you want to learn it from the beginning check rails4zombies, if you want to see cool examples of cool plugins/gems being used check railscasts
<saravana>
alright i googled a lot, but nothing works
metadave_ is now known as metadave
Zebroid has joined #ruby
SilverKey has joined #ruby
<yakko>
saravana: I strongly recommend rails4zombies, it's free
<saravana>
Hanmac: No I didn't
garethrees has joined #ruby
AlSquire has joined #ruby
lemur has joined #ruby
Zenigor has joined #ruby
charliesome has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
sailias has joined #ruby
rurban has left #ruby ["Leaving"]
ghr has quit [Ping timeout: 248 seconds]
<saravana>
I entered ruby on rails channel
cmoneylulz has joined #ruby
<saravana>
can you help me anyone?
<wasamasa>
ask that on the rails channel
jhass is now known as jhass|off
ndrei has quit [Ping timeout: 244 seconds]
dANOKELOFF has quit [Remote host closed the connection]
Wolland has joined #ruby
ndrei_ has quit [Ping timeout: 272 seconds]
<saravana>
wasamasa>thanks for your help
inspectah_stack has joined #ruby
<wasamasa>
it's not like they're psychics
Avahey_ has quit [Quit: Connection closed for inactivity]
<wasamasa>
and magically know about your problems
jheg has quit [Quit: jheg]
inspectah_stack has quit [Client Quit]
musl has quit [Write error: Connection reset by peer]
ndrei has joined #ruby
ndrei_ has joined #ruby
yubrew has joined #ruby
jheg has joined #ruby
musl has joined #ruby
freerobby has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
jheg has quit [Client Quit]
stytown has quit [Quit: stytown]
ghr has joined #ruby
sk87 has joined #ruby
sdouglas has joined #ruby
saravana has quit [Ping timeout: 246 seconds]
garethrees has quit [Read error: Connection reset by peer]
Sirupsen has joined #ruby
tr4656_ has joined #ruby
XenoWolf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
Vivekananda_y510 has quit [Ping timeout: 244 seconds]
BadQuanta has joined #ruby
little_fu has quit [Remote host closed the connection]
hello_nate has joined #ruby
bradhe has joined #ruby
RaCx has joined #ruby
dANOKELOFF has joined #ruby
wildroman2 has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
jdj_dk has joined #ruby
earthquake has quit [Quit: earthquake]
cmoneylulz has quit [Remote host closed the connection]
Xeago has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
TorpedoSkyline has joined #ruby
_Andres has quit [Ping timeout: 255 seconds]
nateberkopec has joined #ruby
garethrees has joined #ruby
lagweezle has joined #ruby
ghr has quit [Read error: Connection reset by peer]
_Andres has joined #ruby
krz has joined #ruby
avril14th has joined #ruby
n3byt3 has quit [Quit: Leaving]
avril14th is now known as Guest31298
momomomomo has joined #ruby
hgl____ has joined #ruby
chipotle has quit [Quit: cya]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oponder has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 272 seconds]
oponder has joined #ruby
ffranz has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
akemrir has joined #ruby
lessless has joined #ruby
ghr has joined #ruby
CaptainJet has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<lessless>
is there a convenient way to declare instance variables (like attr_accessor, but do not expose it outside) ?
<lessless>
this is just to ease perception
tagrudev has quit [Remote host closed the connection]
tmtwd has joined #ruby
_Andres has quit [Ping timeout: 255 seconds]
<Guest31298>
lessless yes, just put them into the protected/ private sections
garethrees has quit [Ping timeout: 264 seconds]
XenoWolf has joined #ruby
tier has joined #ruby
sinkensabe has joined #ruby
LexicalScope has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
charliesome has quit [Remote host closed the connection]
whyy has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
charliesome has joined #ruby
<slash_nick>
wha? instance variables are not exposed... unless you define public methods to return the value of an instance variable
<apeiros>
lessless: instance variables are never exposed.
<apeiros>
@ Guest31298: ^
<apeiros>
what slash_nick wrote, actually.
<slash_nick>
are you saying you want to be able to set the value from outside but not read it from outside?
<apeiros>
lessless: also attr_accessor does NOT define instance variables.
ghr has quit [Read error: Connection reset by peer]
bal has quit [Quit: bal]
<apeiros>
it defines methods. which access instance variables.
Takle has quit [Remote host closed the connection]
<lessless>
I mean I want to see what instance variables are there in the class at a glance, - it can be easly achieved if I enumerate them with attr_accessor on the top of the file
<Guest31298>
apeiros: ok. Any hint for my question? :))
<lessless>
but if I do so - they will be exposed outside
Takle has joined #ruby
iswell_ has joined #ruby
<canton7>
I tend to assign all the ivars in the ctor - even if I'm assigning them to nil
<canton7>
then your ctor has a nice big list of all of the ivars
ghr has joined #ruby
bal has joined #ruby
iswell_ is now known as iswell
jottr has joined #ruby
ziyadb has joined #ruby
tr4656_ has left #ruby [#ruby]
Macaveli has quit [Ping timeout: 240 seconds]
Photism has quit [Quit: Leaving]
yeticry_ has quit [Ping timeout: 240 seconds]
<iswell>
do you guys know of a good cheat for a quick refresher on ruby, i havent used it for a while
<apeiros>
Guest31298: I don't see how the code you pasted would raise that error
bricker`LA has quit [Quit: leaving]
<apeiros>
iswell: zenspiders quickref maybe
psmolen has quit [Ping timeout: 244 seconds]
yeticry has joined #ruby
<Guest31298>
apeiros: well the do method is defined after the include so it doesn't know about it yet
kireevco has joined #ruby
<iswell>
apeiros: ?
benzine21 has joined #ruby
<Guest31298>
if I move the alias_method_chain outside the module and inside the class, after the do method definition, everything works
jheg has joined #ruby
psmolen has joined #ruby
<apeiros>
Guest31298: that's irrelevant
<apeiros>
Guest31298: your alias_method_chain is not called in Task
<apeiros>
you should get an "Error undefined method :do for Doable", not "Error undefined method :do for Task"
<apeiros>
and you should get that with a reference to line 3 in doable.rb
<apeiros>
iswell: just google it.
chipotle has quit [Quit: cya]
SBoolean has joined #ruby
chipotle has joined #ruby
zz_jrhorn424 is now known as jrhorn424
alec-c4 has joined #ruby
ghr has quit [Read error: Connection reset by peer]
garethrees has joined #ruby
bal has quit [Quit: bal]
IceDragon has joined #ruby
ephemerian has left #ruby [#ruby]
hobodave has joined #ruby
terrellt has joined #ruby
maximski has joined #ruby
davedev2_ has quit []
Takle has quit [Remote host closed the connection]
davedev24_ has joined #ruby
sigurding has quit [Quit: sigurding]
jamto11 has joined #ruby
Sirupsen has quit [Ping timeout: 252 seconds]
codeurge has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
moted has joined #ruby
ghr has joined #ruby
Wolland has joined #ruby
garethrees has quit [Ping timeout: 248 seconds]
brunops has joined #ruby
Takle has joined #ruby
sinkensabe has quit [Ping timeout: 248 seconds]
volk_ has joined #ruby
<volk_>
hey guys i was hoping someone can explain the difffernce between raise SomeClass and raise SomeClass.new(‘some message’)
<volk_>
i realize one you set the message and the other the message is default
mijicd has quit [Remote host closed the connection]
<apeiros>
volk_: mostly matters for custom exception classes
<apeiros>
raise SomeClass, "message" will not invoke the initializer
meeko has joined #ruby
bluenemo has joined #ruby
Poky has quit [Remote host closed the connection]
<apeiros>
e.g. I have exception classes where I do: raise SomeClass.new(related1, related2, …) and it generates message etc. from those arguments
garethrees has joined #ruby
<volk_>
so only the lack of initializer invocation is the primary difference? aside from that, the bhavior is the same?
<volk_>
apeiros:
ghr has quit [Read error: Connection reset by peer]
<apeiros>
volk_: I think so
<apeiros>
at least I don't recall any other diff
chipotle has quit [Quit: cya]
<volk_>
yeah i figured. the reason i ask is im using this error reporting software (honeybadger) which behaves differently if i try to ignore errors by classname when raising them using new
jheg has quit [Quit: jheg]
<apeiros>
huh?
cmoneylulz has quit [Remote host closed the connection]
chipotle has joined #ruby
<apeiros>
that sounds odd
alec-c4 has quit [Remote host closed the connection]
<pimeys_>
does this crash for you? Queue.new.dup.pop
<pimeys_>
:)
<pimeys_>
2.1.0 at least segfaults
<volk_>
yep
pimeys_ is now known as pimeys
<drizz>
2.1.2p95 aswell
<pimeys>
should I make a bugreport?
<pimeys>
:)
<volk_>
2.1.0-github1 samesies
sunya7a has quit [Remote host closed the connection]
rezzack has joined #ruby
acrussell has joined #ruby
<apeiros>
pimeys: yes
* apeiros
off
apeiros has quit [Remote host closed the connection]
<drizz>
not present in 2.0.0-p353
<drizz>
[1] pry(main)> Queue.new.dup.pop
<drizz>
fatal: No live threads left. Deadlock?
<drizz>
from /home/mk/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/thread.rb:72:in `sleep'
<pimeys>
ok
apeiros has joined #ruby
<pimeys>
so might not be the best idea to use the queue here
<pimeys>
I guess I'll just live with an array and a mutex
<pimeys>
(just a test class, but would've been prettier with a queue)
alec-c4 has quit [Ping timeout: 244 seconds]
<iswell>
apeiros: thank you for being so active in the ruby community
<iswell>
apeiros: I always see you on irc
Xeago has quit [Remote host closed the connection]
<Dwarf>
If I have a var, e.g. $test
<Dwarf>
And $test = [1,2,3]
<Dwarf>
How would I see if $test["foo"] is nil?
<Dwarf>
$test["foo"].nil? gives "no implicit conversion of String into Integer"
apeiros has quit [Ping timeout: 255 seconds]
wald0 has quit [Ping timeout: 272 seconds]
<canton7>
Dwarf, $test is an array, not a hash
<canton7>
you cannot use string keys on an array
Guest31298 has quit [Quit: Page closed]
<Dwarf>
Oh right
<canton7>
they always have numeric keys
wald0 has joined #ruby
hello_nate has joined #ruby
<lessless>
it's impossible to alter object from it's iterator, right? html.xpath("//img").each{ |img| img.attributes['src'] = " https://cdn.mynet.com/stub.jpg"}
dik_dak has joined #ruby
foobarbaz_ has joined #ruby
acrussell has left #ruby [#ruby]
schaerli has quit [Remote host closed the connection]
<Dwarf>
canton7, what I
<canton7>
lessless, if img is a mutable type, sure that's fine
<canton7>
lessless, it's likely that nokogiri (or whatever) doesn't care if you change img, and simply won't notice
snath has joined #ruby
<Dwarf>
What I'm trying to do is get some info from vimeo's API, but they don't mention errors, so I want to check if response["id"] is set, http://vimeo.com/api/v2/video/2.json
hello_nate has left #ruby [#ruby]
<canton7>
Dwarf, what you've got there is a hash, not an array
<canton7>
{} = hash, [] = array
<Dwarf>
Aye
Takle has quit [Remote host closed the connection]
<canton7>
hashes are key/value pairs - you access values by their keys
tmtwd has quit [Ping timeout: 252 seconds]
j_mcnally has joined #ruby
<canton7>
so I don't know what you were doing with $test being an array tbh :P
<Dwarf>
I'm using HTTParty which returns a JSON object, which I can then access with response[0], and then response[0]["title"] would be the title of the video
maximski has quit [Read error: Connection reset by peer]
<Dwarf>
But how would I check if title is present in that?
adac has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
maximski has joined #ruby
baroquebobcat has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
<Dwarf>
oh
<Dwarf>
response.code
bradhe has joined #ruby
<Dwarf>
Mhm
edmellum has joined #ruby
<canton7>
Dwarf, so maybe response[0].has_key?("title")?
<canton7>
response[0]["title"].nil?
<canton7>
if you access it through response[0]["title"], use that
<canton7>
not response["title"]
<Dwarf>
Or unless response.code == 200
<Dwarf>
brb dinner
bradhe has quit [Remote host closed the connection]
<benzrf>
i am imagining a framework for REST where you have persistent objects bound to URIs and they return objects whose methods are translated into links and contents into whatever form
<jhass>
snapcase: you're asking "does 'PLAYERRANKING10' come before or after 'PLAYERRANKING2'" and the answer is "before"
iswell has quit [Ping timeout: 252 seconds]
zorak has joined #ruby
<benzrf>
jhass: well, it does *lexically*
<jhass>
snapcase: you could default to 0 if you don't find one
cj has quit [Ping timeout: 260 seconds]
<snapcase>
jhass: what would be the best way to do that?
<jhass>
([/\d+/] || 0).to_i ?
<snapcase>
thanks
Bira_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
aspires has joined #ruby
whyy has quit [Ping timeout: 248 seconds]
earthquake has quit [Quit: earthquake]
dANOKELOFF has quit [Ping timeout: 264 seconds]
jheg has quit [Quit: jheg]
Bira has quit [Ping timeout: 248 seconds]
s3ri0us has joined #ruby
zeropx has quit [Quit: has left the room … Or did he?]
b00stfr3ak has joined #ruby
ylluminate has joined #ruby
klaut has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
shredding has joined #ruby
tesaf has quit [Quit: Lost terminal]
JasmeetQA1 has quit [Read error: Connection reset by peer]
gypsydave5 has quit [Ping timeout: 244 seconds]
Rubeh_ has quit [Ping timeout: 245 seconds]
sdouglas has quit [Remote host closed the connection]
nuby has joined #ruby
aspires has quit []
<nuby>
hi all!
sunya7a has quit [Ping timeout: 252 seconds]
Rubeh has joined #ruby
bradhe has joined #ruby
JasmeetQA has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
sdouglas has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
<pontiki>
hi nuby
andrewjanssen has joined #ruby
mjsmith2 has joined #ruby
<nuby>
hey pontiki, am I in the right place for people wo talk with about ruby?
<DouweM>
yes you are!
saarinen has joined #ruby
sdouglas has quit [Ping timeout: 252 seconds]
jaimef has quit [Excess Flood]
<nuby>
oh awesome, I'm just learning. Is it like seasoned pros in here?
<pontiki>
well-seasoned. mmmmm, that bbq rub is awfully good.
guardian has joined #ruby
<DouweM>
there's a bunch of pros, a lot of intermediates and a lot of newbies, so you'll fit in just right :P
nmokru has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nuby>
hah ok cool
mattstratton has joined #ruby
<guardian>
hello, let's say I have h = Hash.new(0); can I with a oneliner do x = h['foo']++ so that it increments h['foo'] after having returned the value?
<guardian>
of course this doesn't work
<pontiki>
there is no ++ in ruby :D
Pulpie has joined #ruby
<DouweM>
++ doesn't exist in Ruby, use += 1
<guardian>
ah that's why
edgarjs is now known as edgarjs_afk
nmokru has quit [Client Quit]
<jhass>
note that it returns the assigned value
<Pulpie>
how much memory can 32bit ruby on windows 7 allocate, I thought it would be 4GB but apparently this isn't the case.
Wolland has joined #ruby
<guardian>
which I won't be able to do as a oneliner then
<benzrf>
Pulpie: the answer is:
<benzrf>
dont use windows
end_guy has quit [Ping timeout: 264 seconds]
<benzrf>
;)
<pontiki>
nonesense
akemrir has quit [Quit: WeeChat 0.4.3]
<Pulpie>
benzrf: ruby shouldn't be released on a platform it cant support ;)
nmokru has joined #ruby
alem0lars has quit [Quit: Going AFK...]
<nuby>
guardian, you can do it with a semicolon, it will fit on one line
<benzrf>
Pulpie: using windows is inviting the pain in
<jhass>
^ don't do that though
<Pulpie>
eh I asked a simple question
timonv has joined #ruby
jaimef has joined #ruby
<Pulpie>
if you don't know the answer thats fine. Creating a solution through means that disregard the question is not an answer.
s00pcan has joined #ruby
<pontiki>
Pulpie: people here are so down on windows. using ruby on windows is quite valid. i don't know the answer to your specific question, however.
jottr has joined #ruby
anaeem1_ has joined #ruby
<pontiki>
guardian, you can do x = h[:foo] += 1 just fine
qba73_ has quit [Remote host closed the connection]
edgarjs_afk is now known as edgarjs
cmoneylulz has joined #ruby
<Pulpie>
alright let me ask this more general ruby question, Why don't objects such as numbers have the ++ operation? Surely ruby could implement it. It doesn't seem hard to detect what type of object it is and add one to it if it's some sort of number.
kaspergrubbe has joined #ruby
jimbow has joined #ruby
stytown has quit [Quit: stytown]
qba73 has joined #ruby
cmoneylulz has quit [Remote host closed the connection]
<newton1>
Sort of weird it doesn't now that you mention it
<newton1>
I think ruby probably has enough magic for now :)
wallerdev has joined #ruby
<Pulpie>
coming from C++ it was the first thing I noticed.
sdouglas has joined #ruby
hgl____ has quit [Quit: Computer has gone to sleep.]
bradhe has quit [Remote host closed the connection]
<pontiki>
i had to wonder about that as well; numbers are also objects in ruby, though implemented directly it seems.
<Pulpie>
but somehing like i++! and i++ would be nice.
<pontiki>
so 1 is always the same object hash
stytown has joined #ruby
wldcordeiro has joined #ruby
<pontiki>
so you can't do 1++ or that would *seemingly* change every occurance of 1
iswell has joined #ruby
<benzrf>
Pulpie: i++ could be the same as i = i + 1 yes
<pontiki>
operators are messages, tho, not separate syntactic elements
<guardian>
thanks that works well
<newton1>
or i+=1 if you're lazy
<Pulpie>
benzrf: but its not.
<benzrf>
Pulpie: why should it be :O
<pontiki>
well, i'll just keep quite
<pontiki>
quiet*
<Pulpie>
because its the oop way of incrementing a number.
<jhass>
Pulpie: so you think about it as a method?
<Pulpie>
well in C++ its just an operation method
adac has joined #ruby
<jhass>
numbers are immutable in ruby
<nuby>
I have a question, do you guys know why insert is inserting extra characters in this code: http://repl.it/Uq3/1? It's adding 2 characters to the first and last elements.
Spami has quit [Quit: This computer has gone to sleep]
Spami__ has quit [Quit: This computer has gone to sleep]
<Pulpie>
jhass: this would only be for number variables not numbers themselves.
<Pulpie>
unless 1 is actually an object of 'one' and 2 is an object of a completely different class called '2'
<Pulpie>
or two*
iswell has quit [Remote host closed the connection]
qba73 has quit [Remote host closed the connection]
<jhass>
so s = 'foo'; s++ would be a method call, i = 1; i++ a syntax rewrite?
iswell has joined #ruby
<Pulpie>
yes.
shredding has quit [Quit: shredding]
<Pulpie>
well both would be method calls
andrewjanssen has quit [Remote host closed the connection]
iswell has quit [Remote host closed the connection]
<Pulpie>
just one would have methods behind them.
Spami has joined #ruby
SilverKey has quit [Quit: Halted.]
Spami__ has joined #ruby
Zebroid has joined #ruby
<Pulpie>
the s++ would cause an error of no such method.
<jhass>
and how should a method call affect the variable an object may be assigned to?
StephenA1 has joined #ruby
<pontiki>
there is the .succ method
<jhass>
what about a = [1]; a[0]++
qba73 has quit [Remote host closed the connection]
<Pulpie>
jhass: all this is defined well in C++
<Pulpie>
a[0] would resolve to an int
<Pulpie>
the int would have the ++ method on it
<jhass>
Pulpie: because the compiler knows the type of the variable
<Pulpie>
and be called.
<jhass>
ruby doesn't
yfeldblum has joined #ruby
<Pulpie>
sure it does.
chipotle has quit [Quit: cya]
<Pulpie>
variable.class
<jhass>
still, we would need a way to modify a variable an object is assigned to from within a method called on it. We don't currently
yfeldblum has quit [Remote host closed the connection]
qba73 has joined #ruby
newton1 has left #ruby ["WeeChat 0.4.3"]
<Pulpie>
what do you mean?
<apeiros>
the closest thing to making actual sense as (expr)++ is treating it as a syntax rewrite: expr = expr.succ. that'd mean i++ would be valid, 1++ would raise just as 1 = 2 would
<apeiros>
I suggest searching the ML, as it has been suggested probably numerous times
<Pulpie>
I figured as much
<jhass>
nuby: you insert the _same_ array twice
<Pulpie>
I thought there was a more clear cut reason
<jhass>
nuby: the insert method doesn't copy
himself_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
<nuby>
hmmm
<apeiros>
and what jhass means wrt modify a variable from a method: you can't write a method such that: before = x.object_id; x.foo; x.object_id != before
Takle has joined #ruby
<apeiros>
or in other words: you can't assign to an "outer" variable from within a method
SCHAAP137 has joined #ruby
yfeldblum has joined #ruby
<apeiros>
Pulpie: anyway, the whole fuss for a single character? not worth it IMO :)
<apeiros>
(i++ is 3 chars, i+=1 is 4)
RaCx has joined #ruby
<jhass>
Pulpie: and re variable.class, that's just calling the .class method on the object currently assigned to the variable, the variable itself doesn't store which type it has
<apeiros>
also I assume you just left all the precedence fun away, yes?
Zebroid has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
Zai00 has quit [Quit: Zai00]
buub has joined #ruby
Takle has quit [Ping timeout: 248 seconds]
<nuby>
jhass, it has to insert the array twice, its initially adding an array to the beginning and end of the existing array. Then it should go back and add a whitespace to the beggining and end of each subarray. Basically, I'm trying to take a square array, and pad it so it grows larger by one in both height and width
<jhass>
nuby: I know ;)
wildroman2 has quit [Remote host closed the connection]
<nuby>
hah damn I'm not getting what you're saying then. Ill keep looking at it til i figure it out. Thanks!
<jhass>
>> vertical_padding = Array.new(3) { " " }; a = []; a << vertical_padding; a << vertical_padding; a[0].eql? a[1] # nuby
<wallerdev>
doesnt really matter, why would anyone write that
<Pulpie>
C ^
<wallerdev>
lol
Shidash has quit [Ping timeout: 260 seconds]
ashleah{K} is now known as Leah
<Pulpie>
it would be a short hand to add 2 to a variable on a single line
<Pulpie>
instead of i += 2; it would be ++i++;
<wallerdev>
i+=2 is shorter?
<Pulpie>
spaces are characters too
Leah is now known as leah
<Pulpie>
if I write i+=2; it's cramping.
Aryasam has quit [Ping timeout: 252 seconds]
<wallerdev>
i have a feeling if youre writing ++i++ you dont care about "cramping" lol
p4tux has quit [Remote host closed the connection]
<Pulpie>
if I write ++i++; its... well it's actually ugly which is why it doesn't exist.
<wallerdev>
anyway i think i++++ would make more sense for that
<Pulpie>
but i += 1; vs i++;
yfeldblum has quit [Remote host closed the connection]
<banister>
Pulpie darn you're right
<Pulpie>
you cant ++++ either
<Pulpie>
every operation must have a variable.
<eam>
banister: you can however do: i++,++i
<wallerdev>
i know im just saying that would make more sense as a shorthand for adding 2
<Pulpie>
ah
aspires has joined #ruby
<wallerdev>
adding one before and one after is just weird
<Pulpie>
yeah
pietr0 has joined #ruby
<Pulpie>
anyways you can do some neat optimizations with post and pre fixs
banjara has joined #ruby
<Pulpie>
maybe its not for ruby but they aren't bad in C++
relix has joined #ruby
volk_ has joined #ruby
<wallerdev>
cant you override ++ in c++ too
dik_dak has quit [Ping timeout: 244 seconds]
<wallerdev>
you could make it add 2
<Pulpie>
yes
<Pulpie>
you could in your own class
<wallerdev>
thats the true solution
cmoneylulz has quit [Read error: Connection reset by peer]
m8 has joined #ruby
<Pulpie>
I suppose thats a solution
alec-c4 has joined #ruby
cmoneylulz has joined #ruby
<wallerdev>
thats the ruby way
<jottr>
Hi all. I am pulling JSON data from yelp. While I am testing, I would like to save on calls to the API by using a heredoc. I am not sure how to make sure that the nested hash returned by yelp is retained when using said heredoc. I tried by simply storing the json inside a varialbel like this: data = <<DATA ..jsondata.. DATA
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 248 seconds]
<wallerdev>
just store it in a file
<DouweM>
why would you need a heredoc here?
IcyDragon is now known as IceDragon
<jottr>
printing the data from the heredoc via 'pp data' results in string characters being escaped with backslashes
<jottr>
DouweM: What would be the alternative?
<pontiki>
those backslashes aren't in the data
<DouweM>
jottr: that's just how irb prints it
<jhass>
^ or inspect
<pontiki>
they're in the pp representation
<DouweM>
jottr: or rather, what String#inspect returns
<pontiki>
yes, that
tier has joined #ruby
suffice has joined #ruby
<jottr>
strange. If I print the same data not from the heredoc but directly from what I get from the api I won't get the backslahes
RaCx has quit [Quit: Computer has gone to sleep.]
<pontiki>
why is this strange?
<DouweM>
jottr: that's not strange
<wallerdev>
just use puts instead of pp?
<DouweM>
:)
<jottr>
ah. that worked. thx
rdark has quit [Quit: leaving]
dANOKELOFF has quit [Remote host closed the connection]
<jottr>
DouweM: so what would be an alternative to a heredoc?
lemur has joined #ruby
<wallerdev>
store the text in a file
<DouweM>
yeah, using a fixture file is better
alec-c4 has quit [Ping timeout: 260 seconds]
<wallerdev>
not a great idea to put data like that in the middle of code
<DouweM>
jottr: for sure! RSpec has nothing to do with Rails per se
<wallerdev>
magic
earthquake has joined #ruby
<jottr>
hah
Zenigor has quit [Remote host closed the connection]
<DouweM>
Pulpie: what are you having trouble with? variables defined in if being aailable outside them?
<Pulpie>
yes
<jottr>
thx
Shidash has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton_ has joined #ruby
RaCx has joined #ruby
<Pulpie>
am I just beating the garbage collector?
<Pulpie>
before it can clean up.
<wallerdev>
lolol
<wallerdev>
no
<DouweM>
Pulpie: but you would think it made sense for a variable to be set to nil before, to be available inside the if and overwritable inside the if?
<jhass>
Pulpie: the garbage collector cleans up objects, not variables
<Pulpie>
variables are objects...
<DouweM>
Pulpie: I mean, you need that to do conditional variable assigment. So why would there be a difference between those?
<Pulpie>
aren't they?
<DouweM>
Pulpie: variables refer to objects
iceden has quit [Ping timeout: 252 seconds]
<jhass>
Pulpie: no, they are references to objects
stytown has quit [Quit: stytown]
edgarjs_afk is now known as edgarjs
<Pulpie>
so if I have a reference to an object, the only time the object will be cleaned is if the reference falls out of scope right?
<jhass>
if all references to it do
<Pulpie>
right
<wallerdev>
the local variable inside your if statement exists as soon as your method starts running
<Pulpie>
makes sense, thats basic
dc_ has joined #ruby
<wallerdev>
its not created inside the if statement
<DouweM>
because accoring to the syntax tree, it's assigned to
<wallerdev>
it sees the assignment when it parses the method and creates the local variable
sharpmachine has joined #ruby
<sharpmachine>
I'm using simple form and have a Service model and a Listing model. They are associated, but I'm trying to add a service field to the new listing form using <%= f.association :service %> but I'm getting back undefined method `service_id' for #<Listing:0x007fa063643830>
<jhass>
sharpmachine: #rubyonrails
<wallerdev>
>> p local_variables; if false; b = 10; end
<DouweM>
Pulpie: all assignment is the same to the parser, it doesn't evaluate the conditional
<wallerdev>
it sees there its not assigned to and doesnt create it
<sharpmachine>
I already asked there and no one is answering
sunya7a has joined #ruby
<jhass>
sharpmachine: how long did you wait?
Zenigor has joined #ruby
<Pulpie>
DouweM: but it does when assigning the value or b wouldn't be nil
<sharpmachine>
Like a million hours
gruz0[russia] has joined #ruby
freggles has quit [Ping timeout: 248 seconds]
<DouweM>
Pulpie: it does during evaluation, obviously
Fusl has joined #ruby
<Pulpie>
so ruby parses the code twice, once before and once while executing?
<DouweM>
why would it need to parse twice?
<jhass>
no, it builds an AST and runs that
<wallerdev>
lol
jaimef has quit [Excess Flood]
<Pulpie>
evaluation then runtime
ged_ is now known as ged
<wallerdev>
it parses it and then it runs it
<DouweM>
and how would you implement this in practice? you'd specialcase a pointless literal `false`, but what would you do for anything else that could be the condition?
<wallerdev>
it doesnt run it as it parses the script
chipotle has joined #ruby
<DouweM>
during parsing it keeps track of variables that may be assigned
shredding has quit [Ping timeout: 264 seconds]
<Pulpie>
ok
ramfjord has joined #ruby
TDJACR has quit [Ping timeout: 252 seconds]
<Pulpie>
I mean I've seen code like this in the wild.
<Pulpie>
which is why I bring it up
<DouweM>
the separate step of specifying the type and assigning null which you need in, say, C before an if-statement wouldn't make sense in Ruby, so this is the only logical way you can have assignment inside if/else and use the variable outside
jaimef has joined #ruby
<jheg>
Met a client this evening that wants a website building for their cake company. They need it to be a CMS so they can add testimonials, images to a gallery, news, articles & upcoming events amongst other editing capabilities. I immediately think 'wordpress' for this type of thing but do you guys use ruby for this type of project?
sunya7a_ has joined #ruby
Eiam has joined #ruby
TDJACR has joined #ruby
jonno11 has joined #ruby
whyy has joined #ruby
sunya7a has quit [Ping timeout: 272 seconds]
<momomomomo>
jheg: just from a quick google, it looks like htere are a lot more ruby CMS' than there were a year ago
RaCx has quit [Quit: Computer has gone to sleep.]
<momomomomo>
so, maybe?
<momomomomo>
I'd probably do wordpress jheg
<benzrf>
momomomomo: what kinda nick is momomomomo
<wallerdev>
dont use refinerycms
<wallerdev>
its awful
<momomomomo>
what kinda nick is benzrf
<wallerdev>
hope that helps
<wallerdev>
id go with wordpress
<lemur>
touche
<momomomomo>
honestly, you can go so far with a quick theme and some customization on wp
<jheg>
momomomomo: cool. I don't think there is anything wrong with wordpress but I feel like I'm cheating a little bit with WP
<momomomomo>
themeforest.net - grab one with a decent license and customize / sell it
<finisherr>
I’m moving from python to ruby since the ops team I’m on is all Ruby. Anyone have advice on what resources I should dive into to get started?
jottr_ has joined #ruby
<momomomomo>
I have a bunch more posts to finish up :/
smathieu has quit [Remote host closed the connection]
happytux_ is now known as happytux
cantonic has joined #ruby
whyy has quit [Ping timeout: 260 seconds]
<jheg>
momomomomo: I don't mean cheating as such but I just feel like I'm hacking about a pre defined CMS that requires constant updating to avoid security flaws
<pontiki>
programming ruby, 1.9 & 2.0 version
<pontiki>
eloquent ruby
smathieu has joined #ruby
<jheg>
and it seems perhaps a bit bloated?
<pontiki>
confident ruby
Karpuragauram has joined #ruby
<momomomomo>
jheg: security updates are a good thing; wordpress has nailed simple-ish CMS sites down pat
<lemur>
versus building your own and custom making those same types of patches
<agent_white>
jhass: Hahah I was told that when I said good afternoon in another channel as well.
AlSquire has quit [Ping timeout: 240 seconds]
Aryasam has joined #ruby
RaCx has quit [Ping timeout: 244 seconds]
RaCx has joined #ruby
wildroman2 has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
closures999 has quit [Client Quit]
aspires has quit []
cocotton_ has quit [Remote host closed the connection]
jonahR has quit [Remote host closed the connection]
aspires has joined #ruby
StephenA1 has quit [Quit: StephenA1]
jonahR has joined #ruby
whyy has joined #ruby
AlSquire has joined #ruby
yakko has joined #ruby
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mehlah has quit [Quit: Leaving...]
cocotton has joined #ruby
djbkd has quit [Remote host closed the connection]
gruz0[russia] has quit [Quit: Leaving]
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has joined #ruby
<nuby>
anyone know why this is modifying the original? I almost have this working how I want, except that its modifying the original. http://repl.it/Uq3/6
jonahR has quit [Ping timeout: 244 seconds]
obscured has quit [Quit: leaving]
whyy has quit [Ping timeout: 255 seconds]
<jhass>
nuby: because insert simply is defined to modify the receiver
<jhass>
note that ruby is a pass by reference language
<jhass>
passing an object to a method does _not_ copy it
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nuby>
i was thinking telling it to use a clone would get around that?
<jhass>
yes
<jhass>
most people use the #dup method to clone objects
<benzrf>
there are differences depending on what you're doing with it
earthquake has quit [Quit: earthquake]
Aryasam has quit [Quit: Bye]
virtualize has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
virtualize has joined #ruby
s3ri0us|away is now known as s3ri0us
jonahR has joined #ruby
<nuby>
I did read the difference between the two, seems like clone is if you need to copy instance variables and extensions with it, but I dont need to do any of that here
earthquake has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Photism has joined #ruby
jonahR has quit [Remote host closed the connection]
jonahR has joined #ruby
jonno11 has joined #ruby
virtualize has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
virtualize has joined #ruby
saarinen has quit [Quit: saarinen]
djbkd has joined #ruby
senayar has quit [Remote host closed the connection]
jonahR has quit [Ping timeout: 255 seconds]
ndrei_ has quit [Ping timeout: 255 seconds]
smathieu has quit [Remote host closed the connection]
kireevco has left #ruby [#ruby]
ndrei has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
Photism has quit [Quit: Leaving]
andrewjanssen has joined #ruby
shredding has joined #ruby
relix has joined #ruby
hgl____ has joined #ruby
stytown has joined #ruby
smathieu has quit [Remote host closed the connection]
smathieu has joined #ruby
lemur has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
relix has quit [Ping timeout: 252 seconds]
hgl____ has quit [Ping timeout: 272 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
alvaro_o has joined #ruby
wombo has joined #ruby
wombo has quit [Client Quit]
blackmesa has joined #ruby
yakko has quit [Read error: Connection reset by peer]
wombo has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
lemur has joined #ruby
yfeldblum has joined #ruby
yakko has joined #ruby
earthquake has quit [Quit: earthquake]
cocotton has quit [Quit: Leaving...]
pietr0 has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
CaptainJet has quit []
yfeldblu_ has joined #ruby
bradhe has quit [Remote host closed the connection]
virtualize has quit [Ping timeout: 244 seconds]
Zamerick has joined #ruby
zorak has quit [Ping timeout: 272 seconds]
benzine21 has quit [Remote host closed the connection]
virtualize has joined #ruby
maximski has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
rezzack has joined #ruby
stytown has quit [Quit: stytown]
s3ri0us has quit [Quit: Leaving...]
poindontcare has joined #ruby
fold has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
virtualize has quit [Remote host closed the connection]
virtualize has joined #ruby
yetanotherdave has quit [Ping timeout: 264 seconds]
Zebroid has joined #ruby
dik_dak has joined #ruby
zorak has joined #ruby
elux has joined #ruby
<elux>
hello
charliesome has joined #ruby
<elux>
is there a way for `bundler up` to tell me which dependency is causing the conflict..?
lemur has quit [Remote host closed the connection]
<elux>
im upgrading a gem, and somewhere down the line some gem has required a new version of activesupport and its breaking down.. i'm trying to do a bundle up on a specific gem, with --verbose and its not the most helpful
kirun has joined #ruby
<jhass>
elux: put the output and your .lock into a gist
sdouglas has joined #ruby
ekinmur has quit []
qaumvy has quit [Read error: Connection reset by peer]
<elux>
i added gem 'activemodel', '4.0.4' to the Gemfile and that seemed to do it
yfeldblu_ has quit [Ping timeout: 248 seconds]
<elux>
thx dude
lemur has quit [Remote host closed the connection]
donnoc has joined #ruby
decoponio has quit [Quit: Leaving...]
JoshGlzBrk has joined #ruby
<nuby>
hey jhass, thanks for pointing me in the right direction about how ruby "copies" stuff. Its good I found that out now in a simple thing, and not in some big thing where it would've made me insane.
havenwood has quit [Ping timeout: 264 seconds]
<nuby>
its a little strange though. gotta get used to it
lemur has joined #ruby
timonv has joined #ruby
Zenigor has quit [Remote host closed the connection]
Zenigor has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
Rydekull_ is now known as Rydekull
andrewjanssen has quit [Quit: Leaving...]
Rydekull has quit [Changing host]
Rydekull has joined #ruby
dangerousdave has joined #ruby
moted has quit [Quit: moted]
setra has joined #ruby
diegoviola has joined #ruby
benzine21 has joined #ruby
nmokru has joined #ruby
Dreamer3 has joined #ruby
bradhe has quit [Remote host closed the connection]
duncannz has joined #ruby
iceden has joined #ruby
dc_ has quit [Remote host closed the connection]
duncannz has quit [Read error: Connection reset by peer]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
benzine21 has quit [Ping timeout: 240 seconds]
moted has joined #ruby
jheg has quit [Quit: jheg]
benzine21 has joined #ruby
bradhe has joined #ruby
momomomomo has quit [Quit: momomomomo]
timonv has quit [Remote host closed the connection]
goyox86 has joined #ruby
jheg has joined #ruby
momomomomo has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
iceden has quit [Ping timeout: 252 seconds]
benzine21 has quit [Ping timeout: 240 seconds]
wombo has quit [Quit: wombo]
qba73 has quit []
sharpmachine has quit [Remote host closed the connection]
relix has joined #ruby
lotherk has left #ruby [#ruby]
Dreamer3 has quit [Ping timeout: 252 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
djbkd has quit [Remote host closed the connection]
dangerousdave has joined #ruby
agjacome has quit [Quit: leaving]
mattmcclure has joined #ruby
kireevco has joined #ruby
RaCx_ has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
RaCx has quit [Ping timeout: 252 seconds]
RaCx_ is now known as RaCx
Dreamer3 has joined #ruby
stytown has joined #ruby
Dreamer3 has quit [Max SendQ exceeded]
Dreamer3 has joined #ruby
Dreamer3 has quit [Max SendQ exceeded]
gregf has joined #ruby
relix has quit [Ping timeout: 248 seconds]
Dreamer3 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 252 seconds]
msull92 has joined #ruby
zigomir has joined #ruby
inkblots has joined #ruby
nmokru has quit [Quit: nmokru]
nmokru has joined #ruby
Bira_ has quit []
einarj has quit [Remote host closed the connection]
amargherio has quit [Ping timeout: 272 seconds]
danijoo has quit [Read error: Connection reset by peer]
stytown has quit [Quit: stytown]
danijoo has joined #ruby
senayar has joined #ruby
msull92 has quit [Quit: Computer has gone to sleep.]
iceden has joined #ruby
x1337807x has joined #ruby
Hobogrammer has joined #ruby
mrmargolis has joined #ruby
smathieu has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
smathieu has joined #ruby
elux has left #ruby [#ruby]
Zai00 has joined #ruby
elaptics`away is now known as elaptics
shredding has quit [Quit: shredding]
sigurding has joined #ruby
goyox86 has quit [Ping timeout: 248 seconds]
chrishough has joined #ruby
dc_ has joined #ruby
sleepee has joined #ruby
Nekka has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
havenwood has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<Nekka>
Can anyone here help me with pik. I have set it up and have the bins in the list, but it refuses to swap to a different path when I do pik use ruby-... even when using --default
ppinto has quit [Ping timeout: 260 seconds]
rebelshrug has joined #ruby
djbkd has joined #ruby
<Nekka>
If you manage to help me, I'll give you a cookie
nanoyak has quit [Quit: Computer has gone to sleep.]
shredding has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
bmurt has quit []
polyidus has joined #ruby
polyidus has quit [Max SendQ exceeded]
zigomir has quit [Remote host closed the connection]
smathieu has quit [Remote host closed the connection]
zigomir has joined #ruby
smathieu has joined #ruby
smathieu has quit [Read error: Connection reset by peer]
sunya7a_ has quit [Ping timeout: 272 seconds]
smathieu has joined #ruby
jord has joined #ruby
tier has quit []
sunya7a has joined #ruby
<benzrf>
Nekka: enough sites give me cookies already geez
<wallerdev>
wouldnt foo be defined by the time it gets to that loop
earthquake has joined #ruby
treehug88 has quit []
jaimef has quit [Excess Flood]
DaniG2k has joined #ruby
bradhe has joined #ruby
blackmesa has joined #ruby
<havenwood>
vt102: while defined?(foo.nil?); foo = 1 end
mehlah has quit [Quit: Leaving...]
<wallerdev>
loll
<havenwood>
vt102: if it isn't `defined?`, you define it, so then it fails your `nil?` check
davispuh has joined #ruby
<vt102>
havenwood: I'm getting an infinite loop with mine in 1.9.3. I can ^C, up arrow, and run it again, and it exits immediately.
jaimef has joined #ruby
<havenwood>
er, nvm me
<vt102>
Your loops works as expected. I don't understand why mine doesn't.
<havenwood>
vt102: foo(bar).baz? vs foo(bar.baz?)
Zenigor has quit [Remote host closed the connection]
mconnolly has quit [Ping timeout: 272 seconds]
paulfm has quit []
<vt102>
Specifically, defined?(foo) returns nil if not defined, not nil if defined. Thus, the defined?(foo).nil? check. But, why isn't foo defined the second time through the loop?
<wallerdev>
i think everytime it restarts the while loop it will undefine things in that scope
<vt102>
ah, scope, yeah
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
<vt102>
Hmm...if that's it, though, when why can I ^C it and have foo defined?
razum2um1 has quit [Read error: Connection reset by peer]
mattp_ has joined #ruby
NotAnUnicorn has joined #ruby
<havenwood>
vt102: but...: defined?(foo).nil?
razum2um has joined #ruby
<havenwood>
vt102: compare to: defined?(foo.nil?)
<havenwood>
vt102: defined? foo.nil?
mattp_ has quit [Client Quit]
<havenwood>
^ as you'd most likely want to write it
coffeina has joined #ruby
setra has quit [Ping timeout: 240 seconds]
<wallerdev>
why not just if foo
mattp_ has joined #ruby
<havenwood>
what is the #nil? meant for?
<havenwood>
wallerdev: yeah
cmoneylulz has quit [Remote host closed the connection]
<wallerdev>
no reason to use defined? here or a loop lol
<havenwood>
defined? foo
Azure has quit [Quit: Blue Sky Fish]
<vt102>
havenwood: Sure, but I don't understand what's *WRONG* with how I wrote it.
razum2um has quit [Read error: Connection reset by peer]
<havenwood>
vt102: ah, gotcha
advorak has joined #ruby
* havenwood
goes in search of caffeine
razum2um has joined #ruby
mois3x has joined #ruby
<wallerdev>
yeah its a bit confusing haha
<vt102>
Scope sounded correct, but if I ^C the loop and check foo, it's defined.
<vt102>
So why isn't the loop exiting?
<havenwood>
wallerdev: sometimes it's hard to know whether to show how to do it wrong or just say don't do that :P
SBoolean has quit [Remote host closed the connection]
tvw has quit []
saarinen has joined #ruby
<wallerdev>
i think when the while loop starts, foo isnt defined, and defined checks for that, and after the script has completed, even if the while loop didnt run, foo will be defined
<vt102>
Or, maybe it is scope, in which case why is it defined when I ^C? ;-)
tvw has joined #ruby
<wallerdev>
so after you control+c foo will be defined
<vt102>
I don't think so: defined?(foo).nil? ; defined?(foo) ==> true ; nil
sleepee has quit [Quit: Leaving]
<wallerdev>
like if you did while true; sleep 10; foo=1; end
<wallerdev>
then ctrl+c
<wallerdev>
at that point foo is defined
Azure has joined #ruby
jonno11 has joined #ruby
momomomomo has joined #ruby
chrishough has quit [Quit: chrishough]
benzrf|offline is now known as benzrf
wombo has joined #ruby
brasten has quit [Ping timeout: 272 seconds]
}SoMBrA{ has quit [Quit: This computer has gone to sleep]
<NotAnUnicorn>
not sure if'm allowed to ask rails question in ruby channel but, What is the best rails web series / youtube / screencast / tutorial / thing to watch (or read)?
DaniG2k has quit [Quit: leaving]
jimbow has quit [Quit: jimbow]
alec-c4 has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
<vt102>
My guess is: it is scope, the loop is rightly infinite the way I have written it. The reason foo is defined after ^C is just an artefact of it being in irb.
jimbow has joined #ruby
hgl____ has joined #ruby
razum2um has quit [Quit: Leaving.]
<wallerdev>
i think the reason it exists after ctrl+c is because all locals are considered defined after that point
saarinen has quit [Quit: saarinen]
earthquake has quit [Quit: earthquake]
<wallerdev>
and if you have x=y somewhere in your script it creates a local for it as soon as the script is parsed
freerobby has quit [Quit: Leaving.]
<wallerdev>
but i guess defined? doesnt look at locals that are created in the current scope until theyre assigned to
<NotAnUnicorn>
havenwood: well i think i'm decent at least with ruby, i did some simple scripts with reddit api for myself, and made almost all the courses of ruby in codeacademy (not that is that much)
<NotAnUnicorn>
havenwood: i already did railsforzombies but the rest of code shcool stuff are paid and they is not exactly cheap. Also i did check sinatra but didn't find much info about it at the time
<pontiki>
the scripts over at railsbridge are pretty good too, but they're really intended as guides for live sessions
<advorak>
This is probably more an xdotool question, but maybe somebody is familiar: I'm using the 'xdo' gem to send XDo::Keyboard.key "ctrl+p" to a vnc session, but this command is interpreted by the vnc server as "pp" ... any hints?
<havenwood>
or other
bamyyyooo14335 has joined #ruby
<advorak>
it works properly on my main x11 session ..
razum2um has quit [Quit: Leaving.]
msull92 has quit [Ping timeout: 260 seconds]
<NotAnUnicorn>
havenwood: learning
<vt102>
I posted a stackoverflow on that defined? issue if you want to post there.
<wallerdev>
i think ive answered a total of like 2 questions on stackoverflow
<Nilium>
Maybe I should play some more Baldur's Gate.
<wallerdev>
and asked 0 lol
agent_white has quit [Quit: bbl]
cantonic has quit [Ping timeout: 244 seconds]
ndrei has joined #ruby
<havenwood>
vt102: If you want to make something a la Basecamp, Rails is a great headstart. There's a lot of demands for APIs though. Might be worth it to learn more raw Rack plus one or two of its microframeworks, like Sinatra, Hobbit, Cuba, Ramaze or Scorched.
kireevco has left #ruby [#ruby]
<havenwood>
vt102: Take a look a Grape for a grab bag of stuff you might want.
<vt102>
havenwood: that was NotAnUnicorn
LadyRainicorn has quit [Quit: Bye]
<havenwood>
vt102: so sorry >.>
<havenwood>
i'm in a haze today
<vt102>
No worries!
<havenwood>
NotAnUnicorn: ^
<havenwood>
vt102: i was just hitting <tab> :O
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
<pontiki>
rails-api is a pretty good subset if you need lots of models and persistence
<havenwood>
NotAnUnicorn: Be a unicorn and be one of the first Lotus devs, done.
udoprog has quit [Ping timeout: 245 seconds]
cmoneylulz has joined #ruby
nickenchuggets has quit [Ping timeout: 240 seconds]
<pontiki>
it needs some smoothing out
bluenemo has joined #ruby
<havenwood>
pontiki: seems pretty elegant, but complicated to learn to piece together
<pontiki>
it could be fun to devote some time to it
wombo has quit [Quit: wombo]
udoprog has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
razum2um has joined #ruby
<havenwood>
pontiki: but hardly daunting compared to rails
ndrei has quit [Ping timeout: 252 seconds]
<pontiki>
i never found rails daunting
* havenwood
sulks
<pontiki>
but rails was hardly my first framework
coffeina has quit [Quit: Wychodzi]
<havenwood>
pontiki: aye, it was my first
<pontiki>
and having put together web apps without any frameworks at all, it seems rather nice
ndrei has joined #ruby
<havenwood>
roger that
<havenwood>
pontiki: also Rails now is a lot larger bit to bite off than Rails of days gone by
<pontiki>
this is so
yakko has quit [Read error: Connection reset by peer]
<pontiki>
my first run at it was with DHH's first editiion, an 1.x rails
<shevy>
the good old days
toretore has joined #ruby
<shevy>
aye
<shevy>
when it still used to be cool
<havenwood>
pontiki: i came in as 3.0 was being released
<vt102>
BTW, is there a decent way to search for code operator? How does one search for, say, ||=? Google doesn't seem to pay attention to that.
<pontiki>
there is a web site for searching symbols....
<pontiki>
otherwise for ruby, go to the online pickaxe book
<vt102>
It's a general problem. There used to be a site you could search only in files with a certain extension, like just in file ending in .c. I found it very useflu, but it's gone AFAIK
<pontiki>
a web site?
senayar has quit [Remote host closed the connection]
yakko has joined #ruby
fflush has quit [Quit: fflush]
codephobic has joined #ruby
<codephobic>
hi
TorpedoSkyline has joined #ruby
<wallerdev>
hi
m8 has quit [Quit: Sto andando via]
<codephobic>
anybody tried using Compass (sass) to watch a folder shared over samba, on ubuntu 14.04?
ndrei_ has joined #ruby
<codephobic>
I'm having a permissions problem with a ruby file (sass/util.rb), giving me a "operation not permitted" EPERM error, when I try "Compass watch htdocs"
RaCx has quit [Quit: Computer has gone to sleep.]
adac has quit [Ping timeout: 240 seconds]
<shevy>
vt102 you mean krugle?
alexju has quit [Remote host closed the connection]
timonv has joined #ruby
yubrew has quit [Remote host closed the connection]
senayar has joined #ruby
chrishough has joined #ruby
s3ri0us has joined #ruby
<havenwood>
codephobic: win?
buub has quit [Ping timeout: 248 seconds]
jheg has quit [Quit: jheg]
<codephobic>
havenwood, nope ubuntu, both for the samba server and the user
<havenwood>
hrmmm
dangerousdave has quit [Ping timeout: 248 seconds]
<codephobic>
I just use samba so that my win machine has access to the folder, for when I need to use photoshop/illustrator
<codephobic>
I've got a convoluted workflow, which works perfectly fine for all my other work, just not for Compass.
<havenwood>
codephobic: RVM?
<codephobic>
I had issues with the whole install too
<codephobic>
followed a tutorial on google, but the sudo gem install compass didn't work, had to drop sudo and just install with user permissions.
codeurge has quit [Quit: Sleep.]
zenspider has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
<codephobic>
very probably, but my googling leads me to believe that others too simply use gem install compass rather than sudo it.
saarinen has joined #ruby
<codephobic>
so ... not 100% sure.
<havenwood>
codephobic: vm fix-permissions
<havenwood>
rvm*
jhass is now known as jhass|off
<codephobic>
ah
<codephobic>
I'll give that a try now :)
<havenwood>
codephobic: might try #rvm if that ^ doesn't work
<codephobic>
ah, k
<codephobic>
thanks :)
<havenwood>
np
RaCx has joined #ruby
<havenwood>
codephobic: but do drop sude, user-install is recommended
<havenwood>
sudo*
<havenwood>
gosh i'm error prone today :(
BadQuanta has quit [Ping timeout: 240 seconds]
<codephobic>
no worries mate, my eyes auto-correct ;)
<havenwood>
:)
<codephobic>
think I'm gonna have to try #
<codephobic>
#rvm
saarinen has quit [Client Quit]
<codephobic>
the fix-permissions didn't resolve the issue.
<codephobic>
thanks for the help though, hadn't heard of the fix-permissions feature before
<codephobic>
:)
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
axl_ has joined #ruby
zenspider has joined #ruby
bluenemo has quit [Quit: Verlassend]
cmoneylulz has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby
NotAnUnicorn has quit [Quit: Page closed]
bradleyprice has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 255 seconds]
tjr9898 has quit [Remote host closed the connection]
wildroman2 has quit [Ping timeout: 272 seconds]
WillAmes has quit [Ping timeout: 264 seconds]
saarinen has quit [Client Quit]
tjr9898 has joined #ruby
saarinen has joined #ruby
moritzs has joined #ruby
sailias has quit [Quit: Leaving.]
jonahR has joined #ruby
edgarjs is now known as edgarjs_afk
moritzs has quit [Max SendQ exceeded]
moritzs has joined #ruby
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
codeurge has joined #ruby
smathieu has quit [Remote host closed the connection]
saarinen has quit [Quit: saarinen]
inkblots has quit [Remote host closed the connection]
nmokru has quit [Quit: nmokru]
dblessing has quit [Quit: dblessing]
cocotton has quit [Ping timeout: 260 seconds]
Dreamer3 has joined #ruby
maestrojed has joined #ruby
nateberkopec has quit [Quit: Leaving...]
edgarjs_afk is now known as edgarjs
stytown has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
mrmargolis has quit [Remote host closed the connection]
mjsmith2 has quit [Remote host closed the connection]
iswell has joined #ruby
smathieu has joined #ruby
ekinmur has quit []
nmokru has joined #ruby
Guest3702 has quit [Ping timeout: 245 seconds]
razum2um has quit [Quit: Leaving.]
sigurding has quit [Quit: sigurding]
stytown has quit [Quit: stytown]
RealMarc has joined #ruby
lemur has quit [Remote host closed the connection]
yubrew has joined #ruby
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
riotjone_ has joined #ruby
havenwood has quit [Remote host closed the connection]
zorak has joined #ruby
axl_ has quit [Quit: axl_]
yubrew has quit [Ping timeout: 252 seconds]
mijicd has quit [Remote host closed the connection]
eka has quit [Read error: Connection reset by peer]
riotjones has quit [Ping timeout: 244 seconds]
volk_ has quit [Quit: volk_]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has quit [Remote host closed the connection]
Shidash has joined #ruby
razum2um has joined #ruby
Karpuragauram has quit [Ping timeout: 244 seconds]
Zebroid has quit [Remote host closed the connection]
tjr9898 has joined #ruby
bradleyprice has joined #ruby
eka has joined #ruby
tjr9898 has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
wildroman2 has joined #ruby
nickenchuggets has joined #ruby
donnoc has quit [Quit: WeeChat 0.4.3]
jaimef has quit [Excess Flood]
ndrei has quit [Ping timeout: 255 seconds]
ndrei_ has quit [Ping timeout: 260 seconds]
edgarjs is now known as edgarjs_afk
jamto11_ has joined #ruby
jaimef has joined #ruby
nanoyak has joined #ruby
spider-mario has quit [Remote host closed the connection]
_main_ has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
codephobic has quit [Ping timeout: 244 seconds]
kirun has quit [Quit: Client exiting]
__main__ has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Ping timeout: 244 seconds]
Zai00 has quit [Quit: Zai00]
danijoo has quit [Read error: Connection reset by peer]
hobodave has quit [Ping timeout: 252 seconds]
_main_ is now known as __main__
danijoo has joined #ruby
Dreamer3 has joined #ruby
GriffinHeart has joined #ruby
jord has quit [Quit: Connection closed for inactivity]
jaimef has quit [Excess Flood]
CaptainJet has quit [Ping timeout: 244 seconds]
CaptainJet has joined #ruby
meeko has quit []
udoprog has quit [Ping timeout: 272 seconds]
GriffinHeart has quit [Ping timeout: 252 seconds]
jaimef has joined #ruby
earthquake has joined #ruby
dc_ has quit [Remote host closed the connection]
Pulpie has left #ruby [#ruby]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
dik_dak has quit [Quit: Leaving]
Karpuragauram has joined #ruby
robertodecurnex has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
Kricir has quit [Ping timeout: 255 seconds]
msull92 has joined #ruby
StephenA1 has joined #ruby
bstrie has joined #ruby
momomomomo has quit [Quit: momomomomo]
gattuso has quit [Read error: Connection reset by peer]
endash has quit [Quit: endash]
Shidash1 has joined #ruby
freerobby has joined #ruby
bradhe has quit [Remote host closed the connection]
SilverKey has quit [Quit: Halted.]
theharshest has joined #ruby
Shidash has quit [Ping timeout: 260 seconds]
nateberkopec has quit [Quit: Leaving...]
sdouglas has quit [Remote host closed the connection]
Zebroid has joined #ruby
ndrei has joined #ruby
ndrei_ has joined #ruby
sdouglas has joined #ruby
Shidash has joined #ruby
vifino has quit [Quit: Me sais Laptop sleepy.]
SCHAAP137 has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
Shidash1 has quit [Ping timeout: 244 seconds]
sdouglas_ has joined #ruby
Soda has joined #ruby
j_mcnally has quit [Ping timeout: 260 seconds]
sdouglas has quit [Ping timeout: 255 seconds]
DrShoggoth has quit [Ping timeout: 264 seconds]
EasyCo has quit [Quit: Connection closed for inactivity]
Wolland has quit []
andrewjanssen has joined #ruby
aniM has joined #ruby
kevind has quit [Quit: kevind]
earthquake has quit [Quit: earthquake]
kaiserpathos has joined #ruby
wildroman2 has quit [Remote host closed the connection]
St_Marx has joined #ruby
earthquake has joined #ruby
<theharshest>
I'm not able to get rid of "Could not load 'active_record/connection_adapters/_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile."
Spami has quit [Read error: Connection reset by peer]
kaiserpathos has quit [Client Quit]
ClockCat has joined #ruby
Spami has joined #ruby
<ClockCat>
!balance
ClockCat has left #ruby ["Leaving"]
j_mcnally has joined #ruby
maximski has quit []
jamto11_ has quit [Remote host closed the connection]
yubrew has joined #ruby
smathieu has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
smathieu has joined #ruby
Shidash1 has joined #ruby
hgl____ has joined #ruby
iswell has quit [Remote host closed the connection]
stytown has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
renier_ is now known as renier
enebo has quit [Quit: enebo]
Shidash has quit [Ping timeout: 248 seconds]
britneywright has joined #ruby
hgl____ has quit [Ping timeout: 244 seconds]
DrShoggoth has joined #ruby
iswell has joined #ruby
klaut has quit [Remote host closed the connection]
stytown has quit [Client Quit]
tvw has quit []
TorpedoS_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
TorpedoSkyline has quit [Read error: Connection reset by peer]
LiohAu has quit [Ping timeout: 272 seconds]
aniM has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
<pontiki>
theharshest: sounds like something for #rubyonrails
jord has joined #ruby
timonv has joined #ruby
msull92_ has joined #ruby
msull92_ has quit [Client Quit]
nfk has quit [Quit: yawn]
earthquake has quit [Quit: earthquake]
lemur has joined #ruby
jottr_ has quit [Ping timeout: 248 seconds]
msull92_ has joined #ruby
earthquake has joined #ruby
LiohAu has joined #ruby
mrmargolis has joined #ruby
iswell has quit [Ping timeout: 244 seconds]
mrmargolis has quit [Read error: Connection reset by peer]
mrmargolis has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
Darkchaos has quit [Ping timeout: 248 seconds]
mrmargol_ has joined #ruby
Eyes has quit [Ping timeout: 252 seconds]
lemur has quit [Ping timeout: 248 seconds]
cmoneylulz has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
charliesome has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
opus has joined #ruby
mrmargo__ has joined #ruby
mrmargolis has quit [Ping timeout: 248 seconds]
phoo1234567 has quit [Remote host closed the connection]
msull92_ has quit [Quit: leaving]
charliesome has joined #ruby
msull92_ has joined #ruby
ephemerian has quit [Ping timeout: 260 seconds]
smathieu has quit [Remote host closed the connection]
bamyyyooo14335 has quit [Quit: bamyyyooo14335]
sdouglas_ has quit [Remote host closed the connection]
smathieu has joined #ruby
bamyyyooo14335 has joined #ruby
mrmargol_ has quit [Ping timeout: 272 seconds]
sdouglas has joined #ruby
CaptainJet has quit []
Takle has quit [Remote host closed the connection]
jimbow has joined #ruby
<opus>
If someone could provide some simple ruby help for me related to modules and scoping =)
<opus>
Basically there are two Polygon classes, one is placed under a Module the other is not. On runtime it throws a superclass mismatch error. Taking the second class and putting it under a module as well resolves the issue. I would love to be explained why this happens though.
<opus>
love if it was explained*
<opus>
As I understood it they shouldn't clash because one was placed under the module...
StephenA1 has quit [Quit: StephenA1]
finisherr has quit [Quit: finisherr]
chrishough has quit [Ping timeout: 272 seconds]
<bricker`work>
opus: they shouldn't clash, you may be missing something, where else are you referencing the Polygon class?
sdouglas has quit [Ping timeout: 264 seconds]
<opus>
That gets more into the realm of rails. I reference the Polygon class in two other modules (Origin / Destination) as a has_one and belongs_to relationship.
<opus>
also in the seeds.rb file
<opus>
Those are the only references and when I call them it's always Polygon, or GeoKit::Polygon.
<opus>
bricker`work: also, thanks for the help.
<opus>
Also, it only clashes in production. When loaded in dev mode there are no issues.
Takle has joined #ruby
Zenigor has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
<bricker`work>
opus: Gist your Gemfile please
ffranz has quit [Quit: Leaving]
edgarjs_afk is now known as edgarjs
duallain has quit [Read error: Connection reset by peer]
<bricker`work>
My thought is that maybe you have a gem which already defines the Polygon class