michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
parduse has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
sailias has joined #ruby
b00stfr3ak has quit [Ping timeout: 276 seconds]
* Overboost
is away: bbl
nwertman has joined #ruby
phutchins has joined #ruby
funktor has joined #ruby
gregf_ has joined #ruby
b00stfr3ak has joined #ruby
tjsousa has joined #ruby
nwertman has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 255 seconds]
<elik>
Hey, I am trying to install a ruby on rails application (redmine), which comes packaged on debian. The installer sets up the database, but not the website
ikaros has quit [Quit: Ex-Chat]
rodri_gore has quit [Quit: WeeChat 0.4.3]
<elik>
I follow instruciton in the documentation to install the proper apache conf file, which makes use of fcgid, but the application serves empty pages
<weaksauce>
anyone have tips or links on coding ruby with existing frameworks that don't document everything out 100%?
pu22l3r has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<elik>
I know the application works as another method using webricks works. Looking at the logs, I noticed I backtrace: pastebin.com/jA1ayz8c. I tried to put debugging code in dispatcher.fcgi, but I'm a bit blind (don't know much about ruby nor fcgi)
<elik>
any tips?
nwertman has joined #ruby
nanoyak has joined #ruby
<weaksauce>
elik looks like the db is not setup correctly in database.yml
<weaksauce>
check that
parduse has joined #ruby
parduse has quit [Changing host]
parduse has joined #ruby
beef-wellington has joined #ruby
razrunelord has joined #ruby
JBreit has left #ruby ["Leaving"]
baweaver has joined #ruby
nwertman has quit [Quit: leaving]
zzzbra has joined #ruby
nwertman has joined #ruby
mrj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjsousa has quit [Quit: Computer has gone to sleep.]
codeurge has quit [Ping timeout: 252 seconds]
nwertman has quit [Client Quit]
nwertman has joined #ruby
nwertman has quit [Client Quit]
razrunelord has quit [Ping timeout: 264 seconds]
lw has quit [Quit: s]
baweaver has quit [Ping timeout: 240 seconds]
jackjackdrpr has joined #ruby
Musashi1 has joined #ruby
lw has joined #ruby
funktor has quit [Remote host closed the connection]
psyko666 has joined #ruby
Overboost has quit [Ping timeout: 252 seconds]
<elik>
weaksauce: right, I hadn't notice right after the get, thx
mrmargolis has joined #ruby
<elik>
weaksauce: not sure how it's supposed to be though :S
pu22l3r has quit [Remote host closed the connection]
dr0ff has joined #ruby
meatherly has joined #ruby
<RubyPanther>
elik: if your documentation says to use fcgi, make sure it isn't an 8 year old doc....
zz_karupa is now known as karupa
brunops has joined #ruby
geggam has quit [Ping timeout: 252 seconds]
northfurr has joined #ruby
<elik>
RubyPanther: there seems to be a newer method with passenger, which I would use if I could, but I'm stuck on a debian stable machine, with backports, and because of dependency issues, I can't install libapach2-mod-passenger
pietr0 has quit [Quit: pietr0]
Overboost has joined #ruby
<elik>
RubyPanther: so I'm kinda stuck with fcgid :S weaksauce tips seems to be interesting though
metamaterial has joined #ruby
papercode has joined #ruby
afex has joined #ruby
mansi has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
sbob99 has joined #ruby
jsaak_ has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
sbob99 has left #ruby [#ruby]
shanlar has quit [Ping timeout: 252 seconds]
<terrellt>
elik: Better to ask in #rubyonrails , and post the readme you're following.
danijoo has quit [Read error: Connection reset by peer]
* combusean
writes 16 lines of code and about 15 bugs
* combusean
sighs
<elik>
terrellt: ah, thx, I tried #rails but had nothing, will give it a try, but I think I have found the issue
danijoo has joined #ruby
fgo has joined #ruby
mansi has quit [Ping timeout: 255 seconds]
b00stfr3ak has quit [Ping timeout: 255 seconds]
Zenigor has quit [Remote host closed the connection]
edgar_wang_cn has joined #ruby
<elik>
database.yml specifies database information for production db, but not dev. Webricks instructions I followed started in prod, and right now I only see output in development log. Just gotta find how to switch that
s2013_ has joined #ruby
s2013 has quit [Disconnected by services]
s2013_ is now known as s2013
Overboost has quit [Ping timeout: 252 seconds]
<gizmore>
I want to self.send(:hello_world, array_of_args) make it call def hello_world(array_item1, array_item2)
oo_ has joined #ruby
<gizmore>
like send_argv
<centrx>
gizmore, Use the splat operator *
endash has quit [Quit: endash]
<gizmore>
centrx: i have plugin classes that can do: has_usage :func_name => '<username> [<boolean>]' .-.. and it shall just def func_name(username, boolean) and get called accordingly
funktor has quit [Remote host closed the connection]
omosoj has joined #ruby
<Jaden>
yo what ide is best for ruby
<Jaden>
what should i use for ruby
<gizmore>
Jaden: My coworker is happy with "RubyMine"
<Jaden>
what do you use?
<gizmore>
For me it failed on breakpoints in threaded tasks
<bttf>
gizmore: permissions are fine ...
<gizmore>
jackjackdrpr: i use eclipse aptana ... it sucks very much and i do breakpoints with byebug in console -.-
<gizmore>
oops* @ Jaden
<bttf>
gizmore: someone in #bash has enlightened me ... 'which' is a third-party app which may or may not report correctly according to your path
<gizmore>
bttf: your path looked fine to me though
<gizmore>
so i thought it´s maybe the perms :)
yubrew has quit [Ping timeout: 255 seconds]
soheil_ has quit [Remote host closed the connection]
<gizmore>
Jaden: you could give emacs or vim a try
<Jaden>
what emacs?
sdwrage has quit [Quit: This computer has gone to sleep]
<bttf>
thanks gizmore ill keep you aprised
<gizmore>
Jaden: I´d like to try emacs with ruby stuff, it looked ok on screenshots, and is probably nice ... emacs is a linux operatin.... emacs is a linux text editor :)
Guest15352 has quit [Remote host closed the connection]
Guest41167 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
sski has quit [Ping timeout: 265 seconds]
<gizmore>
Jaden: for rubyonrails, RubyMine should be great though ;)
<Jaden>
yo dawg i use windows xp. So no emacs in her
robustus has quit [Ping timeout: 252 seconds]
<gizmore>
it cost a few low $30 maybe... there is a trial
<Jaden>
aight dawg. emacs on windows tight. how much cost?
metamaterial has quit [Ping timeout: 272 seconds]
<gizmore>
emacs is free software i think :)
sailias has quit [Read error: Connection reset by peer]
<Jaden>
free software dawg~~~``1
<gizmore>
never got used to vim or emacs here, but i should give emacs a try (it looks not too different from other software)
phutchins has quit [Ping timeout: 250 seconds]
afex has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
<Jaden>
i need free stuff dawg. feel me
<popl>
I'd rather not.
Hanmac has joined #ruby
<Jaden>
you no feelin me?
<Jaden>
aight i go do emacs.
Megtastique has joined #ruby
<Jaden>
Yo i dunno what is emacs. Help me out dawg.
instantaphex has quit [Ping timeout: 255 seconds]
<popl>
I just posted a URL that will lead you to Emacs.
ghr has joined #ruby
<Jaden>
that the verxsion dawg! I all no i using windows xp.
afex has joined #ruby
SCommette has quit [Quit: SCommette]
<bttf>
gizmore: 'hash -r' fixed it
sevenseacat has joined #ruby
<Jaden>
what emacs? help me out
<popl>
Jaden: Are you trolling or what?
<Jaden>
say waht
<Jaden>
I tryin to do ruby an need tools
zz_jrhorn424 is now known as jrhorn424
Jaden has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<popl>
heh
fgo has quit [Remote host closed the connection]
codeFiend has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
razrunelord has joined #ruby
Hanmac1 has joined #ruby
<combusean>
I'm looking through a gem that takes a lot of memory and I see a lot of "s for non interpolated strings and a lot of variables that are created once and never used again. Would it improve performance if things were condensed?
yfeldblum has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 276 seconds]
mansi has joined #ruby
razrunelord has quit [Ping timeout: 252 seconds]
nwertman has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
maroloccio has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
zcreative has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
djbkd has quit [Remote host closed the connection]
agrinb has joined #ruby
vallieres_ has joined #ruby
freerobby has joined #ruby
SCommette has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
mlapp30m has joined #ruby
mlapp30m has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
binaryhat has joined #ruby
<johnny5>
i dunno maybe the Correct people know
monkegjinni has quit [Remote host closed the connection]
afex has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 255 seconds]
SilkFox has joined #ruby
monkegjinni has joined #ruby
havenwood has quit [Remote host closed the connection]
MrWharfsnort has joined #ruby
sdwrage has joined #ruby
ddv has joined #ruby
geggam has joined #ruby
Overboost has quit [Ping timeout: 240 seconds]
HashNuke has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
pwh has quit []
razrunelord has joined #ruby
binaryhat has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
freezey has joined #ruby
pontiki has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
sepp2k has quit [Quit: Leaving.]
<pontiki>
hi
razrunelord has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
hamakn has quit [Remote host closed the connection]
<havenwood>
good evening
mansi has joined #ruby
hamakn has joined #ruby
clov3r has joined #ruby
bthesorceror has quit [Remote host closed the connection]
<bin_bash>
ERROR: While executing gem ... (Errno::EACCES)
<bin_bash>
Fetching: i18n-0.6.9.gem (100%)
<johnny5>
google.com it is
<johnny5>
common issue
<bin_bash>
well it works as root
<bin_bash>
is it bad to gem install as root
<johnny5>
maybe look into why your environment is misconfigured
<bin_bash>
i just installed ruby
<bin_bash>
just now
eynj1 has joined #ruby
<johnny5>
okay cool
<johnny5>
it is not a requirement to install rubygems as root
bearlulz has quit [Ping timeout: 252 seconds]
<bin_bash>
ok
codeurge has joined #ruby
<bin_bash>
is it bad practice to gem install as root?
simono has joined #ruby
<johnny5>
no idea
<johnny5>
thats for you to decide
sdwrage has quit [Quit: This computer has gone to sleep]
<bin_bash>
...
<centrx>
That's what I do
Shidash has quit [Ping timeout: 255 seconds]
hamakn has quit [Ping timeout: 264 seconds]
Martxel has quit [Ping timeout: 240 seconds]
bthesorceror has quit [Ping timeout: 258 seconds]
clov3r has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
lw has joined #ruby
clov3r has joined #ruby
codeFiend has quit [Quit: codeFiend]
eynj has joined #ruby
lw has quit [Max SendQ exceeded]
clov3r has quit [Read error: Connection reset by peer]
lw has joined #ruby
tyll has joined #ruby
lw has quit [Max SendQ exceeded]
subbyyy_ has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
<johnny5>
maybe try toor i hear that account sometimes works
lw has joined #ruby
<pontiki>
r u srs?
Mapley is now known as Maple__
<johnny5>
yeah, FreeBSD use to have an account called 'toor'
<johnny5>
maybe still does
<pontiki>
sounds like another huge security hole
<johnny5>
from 4.4-RELEASE days i believe
Hanmac1 has quit [Ping timeout: 252 seconds]
<shevy>
bin_bash there is no gem install "as root" - there are merely assumptions done about the default targets
tyll_ has quit [Ping timeout: 245 seconds]
<bin_bash>
shevy: what do you mean
<shevy>
bin_bash gem will install into ruby's site dir at lib/ruby/gems/2.1.0/cache
<pontiki>
yggdrasil
<shevy>
respectively the one below cache/
danshultz has quit [Remote host closed the connection]
<shevy>
bin_bash and there are only two possibilities there - either you have access to that directory path or you don't
<pontiki>
funkykitty?
toastynerd has quit [Remote host closed the connection]
mrj has joined #ruby
moted has quit [Quit: moted]
danshultz has joined #ruby
mrj has quit [Max SendQ exceeded]
<shevy>
bin_bash so the main question is where you want your .gems to reside
jamto11 has joined #ruby
<shevy>
bin_bash, for instance, my current ruby ones are kept at /Programs/Ruby/Current/lib/ruby/gems/2.1.0/
northfurr has quit [Quit: northfurr]
<shevy>
FHS systems will have them reside somewhere at /usr/lib/* somewhere, or I think debian has /var/lib/* something
francisfish has joined #ruby
<shevy>
you can get the path via "gem env"
<johnny5>
thanks shevy useful info
<johnny5>
i didnt know that about debian
krz has joined #ruby
<pontiki>
more to the point, do you want your gems to be installed system-wide, or for your own development? (sometimes, the answer will be "both" or "yes")
mrj has joined #ruby
akgerber has joined #ruby
<shevy>
bin_bash say yes to pontiki
yubrew has joined #ruby
nfk has quit [Quit: yawn]
<pontiki>
but there is still a difference
<pontiki>
system-wide, you'll need to install them as root
<johnny5>
system-wide is generally not a good idea
<johnny5>
if you can localize an install, the number of gems in the "set" is considerably smaller
<johnny5>
you can easily rm -rf it too
<pontiki>
well, it is if you're installing programs intended to be run system-wide
<bin_bash>
pontiki: hm ok
<johnny5>
sure
<bin_bash>
I'm going to be installing spreecommerce
northfurr has joined #ruby
<pontiki>
however, if you're doing development, you generally want to have user-writeable installations for that
<pontiki>
which means you'll be developing
<pontiki>
when you reach a point of deploying your app that uses spreecommerce, you'll probably want to install things at the system level for that app server/cluster
danshultz has quit [Ping timeout: 264 seconds]
moted has joined #ruby
moted has left #ruby [#ruby]
BWStearns has quit [Ping timeout: 252 seconds]
krazh has joined #ruby
francisfish has quit [Ping timeout: 255 seconds]
BSaboia has joined #ruby
yubrew has quit [Ping timeout: 258 seconds]
<pontiki>
bin_bash: the thing to do, for the user you're going to be doing development with (assuming "anon7"), is make a $HOME/.gemrc file with the following line: "install: --user-install" in it
<johnny5>
yeah, but a lot of people use bundler.
chrisseaton has quit []
<bin_bash>
pontiki: yeah i just installed rvm actually
<bin_bash>
so i'm looking into that
fgo has joined #ruby
<bin_bash>
thanks :)
<johnny5>
so you can also say, bundle install --path=foo/bar
<johnny5>
that'd install the gems into foo/bar
<pontiki>
i'm giving you something rote, but you can study it by reading the documentation at http://guides.rubygems.org
mlapp30m has joined #ruby
<johnny5>
rubygems and bundler appear to be merging in the short term though
<pontiki>
ok, rvm handles local/user installation of gems, as it's managing the various rubies you install locally as well
<pontiki>
can't come fast enough for me, johnny5
<johnny5>
yeah
<johnny5>
indeed
<johnny5>
but looks good so far
rezzack has quit [Ping timeout: 258 seconds]
psyko666 has quit [Ping timeout: 276 seconds]
<pontiki>
but i'd still prefer they take enough time to make sure everything works
<johnny5>
yup
<johnny5>
RUBYGEMS_GEMDEPS was so broken it was scary
<pontiki>
i ain't got time to be testing no package manager
s00pcan has quit [Read error: Connection reset by peer]
pwh has joined #ruby
<pontiki>
not this month anyway ~o~
<johnny5>
yeah
<johnny5>
it seems to be mostly fixed on master
<johnny5>
the RUBYGEMS_GEMDEPS stuff
<pontiki>
cool
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
pontik
<shevy>
i mean
<shevy>
pontiki
<shevy>
you work too much
rostam has quit [Remote host closed the connection]
clov3r has joined #ruby
nowthatsamatt has joined #ruby
nowthatsamatt has quit [Client Quit]
brunops has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
rostam has joined #ruby
nateberkopec has quit [Quit: Leaving...]
sdwrage has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
fgo has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
psyko666 has joined #ruby
clov3r has quit [Remote host closed the connection]
mrmargolis has quit [Remote host closed the connection]
clov3r has joined #ruby
krazh has quit [Quit: krazh]
clov3r has quit [Read error: Connection reset by peer]
sdwrage has quit [Client Quit]
krazh has joined #ruby
mehlah has quit [Quit: Leaving...]
postmodern has joined #ruby
krazh has quit [Remote host closed the connection]
sdwrage has joined #ruby
brunops has joined #ruby
binaryhat has joined #ruby
krazh has joined #ruby
jimbow has joined #ruby
<jimbow>
is rake the same as rvm?
<sevenseacat>
no
sunya7a has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
jimbow: You are apparently programming!
Bumptious has joined #ruby
<jimbow>
havenwood: i'm trying to learn to program i've yet to make anything useful outside irb
mjsmith2 has quit [Remote host closed the connection]
<shevy>
jimbow nono
alexju has joined #ruby
<shevy>
if your stuff works in irb
<havenwood>
jimbow: You're using RVM as a version manager, with which you installed Ruby 2.0.0-p451 (a fairly recent version of Ruby). Running the default rake task has tried to require 'hello.rb', which is not in your $LOAD_PATH.
<shevy>
it works (almost always) outside irb, in a .rb file, as well
<sevenseacat>
looks like your default rake task is to run a spec
<shevy>
popl trolls are weaker than cats so they have about 3
wookiehangover has quit [Ping timeout: 240 seconds]
<combusean>
havenwood, we do static analysis in ruby in our office and that's a process that's hugely memory intensive. as a general rule, I want to know how to write better ruby.
sambao21 has joined #ruby
<popl>
shevy: about 3?
<popl>
shevy: not quite 3 but more than 2?
<shevy>
popl yeah, the old trolls have less
<shevy>
the young ones are still going strong
<havenwood>
combusean: mm, hard question
maestrojed has joined #ruby
<combusean>
i get interview questions about scalability of code a lot and I can never answer them a whole lot from a fundamental perspective
<pontiki>
if they're local variables, they're probably on the stack instead of the heap, so they're reaped immediately
<pontiki>
but i'm not all that sure how ruby does it
fusiosio has quit [Remote host closed the connection]
binaryhat has quit [Quit: Leaving]
razrunelord has quit [Ping timeout: 258 seconds]
fgo has joined #ruby
sambao21 has joined #ruby
Soliah has joined #ruby
<banister>
combusean only if they're not captured by a closure
codeFiend has joined #ruby
<banister>
if they're captured by a closure they get copied onto the heap (along with the entire stack frame iirc)
<pontiki>
oh, right, good point
dsdeiz_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
jrhorn424 is now known as zz_jrhorn424
dsdeiz has quit [Ping timeout: 252 seconds]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki>
i will no longer speak of ruby internals, as i know nothing of them
WishBoy- has joined #ruby
* pontiki
zips her mouth
yubrew has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<shevy>
overworked and mute
<shevy>
that is the fate of pontiki
<pontiki>
mmphmmm
brunops has joined #ruby
<pontiki>
but i leave for vacation for week tomorrow!
<pontiki>
OUCH
mr_snowf1ake has quit [Quit: Leaving]
snath has quit [Ping timeout: 245 seconds]
WishBoy has quit [Ping timeout: 255 seconds]
alpha123 has quit [Ping timeout: 252 seconds]
krazh has quit [Remote host closed the connection]
mr_snowf1ake has joined #ruby
alpha123 has joined #ruby
snath has joined #ruby
yubrew has quit [Ping timeout: 250 seconds]
<Nilium>
I know things about ruby internals but I keep my mouth shut about them because they're traumatic.
<Nilium>
Well, MRI internals, anyway.
krazh has joined #ruby
* sevenseacat
knows nothing
braincrash has quit [Quit: bye bye]
_maes_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
tengopreguntas has left #ruby [#ruby]
maestrojed has quit [Quit: Computer has gone to sleep.]
sdouglas has joined #ruby
Hanmac has quit [Ping timeout: 258 seconds]
fgo has quit [Remote host closed the connection]
brunops has quit [Ping timeout: 258 seconds]
bthesorceror has joined #ruby
braincrash has joined #ruby
phinfonet has quit []
n_blownapart has joined #ruby
codeurge has joined #ruby
n_blownapart has quit [Client Quit]
LaPetiteFromage_ has quit [Quit: LaPetiteFromage_]
n_blownapart has joined #ruby
Lewix has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jamto11_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
maestrojed has joined #ruby
Hanmac has joined #ruby
anaeem1 has quit [Remote host closed the connection]
jamto11_ has quit [Ping timeout: 252 seconds]
mr_snowf1ake has quit [Quit: Leaving]
maestrojed has quit [Quit: Computer has gone to sleep.]
bin_bash has quit [Remote host closed the connection]
fgo has joined #ruby
bin_bash has joined #ruby
mr_snowf1ake has joined #ruby
<Arkaniad>
n_blownapart, why did I get a ruby file from you?
<n_blownapart>
Arkaniad: sorry not sure I accidently dragged and dropped from a sublime file.
<n_blownapart>
it landed on your name in the member column on the right side of limechat.
<n_blownapart>
Arkaniad: ^
instantaphex has joined #ruby
sambao21 has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<jumblemuddle>
How can I remove unused dependencies? I've uninstalled a gem, but it left behind quite a few gems.
<centrx>
I don't think there is any kind of autoclean/autoremove
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<centrx>
You can go through the gem list and use gem remove, or write a little script to do it
<jumblemuddle>
So I have to remove every one manually? How can I get a list of dependencies for a gem, so I can remove them?
kate_r has joined #ruby
<centrx>
I don't know, that's what I've always done, maybe I don't have that many gems installed
<centrx>
it's very easy to write a script to do it
ner0x has joined #ruby
<sevenseacat>
i've never bothered about cleaning up unused gems
<havenwood>
jumblemuddle: If the gem was `pry` for example: gem dependency pry --pipe
<centrx>
maybe not even a script, just something with cut and xargs
<centrx>
maybe sed instead of cut
<centrx>
or ruby of course
<n_blownapart>
I have a simple recursion problem http://pastie.org/9147578 wondering on line 2: if the array length is 2 or less, that is two elements. so why couldn't you use b = rocks_arr[1] instead of rocks_arr[-1] if there are only two elements?
<centrx>
Have you tried ruby yet?
<centrx>
n_blownapart, It looks like someone was goofing off
<centrx>
n_blownapart, Or maybe it is a remnant of other code that used to make sense there
<n_blownapart>
centrx: whaddya mean
jaffery has quit [Quit: WeeChat 0.4.1]
instantaphex has quit [Ping timeout: 258 seconds]
RaptorJesus has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
St_Marx has quit [Write error: Broken pipe]
end_guy has quit [Write error: Broken pipe]
atmosx has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
<centrx>
b = rocks_arr[1] should work...
<n_blownapart>
[1] makes line 13 return an error: comparison of Fixnum with nil failed. centrx
ghr has joined #ruby
<centrx>
n_blownapart, Then they must return different values, so what are the different values?
porco has joined #ruby
<centrx>
n_blownapart, What /is/ rocks_array anyway
<jumblemuddle>
How can I get a list of all gems, that aren't 'default'?
<centrx>
n_blownapart, Well that explains it
<centrx>
n_blownapart, rocks_arr.length <= 2
<jumblemuddle>
it's saying I can't uninstall test-unit because it's default.
papercode has quit [Ping timeout: 240 seconds]
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
<n_blownapart>
centrx: sorry , but that is 2 elements, so either it is the first or second element i.e. [0] or [1] or [-1]
<n_blownapart>
I just thought either would work.
ghr has quit [Ping timeout: 276 seconds]
<centrx>
If rocks_arr.length == 1 then rocks_array[1] == nil
funburn has quit [Ping timeout: 252 seconds]
<centrx>
n_blownapart, Thus a > b is...
<centrx>
>> 5 > nil
<eval-in_>
centrx => comparison of Fixnum with nil failed (ArgumentError) ... (https://eval.in/147424)
mr_snowf1ake has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
Asher has joined #ruby
SilkFox has quit [Ping timeout: 246 seconds]
<n_blownapart>
but doesn't the base case in this program allow for an array with a maximum index of [0,1] ? so you wouldn't need to use [-1] to indicate the last element. centrx
bthesorceror has quit [Remote host closed the connection]
cibs has quit [Quit: leaving]
Sirupsen has joined #ruby
agent_white has joined #ruby
vallieres_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
beneggett has joined #ruby
timonv has quit [Ping timeout: 276 seconds]
razrunelord has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
s3ri0us|away is now known as s3ri0us
rebelshrug has joined #ruby
rebelshrug has quit [Max SendQ exceeded]
johnny5 has quit []
Shidash has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has quit [Client Quit]
datafirm has quit [Quit: datafirm]
jamto11 has quit [Remote host closed the connection]
razrunelord has quit [Ping timeout: 264 seconds]
johnny5 has joined #ruby
yubrew has joined #ruby
roadie has quit [Ping timeout: 240 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<n_blownapart>
centrx: pardon .. sorry is this correct?: ' If rocks_arr.length == 1 then rocks_array[1] == nil ' . Isn't rocks_array[1] the second placemarker in an array of length 2? sorry to belabor this but I don't see it.
<centrx>
agent_white, I don't use keyword arguments, but I assume it is useful if you do, in the same way as the splat
sambao21 has quit [Quit: Computer has gone to sleep.]
Guest33794 has quit [Ping timeout: 255 seconds]
dsdeiz_ has quit [Ping timeout: 252 seconds]
<agent_white>
centrx: I think I'll have to look into keyword args... they looked useful in 2.1?
<centrx>
agent_white, I bet it works the same ways as extract_options in Rials
<centrx>
agent_white, Yeah, 2.0 too
<agent_white>
centrx: Huh, never tried either really. I'll look into it all! :D
tkuchiki has quit [Ping timeout: 264 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
<centrx>
agent_white, They seem to work in much the same way as the hash now
dsdeiz has joined #ruby
<centrx>
agent_white, Just as the Hash now supports keyword argument syntax { a: 1, b: 2 }
<centrx>
agent_white, and just as a method accepts meth("do", "a" => 1, "b" => 2)
<centrx>
So it looks like kind of the same thing
<agent_white>
Huh... looking into it now!
<agent_white>
Kinda interesting that you can leave them blank!
skysploit has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
n_b has joined #ruby
pu22l3r has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 255 seconds]
mr_snowf1ake has joined #ruby
<agent_white>
Wierd stuff.
<agent_white>
I like those.
<n_b>
Is there anything like Clojure's `swap` in Ruby? i.e. Given a map, a key, and a function, it applies that function to that key in the map and returns the new map?
<n_b>
The similar function signature in Ruby would be def swap(hsh, key, &block) probably, and be used something like swap({foo: 1}, :foo) { |k| k++ } ==> {foo: 2}
<n_b>
I guess I can just write this myself and open up Hash
jamto11 has joined #ruby
Guest33794 has joined #ruby
<centrx>
n_b, One way is: my_hash.map { |k,v| [fn(k), v] }
<centrx>
n_b, rather my_hash.map { |k,v| [fn(k), v] }.to_h
<centrx>
n_b, Or you may mean only one particular key, in which case it could be:
Cache_Money has joined #ruby
<centrx>
n_b, my_hash[fn(k)] = my_hash.delete(k)
<centrx>
n_b, Where fn is the "function" you are referring to in both cases
davedev24 has joined #ruby
CorpusCallosum has quit [Ping timeout: 252 seconds]
freezey has quit [Remote host closed the connection]
porco has quit [Quit: Leaving...]
<havenwood>
centrx: trivial implementation, nothing to it
<n_b>
the .delete thing actually works centrx
<n_b>
since I only need to update a single key
<n_b>
.delete returning the value is something I wouldn't have expected, but wfm
Hobogrammer has joined #ruby
<n_b>
thanks for your help, same to you havenwood
<centrx>
What the heck havenwood, your gem has been replaced by some kind of javascript app
<havenwood>
centrx: :O
<havenwood>
centrx: which one? ;P
linojon has joined #ruby
<centrx>
havenwood, Fixed, you should SEO your github repository...somewho
justinxreese has quit [Ping timeout: 246 seconds]
<havenwood>
centrx: terribad name, my fault
justinxreese has joined #ruby
<havenwood>
centrx: i hoped its functionality would get included in 2.1 then i could just kill the gem :P
<centrx>
havenwood, As for performance optimization, there are like five or more ways of iterating to create a hash. One of them must be the fastest
<centrx>
havenwood, e.g. each_with_object was really slow when it was only in Rails
Hobogrammer_ has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: bai guys]
mary5030 has quit [Remote host closed the connection]
alem0lars has joined #ruby
psyko666 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
mois3x has quit [Quit: mois3x]
ValicekB has joined #ruby
beneggett has joined #ruby
fijimunkii has joined #ruby
Soliah has quit [Quit: Soliah]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
icedp has quit [Ping timeout: 240 seconds]
mr_rich101 has quit [Ping timeout: 276 seconds]
zz_jrhorn424 has quit [Ping timeout: 240 seconds]
jamto11 has quit [Remote host closed the connection]
zz_jrhorn424 has joined #ruby
icedp has joined #ruby
krazh has quit [Read error: Connection reset by peer]
krazh has joined #ruby
johnny5 has quit [Read error: Connection reset by peer]
fella6s has joined #ruby
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
alem0lars has quit [Quit: Going AFK...]
mr_rich101 has joined #ruby
subbyyy_ has joined #ruby
starfox21 has quit [Quit: starfox21]
fella5s has quit [Ping timeout: 252 seconds]
mlapp30m has quit [Ping timeout: 240 seconds]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mlapp30m has joined #ruby
fgo has quit [Remote host closed the connection]
momigi_ has quit [Remote host closed the connection]
<zorak8>
every excercise i do in codecademy about javascript make me love more ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx>
Javascript is a bit clunky
<centrx>
Coffeescript makes it better
johnny5 has joined #ruby
momigi has joined #ruby
Lewix has quit [Remote host closed the connection]
datafirm has joined #ruby
<centrx>
havenwood, Yeah you need to learn Japanese to push this to Ruby core
<johnny5>
:/
<johnny5>
thats not true
<popl>
centrx: why's that?
<johnny5>
in the very early days it might have been but time moves and so do people
<centrx>
I mean it would make him more able to persuade them to add it, not as a requirement for being able to push code
vinse has joined #ruby
<johnny5>
knowing japanese would help when communicating to japanese people, yeah
pen has joined #ruby
hoelzro has quit [Ping timeout: 265 seconds]
sdouglas has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
jamto11 has joined #ruby
<johnny5>
english is more or less a universal language
alem0lars has joined #ruby
momigi has quit [Ping timeout: 265 seconds]
momigi has joined #ruby
<centrx>
It's still said of the Ruby core team
<bin_bash>
Has anyone ever seen this error before when trying to start rails?
<bin_bash>
.rvm/gems/ruby-2.1.1/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
<centrx>
Well, it was said maybe as recently as two years ago
<johnny5>
i see
<johnny5>
i dont believe it to be true
<centrx>
Japan is a more insular place. Some people just do not know English well
<johnny5>
yeah are you speaking on behalf of japan?
<centrx>
I am Emperor of Japan, yes that's correct
<johnny5>
hah
<johnny5>
but you cant speak japanese
<johnny5>
thats weird
<sevenseacat>
bin_bash: read error, install a runtime. and ask rails questions in the right channel.
<centrx>
havenwood can't speak Japanese
<johnny5>
yeah
mansi has quit [Remote host closed the connection]
<johnny5>
so?
<johnny5>
it's not a requirement
<centrx>
The Emperor of Japan is too busy to help him speak Japanese
<johnny5>
oh zzz
<havenwood>
i can't :O, or you're ordering me as emperor not to?
<centrx>
Are you Japan?
<johnny5>
i dont believe so
<johnny5>
are you a tit?
mansi has joined #ruby
<centrx>
I am Emperor of Japan
<havenwood>
centrx: I'm the country itself.
jonDeer has joined #ruby
<centrx>
Then yes, it is an order
<centrx>
What was it again?
<havenwood>
dunno
<popl>
no hot dogs on Friday
<popl>
or hot dogs on Friday
<havenwood>
oh, that's too bad!
<popl>
I forget which
<centrx>
It is ordered. No hot dogs on Friday
<havenwood>
the latter i hope
<havenwood>
corn dogs?
<popl>
NO
<centrx>
It is ordered. Extra hot dogs if corn dogs? on Friday
<johnny5>
centrx: if you cant bring yourself to talk to japanese people, you shouldnt be writing ruby
yubrew has joined #ruby
<havenwood>
i took a few years of japanese
porco has joined #ruby
<centrx>
I do not talk to Japanese people. I order them as the descendent of the Sun God himself.
<popl>
havenwood: but you don't remember any of it
<havenwood>
but i don't understand enough to follow along, and i certainly can't converse
<johnny5>
i see
<havenwood>
popl: pretty much
<popl>
havenwood: mostly you just wanted to score Japanese ladies.
<jonDeer>
im having trouble opening my heroku app, I figured I could copy my log and show it to you guys but I don't know how to copy lines from a terminal/git shell
SilkFox has quit [Ping timeout: 245 seconds]
<centrx>
ruh roh heroku
razrunelord has joined #ruby
<havenwood>
popl: hey, i'm single, i certainly wouldn't complain!
<johnny5>
i love /ignore
<johnny5>
perfect for centrx
<havenwood>
now now
<popl>
johnny5: it's bad form to announce that sort of thing
<centrx>
Too bad, I was just about to reveal my most important secret
<johnny5>
?
<popl>
johnny5: fine if you do it, but keep it to yourself
roadie has joined #ruby
<johnny5>
i dont want to listen to that rubbish
<popl>
yeah, you sure showed him by ignoring him.
<centrx>
oww
<johnny5>
guess so
hoelzro has joined #ruby
<havenwood>
jonDeer: copy/paste troubles?
iamcalledrob has joined #ruby
<havenwood>
jonDeer: There're a handful of apps you can pipe to to copy to the terminal. What OS/distro?
<popl>
havenwood: I wonder how often men learn foreign languages for women.
mansi has quit [Ping timeout: 252 seconds]
<johnny5>
all the time
Bira has joined #ruby
<johnny5>
foreign women are beautiful
<popl>
I like App::NoPaste
<jonDeer>
havenwood: I have windows, I can paste to a git shell but I don't know how to copy from it
<havenwood>
jonDeer: ah, I dunno! :O
<jonDeer>
i basically wanna show people my heroku log
MissionCritical has quit [Ping timeout: 240 seconds]
b00stfr3ak has joined #ruby
<jonDeer>
my app runs locally but not on heroku
yubrew has quit [Ping timeout: 255 seconds]
razrunelord has quit [Ping timeout: 252 seconds]
<popl>
jonDeer: open it up in edit, copy everything, paste it to gist?
jrhe has quit [Quit: Connection closed for inactivity]
<havenwood>
jonDeer: record yourself reciting the log, then upload the wav to youtube
<sevenseacat>
do you know what Gemfile is and what its for?
<CADBOT>
The part I'm not getting is why my spec helper lists it as require 'capybara/poltergeist', but my gemfile has it as gem 'capybara' gem 'poltergeist
ddv has quit [Changing host]
ddv has joined #ruby
<sevenseacat>
because capybara and poltergeist are two separate gems
<tobiasvl>
guinslym: that's … the parsing failing on that line
monkegjinni has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
pu22l3r has joined #ruby
<Schmidt>
Do any of you know if there is a library for working with SAMI subtitles ?
chrisseaton has joined #ruby
<guinslym>
yes the parsing is failing on the line 6310 all the previous line is working great
endash has joined #ruby
<tobiasvl>
guinslym: I understand that, but the parsing of the entire file fails because of that line. you can't parse that line and THEN try to remove the quote. that needs to be done prior to parsing it
zack` has joined #ruby
zack` has left #ruby [#ruby]
sl33k_ has joined #ruby
Alina-malina has joined #ruby
DouweM has joined #ruby
<try>
tobiasvl: could you not parse each line separately, and catch such errors? sure, it would be slow...
pika_pika has joined #ruby
bthesorceror has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<guinslym>
tobiasvl, ok I see. I will try to read the file //File.read('filename')// and for each line replacing the quotation within a string than parsing in it with the CSV library...thks! c ya!
subraminion has quit [Quit: Computer has gone to sleep.]
_justin has quit [Ping timeout: 252 seconds]
_justin_ is now known as _justin
fgo has quit [Read error: No route to host]
fgo has joined #ruby
timgauthier has joined #ruby
AlSquire has joined #ruby
sailias has joined #ruby
kaspergrubbe has joined #ruby
mven has quit [Ping timeout: 252 seconds]
skaflem has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
subraminion has joined #ruby
ylluminate` has joined #ruby
mrmargolis has joined #ruby
<xcesariox>
apeiros what is the meaning of EOL and not sane to use?
jamto11 has joined #ruby
<apeiros>
EOL = end of line
<xcesariox>
apeiros so again, my question is should i continue with the current version i have or should i update to the latest.
ldnunes has joined #ruby
qwyeth has joined #ruby
instantaphex has joined #ruby
<xcesariox>
apeiros i am currently using , gem 2.0.14, rails 4.0.2, ruby 2.0.0p451, should i update it?
Sirupsen has joined #ruby
<xcesariox>
apeiros another question is also , should i use brew to install all this or is better to install globally directly into local using RVM .
<DouweM>
xcesariox: if you can update without too much hassle, go for it
Avahey_ has joined #ruby
<xcesariox>
DouweM is there a way to update all 3 of this with a command?
ndrei has joined #ruby
pu22l3r has joined #ruby
SCommette has joined #ruby
<shevy>
I hate rewrites
<apeiros>
xcesariox: we can't answer the question "should I update" for you. you have to know whether your stuff is 2.1 compatible.
<apeiros>
if it is, I'd recommend updating to 2.1, yes.
<apeiros>
as for brew/rvm: I'm quite happy with rvm. but ymmv
<shevy>
xcesariox you should update
jamto11 has quit [Ping timeout: 258 seconds]
pRiVi has joined #ruby
<shevy>
xcesariox does it have to be a single command :P you can update gem from within "gem" command, and then rails via gem too; but you can not update ruby with gem alone
troulouliou_dev has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
<shevy>
updating gem is simplest from these three
subraminion has quit [Remote host closed the connection]
<pRiVi>
Hi... I have a ruby installation (gitlab), changed the hostname and now no login is possible. Logfile just shows "Can't verify CSRF token authenticity\nCompleted 401 Unauthorized in 74ms". Any idear how to debug ruby?
<shevy>
though I prefer direct download of the rubygem
mven has joined #ruby
<timgauthier>
woah, Jekyll turns 2.0.0
<timgauthier>
does it suck less yet? :P
<shevy>
timgauthier there we accept the challenge
<timgauthier>
:P
<shevy>
timgauthier you will write something better than jekyll!
<DouweM>
pRiVi: that's Rails
<timgauthier>
I'm already using middleman!
<timgauthier>
so shevy I "get" to go back to Canada the end of this month.
<shevy>
I have no idea what middleman is, but there was a movie called man in the middle from the 1980s from sweden
<pRiVi>
DouweM: How can I debug this? I am normaly very fit in software, but this cannot be debugged?!
<shevy>
timgauthier cool
<timgauthier>
ehh, the fiancee doesn't
<shevy>
lol
<toretore>
shevy: did he work at the post office?
<shevy>
toretore no, he was military personnel, navy diver or however you call those dudes that must get rid of mines in the ocean
<toretore>
so he wasn't intercepting messages? :(
<DouweM>
pRiVi: of course it can be debugged
<pRiVi>
DouweM: How?
<DouweM>
pRiVi: but we don't really have enough information to see what's wrong
<shevy>
well, not really but he got hired as spy by the swedish royal secret service
<DouweM>
pRiVi: if it's a gitlab problem, how about contacting them?
<timgauthier>
shevy lol
<xcesariox>
shevy: okay i just did "gem update --system" it changed my ruby 2.0.0p451 to ruby 2.0.0p247. why does it roll back to older version?
fgo has quit [Remote host closed the connection]
<shevy>
xcesariox wat
<shevy>
how can this be xcesariox
<toretore>
are you talking about carl hamilton?
<xcesariox>
shevy: i am serious.
<pRiVi>
I am developer (not ruby but perl, pyhton, ...), and I think a system should be debuggeable. But it seems that ruby or rails or whatever it is named is not?
<DouweM>
pRiVi: where did you get the idea from that it's not?
<tobiasvl>
not debuggable?
<shevy>
toretore not sure honestly, I never researched who wrote the stuff
<DouweM>
pRiVi: but if it's a problem with GitLab, take it up with them
<pRiVi>
DouweM: I am search logfiles, source code or anyhting making sense
<shevy>
xcesariox I tell you, that has never happened to me
<DouweM>
pRiVi: we don't know how it works or what your specific problem is
<pRiVi>
but I don't find anything
<xcesariox>
shevy: do i need to sudo ?
<pRiVi>
or logs saying anything more than ""Can't verify CSRF token authenticity\nCompleted 401 Unauthorized in 74ms""
<xcesariox>
Latest version currently installed. Aborting.
<shevy>
xcesariox no idea, I mistrust your system; gem can not update ruby itself
<pRiVi>
/var/log/gitlab/ don't have anything more than this about the login
<xcesariox>
then how do you update ruby
<pRiVi>
any apache has better logs
cpruitt has joined #ruby
<shevy>
xcesariox what does "gem --version" show now btw?
<DouweM>
pRiVi: I have no idea how GitLab is packaged or how and if it can be debugged. take it up with them
<xcesariox>
shevy 2.2.2
Lewix has joined #ruby
<DouweM>
pRiVi: of course Ruby and Rails have logging and can be debugged
<shevy>
ah ok, so at least that gem version is correct
<shevy>
2.2.2 is latest gem version xcesariox
<xcesariox>
shevy: but my ruby isnt
lowski is now known as lowski_away
<shevy>
xcesariox but you seem to have multiple rubies
<xcesariox>
shevy: how do you know? how to clear multiple ruby
<shevy>
xcesariox well that you gave two version strings above:
Xeago_ has quit [Remote host closed the connection]
<shevy>
<xcesariox> shevy: okay i just did "gem update --system" it changed my ruby 2.0.0p451 to ruby 2.0.0p247
<shevy>
so somewhere you must have had these two strings
<xcesariox>
yup
<shevy>
451 and 247
<shevy>
xcesariox what kind of ruby are you using that you have two different p variants?
<shevy>
I mean, they must come from somewhere
<xcesariox>
no before i did the gem update --system, i type ruby -v, it shows p451, after doing that system update thing, i did ruby -v, it showed p247 version.
<shevy>
huh
michaeldeol has joined #ruby
<shevy>
how can this be
<xcesariox>
shevy: this is how it is, i swear.
<xcesariox>
shevy: nvm, how do i update the ruby manually to the latest.
<pRiVi>
The source it completly weird and unreadable
vpretzel has quit [Quit: Adios!]
<pRiVi>
scary...
<shevy>
xcesariox well there are several ways for that
<DouweM>
xcesariox: it's probably rvm messing with stuff
<DouweM>
pRiVi: sounds like it's obfuscated
vpretzel has joined #ruby
ndrei has quit [Remote host closed the connection]
<pRiVi>
it seems that ruby or rails or what its name is crap...
<shevy>
xcesariox the hard one is to wget the latest source: wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2
<shevy>
xcesariox but it's what I use because in the long run, it is the simplest for me to understand
<xcesariox>
shevy: i am doing wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2 this now.
<shevy>
xcesariox do you use rvm?
<xcesariox>
shevy: should i go ahead with it?
<xcesariox>
shevy: yes i use RVM
momigi has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
mansi has joined #ruby
<shevy>
xcesariox dunno, you may run into some problems if you try a source compile for the first time depending on your host computer; rvm is probably easier
<xcesariox>
shevy: i ftp and downloaded it so what do i do now?
<DouweM>
xcesariox: if you're using rvm, let rvm handle updating ruby. don't download the source :P
<xcesariox>
shevy: okay i will stick to rvm.
<shevy>
xcesariox well you could try to see where it fails :P
<shevy>
on debian you would usually lack some -dev packages
chipotle_ has quit [Quit: cya]
codabrink has joined #ruby
<shevy>
on archlinux you might be luckier, considering that it's not as insane as debian-based systems haha
<shevy>
no idea about osx
<shevy>
but it looks shiny
baweaver has joined #ruby
crelix has joined #ruby
r0bby has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
danshultz has joined #ruby
<xcesariox>
shevy DouweM : lame rvm, i just did rvm install ruby and it automatically downloads 2.1.1 the latest. rofl.
MrPopinjay has joined #ruby
tkuchiki has quit [Ping timeout: 258 seconds]
xIzIv has quit [Quit: WeeChat 0.4.3]
<MrPopinjay>
Hi gang. I'm using yard to generate my app documentation. Should I include the doc directory in the repository or not?
yubrew has quit [Client Quit]
tkuchiki_ has quit [Ping timeout: 252 seconds]
dideler|work has quit [Quit: WeeChat 0.4.4-dev]
baweaver has quit [Ping timeout: 252 seconds]
sssczy has left #ruby [#ruby]
<Hanmac>
MrPopinjay: you should not because this doc would be generated while installing or later with command
<MrPopinjay>
As I suspected. Thank you.
yubrew has joined #ruby
alpha123 has joined #ruby
<MrPopinjay>
Does the same go for .yardoc/ ?
zarul has quit [Read error: Connection reset by peer]
_justin has quit [Quit: _justin]
dideler|work has joined #ruby
smaboshe has left #ruby [#ruby]
<Hanmac>
hm i dont know i am an rdoc user ...
<MrPopinjay>
OK, thank you
_justin has joined #ruby
SilkFox has joined #ruby
lxsameer has joined #ruby
chrisseaton has quit []
rebelshrug has joined #ruby
paulfm has quit []
lxsameer has quit [Client Quit]
axl_ has joined #ruby
okinomo_away is now known as okinomo
mjsmith2 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
beef-wellington has joined #ruby
paulfm has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
lethjakman has joined #ruby
r0bby has joined #ruby
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
lowski_away is now known as lowski
johnmlocklear_ has joined #ruby
mark_locklear has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby
maximski has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
jamto11 has joined #ruby
anaeem1 has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
tjr9898 has quit [Remote host closed the connection]
Xeroa has quit [Quit: Ex-Chat]
_justin has quit [Quit: _justin]
razrunelord has joined #ruby
treehug88 has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
r0bby has quit [Ping timeout: 252 seconds]
subraminion has quit [Quit: Computer has gone to sleep.]
wm3|away is now known as workmad3
beef-wellington has joined #ruby
<shevy>
xcesariox hehe that's why I don't like automatic tools if I didn't write them myself, they do strange unknown stuff :P
enebo has joined #ruby
subraminion has joined #ruby
<apeiros>
xcesariox: of course. if you don't specify a version, it uses latest stable. and that's 2.1.1
lethjakman has joined #ruby
<apeiros>
sane behavior IMO
subraminion has quit [Remote host closed the connection]
mansi has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
zzzbra has joined #ruby
mansi has joined #ruby
razrunelord has quit [Ping timeout: 258 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<xcesariox>
shevy, apeiros : now my rails -v comes out error with Could not find 'railties' (>= 0) among 14 total gem(s) (Gem::LoadError)
bkparso has quit [Quit: bkparso]
kevinykc_ has joined #ruby
<shevy>
xcesariox see that is why I don't like automatic tools
<shevy>
you won't know where the things are
<shevy>
xcesariox my recommendation is to first find out where your gems are
<xcesariox>
shevy: what is the best practice?
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
<Symbiosisz>
Hey all, I'm sure I've made a silly oversight, but for some reason if I put "include models.rb" in my file (and models.rb is in the same folder as the file that I'm running) it throws an exception saying it could not be loaded.
<xcesariox>
shevy: how do i fix my rails now.
<shevy>
on my system they are under /Programs/Ruby/Current/lib/ruby/gems/2.1.0/cache/ respectively the directory one level down of that
sk87 has joined #ruby
<shevy>
xcesariox no real idea, sorry, I don't use rvm; I use the source approach. If I have to make a guess, your rails can not find the gems; try to look through "gem env" output
aganov has quit [Quit: Leaving]
sdouglas has joined #ruby
<shevy>
Symbiosisz the syntax: include models.rb
<apeiros>
xcesariox: you installed a new ruby version, you didn't upgrade an existing
<shevy>
is not valid ruby syntax
freerobby has joined #ruby
<apeiros>
xcesariox: you'll have to reinstall your gems
<apeiros>
xcesariox: but a simple `bundle` in your rails app should suffice
<xcesariox>
shevy, apeiros : ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0], the terminal that i update ruby to 2.1.1 stays 2.1.1 , i open new tab and try ruby -v, it is showing 2.0.0, any idea why?
Macaveli has joined #ruby
<toretore>
libssl-dev libreadline6-dev zlib1g-dev is what i have written down for ubuntu
s2013 has quit [Remote host closed the connection]
<shevy>
xcesariox probably something wrong with your path setting
timgauthier has joined #ruby
<xcesariox>
shevy: as in the path in bashrc?
<shevy>
xcesariox yeah, I assume that rvm somehow adds something to your path setting
<xcesariox>
shevy: this is what i found in my .bashrc "PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting"
alpha123 has quit [Ping timeout: 264 seconds]
sl33k has joined #ruby
<shevy>
yeah
<shevy>
probably it linked in different ruby version
toastynerd has joined #ruby
<shevy>
xcesariox btw if you are sure you no longer need the old one, you could actually remove it :)
banister has joined #ruby
<xcesariox>
shevy: how to remove it properly?
<shevy>
or just change PATH to point to the current ruby anyway
<shevy>
dunno
banister has quit [Max SendQ exceeded]
tjr9898 has joined #ruby
<shevy>
I remove things aggressively
<ddv>
xcesariox: is it set a default ruby?
<ddv>
+as a*
banister has joined #ruby
eka has joined #ruby
lethjakm1 has quit [Ping timeout: 276 seconds]
Macaveli has quit [Quit: Leaving]
garndt has joined #ruby
<mrgoodcat>
toretore: i have all of those installed
paulfm has quit []
<xcesariox>
shevy , ddv : erm i found another thing on bash_profile, is this the reason why it conflict having it in bashrc and bash_profile? bash_profile has "[[-s "$HOME/.rvm/scripts/rvm"]] && . "$HOME/.rvm/scripts/rvm"
<shevy>
xcesariox no real idea but things like that is a reason why I don't allow software to mess with my *rc files, I handle them on my own
mrj has joined #ruby
paulfm has joined #ruby
sl33k has quit [Ping timeout: 276 seconds]
<xcesariox>
shevy: how do you handle them on your own when those stuff like RVM or automated tools installs them and creates path in your bashrc.
<shevy>
xcesariox as written above, I don't use RVM
<ddv>
rvm overrides cd what the f
<ddv>
:)
<shevy>
I use a rvm-like approach though, but on a global basis, every program gets an app-dir like directory, so if I wish to switch ruby or any other program, I resymlink
<workmad3>
ddv: what the FUD :P
<ddv>
shevy: you use gobo right?
<timgauthier>
what?!
<apeiros>
xcesariox: if you've used rvm, `rvm use 2.1.1 --default`
<apeiros>
xcesariox: `rvm list` shows you which ruby is the default ruby
<apeiros>
xcesariox: also that warning rvm gave you in the pastie you showed us
<apeiros>
(did not read the scrollback, so if that was already said and addressed…)
<shevy>
ddv gobo kinda died years ago, I tried to simulate it though, in essence I usually start from slackware, then recompile things until everything "fits"; one day I will have that fully automated with ruby, right now I still have to do some commands
<xcesariox>
apeiros: wow rvm list shows me i still have 1.9.3, 2.0.0 and 2.1.1
<ddv>
shevy: well gobo is terrible
vpretzel|1419 has quit [Remote host closed the connection]
<xcesariox>
apeiros: whats the difference between current && default and default alone.
<ddv>
and slackware is still stuck in 1950
<ddv>
glad i'm on osx though
b00stfr3ak has joined #ruby
<apeiros>
current is the one active in your current terminal
<shevy>
ah so you are not even on linux
francisfish has quit []
blackmesa has joined #ruby
<apeiros>
default is the one which will be set in a new terminal
vpretzel|1419 has joined #ruby
<ddv>
workmad3: you like rvm?
<workmad3>
ddv: no
razrunelord has joined #ruby
<ddv>
lies you do
<workmad3>
ddv: or rather, I don't bother with it anymore :)
<shevy>
he is a ruby-install dude now
benzrf is now known as benzrf|offline
<ddv>
ok :)
guinslym has quit [Ping timeout: 264 seconds]
<xcesariox>
apeiros: FINALLY! all updated and using the latest as default!
<timgauthier>
man i'm glad I use PHP.. so much easier!
<timgauthier>
;)
andrewlio has quit [Quit: Leaving.]
<xcesariox>
apeiros: when i set 2.1.1 as default for rvm, it automatically changes my gems to the latest version as default too?
<apeiros>
xcesariox: each ruby has a separate gems dir
<xcesariox>
apeiros: ah, okay i get it now.
<apeiros>
xcesariox: if you install gems for 2.0, they won't be present for 2.1.1
<xcesariox>
apeiros: thanks for guiding.
<timgauthier>
hmm, any of you guys use slack before?
<shevy>
timgauthier well you don't really use real ruby, you use erb hell
<timgauthier>
yes, its beautiful!
<shevy>
is slack slackware?
BWStearns has joined #ruby
<j416>
johnny5: not code you would use in the real world probably? :D
<ddv>
timgauthier: erb is fugly....
<j416>
johnny5: you would be surprised. :)
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier>
naw, slack is a chat thingy for businesses/teams
<shevy>
ddv why do I confuse you with ddd
apeiros has quit [Remote host closed the connection]
krz has joined #ruby
shevy is now known as ddw
<ddw>
yo brothers
workmad3 is now known as shevy
<shevy>
mwahahaha
apeiros has joined #ruby
<timgauthier>
*referall link*https://slack.com/r/029npub5-029ntqur only using the link cause it gives you a $100 credit if you sign up. And 100$ if you pay for it, i figure if you are going to sign up you should get something extra
shevy is now known as workmad3
<ddv>
lol
sdouglas has joined #ruby
<timgauthier>
and then there is ddw
<timgauthier>
ugh my brain!
Xeago has joined #ruby
<ddw>
yeah
<timgauthier>
anyhow, slack looks like they repackaged IRC in a really nice way
<timgauthier>
i don't know entirely, its a web app, app thingy its neat
<timgauthier>
its very slick,
<ddv>
why should we take your word on it, timgauthier
<ddv>
maybe its not slick at all
<timgauthier>
maybe it is crufty and clunky
<ddv>
maybe? :)
<timgauthier>
*shrug* i signed up for it with the hope of using it to communicate with a small group of design people.
LekeFly has joined #ruby
<timgauthier>
it is not bad, and i can get away with a free version
orolo has joined #ruby
vpretzel_ has joined #ruby
lowski is now known as lowski_away
<shevy>
ddv lol
<shevy>
ddv I usually get poked with driving down my chevy
Sirupsen has joined #ruby
<ddv>
aaah ok
benzrf|offline is now known as benzrf
<orolo>
from the result of Dir.pwd, i need to grab the name before the dot and after the /stuff in something like this: "/home/httpd/stuff/myname.thing/"
apeiros has quit [Ping timeout: 252 seconds]
<orolo>
"myname"
Xeago has quit [Ping timeout: 276 seconds]
bal has quit [Quit: bal]
lowski_away is now known as lowski
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has joined #ruby
benzrf is now known as benzrf|offline
akgerber has quit [Quit: Lost terminal]
vpretzel|1419 has quit [Ping timeout: 240 seconds]
<davzie>
Does anyone know any iOS developers? I'm in desperate, urgent need of one.
<ddv>
davzie: stackoverflow?
<zastern>
davzie: have you tried "the internet" :)
<ericwood>
you probably won't find them here
yfeldblum has quit [Ping timeout: 255 seconds]
<ddv>
depens if they use rubymotion, they could be in here
<ericwood>
that's like maybe 2 people :P
<ddv>
true :P
<zastern>
I'd probably use rubymotion before I learned objective c. Just because I have other things I'd rather be learning.
diegoviola has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<zastern>
Like clojure maybe.
ylluminate_ has joined #ruby
axl_ has quit [Quit: axl_]
yfeldblum has joined #ruby
<ddv>
I think you want to use some multiplatform toolkit when developing apps though
tjr9898 has joined #ruby
michael_lee has joined #ruby
kiri has quit [Quit: Leaving]
<ericwood>
I looked at rubymotion but it seemed like I'd still have to learn all the APIs anyways and that it was more elegant to work with them in ObjC
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
failshell has joined #ruby
<ericwood>
seemed like a lot of work to avoid ObjC :P
<Hanmac>
avoiding ObjC is always a good idea
<ericwood>
it seems like a nice enough language but I haven't worked with it extensively
paulfm has quit []
yfeldblu_ has joined #ruby
<ddv>
objc has some nice features indeed but I don't like how it looks
zcreative has joined #ruby
havenwood has joined #ruby
<ericwood>
I'd take it any day over C++ tho :)
<instantaphex>
if only objective c hadn't used that gay ass bracket heavy syntax maybe more people would use it
toastynerd has quit [Remote host closed the connection]
<ericwood>
I am accepting of syntax of all sexual orientations
<Symbiosisz>
Seriously? Using gay as a pejorative term? You're a dick.
bthesorceror has quit [Remote host closed the connection]
gplymale has joined #ruby
sailias has quit [Quit: Leaving.]
Marf_ has joined #ruby
<Marf_>
hello
<instantaphex>
ok, heterosexual ass bracket heavy syntax
gplymale has quit [Client Quit]
bthesorceror has joined #ruby
fgo has joined #ruby
bthesorceror has quit [Read error: Connection reset by peer]
<Marf_>
Anybody can tell me what I can run ruby function from C extension?
freezey has quit [Remote host closed the connection]
freezey has joined #ruby
<Marf_>
workmad3, I can make simple function def func2(buffer)
<Marf_>
puts "ruby global method: #{buffer}"
<Marf_>
end
<workmad3>
Marf_: that's defined on the main object
<workmad3>
Marf_: and is still a method
<Marf_>
ok, how I can run it?
<Marf_>
any tutorial?
freezey_ has joined #ruby
<instantaphex>
Marf_ you're trying to run ruby code from a C extension? What's the purpose of writing a C extension if you're trying to put ruby code in it?
<Marf_>
ok wait
tjr9898 has quit [Remote host closed the connection]
pu22l3r has joined #ruby
freezey has quit [Ping timeout: 264 seconds]
bthesorceror has quit [Remote host closed the connection]
<Marf_>
xybre, yes in c is easy but func is so complicated to write in C
razrunelord has joined #ruby
lsmola has quit [Ping timeout: 264 seconds]
<Marf_>
VALUE method_test1(VALUE self) {
<Marf_>
int x = 10;
<Marf_>
return INT2NUM(x);
<Marf_>
}
<Marf_>
// Jak uruchomic func2(a) z tego miejsca?
jxf has quit [Ping timeout: 240 seconds]
<Marf_>
How tun globalu def func2() from C ?
lw has quit [Quit: s]
carraroj has joined #ruby
jhass|off is now known as jhass
zcreative has quit [Quit: Computer has gone to sleep.]
<xybre>
Okay, now you've lost me.
tmuxer has quit [Quit: c]
<workmad3>
...
anaeem1_ has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 276 seconds]
Aryasam has joined #ruby
anaeem1_ has joined #ruby
kpshek has quit []
jxf has joined #ruby
<Yami_>
Hi people, I'm student in software engineering and I have to write a client/server software which communicate via tcp sockets. We have to do the server in C but the client is language free and I thought about ruby which I used coupled with Rails during my internship. I was wondering if it is wize to do it has a gem and to execute it with ./client [arguments].
<benzrf>
Yami_: wize to do it has a gem?
razrunelord has quit [Ping timeout: 276 seconds]
<Yami_>
benzrf: Yeah I don't know anything about software in ruby, I only used it to do a rails website :/
Hobogrammer has quit [Ping timeout: 264 seconds]
Marf_ has left #ruby ["Wychodzi"]
<certainty>
Yami_: you don't need to create a gem to in order to be able to run a ruby program from the command line
<certainty>
-to
<Yami_>
certainty: Yeah but the architecture of a gem is interesting.
<benzrf>
Yami_: not really...
<benzrf>
a gem is just a project bundled in a gem file
omosoj has quit [Ping timeout: 250 seconds]
<benzrf>
o-O
the_f0ster has joined #ruby
<Yami_>
benzrf: I'm used to C/C++ to write programs
hpoydar has quit [Remote host closed the connection]
<workmad3>
a gem: "Here's a big zipfile of a bunch of code you might like... oh, and it has a metadata file telling you the name, dependencies and version, and some other potentially useful stuff"
geggam has joined #ruby
SCommette has joined #ruby
WishBoy has quit [Remote host closed the connection]
michaeldeol has joined #ruby
renier has joined #ruby
<Yami_>
workmad3: Ok, I didn't think of it like that :/
codeurge has joined #ruby
<certainty>
Yami_: doing the client in ruby is fine, if that's your language of choice. Making a gem of it is fine too if you want to learn how to build gems. It all depends on what your goals are :)
<Yami_>
certainty: The project is really more about the protocol's implementation than the languages, I just chose ruby cause I like it and it will make it way simpler than C++
<Yami_>
The thing is, it's a project I CAN'T fail so I have to get documented before starting something
<certainty>
Yami_: well then go for it. I'd probably not bother building a gem though
<certainty>
you have to get documented before starting something? What does that mean?
toastynerd has joined #ruby
djbkd has joined #ruby
nwertman has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 255 seconds]
<Yami_>
certainty: In my schools for the first 2years we are doing C/C++ projects so we can jump in. (With UMLs and stuff ^^). But this is the last project of the second year and the first time that it's language free. I don't wanna fail because I wasn't documented enough to know that I was tough/impossible in ruby.
<Yami_>
(Even if nothing is impossible btw)
sunya7a has quit [Ping timeout: 258 seconds]
<certainty>
Yami_: well then you don't have to fear anything. It will definitely be possible
nowthatsamatt has joined #ruby
rodri_gore has quit [Ping timeout: 255 seconds]
greenarrow has quit [Quit: 500]
<Yami_>
certainty: Yeah I thought that simple string communication between sockets wasn't that occult :p
<certainty>
Yami_: nope. Of course complicated protocols can, well, complicate things, but ruby is a good language to solve these problems
codeurge has quit [Ping timeout: 252 seconds]
lkba has joined #ruby
lethjakm1 has joined #ruby
<workmad3>
Yami_: you aren't likely to need to solve the halting problem or have an efficient solution to an NP-complete problem in your protocol, so it shouldn't be impossible ;)
<Yami_>
certainty: We will also have to do an AI to use this protocol. It's kind of game where AIs are looking for stuff on a map and the first team to collect all of the required stuff wins.
fgro has quit [Quit: leaving]
<Yami_>
workmad3: You lost me :3 It's just string based communication. The strings look a lot like JSON but it's not :/
papercode has joined #ruby
zoraj has quit [Remote host closed the connection]
codeurge has joined #ruby
<Yami_>
But well it should be easy to parse with regex
sambao21 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
<certainty>
workmad3: don't threaten them. It's np-hard for them to understand what you mean :p
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
omosoj has joined #ruby
wallerdev has joined #ruby
<workmad3>
certainty: awwww :D
_justin_ has joined #ruby
<workmad3>
certainty: 2nd year CS should know about halting problem IMO :P
kpshek has joined #ruby
<Yami_>
certainty: Is a "client.rb" which requires everything it needs in a "src/" folder acceptable? :B
<certainty>
centrx: hehe yeah, and typically we have foot pedals too
<chendry>
certainty: woah, basecamp, are you david hh?
<certainty>
no that's the capitalist jerk
<certainty>
:p
<banister>
chendry check out org-mode, it'll blow your mind
Olipro has quit [Ping timeout: 246 seconds]
<chendry>
certainty: oh, hah :)
bradhe has joined #ruby
soheil has joined #ruby
nanoyak has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
<chendry>
banister: i will give that a shot! emacs has admittidely always sounded cool with it's lispiness and it's ability to tell me when the sun will come up... that's what I mostly remember from the years ago when I used it
nanoyak has joined #ruby
djbkd has quit [Remote host closed the connection]
MrWharfsnort has joined #ruby
<certainty>
chendry: the only thing you need to be aware of with emacs is to not fall into the emacs trap. Wasting endless amounts of time fiddling with configuration and trying out yet another feature
Aryasam has joined #ruby
Aryasam has quit [Client Quit]
funktor has joined #ruby
guinslym has joined #ruby
nanoyak has quit [Client Quit]
<chendry>
certainty: i've avoided that trap with vim... the problem though is that everybody around me is way better at vim than I am.
ce_afk is now known as cescalante
soheil_ has joined #ruby
<certainty>
chendry: how much better? like significantly, meaning that they're saving way more time and are much more productive?
<certainty>
or only slightly?
benzrf is now known as benzrf|offline
mercwithamouth has joined #ruby
freezey has quit [Remote host closed the connection]
nanoyak has joined #ruby
<chendry>
certainty: good question. maybe only slightly, but it's probably a lot more fun playing with the editor
RohanRNS has joined #ruby
<certainty>
chendry: that's the problem :)
<chendry>
certainty: why don't you like fun!
pel_daniel has quit [Ping timeout: 264 seconds]
<zastern>
What might cause ruby to throw a "cannot load such file" error other than the file just being missing or having bad permissions?
<zastern>
Assuming it's in the load path
blackmesa has joined #ruby
<jhass>
zastern: ruby being unable to locate the file would
Sirupsen has joined #ruby
soheil has quit [Ping timeout: 265 seconds]
<certainty>
chendry: i do like fun. I also like being focused
<chendry>
certainty: hah, yeah, agreed... speaking of which, I have taken #ruby entirely off-topic :)
terrell_t has quit [Remote host closed the connection]
<shevy>
that was a shevyfail here :(
<Symbiosisz>
I just picked up Ruby a week ago, after having been primarily a Java programmer for my entire undergrad so far (3 years). I think I might cry: Ruby and Sinatra are amazing!
<jhass>
User458764: hm, unless Mechanize or your terminal are doing funky things that shouldn't catch a SIGINT
terrell_t has joined #ruby
<wallerdev>
yeah java is no good, ruby is the true enterprise language
<jhass>
User458764: I seem to be able to abort that just well, so I'm tipping on your shell or your terminal emulator doing weird things
blackmesa has quit [Ping timeout: 240 seconds]
mansi_ has quit [Remote host closed the connection]
BizarreCake has quit [Read error: Connection reset by peer]
mansi has joined #ruby
tcstar has quit [Read error: Connection reset by peer]
<keelzebub>
Thanks shevy and aperios and wallerdev. Just what I need :)
atmosx has quit [Remote host closed the connection]
freezey has joined #ruby
atmosx has joined #ruby
_justin has quit [Quit: _justin]
marr has quit [Ping timeout: 252 seconds]
pu22l3r has joined #ruby
rodri_gore has joined #ruby
terrell_t is now known as terrellt
zcreative has joined #ruby
doodlehaus has quit [Remote host closed the connection]
pu22l3r_ has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Remote host closed the connection]
zcreative has quit [Client Quit]
troulouliou_dev has quit [Quit: Leaving]
zzzbra has joined #ruby
trhodes_ has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
linojon has quit [Quit: linojon]
enebo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mansi has joined #ruby
rodri_gore has quit [Ping timeout: 276 seconds]
nari has quit [Ping timeout: 250 seconds]
drager has quit [Quit: leaving]
jimbow has joined #ruby
freerobby1 has quit [Quit: Leaving.]
sdwrage has quit [Quit: This computer has gone to sleep]
linojon has joined #ruby
freerobby has joined #ruby
sambao21 has joined #ruby
fijimunkii has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
cina_ has joined #ruby
nanoyak has joined #ruby
ce_afk is now known as cescalante
orolo has joined #ruby
cina has quit [Read error: No route to host]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013_ is now known as s2013
kpshek has joined #ruby
axl_ has quit [Quit: axl_]
banister has quit [Read error: Connection reset by peer]
sl33k_ has joined #ruby
afex has joined #ruby
pika_pika has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
EagleDelta has quit []
Xeago has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
drager has joined #ruby
aspires has joined #ruby
banister has joined #ruby
Aryasam has joined #ruby
mateu has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 264 seconds]
<zzzbra>
is this channel strictly for ruby questions, should I take my rails questions elsewhere?
klaut has joined #ruby
<jhass>
zzzbra: rails questions go to #rubyonrails
<apeiros>
zzzbra: #rubyonrails is more appropriate
<zzzbra>
thanks.
<apeiros>
(aka #ror, aka #rails)
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
kenneth has joined #ruby
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zzzbra>
question: I tried joining #rubyonrails but was told I could not join as I need to be identified with services. how do I go about doing that?
MrWharfsnort has quit [Ping timeout: 255 seconds]
<centrx>
zzzbra, /nickserv help register and /nickserv help identify
doodlehaus has joined #ruby
axl_ has joined #ruby
shiin has joined #ruby
vinse has quit [Ping timeout: 252 seconds]
Aryasam has quit [Quit: Bye]
<shevy>
zzzbra just ask your rails questions here
musl has quit [Quit: WeeChat 0.4.3]
<shevy>
to apeiros :-)
musl has joined #ruby
User458764 is now known as User458764_NotHe
kaspergrubbe has quit [Read error: Connection reset by peer]
eka_ has quit [Ping timeout: 252 seconds]
<jhass>
no, to shevy
kaspergrubbe has joined #ruby
<shevy>
lol
momigi_ has quit [Remote host closed the connection]
kenneth has quit [Ping timeout: 255 seconds]
<shevy>
zzzbra say yes to shevy!
eka has joined #ruby
<shevy>
we need a channel revolt now
Emmanuel_Chanel has joined #ruby
<shevy>
btw I just now realize that keelzebub misspelled apeiros as aperios
User458764_NotHe has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<keelzebub>
Yea, that was my bad
mercwithamouth has quit [Ping timeout: 265 seconds]
<shevy>
ok beelzebub!
<shevy>
today is mispelling day
<keelzebub>
Ha! Points for you
<shevy>
bentrx and ghass will teach you a lesson
<shevy>
and then simgauthier will come along
mehlah has joined #ruby
<shevy>
and Danmac the C++ guru
aspires has quit []
<shevy>
and xtmosx the greek railser
<keelzebub>
And chevy the instigator?
<shevy>
damn
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
instigating is a lot of fun
<shevy>
you let other people do the work while you lay back and enjoy the sun
<timgauthier>
yup
<timgauthier>
or the world burn
<shevy>
yeah, like the joker in batman
bradhe has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
jimbow has quit [Quit: Lost terminal]
Lewix has quit [Remote host closed the connection]
r0bby has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
zzzbra has left #ruby [#ruby]
User458764 has joined #ruby
momigi has joined #ruby
cina has joined #ruby
Aaaal has joined #ruby
rezzack has joined #ruby
<timgauthier>
Shevy, i'm going to miss being on your timezone! :P
philoserf has joined #ruby
<shevy>
damn
<shevy>
what are you doing in canada anyway
<shevy>
what could anyone possibly do there
cina_ has quit [Ping timeout: 252 seconds]
<shevy>
except gather snow and ice
timonv has quit [Remote host closed the connection]
<timgauthier>
eat the snow and the ice?
<shevy>
and probably fish
<shevy>
timgauthier you could at least conquer alaska!
gsvolt_ has joined #ruby
<timgauthier>
haha
<shevy>
timgauthier some ruby guy is somewhere there... let me try to remember...
<timgauthier>
i have to go because my vistor visa is up
<shevy>
homer? town?
<shevy>
aha
<timgauthier>
and so my Fiancee is going to have to stay here for a month without me, then she will come and join me in July
<shevy>
oh yeah here ... http://en.wikipedia.org/wiki/Homer,_Alaska I always wondered how someone would end up there, but I think he got into some medicine-IT tech work there
gsvolt has quit [Quit: No Ping reply in 180 seconds.]
<shevy>
ONE MONTH
<shevy>
what could HAPPEN IN ONE MONTH
lethjakman has quit [Ping timeout: 252 seconds]
<shevy>
she might grow a beard during that time
<timgauthier>
i might finish the portfolio? :P
sambao21 has quit [Quit: Computer has gone to sleep.]
<timgauthier>
she can't even grow a mustache man!
<shevy>
timgauthier, do you know the stupid european song contest?
<timgauthier>
yea
pel_daniel has joined #ruby
michael_lee has quit [Remote host closed the connection]
<shevy>
and that's just how they look in reallife too
kotk_ has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
ascarter has joined #ruby
clov3r has joined #ruby
freerobby1 has joined #ruby
postmodern has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<shevy>
timgauthier I am bored... I am rewriting old crap right now...
<timgauthier>
lol
<timgauthier>
wait what?
davedev24 has quit [Read error: Connection reset by peer]
davedev24 has joined #ruby
kotk has quit [Ping timeout: 252 seconds]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
vpretzel|1419 is now known as vpretzel
<shevy>
I need to reach a point where I never again have to rewrite anything
<shevy>
but there are just some variables or methods no longer needed after a rewrite...
BSaboia has joined #ruby
rdark has quit [Quit: leaving]
_Andres has joined #ruby
_Andres has quit [Max SendQ exceeded]
alem0lars has joined #ruby
Sirupsen has quit [Ping timeout: 252 seconds]
kotk__ has quit [Ping timeout: 240 seconds]
acrussell has quit [Quit: Leaving.]
_tpavel has joined #ruby
alem0lars has quit [Client Quit]
r0bby has quit [Read error: Connection reset by peer]
coffeina has joined #ruby
nwertman has quit [Ping timeout: 258 seconds]
kaspergrubbe has joined #ruby
coffeina has quit [Read error: Connection reset by peer]
shanlar has quit [Quit: shanlar]
cina has quit [Read error: No route to host]
timonv has joined #ruby
cina has joined #ruby
<timgauthier>
I don't think you ever get to a point of doing things once, but maybe down to doing it only twice
<timgauthier>
and being very efficent
<RubyPanther>
shevy: one of my teenage friends moved to Homer, AK for 2+ years
johnmlocklear_ has quit [Ping timeout: 250 seconds]
mehlah has quit [Quit: Leaving...]
sepp2k1 has joined #ruby
combusean has quit [Ping timeout: 264 seconds]
<RubyPanther>
as to how somebody ends up there, my friend's family was trying to move as far away from civilization as they could and still survive, on the theory it would keep their delinquent child out of trouble. It didn't work, of course.
sunya7a has quit [Ping timeout: 240 seconds]
sepp2k has quit [Ping timeout: 250 seconds]
_tpavel has quit [Quit: Leaving]
Megtastique has quit []
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
shanlar has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Max SendQ exceeded]
nwertman has joined #ruby
tjsousa_ has joined #ruby
bradhe has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 252 seconds]
_Andres has joined #ruby
_Andres has quit [Max SendQ exceeded]
tjsousa has quit [Ping timeout: 240 seconds]
<shevy>
hehe
_Andres has joined #ruby
Hanmac1 has joined #ruby
mansi has quit [Remote host closed the connection]
bradhe has joined #ruby
alem0lars has joined #ruby
mansi has joined #ruby
monkegjinni has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
<apeiros>
though, they lost their ability to be included/extended
<lethjakman>
apeiros: is it just an alias or is there something different about the two?
pu22l3r_ has quit [Remote host closed the connection]
<lethjakman>
apeiros: classes did?
kpshek has quit []
cina has quit [Read error: No route to host]
cina has joined #ruby
gigetoo has quit [Read error: Connection reset by peer]
shvelo has joined #ruby
gigetoo has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
jpierre03 has joined #ruby
Megtastique has quit []
toastynerd has joined #ruby
<Nowaker>
i've got an object with a few attr_readers. what is the prefered way of writing a to_s for such object? I mean, I could just iterate through all attributes and build a string of that, but maybe there's some better way of doing that.
<apeiros>
lethjakman: alias?
<apeiros>
lethjakman: no, Class subclasses Module, as shown in the code
<apeiros>
< is the test for inheritance
<apeiros>
Nowaker: no silver bullets IMO. to_s is for print, it should return something useful when printing.
geggam has quit [Ping timeout: 240 seconds]
pushpak has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
lxsameer has joined #ruby
<lxsameer>
i'm looking for a gem to create linux daemon easily, do you know any ?
timonv has quit [Remote host closed the connection]
<Lightsword>
havenwood, would that require something to run on all the devices I want to make API requests to?
mrmargolis has joined #ruby
cescalante is now known as ce_afk
monkegjinni has joined #ruby
keelzebub has quit [Quit: Leaving]
omosoj has joined #ruby
dogweather has joined #ruby
<havenwood>
Lightsword: yes
<havenwood>
Lightsword: all solutions where there's an api on the device would seemingly require something running on the device, no?
<Lightsword>
havenwood, hmm, probably not possible, while I have control over devices they are embedded platforms that are not easy to customize
clov3r has quit []
<Lightsword>
they come with a json API though
s3ri0us has joined #ruby
northfurr has quit [Quit: northfurr]
<havenwood>
Lightsword: so the device can serve up vanilla http requests but not 0MQ or DRb or run a Websocket server?
rodri_gore has quit [Quit: WeeChat 0.4.3]
datafirm has quit [Quit: datafirm]
_derangedcritter has joined #ruby
<Lightsword>
havenwood, I think so, they are MIPS based with only 8MB of flash memory for everything including the OS
<havenwood>
Lightsword: They might support event-stream in the json API and if so Server-Sent Events may be possible. Otherwise sounds like you are indeed stuck with classical HTTP.
Megtastique has joined #ruby
lurch_ has joined #ruby
timonv has joined #ruby
failshel_ has quit []
guinslym has quit [Ping timeout: 240 seconds]
_Andres has joined #ruby
northfurr has joined #ruby
lurch_ has quit [Client Quit]
figgleberry has joined #ruby
<benzrf>
ØMQ tho
_Andres has quit [Client Quit]
combusean has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Aryasam has joined #ruby
Aryasam has quit [Client Quit]
wallerdev has joined #ruby
vlad_starkov has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
kpshek has quit []
sdwrage has joined #ruby
wjlafrance has joined #ruby
x1337807x has joined #ruby
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
testcore has quit [Ping timeout: 272 seconds]
timonv has quit [Remote host closed the connection]
n_blownapart has joined #ruby
x1337807x has quit [Client Quit]
afex has joined #ruby
yfeldblum has quit [Quit: Leaving...]
jespada has quit [Quit: Leaving]
yfeldblum has joined #ruby
m8 has quit [Quit: Sto andando via]
Es0teric has joined #ruby
x1337807x has joined #ruby
freerobby has quit [Quit: Leaving.]
intuxicated has quit [Ping timeout: 250 seconds]
fantazo has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
lxsameer has quit [Quit: Leaving]
ktun has joined #ruby
aspires has joined #ruby
kpshek has joined #ruby
ylluminate` has quit [Quit: Bye!]
xcesariox has joined #ruby
Burgestrand has joined #ruby
xcesariox has quit [Client Quit]
saarinen has quit [Quit: saarinen]
aspires has quit []
levity_island has joined #ruby
momigi has quit [Remote host closed the connection]
chendry has quit [Ping timeout: 252 seconds]
saarinen has joined #ruby
yekta has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
Xeago has quit [Remote host closed the connection]
mr_snowf1ake is now known as symm-
Bira_ has quit [Remote host closed the connection]
nolic has joined #ruby
testcore has joined #ruby
cina has quit [Read error: No route to host]
jackneill has quit [Remote host closed the connection]
symm- is now known as mr_snowf1ake
cina has joined #ruby
LACP has joined #ruby
ffranz has quit [Ping timeout: 252 seconds]
bricker_ has joined #ruby
bricker_ is now known as bricker`work
aspires has joined #ruby
bricker has quit [Disconnected by services]
treehug88 has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
nanoyak has joined #ruby
baweaver has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maximski has quit []
phutchins has quit [Ping timeout: 240 seconds]
ktun_ has joined #ruby
baweaver has joined #ruby
ffranz has joined #ruby
Ardenzi has quit [Remote host closed the connection]
sepp2k1 has quit [Quit: Leaving.]
shvelo has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
ktun has quit [Read error: Connection reset by peer]
aspires has quit []
doodlehaus has quit [Remote host closed the connection]
shashank_rs has joined #ruby
momigi has joined #ruby
aspires has joined #ruby
baweaver has quit [Remote host closed the connection]
ktun_ has quit [Read error: No route to host]
ktun has joined #ruby
Xiti has quit [Quit: Leaving]
nwertman has joined #ruby
razrunelord has joined #ruby
axl_ has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
aspires has quit [Client Quit]
soheil has quit []
paulfm has quit []
[gmi] has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
axl_ has quit [Client Quit]
rm-rf-etc has joined #ruby
<rm-rf-etc>
I need to get HTMLEntities installed on an old version of rails (1.2.3). With every gem command I try, I get the same response: ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 301
<rm-rf-etc>
Those commands are 'gem install rubygems-update', 'gem install htmlentities', even 'gem sources --list'
baweaver has joined #ruby
aspires has joined #ruby
djbkd has joined #ruby
soheil has joined #ruby
yfeldblu_ has joined #ruby
robert_ has quit [Read error: Connection reset by peer]
<rm-rf-etc>
ruby 1.8.5
Burgestrand has quit [Quit: Burgestrand]
freerobby has joined #ruby
<havenwood>
a time traveller!
keystonelemur has joined #ruby
<DouweM>
rm-rf-etc: that's impressive
momigi has quit [Ping timeout: 255 seconds]
lw has quit [Quit: s]
<rm-rf-etc>
Any thoughts on how to fix this? THe OS is fedora
yfeldblum has quit [Ping timeout: 250 seconds]
fijimunkii has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
<DouweM>
301 indicates a redirect, so it sounds like that old version of rubygems tries to connect to a gem server that has since moved, but it doesn't know how to follow the redirect
<DouweM>
but I have no idea how you'd get it working
<rm-rf-etc>
DouweM: But the 301 response for gem sources --list makes no sense to me.
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
Musashi1 has joined #ruby
<DouweM>
you've got a point there
<rm-rf-etc>
google "gem sources --list" "ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 301"
<rm-rf-etc>
1 result
jhass is now known as jhass|off
s2013 has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
keystonelemur has quit [Remote host closed the connection]
x1337807x has joined #ruby
<rm-rf-etc>
Perhaps htmlentities can be installed by manually placing the correct source code into the ruby libs?
Shidash has joined #ruby
benzrf|offline is now known as benzrf
<rm-rf-etc>
Any thoughts on how and where that might be?
<Nilium>
I think what you need to do is make good use of your fake cyanide-infused tooth
treehug88 has joined #ruby
vpretzel is now known as vpretzel|1484
cina has joined #ruby
Bumptious has quit [Remote host closed the connection]
<Nilium>
It's time to get out while the getting's good
<csmrfx>
perhaps clone the system first and do homework first and then update on the cloned, rm-rf-etc
<rm-rf-etc>
csmrfx: I need to get HTMLEntities installed on an old version of rails (1.2.3). With every gem command I try, I get the same response: ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 301
<rm-rf-etc>
csmrfx: Those commands are 'gem install rubygems-update', 'gem install htmlentities', even 'gem sources --list'
Bumptious has joined #ruby
<csmrfx>
yeah your rubygens is old
<csmrfx>
hence 301
aspires has quit []
<csmrfx>
(guess)
<combusean>
rails 1?
<Nilium>
Maybe a manual install of it would work?
<combusean>
holy cow
aspires has joined #ruby
<havenwood>
rm-rf-etc: Curious what version of RubyGems you're on?: gem -v
<franzip>
is there an equivalent to the Python's urllib in Ruby?
<Nilium>
Though, on the other hand, if you're still using old-ass Rails, that means you're probably stuck on old-ass 1.8.7 or something in that range, and so who knows if rubygems will even work now
<rm-rf-etc>
havenwood: 0.9.2
<csmrfx>
hehe
weems has quit [Read error: Connection reset by peer]
<csmrfx>
cool
<Nilium>
Holy balls that's old
<rm-rf-etc>
really can't afford to perform major upgrades at this point. Obviously it needs to be done, but that has to go through management.
<rm-rf-etc>
The time involved is the concern
<csmrfx>
rm-rf-etc: do realize you are going to have so much fun on so many levels it is great if you are paying off a mortgage
ldnunes has quit [Quit: Leaving]
<Nilium>
Scratch what I said, nuke this entire project from orbit.
<csmrfx>
(if they pay you)
<havenwood>
kill it with fire
<rm-rf-etc>
All that is needed currently is html entity encoding of special characters for rendering of content.
<Nilium>
Tell them the technology being outdated is proving problematic and it may be time to cut their losses
aspires has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
<rm-rf-etc>
So doing regex manually would probably be faster than upgrading everything, I'm guessing.
<wallerdev>
i would just find the html encoding code in the gem and add that method to a rails helper or something
<Nilium>
Management understands losses, so if you can just twist it into continued support costing more than killing it outright, they'll get the message
<combusean>
how complex is this app?
<Nilium>
Make sure to phrase the costs as monetary, human resources, and their jobs
<rm-rf-etc>
combusean: pretty simple. Basic CMS
ffranz has quit [Quit: Leaving]
<Nilium>
Could also just write your own encoding thing.
garndt has quit [Quit: Connection closed for inactivity]
<rm-rf-etc>
Nilium: ya, I think that's my best option
<csmrfx>
well
<combusean>
rm-rf-etc, i hope this is an internal app
<Nilium>
i.e., for anything outside the range of representable codes, use hex entities.
<Nilium>
That should hopefully make it easier to decode as well.
<combusean>
and not on a public IP
BSaboia has quit [Ping timeout: 252 seconds]
<rm-rf-etc>
combusean: any list of security issues or concerns I can take to management? I'm not a ruby dev.
<csmrfx>
I suggest finding the old gem version that was supposed be used
<wallerdev>
hes actually working on the yahoo.com homepage ;)
<csmrfx>
and add that in project, not in ruby libs
nowthatsamatt has quit [Quit: nowthatsamatt]
Bumptious has quit [Ping timeout: 264 seconds]
instantaphex has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
<wallerdev>
in rails 1 youd want to vendor the gem
<csmrfx>
(of htmlentities or whatever it was)
<combusean>
rm-rf-etc, the fact that your version of rails is 3 major versions out of date almost guarantees security concerns.
axl_ has quit [Quit: axl_]
* Nilium
has to resist the urge to say anything about Yahoo because he was trying to get a job there.
<wallerdev>
lol
<rm-rf-etc>
combusean: I understand that. Management might not. Specifics help. I'm not good at making up stuff and sounding convincing.
TripTastic has joined #ruby
<csmrfx>
and yeah, looks like your project has outlived its lifecycle a bit
<wallerdev>
are they hiring?
<wallerdev>
i thought they were dying
alexju has quit []
WishBoy has quit [Remote host closed the connection]
<wallerdev>
what's the main source of revenue for yahoo these days
<combusean>
rm-rf-etc, basically what you're doing is you're a drywall contractor on the titanic.
<Nilium>
It's just that they're neither improving drastically nor going anywhere other than left/right
<rm-rf-etc>
combusean: right. But I have to wait for another major set of feature requests before anyone will care.
<Nilium>
I think it might be advertising.
<Nilium>
I have no idea.
<wallerdev>
yeah i know they do search advertising
<wallerdev>
but i dont know who uses their search at this point
<Nilium>
The jobs I was looking at were all in mobile dev stuff because that's what a recruiter pinged me for
<Nilium>
And I'm not about to pass up being paid for stuff
<wallerdev>
haha right :)
<wallerdev>
yahoo seems like a cool place
treehug88 has quit []
<wallerdev>
i think i work in an old yahoo office
yfeldblu_ has quit [Remote host closed the connection]
<Nilium>
Couldn't care less who my employer is because I have no sense of loyalty toward any employer, I'd just end up doing what I was paid to do
<rm-rf-etc>
So can anyone give me a pointer on how to figure out which version of HTMLEntities will work for ruby 1.8.5 ?
<csmrfx>
combusean: more like the maritime emergency technician on the titannic
<combusean>
rm-rf-etc, tell them about the reaking issues with it, the fact that it's unsupported, will be impossible to develop more than small patch jobs moving forward, and risks becoming even more obsolete to the point where nothing will work anymore in a heartbeat.
<Nilium>
The folks I know at Yahoo seem pretty happy considering they've been there a long time, but I can't really say much because I don't know much
aspires has quit [Client Quit]
<wallerdev>
were they hiring for rails for mobile dev?
ikaros has joined #ruby
<rm-rf-etc>
yahoo also has other ventures that I assume are doing well, like yahoo small business
<Nilium>
No, I don't do rails crap.
<Nilium>
The mobile stuff was Android-specific
<csmrfx>
they have proper percentage in NA
<wallerdev>
ohh native stuff
<wallerdev>
cool cool
<Nilium>
They've got a lot of stuff spread across a lot of areas. Email, the ever-present joke that is Yahoo Answers, Flickr, that undead bookmark collection site, etc.
dogweather has quit [Remote host closed the connection]
mjsmith2 has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
<wallerdev>
yeah theyve got a lot of stuff, just not sure whats actually doing well these days haha
<wallerdev>
like what's growing for them right now
<Nilium>
Couldn't say since I don't pay attention to business stuff, but the info's probably out there
Xiti has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
<Nilium>
And I just remembered I should probably continue working on my GUI gem for Ruby at some point
<Nilium>
Probably, but Java UI stuff always has this weird uncanny valley feel to it
gregf has quit [Ping timeout: 250 seconds]
fenicks has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
<Nilium>
I figure by avoiding the look and feel of any major UI toolkits, that won't happen
sputnik1_ has joined #ruby
Aryasam has joined #ruby
<Nilium>
So you don't end up with the wxWidgets/QT issue of it-sort-of-looks-like-it-but-never-feels-right.
sputnik1_ is now known as sputnik13net
baweaver has joined #ruby
<wallerdev>
every cross platform toolkit has a horrible feel to it on a mac
andrewjanssen has quit [Quit: Leaving...]
Aryasam has quit [Client Quit]
<csmrfx>
well, still at the point where just having any gui any is fine!
vt102 has quit [Remote host closed the connection]
<csmrfx>
-any
datafirm has joined #ruby
<Nilium>
I use OS X, so making it work well there is sort of my main focus
<wallerdev>
they can pretend all they want, but if you want your app to feel good you need to do OS specific UI, and use a shared codebase for the business logic
justinxreese has quit [Ping timeout: 246 seconds]
n_blownapart has quit [Remote host closed the connection]
<Nilium>
I agree for the most part.
justinxreese has joined #ruby
<shevy>
like hipster colours on osx
<Nilium>
What I'm doing is intended less as a generic thing and I just want to do it for fun and possibly to help writing my own tools.
<csmrfx>
yeah I think I'd just go jruby cause java portability just works
<shevy>
csmrfx but it looks so ugly on osx!
pwh has joined #ruby
<Nilium>
Though I'd probably just end up using fltk for tools
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wjlafrance has quit [Quit: This computer has gone to sleep]
treehug88 has joined #ruby
<csmrfx>
yeah, looks uglish on debian, too
axl_ has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
<shevy>
that's ok, debian in itself is ugly
<csmrfx>
then again
agrinb_ has joined #ruby
baweaver has quit [Remote host closed the connection]
<csmrfx>
debian has dozens of dms and wms
<wallerdev>
java is consistent in that it looks ugly on every platform lol
agrinb has quit [Read error: Connection reset by peer]
<Nilium>
I like Swing when it doesn't try to look like the native OS
<shevy>
Swine? Swig?
cina has quit [Read error: No route to host]
<Nilium>
It's a lot easier to swallow UI inconsistency when the UI isn't pretending to be native
aspires has joined #ruby
<csmrfx>
I wish I could just draw the UI in SVG (illustrator, inkscape...)
monkegjinni has quit []
vlad_starkov has joined #ruby
cina has joined #ruby
alem0lars has quit [Quit: alem0lars]
ghr has joined #ruby
freerobby has quit [Quit: Leaving.]
<Nilium>
I'd like node-webkit, but my experience with browser-based apps and whatnot is that they're all slow and painful to use
* Nilium
glares at Atom
<Nilium>
It's probably the worst offender.
<shvelo>
hi shevy :D
aspires has quit [Client Quit]
Azure has joined #ruby
<havenwood>
help test out pry 0.10.0-pre!: gem install pry --pre
<shvelo>
why does Fixnum have to_int if int is Fixnum?
<shevy>
haha hi shvelo
Stalkr_ has joined #ruby
<wallerdev>
so you can accept any type
<wallerdev>
and not special case call to_i if its not already a fixnum
djbkd has quit [Remote host closed the connection]
aspires has joined #ruby
levity_island has quit [Ping timeout: 264 seconds]
<havenwood>
"".to_s #=> "" #etc
<wallerdev>
you can just say num = whateverwaspassedin.to_i
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
<banister>
shvelo for duck-typing
elaptics is now known as elaptics`away
geggam has quit [Ping timeout: 240 seconds]
<banister>
shvelo not duck-typing, i mean, cos you might be passed something tht is not an int, but it also might be, so to_i ensures you get an int
<shvelo>
good
nateberkopec has quit [Quit: Leaving...]
ihitdisplay has joined #ruby
<shvelo>
btw why is integer called Fixnum?
danshultz has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 240 seconds]
<shvelo>
and why isn't there to_fixnum :D
<LiquidInsect>
it's not
<wallerdev>
Fixnum < Integer
danshultz has joined #ruby
<LiquidInsect>
Fixnums are Integers
geggam has joined #ruby
<Nilium>
shvelo: Integer is Integer, Fixnum is Fixnum.
<Nilium>
to_i converts to an integer, it's not guaranteed to be a Fixnum as far as I know.
<LiquidInsect>
so are Bignums (I think...)
<wallerdev>
A Fixnum holds Integer values that can be represented in a native machine word
<wallerdev>
(minus 1 bit). If any operation on a Fixnum exceeds this range, the value is
<wallerdev>
automatically converted to a Bignum.
<shvelo>
thanks wallerdev
<Nilium>
It's fairly convenient.
<Nilium>
Wish more languages had automagic bignums.
<LiquidInsect>
you don't have to decide "Do I need a 64-bit integer here?"
zzzbra has quit [Remote host closed the connection]
yfeldblum has joined #ruby
zzzbra has joined #ruby
relix has joined #ruby
<Nilium>
Though I mostly end up using Scheme if I need to do a lot of numeric stuff.
<Nilium>
e.g., my taxes.
<wallerdev>
i use turbotax™
weems has joined #ruby
nateberkopec has joined #ruby
<Nilium>
I do them by hand and write little scripts to be run by Gambit Scheme for adding things up
Zesty has joined #ruby
freezey has quit [Read error: Connection reset by peer]
badhatter has quit [Ping timeout: 245 seconds]
<Nilium>
Gambit Scheme being the god of Schemes.
danshultz has quit [Ping timeout: 245 seconds]
freezey has joined #ruby
radic has quit [Ping timeout: 240 seconds]
<Nilium>
And Racket being satan.
* Nilium
shakes his fist
musl has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
Musashi1 has joined #ruby
faulkner has quit [Ping timeout: 240 seconds]
musl has joined #ruby
zzzbra has quit [Ping timeout: 240 seconds]
jobewan has quit [Quit: Leaving]
Bira has joined #ruby
endash has quit [Quit: endash]
<csmrfx>
wow, I dont even have scheme installed
marahin has quit [Ping timeout: 240 seconds]
stnly has quit [Ping timeout: 240 seconds]
St_Marx has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 272 seconds]
RaptorJesus has quit [Ping timeout: 272 seconds]
radic has joined #ruby
ikawnoclast has quit [Ping timeout: 240 seconds]
aspires has quit []
dangerousdave has joined #ruby
stnly has joined #ruby
linojon has quit [Quit: linojon]
SHyx0rmZ has joined #ruby
fenicks has quit [Ping timeout: 252 seconds]
nanoyak has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
marahin has joined #ruby
marahin is now known as Guest86877
johnmlocklear_ has quit [Ping timeout: 240 seconds]
nanoyak has joined #ruby
faulkner has joined #ruby
levity_island has joined #ruby
havenwood has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
is there a way to do include only when it was not included yet?
<shevy>
module Foo; end; module Bar; include Foo unless already included; end
<apeiros>
include Foo unless self < Foo
<centrx>
Isn't that how it works?
<apeiros>
might actually
try has quit [Ping timeout: 240 seconds]
<apeiros>
might not, too, though
<apeiros>
since include has some quirks
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sl33k_ has quit [Ping timeout: 276 seconds]
fenicks has joined #ruby
Azure has joined #ruby
<shevy>
hmm
krazh has quit [Remote host closed the connection]
ikaros has quit [Client Quit]
fenicks has quit [Remote host closed the connection]
krazh has joined #ruby
fenicks has joined #ruby
jamto11 has quit [Remote host closed the connection]
Iniesta8 has quit [Client Quit]
kirun has quit [Quit: Client exiting]
ghr has joined #ruby
zigomir has quit [Remote host closed the connection]
nowthatsamatt has quit [Quit: nowthatsamatt]
SevenWolf has joined #ruby
kevind has quit [Quit: kevind]
zorak8 has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
nateberkopec has joined #ruby
zorak8 has joined #ruby
SevenWolf has left #ruby [#ruby]
gregf has joined #ruby
wow-such-jjb has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
wow-such-jjb has quit [Client Quit]
moted has quit [Quit: moted]
geggam has quit [Remote host closed the connection]
mjsmith2 has joined #ruby
shashank_rs has quit [Ping timeout: 250 seconds]
moted has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
vpretzel|1484 has quit [Quit: Adios!]
andrewjanssen has joined #ruby
x1337807x has joined #ruby
dr0ff has joined #ruby
vlad_starkov has quit []
Azulinho has joined #ruby
Azulinho has quit [Client Quit]
kitak has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
kitak has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
kitak has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
kitak has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
BSaboia has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
sputnik13net has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ihitdisplay has quit [Quit: Leaving]
marahin has quit [Ping timeout: 240 seconds]
moted has quit [Quit: moted]
Aaaal has quit [Read error: Connection reset by peer]
caiges has joined #ruby
moted has joined #ruby
Aaaal has joined #ruby
agrinb_ has quit [Remote host closed the connection]
_Andres has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
marahin has joined #ruby
marahin is now known as Guest82029
enebo has quit [Quit: enebo]
seaned has quit [Quit: Zzzzzz....]
dfinly has quit [Quit: Farewell]
franzip has quit [Quit: ...]
Doppp has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_Andres has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
whomp has joined #ruby
yairgo has quit [Ping timeout: 252 seconds]
chendry has joined #ruby
SCommette has quit [Quit: SCommette]
kevind has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
x1337807x has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
hermanmunster has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
Aaaal has quit [Read error: Connection reset by peer]
Aaaal has joined #ruby
RaptorJesus has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
shashank_rs has joined #ruby
tjr9898 has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 255 seconds]
jxf has quit [Ping timeout: 264 seconds]
x1337807x has joined #ruby
arrubin has quit []
hermanmunster has quit [Ping timeout: 255 seconds]
_Andres has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
fluve has joined #ruby
benzrf is now known as benzrf|offline
pwh has quit []
alexju has joined #ruby
ValicekB has joined #ruby
s2013 has joined #ruby
jtdowney has joined #ruby
combusean has quit [Ping timeout: 264 seconds]
m00nlight has quit [Quit: Konversation terminated!]
agrinb has joined #ruby
mrmargolis has joined #ruby
lw has quit [Quit: s]
fijimunkii has joined #ruby
s2013 has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
kpshek has quit []
phutchins has joined #ruby
wald0 has quit [Quit: Lost terminal]
freezey has quit []
phoo1234567 has quit [Quit: Leaving]
afex has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
KanKava has quit [Remote host closed the connection]
chendry has quit [Quit: Leaving]
chrisja has quit [Quit: leaving]
djbkd has joined #ruby
jtdowney has quit []
lethjakman has joined #ruby
Olipro has joined #ruby
roadie has quit [Ping timeout: 250 seconds]
ce_afk is now known as cescalante
funburn has joined #ruby
i_s has quit [Remote host closed the connection]
jallard has joined #ruby
iamcalledrob_ has joined #ruby
<jallard>
hi i tried to install rails on os x mavericks
chrisramon has joined #ruby
<jallard>
and i get this when i gem install it: clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
i_s has joined #ruby
terrell_t has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
i_s has quit [Read error: Connection reset by peer]
Lightsword has quit [Remote host closed the connection]
i_s has joined #ruby
i_s_ has joined #ruby
i_s has quit [Read error: Connection reset by peer]
i_s_ has quit [Read error: Connection reset by peer]
i_s has joined #ruby
i_s has quit [Read error: Connection reset by peer]
omosoj has joined #ruby
i_s has joined #ruby
terrellt has quit [Ping timeout: 276 seconds]
narcan has joined #ruby
i_s has quit [Read error: Connection reset by peer]
toastynerd has quit [Remote host closed the connection]
i_s has joined #ruby
i_s has quit [Remote host closed the connection]
krazh has quit [Remote host closed the connection]
krazh has joined #ruby
linojon has joined #ruby
i_s has joined #ruby
Aaaal has quit [Quit: Aaaal]
Bruno_ has joined #ruby
bradhe has joined #ruby
<RubyPanther>
>> module Foo; def omg; 'pony' end end ; class Bar; include Foo; end ; module Foo ; def omg; 'uniponies!' end end ; class Bar ; puts 'has Foo really been included? what does that mean? Is the whole idea a race condition?' end # shevy
<shevy>
well
<shevy>
problem was the self < Anything part
<shevy>
it distorts my style of coding in ruby so I could not use it anyway
SCommette has joined #ruby
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RubyPanther>
Seems to go deeper to the question of if Ruby is static (it isn't)
ghr has joined #ruby
<RubyPanther>
It might be one of those things where even if you code it correctly, it is still a bug
cescalante is now known as ce_afk
toastynerd has joined #ruby
onk has joined #ruby
Aaaal has joined #ruby
phutchins has quit [Ping timeout: 250 seconds]
nateberkopec has quit [Quit: Leaving...]
BSaboia has quit [Ping timeout: 250 seconds]
tricon_ has joined #ruby
baweaver has joined #ruby
i_s has quit [Ping timeout: 255 seconds]
hermanmunster has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
figgleberry has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 258 seconds]
meatherly has quit []
razrunelord has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 264 seconds]
meatherly has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]