<mg^>
test passes, require called, error... test fails, require never called, no error.
Asher has joined #ruby
<zenspider>
sorry s/push/concat/
<gregf>
Igneous: i was updating the paste to show zenspider that region_list wasn't empty at the start
<gregf>
zenspider: thanks
<zenspider>
that code makes assumptions... but the idea is there
jheg has joined #ruby
weemsledeux has joined #ruby
VanillaGoat__ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Areessell has quit [Ping timeout: 244 seconds]
Tab_ has joined #ruby
VanillaGoat_ has quit [Ping timeout: 255 seconds]
jheg has quit [Ping timeout: 256 seconds]
Takle has quit [Remote host closed the connection]
sinequanon has quit []
fwaokda has quit [Remote host closed the connection]
doritostains has quit [Quit: doritostains]
bricker`work has quit [Ping timeout: 265 seconds]
Trynemjoel has quit [Quit: Quitting]
rpag has joined #ruby
tokik has joined #ruby
mgorbach has joined #ruby
agrinb has joined #ruby
<siwica>
want to create a zipped file containing a number of files created at runtime that don't need to be written on the hard-drive first. Is there any easy solution for this? I know of zipruby (not tried yet) and the possibility of creating virtual files somehow (never done this) but do you know of some specific tutorial for this?
Trynemjoel has joined #ruby
magic_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
klaut has quit [Remote host closed the connection]
tier has joined #ruby
jheg has joined #ruby
thetrav has joined #ruby
nateberkopec has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
mattstratton has joined #ruby
mattstratton has quit [Read error: Connection reset by peer]
dopie has quit [Remote host closed the connection]
mattstratton has joined #ruby
mattstratton has quit [Max SendQ exceeded]
jheg has quit [Ping timeout: 250 seconds]
mattstratton has joined #ruby
robbyoconnor has joined #ruby
larsam has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
Areessell has joined #ruby
Synthbread has joined #ruby
MattB2_ has joined #ruby
oo__ has joined #ruby
MattB2_ has quit [Client Quit]
Insanity133 has joined #ruby
MattB2_ has joined #ruby
MattB2_ has quit [Client Quit]
pietr0 has quit [Quit: pietr0]
charliesome has joined #ruby
MattB2_ has joined #ruby
MattB2 has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
thetrav has quit [Quit: Page closed]
n_blownapart has quit [Remote host closed the connection]
duggiefresh has joined #ruby
razieliyo_ has quit [Quit: Saliendo]
ProductionBeast has quit [Ping timeout: 264 seconds]
Insanity133 has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
ProductionBeast has joined #ruby
mary5030 has joined #ruby
triple_b has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
duggiefresh has quit [Ping timeout: 265 seconds]
michael_mbp has quit [Excess Flood]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
michael_mbp has joined #ruby
Norrin has quit [Ping timeout: 260 seconds]
mary5030 has quit [Ping timeout: 244 seconds]
Mekkis_ has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
MattB2_ is now known as MattB2
cantonic has quit [Ping timeout: 245 seconds]
vifino has quit [Ping timeout: 260 seconds]
vifino has joined #ruby
Norrin has joined #ruby
Mekkis has joined #ruby
arescorpio has joined #ruby
cantonic has joined #ruby
jonathanwallace has joined #ruby
Hijiri has joined #ruby
stunder has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
atomi has joined #ruby
aspires has joined #ruby
coderhs has quit [Quit: Leaving]
Noobdog has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
russt has quit [Quit: russt]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs has quit [Ping timeout: 258 seconds]
balazs has joined #ruby
freerobby has joined #ruby
wm3|away has quit [Ping timeout: 258 seconds]
lampd1 has joined #ruby
<lampd1>
Anyone ever tackle getting sidekiq monitoring running in a standalone sinatra app?
<lampd1>
Running into a sleuth of errors and not rly sure why
Caius has quit [Ping timeout: 260 seconds]
bmurt has joined #ruby
triple_b has joined #ruby
tkuchiki has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
agrinb has joined #ruby
o0oo0o has quit [Quit: WeeChat 0.4.3]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
Caius has joined #ruby
skolman_ has quit [Remote host closed the connection]
Jake232 has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
ghostmoth has quit [Quit: ghostmoth]
sepp2k has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 265 seconds]
i_s has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
Trynemjoel has joined #ruby
Tab_ has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 250 seconds]
dkb20k has joined #ruby
doritostains has quit [Quit: doritostains]
baroquebobcat has quit [Quit: baroquebobcat]
robustus|Off has joined #ruby
tier has quit [Remote host closed the connection]
robustus|Off is now known as robustus
i_s has quit [Ping timeout: 265 seconds]
freerobby has quit [Quit: Leaving.]
guedes has joined #ruby
guedes has quit [Read error: Connection reset by peer]
dkb20k has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
<ProductionBeast>
i have params.require(:project_member).permit(:admin, :email, :phone, forms: [], credits_attributes: [:id, :_destroy, :credit_role_id, :start_year, :end_year, seasons: []]) in my controler and i can't figure out the correct structure i need to send to this endpoint.
<elemenopy>
so far i can get most of it working by hackign it together but i am seeing a new error when trying to make this a class with a function
skolman has joined #ruby
hamakn has quit [Ping timeout: 240 seconds]
duggiefresh has quit [Ping timeout: 245 seconds]
<Noobdog>
elemenopy: All caps in Ruby is how a constant is defined, rename DB to something else like db and it should work
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<elemenopy>
omg you have to be kidding me haha, let me try that. if that works i need to be reading a little more
skolman has quit [Ping timeout: 244 seconds]
kalz has quit [Quit: exit]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MattB2 has quit []
thezanke has joined #ruby
sailias has joined #ruby
baroquebobcat has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
thezanke has quit [Client Quit]
wjimenez5271 has joined #ruby
skolman_ has joined #ruby
jimms has quit []
ctp has quit [Quit: Connection reset by peer... Isn't he that short little Mexican with the wire cutters heading your way?]
<Noobdog>
elemenopy: How did you end up?
<rpag>
elemenopy, you don't have to define the open() method, a require of 'open-uri' adds Kernel#open, you can use that to download a file over HTTP: open(url, &:read).
<elemenopy>
oh man, new errors are coming up now
hamakn has joined #ruby
<elemenopy>
just googling schmoogling now
mr_roger_ has joined #ruby
<elemenopy>
reading reading reading
<rpag>
your indentation could be improved too :)
<rpag>
what's the error?
Lewix has joined #ruby
skolman_ has quit [Remote host closed the connection]
<elemenopy>
WebScrapeClass.rb:33:in `scrapepage': undefined method `xpath' for nil:NilClass (NoMethodError)
ramfjord has quit [Ping timeout: 255 seconds]
<rpag>
line 31 could be returning nil then
<elemenopy>
hmm i gotta check for nil's somehow then
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<rpag>
it just means your first xpath query doesn't match, on line 31
melik has quit [Quit: (null)]
<rpag>
this line: firstpostonpage = doc.xpath('//table[@class="forumTable forumPostListTable"]/tr/td/div[@class="content"]').first
<elemenopy>
i found something like unless firstpostonpage.nil? ...... end
<elemenopy>
just wrap that around the code that follows perhaps?
<rpag>
well, do you need the xpath to match or not? if it's okay if it is nil, then unless would work, yeah
<elemenopy>
yea i can take nils. ill just skip the link in the crawler
djbkd has quit [Quit: My people need me...]
<elemenopy>
but i gotta have that xpath , if it doesn't exist it's not valid to be scraped
<Noobdog>
its a lot easier if you just work with the CSS, Xpath is a pain in the ass.
<elemenopy>
man i wish! i am translating via xpath from c# .NET so xpath was portable
<Noobdog>
doc.css('td') from memory
<Noobdog>
will return all the tables in the pages
mr_rogerz_ has joined #ruby
mr_roger_ has quit []
<elemenopy>
i was able to use xpath to almost do a straigth 1 to 1 translation for most of our code
<Noobdog>
Why are you coverting over from c# if it worked
graydot has joined #ruby
<elemenopy>
i can't afford to expand anymore Micro$oft servers :) i pay out of pocket with scholarship money right now
kalz has joined #ruby
<elemenopy>
i dont host ads on our mobile apps or web pages
agrinb has joined #ruby
<elemenopy>
i could trade two M$ server for like 4 or 5 decent linux boxes
agrinb_ has joined #ruby
patrick99e99 has joined #ruby
<rpag>
elemenopy, if you depend on the xpath being a match then you should inspect the HTML you're getting and find out why it doesn't match
nateberkopec has quit [Quit: Leaving...]
krz has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
<elemenopy>
i hear ya. im just a couple of days into ruby now and im just so impressed how fast we are translating now. i am a huge fan of optimization but i wanna get a working engine prototype done by tonight so i'm just trying to slam through this
<elemenopy>
this irc channel has been incredible so far
<elemenopy>
but i am getting random PM messages though in here with links to weird websites, im not sure if that's normal
<elemenopy>
something about "show gratis"
<rpag>
no its not
<rpag>
it's a porn bot or something
<rpag>
it's been banned before but sounds like it keeps coming back
<rpag>
its been banned before*
<benzrf>
elemenopy
<benzrf>
y not
<benzrf>
elemenorb
Channel6 has joined #ruby
<elemenopy>
**slow clap** :)
<benzrf>
better yet
<benzrf>
elemenohs
<benzrf>
;)
<rpag>
haskell?
<benzrf>
yea
<rpag>
nobody in the real world uses that language :D
rshetty has joined #ruby
<benzrf>
then how do you explain the existence of people who use it
<benzrf>
are they not real
<rpag>
right, they're holograms
Takle has joined #ruby
<rpag>
(written in ruby)
arup_r has joined #ruby
ramfjord has joined #ruby
<rpag>
yay for redirect loops :(
Synthbread has quit [Remote host closed the connection]
<elemenopy>
unless .... end fixed the issue. cleaning up little things now
<jenrzzz>
elemenopy: on line 6, you're defining a new class called WebPage::String, not monkey patching ::String as you seem to intend to
wallerdev has quit [Quit: wallerdev]
it0a has joined #ruby
govg has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<elemenopy>
you're blowing my mind with these monkey
michaeldeol has joined #ruby
<elemenopy>
*monkeys
tyll has quit [Ping timeout: 272 seconds]
<rpag>
anum, i don't think SSL is enabled unless you explicitly request it to be?
rshetty has quit [Ping timeout: 244 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
Insanity133 has quit [Remote host closed the connection]
nettoweb_ has joined #ruby
doritostains has joined #ruby
<anum>
rpag , I am trying to disable SSL for all requests, even those made in gems which I have no control over. Specifically, the stripe gem . It does not specify an SSL version, but it does use ssl
jtdowney has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag>
there is no global switch on Net::HTTP that i know of
<rpag>
why do you want to disable SSL? Stripe deals with payment, right? you would that to be encrypted
garycruise has quit [Quit: 离开]
<anum>
I don't want it disabled, I just want it to not use SSLv3
<anum>
a specific version of the protocol
<rpag>
what do you want it to use?
robbyoconnor has quit [Ping timeout: 245 seconds]
<anum>
anything more modern. TLSv1 or TLSv2 would be great. Stripe sent out a notice that they will disable SSLv3 on their servers, but no guidance on what to do about it.
<rpag>
hm
<rpag>
surely they would update their gem?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<anum>
in their notice they said my app has made requests using the v3 version, so I'm not sure where it's getting that
<anum>
they haven't uet
<anum>
*yet
<anum>
nor did they say they were planning on it :/
<elemenopy>
if i start a thread using thread.join, it will stop eventually as long as i tell it when it's done right?
donkus has joined #ruby
<rpag>
thread.join waits for the thread to finish
mib_mib has joined #ruby
<elemenopy>
kew kew thx
lampd1 has joined #ruby
<donkus>
okay so, I have a program that makes cleverbot talk to itself, in the console, and I want to set it as my xscreensaver text command
radic_ has quit [Ping timeout: 245 seconds]
<donkus>
but the ruby program prints nothing in xscreensaver
<elemenopy>
i want a copy o f that when you're done
<elemenopy>
:)
<donkus>
so I tried using it in shell, it works with no pipes, but if I pipe my program into cat like ./cleverbot.rb | cat, it prints nothing
rshetty has joined #ruby
<donkus>
how do I get it to let output be read normally?
garycruise has joined #ruby
<siwica>
when having a method that is only doing some stuff and has no return value, is there a canonical parameter one should return if the operation succeeds?
oo_ has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
oo_ has joined #ruby
garycruise has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Insanity133 has joined #ruby
braincrash has quit [Quit: bye bye]
oo_ has quit [Ping timeout: 250 seconds]
Trynemjoel has quit [Ping timeout: 265 seconds]
pen has quit []
<donkus>
why can't I pipe the output of my ruby program into a different unix program like grep or cat?
braincrash has joined #ruby
<donkus>
shortened my question
anum has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<txdv>
soon we will hang you on a cross like we did with jesus
<shevy>
txdv I am still trying to finish my rewrite of konsole colours :(
<rpag>
lol
coderhs has joined #ruby
fandi has quit [Remote host closed the connection]
coderhs has quit [Remote host closed the connection]
Azure has joined #ruby
<shevy>
ohhhhhh
Xiti has quit [Ping timeout: 244 seconds]
<shevy>
<module:KonsoleColours>': undefined method `menu' for class `Class' (NameError)
cantonic has quit [Quit: cantonic]
<shevy>
I now see what I did there
josephndenton has joined #ruby
bricker`work has quit [Ping timeout: 265 seconds]
Wolland has quit [Ping timeout: 255 seconds]
<shevy>
Foo::Foo becomes too confusing
snovity has joined #ruby
fsapo has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
mtakkman has joined #ruby
cantonic has joined #ruby
<alex88>
hi guys, someone uses fog here? I'm trying to download a 2gb file https://gist.github.com/alex88/d34c6afc88aeb6eb0d80 however it download first some hundred megs and then it hangs, starts again after a while and nearly at 1.5gb or so it raises "read timeout reached"
<alex88>
any thought?
ramfjord has joined #ruby
<alex88>
tristras: ciclopee: no need thanks :D
josephndenton has quit [Ping timeout: 265 seconds]
robustus is now known as robustus|Off
clauswitt has joined #ruby
lxsameer has joined #ruby
eightfold has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
anarang has joined #ruby
<eightfold>
i wonder what's the best way to download and use ruby for os x these days. i mostly use it for jekyll.
<eightfold>
should i get rvm?
<rpag>
if you don't care about using the latest ruby then the system ruby that comes with osx should be fine
Takle has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
<rpag>
i use chruby&ruby-install
Pixi_ has joined #ruby
quimrstorres has joined #ruby
Axy has joined #ruby
<eightfold>
rpag: i don't care much about that
robustus|Off is now known as robustus
_tpavel has quit [Ping timeout: 245 seconds]
Xiti has joined #ruby
Xiti` has quit [Ping timeout: 245 seconds]
mg^^ has quit [Ping timeout: 264 seconds]
mg^ has joined #ruby
rylev has quit [Remote host closed the connection]
<shevy>
the source!!!
Guest7420 has quit [Quit: Leaving]
Darryl_ has joined #ruby
arup_r has quit [Remote host closed the connection]
Pixi_ has quit [Ping timeout: 244 seconds]
pasv has joined #ruby
pasv is now known as Guest57834
oo_ has quit [Remote host closed the connection]
Takle has joined #ruby
oo_ has joined #ruby
boombadaroomba has joined #ruby
mtakkman has quit [Read error: Connection reset by peer]
hanmac1 has joined #ruby
<rpag>
eightfold, latest osx ships ruby2
postmodern has quit [Quit: Leaving]
agjacome has quit [Quit: leaving]
dANO_ has quit []
<eightfold>
rpag: well that's good. finally
mattstratton has joined #ruby
bMalum has quit [Quit: bMalum]
nrsk has joined #ruby
rshetty has quit [Ping timeout: 258 seconds]
oo_ has quit [Ping timeout: 255 seconds]
boombadaroomba has quit [Ping timeout: 250 seconds]
<rpag>
i think they didn't ship 1.9 because macruby was going to be 1.9 but never took off
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
luminor has quit []
Takle has quit [Remote host closed the connection]
duggiefresh has quit [Ping timeout: 245 seconds]
anarang has quit [Ping timeout: 265 seconds]
moritzs has quit [Ping timeout: 250 seconds]
anarang has joined #ruby
Xiti` has joined #ruby
<jheg>
when writing OO code is best to follow any sort of loose rules regarding class dependencies on other classes such as how deep the relationship between them go?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Brando753 has quit [Ping timeout: 265 seconds]
kaspertidemann has quit []
Xiti has quit [Ping timeout: 265 seconds]
tristras has quit [K-Lined]
<michael_mbp>
hey guys
jzinedine has quit [Ping timeout: 264 seconds]
Miron has joined #ruby
Fire-Dragon-DoL has joined #ruby
Pixi_ has joined #ruby
i_s has joined #ruby
shredding has quit [Quit: shredding]
kaspertidemann has joined #ruby
clauswitt has quit [Remote host closed the connection]
quimrsto_ has quit [Remote host closed the connection]
Xiti` has quit [Ping timeout: 244 seconds]
_d is now known as yubi
clauswitt has joined #ruby
yubi is now known as _d
anarang has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i_s has quit [Ping timeout: 255 seconds]
Xiti` has joined #ruby
Kamilion has joined #ruby
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
larsam has joined #ruby
rshetty has joined #ruby
fabrice31 has joined #ruby
VanillaGoat_ has joined #ruby
luckyruby has quit [Quit: Leaving...]
Brando753 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
tesuji has quit [Ping timeout: 258 seconds]
Pixi_ has quit [Ping timeout: 240 seconds]
MattB2 has joined #ruby
Xiti has joined #ruby
sevenseacat has joined #ruby
VanillaGoat__ has quit [Ping timeout: 255 seconds]
Xiti` has quit [Ping timeout: 244 seconds]
anarang has joined #ruby
Wolland has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
koderok has joined #ruby
quimrstorres has joined #ruby
k4nn37 has joined #ruby
<k4nn37>
anyone here
rbrs has quit [Quit: Leaving]
<jhass>
you are
<k4nn37>
i bet
Wolland has quit [Ping timeout: 265 seconds]
clauswit_ has joined #ruby
godd2 has quit [Ping timeout: 255 seconds]
spastorino has joined #ruby
<rpag>
k4nn37, ask your q, if someone is interested/around they will answer
patrick99e99 has joined #ruby
<shevy>
k4nn37 come on man
* hanmac1
does trade Q against A
* jhass
trades Q against AA
tlarevo_ has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
ClarusCogitatio has quit [Ping timeout: 250 seconds]
AlSquire has joined #ruby
rshetty has quit [Ping timeout: 265 seconds]
thezanke has joined #ruby
robustus|Off is now known as robustus
Wolland has joined #ruby
mkaesz has quit [Remote host closed the connection]
phutchins has joined #ruby
ClarusCogitatio has joined #ruby
blackmesa has joined #ruby
Dude007 has quit [Read error: Connection reset by peer]
thezanke has quit [Client Quit]
dangerousdave has joined #ruby
Wolland_ has joined #ruby
jxf has joined #ruby
Nahra has quit [Ping timeout: 265 seconds]
anarang has quit [Quit: Leaving]
anaeem1 has quit [Remote host closed the connection]
anarang has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
shredding has joined #ruby
Mia has left #ruby [#ruby]
Wolland has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
duggiefresh has joined #ruby
Wolland_ has quit [Ping timeout: 258 seconds]
charliesome has quit [Client Quit]
Soda has joined #ruby
georgschlenkhoff has joined #ruby
duggiefresh has quit [Ping timeout: 255 seconds]
georgschlenkhoff has left #ruby ["Textual IRC Client: www.textualapp.com"]
garycruise has joined #ruby
anarang has quit [Ping timeout: 255 seconds]
garycruise has quit [Client Quit]
sarlalian has quit [Quit: WeeChat 0.4.2]
dc has joined #ruby
aclearman037 has joined #ruby
Timgauthier has joined #ruby
sk87 has joined #ruby
pyon has quit [Quit: And the battle will rage until only the Raichu prevail!]
Lewix has joined #ruby
heftig is now known as heftig[]
larissa has joined #ruby
heftig[] is now known as heftig
jenrzzz has joined #ruby
shiru has joined #ruby
josephndenton has joined #ruby
RitterJack has joined #ruby
Xeago has joined #ruby
KC9YDN has quit [Read error: Connection reset by peer]
shiru has quit [Remote host closed the connection]
MattB2 has quit []
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anarang has joined #ruby
arup_r has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Xeago_ has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
triple_b has joined #ruby
dangerousdave has joined #ruby
panini has joined #ruby
paulfm has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 250 seconds]
tier has joined #ruby
mattstratton has quit [Ping timeout: 264 seconds]
abuzze_ has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abuzze has quit [Ping timeout: 265 seconds]
dangerousdave has joined #ruby
eightfold has joined #ruby
spyderman4g63 has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
nfk has joined #ruby
cantonic has joined #ruby
<alex88>
how could be that on an aws instance with a root device only Dir.tmpdir returns /tmp and in an instance with /tmp mounted on an ebs it returns the current path as tmpdir?
<Takumo>
hmm, warden is failing authentication
<Takumo>
even though my strategy literally just returns true for #valid? and #authenticate!
_tpavel has quit [Quit: Leaving]
aclearman037 has quit [Quit: I'm out!]
<hanmac1>
alex88: did you try to ask at ##aws too?
ed_t has quit [Quit: Leaving]
droidburgundy has joined #ruby
<alex88>
hanmac1: nm found it, looking at Dir.tmpdir source, /tmp when default mounted to an ebs is not world writable :S
aclearman037 has joined #ruby
Jake232 has quit [Ping timeout: 258 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
philwantsfish has joined #ruby
govg has joined #ruby
anarang has quit [Quit: Leaving]
ndrei has joined #ruby
atomical has joined #ruby
Lewix has quit [Remote host closed the connection]
siwica has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
dangerousdave has joined #ruby
mtakkman has joined #ruby
jleishman has joined #ruby
nateberkopec has joined #ruby
benzrf|offline is now known as benzrf
andrewlio has joined #ruby
rshetty has joined #ruby
oo_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
boombadaroomba has joined #ruby
abuzze has joined #ruby
yfeldblum has joined #ruby
DaniG2k has quit [Ping timeout: 245 seconds]
rshetty has quit [Read error: Connection reset by peer]
mib_mib has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
bmurt has joined #ruby
arup_r has quit [Remote host closed the connection]
silkfox has joined #ruby
rshetty has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
TPBallbag has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 255 seconds]
kamil has quit [Quit: Leaving...]
boombadaroomba has quit [Ping timeout: 250 seconds]
tier has quit [Remote host closed the connection]
yfeldbl__ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
poulet_a has quit [Quit: Quitte]
haroldwu has quit [Ping timeout: 255 seconds]
pouleta has joined #ruby
haroldwu has joined #ruby
oleo has joined #ruby
mtakkman has quit [Remote host closed the connection]
pouleta has joined #ruby
Pumukel has quit [Ping timeout: 272 seconds]
cpruitt has joined #ruby
yfeldbl__ has quit [Ping timeout: 258 seconds]
sinkensabe has joined #ruby
romistrub has joined #ruby
adriancb has joined #ruby
<romistrub>
what's the best way to define an empty method in a class definition to indicate an interface?
rshetty has quit [Read error: Connection reset by peer]
<hanmac1>
romistrub: hm you might not need it, just use respond_to? or just call the method and let it crash in a MethodMissing .... or use: def function(*args) raise NotImplementedError; end
luksaur has joined #ruby
<jhass>
don't do the last one
dblessing has joined #ruby
dblessing has quit [Client Quit]
<jhass>
just assume it's there and let it crash
TPBallbag has joined #ruby
i_s has quit [Ping timeout: 244 seconds]
livathinos has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
duggiefresh has quit [Ping timeout: 244 seconds]
<hanmac1>
jhass: i use NotImplementedError for platform specific stuff ...
nonks has quit [Ping timeout: 250 seconds]
<jhass>
sounds like NotSupportedError
Squarepy has quit [Remote host closed the connection]
<hanmac1>
jhass: hm yeah something like that, but the underlying lib does call it "not implemented" too, so i think its okay ...
jxf has quit [Ping timeout: 244 seconds]
Axy has quit [Read error: Connection reset by peer]
Axy has joined #ruby
rshetty_ has quit [Remote host closed the connection]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ClarusCogitatio has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
<apeiros>
startupality: also see `ri` in your shell, or ruby-doc.org
Gadgetoid has joined #ruby
Kricir has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
otherj has quit [Quit: .]
Kricir has joined #ruby
silentpost has joined #ruby
Takle has quit [Remote host closed the connection]
snovity has quit [Ping timeout: 244 seconds]
silentpost has quit [Client Quit]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silentpost has joined #ruby
neredsenvy has quit [Quit: Page closed]
aspiers has quit [Quit: heading back to London]
TomyWork has quit [Ping timeout: 250 seconds]
triple_b has joined #ruby
shredding has quit [Read error: Connection reset by peer]
silentpost has quit [Client Quit]
nonks has joined #ruby
lxsameer has quit [Quit: Leaving]
triple_b has quit [Client Quit]
Takle has joined #ruby
shredding has joined #ruby
JBreit has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
Kricir has quit [Ping timeout: 264 seconds]
Ankhers has joined #ruby
devdazed has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
shredding has quit [Read error: Connection reset by peer]
JBreit has left #ruby [#ruby]
zz_jrhorn424 is now known as jrhorn424
devdazed has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Wolland has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
shredding has joined #ruby
amundj has quit [Ping timeout: 244 seconds]
vectra has quit [Ping timeout: 244 seconds]
livingstn has joined #ruby
sinkensabe has joined #ruby
txdv has quit [Ping timeout: 272 seconds]
devdazed has quit [Read error: Connection reset by peer]
vectra has joined #ruby
devdazed has joined #ruby
<mr_rogerz_>
Hey, I'm super new to Ruby. Here's a gist: https://gist.github.com/anonymous/50205fd7e96257d28b1f Simple problem, I just want to create new arrays with all new random numbers 0-9. Each array is just one longer than the previous array. I know the problem lies within the << Any help would be appreciated.
oo_ has quit [Ping timeout: 258 seconds]
sinkensabe has quit [Remote host closed the connection]
snovity has joined #ruby
Hightower666 has joined #ruby
Wolland has quit [Ping timeout: 244 seconds]
jshultz has joined #ruby
<apeiros>
mr_rogerz_: Array.new(100) { rand(10) }
silverdust has joined #ruby
ptrrr has quit [Quit: ptrrr]
baroquebobcat has joined #ruby
treehug88 has joined #ruby
Trynemjoel has quit [Ping timeout: 265 seconds]
<apeiros>
`new_numbers` is probably misnamed, as it's a single number ;-)
havenwood has joined #ruby
bal has quit [Quit: bal]
<nateberkopec>
Array.new(100) { rand(10) } is so much more rubylike too :D
Lewix has quit [Remote host closed the connection]
<mr_rogerz_>
What I am trying to achieve it like a sort of pyramid of random numbers. So I would create an array of 1 random number, then an array of 2 random numbers, 3 random.. etc until 100
jrhorn424 is now known as zz_jrhorn424
<mr_rogerz_>
but instead of pushing into the array, it would be new arrays
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DTSCode is now known as dTSCode
<j416>
mr_rogerz_: what is suggested above is a good start
cpruitt has quit [Read error: Connection reset by peer]
<j416>
mr_rogerz_: I'm sure you could make it even shorter, but readability may suffer and I'm not sure what problem you are trying to solve
<jhass>
array = []; something { array << else } is in > 90% of the cases array = something.map { else }
cpruitt has joined #ruby
ndrei has joined #ruby
<j416>
even truer :)
<mr_rogerz_>
I can show you the specific problem (Job interview question) that I am using to teach myself Ruby... I figured this was a decent way to start the problem.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
anaeem1 has quit [Remote host closed the connection]
majjoha has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
Morkel has quit [Quit: Morkel]
bricker`work has joined #ruby
mib_mib has joined #ruby
jenrzzz has joined #ruby
TheNet has quit [Quit: Leaving...]
shredding has quit [Quit: shredding]
siwica has quit [Ping timeout: 245 seconds]
<claw_>
is there a nice ruby way for replacing a file extension ? e.g file = '/home/user/music/song.flac' ... now i want to check if '/home/user/music/song.mp3' exist
jottr_ has joined #ruby
dANO_ has quit []
<claw_>
basename is bad because it also drops the full path
TPBallbag has quit [Remote host closed the connection]
jfran has joined #ruby
davidhq has joined #ruby
i_s has joined #ruby
<claw_>
nevermind
maletor has joined #ruby
<claw_>
i can use absolute_path after using basename
wjimenez5271 has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
jherbst has joined #ruby
Xeago has joined #ruby
x1337807x has joined #ruby
red_horned_rihno has quit [Ping timeout: 255 seconds]
red_horned_rihno has joined #ruby
cndiv has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
<shevy>
claw_ you could use gsub
Xeago_ has joined #ruby
<shevy>
>> x = "/home/user/music/song.flac"; x.gsub(/.flac/,'.mp3')
Guest15232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has quit [Ping timeout: 272 seconds]
rylev has quit [Ping timeout: 245 seconds]
nonks has joined #ruby
phutchin1 has joined #ruby
rylev_ has quit [Ping timeout: 244 seconds]
abuzze has quit [Ping timeout: 265 seconds]
<shevy>
you guys invest way too much energy
phutchins has quit [Ping timeout: 258 seconds]
<bricker`work>
With rspec, is there a way to show the failure information right away without using fail-fast, i.e. the suite should still run but I want to start fixing the error right away
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troyready has joined #ruby
elaptics`away is now known as elaptics
nonks has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<fridYay>
I disliked that default firefox in unbuntu (which was more like a firecow). I downloaded the firefox 33 from the website and have it in my downloads folder. If I want to execute it like firefox & from the terminal, do I symlink the firefox folder or the application?
cndiv has joined #ruby
mumblerit has quit [Ping timeout: 240 seconds]
hakunin has joined #ruby
mumblerit has joined #ruby
mumblerit is now known as Guest18680
nobitanobi has joined #ruby
Eiam has joined #ruby
TPBallbag has joined #ruby
jY has joined #ruby
<jY>
value[:addresses].keys.detect{ |k| k.to_s =~ /^10\./ } is there anyway to say not start with 10.
<bricker`work>
I see there are options like instafail
<havenwood>
jY: !~
rshetty has quit [Remote host closed the connection]
roolo has quit [Quit: AAAAaaaaAAAAAAA]
<jY>
ty
Hijiri has quit [Ping timeout: 272 seconds]
dumdedum has quit [Quit: foo]
boombadaroomba has joined #ruby
oo_ has joined #ruby
bMalum has quit [Quit: bMalum]
timonv_ has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
maestrojed has quit [Quit: Computer has gone to sleep.]
noop has joined #ruby
crantron has quit []
baroquebobcat has joined #ruby
x1337807x has joined #ruby
timonv_ has joined #ruby
crantron has joined #ruby
red_horned_rihno has quit [Quit: Leaving]
Wolland_ has joined #ruby
red_horned_rihno has joined #ruby
boombadaroomba has quit [Ping timeout: 265 seconds]
spyderman4g63 has quit [Read error: No route to host]
renderful has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
renderful has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
lolmaus_ has joined #ruby
romistrub has quit [Ping timeout: 246 seconds]
mtakkman has joined #ruby
sinequanon has joined #ruby
dkb20k has joined #ruby
elaptics`away is now known as elaptics
renderfu_ has joined #ruby
francisfish has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
arup_r has joined #ruby
skolman_ has joined #ruby
dTSCode is now known as DTSCOde
oo_ has quit [Ping timeout: 255 seconds]
skolman_ has quit [Remote host closed the connection]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
Takle_ has joined #ruby
skolman_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
renderf__ has joined #ruby
renderful has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
sinequanon has quit [Ping timeout: 265 seconds]
DTSCOde has quit [Read error: Connection reset by peer]
oleo has quit [Ping timeout: 250 seconds]
prodbeas has joined #ruby
cndiv has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
DTSCOde has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
TPBallbag has quit [Remote host closed the connection]
Bounga has quit [Quit: Bounga]
renderfu_ has quit [Ping timeout: 255 seconds]
Takle_ has quit [Ping timeout: 244 seconds]
francisfish has quit [Ping timeout: 264 seconds]
D9 has quit [Quit: Leaving]
Pupeno_ has quit [Ping timeout: 258 seconds]
twistedpixels is now known as zz_twistedpixels
dkb20k has quit [Ping timeout: 260 seconds]
anaeem1_ has joined #ruby
renderf__ has quit [Ping timeout: 255 seconds]
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
luk3thomas has quit [Quit: luk3thomas]
nobitanobi has joined #ruby
maletor has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 258 seconds]
hhutch has quit [Ping timeout: 255 seconds]
nobitanobi has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
oleo has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
prodbeas has quit [Quit: WeeChat 1.0.1]
mib_mib has quit [Ping timeout: 265 seconds]
AndyBotwin has joined #ruby
thagomizer has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
parduse is now known as Guest69332
Guest69332 has quit [Killed (morgan.freenode.net (Nickname regained by services))]
auxbuss has joined #ruby
BadQuanta has quit [Quit: Leaving.]
parduse has joined #ruby
arup_r has quit [Quit: Leaving.]
arup_r has joined #ruby
nobitanobi has joined #ruby
wallerdev has joined #ruby
ohwhoa has joined #ruby
beneggett has joined #ruby
BadQuanta has joined #ruby
mib_mib has joined #ruby
maletor has joined #ruby
fridYay has quit [Remote host closed the connection]
<ohwhoa>
Hi, I use mysql2 gem and I have a question, I need to open connection once Mysql2::Client.new(....) or per each page request ? Thanks
workmad3 has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
iamjarvo has joined #ruby
boombadaroomba has joined #ruby
jerius has quit []
<gizmore>
ohwhoa: rails?
anaeem1_ has joined #ruby
<ohwhoa>
sinatra
mr_rogerz_ has quit [Ping timeout: 265 seconds]
dcopeland has quit [Quit: Connection closed for inactivity]
jxf has joined #ruby
jimms has quit []
timonv_ has quit [Read error: Connection reset by peer]
<gizmore>
ohwhoa: ... guessing... i think rails does it with connection pools... i would try with a single connection for now, until you run into problems
<gizmore>
i think there should be no threading problems, but i might be wrong
ramfjord has quit [Ping timeout: 260 seconds]
chrishough has joined #ruby
panini has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
panini_ has quit [Ping timeout: 260 seconds]
<ohwhoa>
I'm ask because I have problems on production - MySQL server has gone away :(( and localy no problems.
anaeem1_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Pupeno_ has joined #ruby
jerius has joined #ruby
<Morrolan>
Check the server's log. (And crank up the loglevel, if need be)
freerobby has joined #ruby
atomical has quit [Ping timeout: 258 seconds]
Pupeno has quit [Ping timeout: 256 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
red_horned_rihno has quit [Quit: Leaving]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<_br_>
headius: example not really, we had a system here running on Ruby 2.1.4+Celluloid and coordination via Drake (JVM), and we had some speed issues, so we tried moving it to JRuby and Drip etc. resulting in being three times slower
ndrei has quit [Ping timeout: 256 seconds]
<_br_>
wallerdev: interesting... could be
jottr has joined #ruby
<_br_>
Now I'm pondering if in order to speed this up, we should use C or C++ to handle string manipulations with ruby as glue
x1337807x has quit [Client Quit]
baroquebobcat has joined #ruby
icole has joined #ruby
maletor has joined #ruby
benzrf is now known as benzrf|offline
aspires has quit []
Spami has quit [Quit: This computer has gone to sleep]
mleung has joined #ruby
wald0 has quit [Quit: Lost terminal]
ph8 has quit [Ping timeout: 260 seconds]
Pupeno_ has quit [Remote host closed the connection]
spider-mario has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
lolmaus_ has quit [Remote host closed the connection]
lolmaus_ has joined #ruby
ta has quit [Read error: Connection reset by peer]
<romistrub>
I'm creating a Listenable mixin that will hopefully check for specific method calls to any class that includes it... for example, I want to do something with Listenable any time an "add_*" method is called
<jhass>
apeiros: banister ^
fabrice31 has quit [Remote host closed the connection]
pglombardo1 has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
gsd has quit [Ping timeout: 250 seconds]
reinaldob has quit [Remote host closed the connection]
<jhass>
romistrub: kinda hard to do for arbitrary methods, you could probably define an included_hook and iterate through instance_methods(false)
gsd has joined #ruby
<romistrub>
I suppose I could do on_include (whatever that metaprogramming function is), override every method with a dynamically created method that sniffs through the method names and sends all e.g. add_ methods to the Listenable.add method
michael_mbp has quit [Excess Flood]
Brothmars has joined #ruby
elaptics is now known as elaptics`away
djbkd has joined #ruby
<romistrub>
jhass: that's what I'm thinking
<jhass>
another approach could be doing a decorator, have a look at the classes provided in the delegate stdlib
djbkd has quit [Remote host closed the connection]
luksaur has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
djbkd has joined #ruby
<romistrub>
jhass: did you mean delegator? or actually decorator? never heard of that...
omosoj has quit [Ping timeout: 260 seconds]
Furby has quit [Killed (idoru (Spam is off topic on freenode.))]
Freemason has quit [K-Lined]
dkb20k has quit [Ping timeout: 255 seconds]
Hobogrammer_ has quit [Ping timeout: 245 seconds]
<jhass>
a delegator is usually used to decorate ;)
<romistrub>
ah, ok thx!
Pupeno has joined #ruby
<jhass>
delegation is the mechanism, decoration the intend
<pipework>
I thought delegation is usually used to delegate.
IrishGringo has quit [Ping timeout: 245 seconds]
michael_mbp has joined #ruby
<jhass>
that too!
balazs has quit [Ping timeout: 258 seconds]
jottr has quit [Ping timeout: 260 seconds]
Brothmars has quit [Ping timeout: 258 seconds]
nevans has quit [Quit: good bye]
<pipework>
Hawt.
boombadaroomba has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Pupeno has quit [Ping timeout: 245 seconds]
ta__ has quit [Read error: Connection reset by peer]
ta has joined #ruby
kirun has quit [Quit: Client exiting]
danguita has joined #ruby
DLSteve has joined #ruby
n_blownapart has joined #ruby
atomical has joined #ruby
TPBallbag has joined #ruby
codecop has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
Guest39496 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
moritzs has quit [Ping timeout: 245 seconds]
weemsledeux has joined #ruby
weemsledeux has joined #ruby
Lewix has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jimms has joined #ruby
Lewix has joined #ruby
MattB2 has joined #ruby
yfeldblu_ has joined #ruby
<n_blownapart>
hi more drama with Fido, Dog and the inspect method. I was having trouble yesterday because the rubykoan code was off; I needed to add #inspect to line 24 here: http://pastie.org/9701622
TPBallbag has quit [Ping timeout: 244 seconds]
yetanotherdave has quit [Ping timeout: 265 seconds]
<n_blownapart>
sorry line 25 ^^
BadQuanta has quit [Quit: Leaving.]
yfeldblum has quit [Ping timeout: 255 seconds]
<jhass>
n_blownapart: wrong
<jhass>
that's not what it's trying to teach you
<jhass>
the koans are right
<jhass>
this has nothing to do with inspect still
zz_twistedpixels is now known as twistedpixels
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<n_blownapart>
jhass: thanks, hold on I was getting an error and found the link..
Pupeno has joined #ruby
Pupeno has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
josephndenton has joined #ruby
yetanotherdave has joined #ruby
jottr has joined #ruby
<jhass>
the string "<Dog named 'Fido'>" is not what self is, it is what's used to _represent_ self
KC9YDN has joined #ruby
<jhass>
it is was is used to represent it because self has a method self that returns that string
spyderman4g63 has quit [Remote host closed the connection]
<jhass>
now, what else do you have in that method that has a inspect method that returns the string "<Dog named 'Fido'>" to represent it?
spyderman4g63 has joined #ruby
<jhass>
*self has a method inspect
spyderman4g63 has quit [Remote host closed the connection]
<n_blownapart>
jhass thank you .. kindly give me a few minutes... working on it..
jdj_dk has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
Xeago has joined #ruby
<n_blownapart>
jhass: I understand the overwrite aspect of it...one sec
josephndenton has quit [Ping timeout: 240 seconds]
<jhass>
interesting, I see nothing that "overwrites" there
allcentury has quit [Ping timeout: 258 seconds]
blackjid_ has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
spyderman4g63 has quit [Ping timeout: 258 seconds]
balazs has joined #ruby
terrellt has quit [Ping timeout: 265 seconds]
balazs has quit [Max SendQ exceeded]
skarn has quit [Ping timeout: 265 seconds]
<n_blownapart>
jhass: the <...> syntax is used to contain a message that overwrites the object reference number which would have the same <Object:0x007ff8f5822a08> sort of form.
<jhass>
no
<jhass>
"<Object:0x#{object_id}>" is just the output of the default Object#inspect
<jhass>
the angle brackets there are purely convention, there's zero meaning for ruby in there
allcentury has joined #ruby
<jhass>
it's a representation for you, the programmer, not ruby
iamjarvo has joined #ruby
<jhass>
but all that stuff about inspect is completely unrelated to what this example tries to teach you and not required to pass the test
terlar has quit [Ping timeout: 255 seconds]
<jhass>
I'm not sure how many times more I need to say this
<pipework>
my guess: approx. 3.1
jottr has quit [Ping timeout: 250 seconds]
<jhass>
I'm already at 5, you only saw 3
<jhass>
*2
mikecmpbll has quit [Quit: ciao.]
<pipework>
jhass: Well, 3.1 more times after now.
<n_blownapart>
please forgive my background is in literature
<n_blownapart>
me*
blueOxigen has quit [Ping timeout: 245 seconds]
<jhass>
yeah, already said yesterday koans is not exactly the best thing for the first exposure to programming
viet_power has joined #ruby
Dude007 has quit [Remote host closed the connection]
<n_blownapart>
I went through a book but it was over two years ago. really appreciate it though. if I could work on this to form one last question ...
duplex has joined #ruby
jottr has joined #ruby
<pipework>
n_blownapart: I'd suggest Chris Pines, Learn to Program
boombadaroomba has joined #ruby
<n_blownapart>
pipework: thanks I need to get it
<pipework>
n_blownapart: The #inspect method isn't something that Ruby, depends on, it's something it provides. I think the intent is for users, but I've seen code that uses inspect on some objects for other reasons.
alvaro_o has joined #ruby
Jake232 has joined #ruby
<n_blownapart>
jhass I wrote <Object:0x007ff8f5822a08> but filled in 'Object:' just for generic illustration .. but would that have no trace of the obj. reference, say i.e. <Dog7:0x007ff8f5822a08>
<n_blownapart>
jhass ok many thanks .. thanks pipework
rylev has joined #ruby
<n_blownapart>
one thing that really sets me back is when I test things in pry and the results are far different. I need to understand what I'm doing with pry/ irb.
ta has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
Wolland has joined #ruby
auxbuss has joined #ruby
Wolland_ has quit [Ping timeout: 265 seconds]
<pipework>
n_blownapart: Don't worry about the class name and object id. It's a very minor detail.
<n_blownapart>
pipework: thanks I really appreciate it. this stuff is fascinating hope to progress a lot..
yetanotherdave has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 245 seconds]
yetanotherdave has joined #ruby
<pipework>
n_blownapart: I hope you do too. After you finish with what you're doing and Learn to Program, let me know and I can recommend some other books that are beneficial to your understanding of ruby.
<pipework>
Other people here also know great books, especially when you have a particular interest in doing something with ruby.
<n_blownapart>
pipework: I went through well-grounded rubyist. some of it I didn't quite get.
fenak has quit [Remote host closed the connection]
kireevco has joined #ruby
<pipework>
n_blownapart: You'll want to get through some of the more foundational stuff so that the black book will be more easily grasped.
mleung has joined #ruby
francisfish has quit [Remote host closed the connection]
<n_blownapart>
ok more drama later. thanks pipework
nateberkopec has joined #ruby
Takle has quit [Remote host closed the connection]
Spami has joined #ruby
renderfu_ has joined #ruby
sailias has quit [Quit: Leaving.]
renderful has quit [Ping timeout: 245 seconds]
geggam has quit [Ping timeout: 244 seconds]
Toba has left #ruby [#ruby]
Takle has joined #ruby
TPBallbag has joined #ruby
jcdesimp_ has joined #ruby
TPBallbag is now known as JessyS
Ankhers has quit [Ping timeout: 250 seconds]
JessyS is now known as TPBallbag
TPBallbag is now known as JessyS
majjoha has quit [Ping timeout: 255 seconds]
viet_power has quit [Ping timeout: 250 seconds]
JessyS is now known as TPBallbag
ta has joined #ruby
paulfm has quit []
dc has quit [Remote host closed the connection]
jcdesimp has quit [Ping timeout: 255 seconds]
blackjid_ has joined #ruby
jcdesimp_ has quit [Ping timeout: 240 seconds]
aclearman037 has quit [Quit: I'm out!]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skarn has joined #ruby
timonv_ has joined #ruby
romistrub has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
duncannz has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
timonv^ has joined #ruby
timonv^ has quit [Remote host closed the connection]
tesaf has quit [Quit: Lost terminal]
timonv^ has joined #ruby
smcquaid has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 250 seconds]
weemsledeux has quit [Client Quit]
Xeago_ has joined #ruby
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
jcdesimp has joined #ruby
westoque has joined #ruby
nevans has joined #ruby
jcdesimp has quit [Read error: Connection reset by peer]
Takle is now known as takle
trickyearlobe has joined #ruby
bmurt has quit []
yfeldblu_ has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
mleung has quit [Quit: mleung]
westoque has quit [Client Quit]
droidburgundy has quit [Remote host closed the connection]
mleung has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
Pupeno has quit [Quit: Leaving...]
moritzs has joined #ruby
amundj has quit [Read error: Connection reset by peer]
g_ has joined #ruby
g_ is now known as Guest91134
jherbst has quit [Ping timeout: 264 seconds]
Scotteh has joined #ruby
gr33n7007h has joined #ruby
nonks has joined #ruby
jleishman has quit [Quit: Be back later ...]
amundj has joined #ruby
timonv^ has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
timonv_ has joined #ruby
icole has quit [Remote host closed the connection]
Guest18680 is now known as mumblerit
blackmesa has joined #ruby
duggiefresh has quit []
nonks has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
dorei has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 264 seconds]
blackmesa has quit [Client Quit]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
lmickh has quit [Remote host closed the connection]
dorei has joined #ruby
cantonic has quit [Quit: cantonic]
max96at is now known as max96at|off
psyprus has joined #ruby
BadQuanta has joined #ruby
mary5030 has quit [Remote host closed the connection]
allcentury has joined #ruby
jheg has joined #ruby
Guest91134 is now known as mr_rogerz_
dc has joined #ruby
n_blownapart has quit []
sambao21 has joined #ruby
beef-wellington has joined #ruby
auxbuss has quit [Quit: I'm gone.]
yfeldblum has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Brothmars has joined #ruby
echevemaster has quit [Quit: WeeChat 1.0.1]
echevemaster has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
silkfox has quit [Ping timeout: 245 seconds]
tier has quit [Remote host closed the connection]
apeiros has joined #ruby
patrick99e99 has joined #ruby
jenrzzz has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
beef-wellington has quit [Ping timeout: 245 seconds]
mikeg has joined #ruby
jleishman has joined #ruby
cantonic has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
chipotle has joined #ruby
jerius has quit [Ping timeout: 260 seconds]
dkb20k has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
chipotle has quit [Max SendQ exceeded]
byprdct has joined #ruby
pandaant has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 245 seconds]
jheg has quit [Quit: jheg]
chipotle has joined #ruby
oo_ has quit [Remote host closed the connection]
dkb20k has quit [Ping timeout: 258 seconds]
chipotle has quit [Client Quit]
andrewlio has quit [Remote host closed the connection]
larsam has quit []
jottr has quit [Ping timeout: 250 seconds]
spider-mario has quit [Read error: Connection reset by peer]
majjoha has joined #ruby
Wolland has joined #ruby
gsd has quit [Ping timeout: 265 seconds]
mikeg has quit [Remote host closed the connection]
sargas has joined #ruby
kyb3r_ has joined #ruby
majjoha has quit [Ping timeout: 250 seconds]
Wolland has quit [Ping timeout: 250 seconds]
Wolland has joined #ruby
josephndenton has joined #ruby
freerobby has joined #ruby
rkalfane has joined #ruby
siwica has joined #ruby
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
rkalfane has quit [Client Quit]
m4rCsi has joined #ruby
Linell has quit [Ping timeout: 265 seconds]
anaeem1_ has quit [Remote host closed the connection]
MusachiMiyamotoF has joined #ruby
josephndenton has quit [Ping timeout: 260 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MusachiMiyamotoF has quit [Client Quit]
spyderman4g63 has joined #ruby
gsd has joined #ruby
Xeago has joined #ruby
Xeago__ has joined #ruby
djbkd has quit [Remote host closed the connection]
brennanMKE has joined #ruby
<brennanMKE>
hi, i have a Ruby question. i think i need to run something to fix up my Ruby environment on my Mac.
Kricir has quit [Remote host closed the connection]
<brennanMKE>
I get messages like this... "Ignoring puma-1.6.3 because its extensions are not built. Try: gem pristine puma-1.6.3"
<brennanMKE>
what do i need to do?
Xeago_ has quit [Ping timeout: 244 seconds]
<apeiros>
jhass: thanks. sorry, was busy :)
kaspergrubbe has quit [Ping timeout: 272 seconds]
spyderman4g63 has quit [Ping timeout: 244 seconds]
<jhass>
freenode staff was quicker ;)
Xeago has quit [Ping timeout: 244 seconds]
<jhass>
brennanMKE: did you try it?
sargas has quit [Quit: Leaving]
beneggett has quit [Ping timeout: 250 seconds]
jimms has joined #ruby
jamto11 has quit [Remote host closed the connection]
moritzs has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vivekananda has joined #ruby
leafybasil has joined #ruby
RitterJack has quit [Ping timeout: 260 seconds]
treehug88 has quit []
sargas has joined #ruby
renderfu_ has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
jimms has quit [Remote host closed the connection]
Brothmars has quit [Quit: Be back later ...]
smoores has joined #ruby
<smoores>
Typing gem -v in my command line gives me: /usr/bin/gem:12:in `<main>': uninitialized constant Gem::Requirement (NameError)... anyone know how to fix this?
<jhass>
smoores: what's your ruby version?
Wolland has quit [Remote host closed the connection]