frem has quit [Quit: Connection closed for inactivity]
<helpa>
Hi jkroon. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
hobodave has joined #ruby
riotjones has quit [Ping timeout: 265 seconds]
TechTonics has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
<jhass>
jkroon: passenger 3.0.9 is more than two and a half years old, they released about 100 versions (no kidding) and are at 5.0.4
<jhass>
fair possibility it's just plain incompatible with the ruby your upgraded too
<jhass>
*to
slackbotgz has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
adriancb has quit [Ping timeout: 252 seconds]
<jkroon>
ok, so how do I update passenger?
slackbotgz has joined #ruby
<nahtnam>
Hey! I keep reading that ruby is inefficient. Is that true? Why?!?!
<jhass>
the same way you installed it
waroperator has quit [Remote host closed the connection]
<jhass>
nahtnam: it's efficient on programmer time, which is the most important part anyway, and very much efficient enough for > 90% of your problems
<jkroon>
jhass, it's not passenger (which btw, this is an inherited system)
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jkroon>
or at least, it's not isolated to passenger.
<jhass>
cool, just keep in mind running EOL'd stuff doesn't give you the best support
<jkroon>
trust me, if I had a choice ...
OrbitalKitten has joined #ruby
<sevenseacat>
eol stuff :(
Sirupsen has joined #ruby
sngeth has joined #ruby
juanpaucar has joined #ruby
<TechTonics>
does anyone have any experience working with ods spreadsheets in ruby?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
delianides has joined #ruby
Affix has joined #ruby
patrick99e99 has joined #ruby
<jhass>
TechTonics: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
sngeth has quit [Ping timeout: 265 seconds]
juanpaucar has quit [Ping timeout: 264 seconds]
<jkroon>
jhass, ok, so it seems a bunch of manual stuff was dropped into the various ruby/version/gems folders ...
mistermocha has quit [Remote host closed the connection]
<TechTonics>
ok thanks jhass, any ideas?
<jhass>
jkroon: so what's this? debian?
<jkroon>
is /usr/lib/ruby/${version}/ the only place I need to be concerned about. ubuntu.
<jkroon>
so close enough to debian...
<jhass>
TechTonics: no, zero experience there
<jhass>
stick around for at least an hour or two
robustus has quit [Ping timeout: 264 seconds]
<jhass>
search for ods on rubygems.org
justin_pdx has joined #ruby
fryguy9 has joined #ruby
<jhass>
jkroon: so there are some excellent recent ruby packages for ubuntu by brightbox
<jhass>
disregarding reality, the sane solution would be to ask your devs to port their stuff to a supported Ruby version
<jhass>
(2.0 is supported till late Februrary 2016)
<jkroon>
jhass, nuked (moved) the old stuff.
<jkroon>
jhass, will definitely do that.
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
<jhass>
so best get them to port to 2.2
robustus has joined #ruby
<jkroon>
at least i can run "gem" again without it bombing out.
<jkroon>
jhass, apparently from 1.9.1 to some other ubuntu specific patch version of 1.9.1 ...
<jhass>
eh, well, the 1.9.1 is just the ABI version
<jhass>
!abi
<helpa>
Each Ruby release has actually two versions, the interpreter version and the ABI version. The interpreter version is what commonly is referred to, for example 2.1.5. The ABI version is for the binary interface used by compiled extensions and it is what you see in your paths. It's usually shared among one release series, for example for the Ruby versions 2.1.0 to 2.1.5 the ABI version is 2.1.0.
<jkroon>
ok, in that case, no, I have no clue.
<jhass>
so that might as well be 1.9.1 -> 1.9.3
<jhass>
which back in the days were actually quite heavy changes
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cazrin has quit [Ping timeout: 256 seconds]
<jhass>
I can't even find out when net/https was in the standad library...
<comma8>
How can I create an "independant" process? So far everything I have tried, the new process or thread gets killed when the ruby script is killed.
yakko is now known as thejamespinto
<mozzarella>
why do you want to do that?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
markholmes has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
<jhass>
comma8: Process.daemon basically, but yeah don't, use a proper supervisor
triangles2 has joined #ruby
<jhass>
jkroon: maybe you deleted too much stuff? try reinstalling the package
deric_skibotn has quit [Ping timeout: 252 seconds]
<jhass>
now that I found the file I can tell it's in stdlib still and since ever
<thejamespinto>
hey guys, I'm trying to read the metadata inside an #it but I can't, it seems to be only accessible if you get the lambda argument it("works") { |ex| } Is there a way around this?
<jkroon>
jhass, i probably did, re-install rake using apt-get and now gem works ...
jerematic has quit [Remote host closed the connection]
<jkroon>
now to figure it out bit by bit
jonr22 has joined #ruby
claptor has joined #ruby
<jhass>
thejamespinto: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
Cat_1 has quit []
triangles has quit [Ping timeout: 272 seconds]
<_2_sexy>
ok hi I'm Whitney I'm not use to any of the
<banister>
jhass sleep
<thejamespinto>
jhass: I'm sorry
<_2_sexy>
who is this
<jhass>
don't be sorry, just tell next time
* sevenseacat
steals that tip for helpa
<_2_sexy>
what are u talking about
<jhass>
_2_sexy: ruby
<thejamespinto>
_2_sexy: and how rude I am
sngeth has joined #ruby
Cust0sL1men has joined #ruby
<_2_sexy>
I'm Whitney nice ti meet u
<thejamespinto>
jhass: isn't she a nice bot? :)
jerematic has joined #ruby
<jhass>
dunno, seems not to be very interactive
<thejamespinto>
_2_sexy: can I see you naked?
<jkroon>
ok, i think i know what went wrong.
claptor has quit [Read error: Connection reset by peer]
<jkroon>
nginx was first installed using the package manager, and then clobbered using some passenger-install-nginx-module ... and then the system update updated nginx.
jonr22 has quit [Ping timeout: 265 seconds]
_2_sexy has quit [Read error: No route to host]
<jhass>
jkroon: well, that should at most have stopped nginx from starting or recognizing the ruby app
<jhass>
not crashed rubygems
<jhass>
I'm not saying it was a good idea
nateberkopec has quit [Quit: Leaving...]
claptor has joined #ruby
livingstn has joined #ruby
<thejamespinto>
hey guys, I'm trying to read the metadata inside an #it but I can't, it seems to be only accessible if you get the lambda argument it("works") { |ex| } Is there a way around this?
claptor has quit [Read error: Connection reset by peer]
claptor has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
morenoh149 has joined #ruby
<sevenseacat>
thejamespinto: what were you just told
iMe has quit [Ping timeout: 252 seconds]
<thejamespinto>
sevenseacat: you're harassing me
<sevenseacat>
i am?
diegoviola has joined #ruby
juanpablo_ has joined #ruby
<thejamespinto>
sevenseacat: Rebecca, how long do I have to wait to repost a question? Also, this is my second post, I'm not posting any longer if I don't get a response
hobodave has quit [Quit: Computer has gone to sleep.]
sngeth has quit [Ping timeout: 250 seconds]
<thejamespinto>
sevenseacat: you could be nice and try to help me instead
iMe has joined #ruby
triangles3 has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
juanpablo_ has quit [Ping timeout: 272 seconds]
triangles2 has quit [Ping timeout: 272 seconds]
ismaelga has quit [Remote host closed the connection]
jerematic has quit [Remote host closed the connection]
<thejamespinto>
jhass: I would never come here if I hadn't already flipped the sources upside down
<jhass>
you didn't say so in your question
rgb-one has joined #ruby
<jhass>
so I can't assume that
<jkroon>
jhass, thanks.
<thejamespinto>
jhass: it appears to be a change in RSpec 3, it used to be possible to access the example from within an #it, there is even a clear example on Chelimsky's book
<jhass>
jkroon: not sure how much I actually helped, but you're welcome
<jkroon>
it's back up and running, whether it actually works is a different question, but the apps home page comes up thanks.
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<jhass>
for a rack app the header should be fine indeed
<jkroon>
difference between environment variable and request header.
<jhass>
I guess they actually dropped cgi support
starless has joined #ruby
<jhass>
old docs for set_cgi_param: "Allows one to define additional CGI environment variables to pass to the backend application. This is equivalent to ngx_http_fastcgi_module’s fastcgi_param directive, and is comparable to ngx_http_proxy_module’s proxy_set_header option. Nginx variables in the value are interpolated."
patrick99e99 has quit [Ping timeout: 256 seconds]
<jhass>
so yeah, try set_header actually
patrick99e99 has joined #ruby
krisquigley has joined #ruby
sngeth has quit [Ping timeout: 264 seconds]
oo_ has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jkroon>
obviously using X-Forwarded-For instead of HTTP_X_FORWARDED_FOR style :)
<thejamespinto>
jhass, sevenseacat: found my answer, it was moved to a more contextual place since Chelimsky's commit #666 to RSpec.current_example.metadata
<jkroon>
jhass, thanks a LOT!
<sevenseacat>
good stuff.
<jkroon>
i think that should cover it.
iterator_ has quit [Remote host closed the connection]
iteratorP has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
martinbmadsen has joined #ruby
morenoh150 has joined #ruby
chridal has joined #ruby
patrick99e99 has quit [Ping timeout: 256 seconds]
pontiki has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
triangles2 has joined #ruby
jkroon has quit [Remote host closed the connection]
sivsushruth has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<gr33n7007h>
can someone just pm quick see if notifications are working :)
enterprisedc has quit [Quit: enterprisedc]
oo_ has joined #ruby
sivsushruth has joined #ruby
hgl has joined #ruby
Rephiax has quit [Ping timeout: 256 seconds]
<gr33n7007h>
thanks bousquet :)
<bousquet>
np
godd2 has quit [Remote host closed the connection]
arescorpio has quit [Excess Flood]
juanpaucar has quit [Ping timeout: 265 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
kblake has quit [Ping timeout: 264 seconds]
bousquet has quit []
sivsushruth has joined #ruby
Megtastique has quit []
sivsushruth has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
icebourg has quit []
crdpink2 has joined #ruby
Sawbones has quit [Remote host closed the connection]
sivsushruth has joined #ruby
commmmodo has joined #ruby
crdpink has quit [Ping timeout: 265 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
crdpink2 has quit [Client Quit]
crdpink has joined #ruby
sivsushruth has joined #ruby
swgillespie has joined #ruby
enterprisedc has joined #ruby
it0a has quit [Ping timeout: 256 seconds]
commmmodo has quit [Quit: commmmodo]
AnxiousGarlic has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
jonr22 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
dc has quit [Remote host closed the connection]
dc has joined #ruby
<Nilium>
Pathologically bad regexps are kind of funny.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has quit [Ping timeout: 256 seconds]
iMe has quit [Ping timeout: 245 seconds]
fryguy9 has joined #ruby
hvxgr has joined #ruby
dc has quit [Ping timeout: 252 seconds]
iMe has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
fryguy9 has quit [Client Quit]
thiesen_ has joined #ruby
iteratorP has quit [Remote host closed the connection]
RegulationD has joined #ruby
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
thiesen has quit [Ping timeout: 252 seconds]
josephleon has quit [Quit: Leaving...]
iteratorP has joined #ruby
iteratorP has quit [Remote host closed the connection]
icebourg has joined #ruby
pontiki has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
anarang has joined #ruby
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
Cache_Money has joined #ruby
arrubin has quit []
sivsushruth has quit [Read error: Connection reset by peer]
amclain has quit [Quit: Leaving]
Cache_Money has quit [Quit: Cache_Money]
sivsushruth has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
pengin has joined #ruby
SouL_ has joined #ruby
krisquigley has joined #ruby
riotjones has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
elaptics is now known as elaptics_away
sivsushruth has quit [Read error: Connection reset by peer]
SouL_ has quit [Ping timeout: 264 seconds]
krisquigley has quit [Ping timeout: 256 seconds]
aganov has joined #ruby
riotjones has quit [Ping timeout: 246 seconds]
sivsushruth has joined #ruby
tvw has joined #ruby
diegoviola has quit [Quit: later]
iMe has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
zacts has joined #ruby
slap_stick has joined #ruby
<gr33n7007h>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<gr33n7007h>
aeiou
icebourg has quit []
<gr33n7007h>
DeBot: aeiou
<DeBot>
␣e␣␣␣␣␣␣␣␣␣e␣ [aiou] 4/12
<gr33n7007h>
DeBot: :
<DeBot>
␣e␣::␣␣␣␣␣␣e␣ [aiou] 4/12
<gr33n7007h>
DeBot: s
<DeBot>
␣e␣::␣␣␣␣␣␣e␣ [aious] 5/12
<gr33n7007h>
DeBot: r
<DeBot>
␣e␣::␣␣␣␣␣␣e␣ [aiousr] 6/12
<gr33n7007h>
DeBot: t
<DeBot>
␣et::␣TT␣␣␣et [aiousr] 6/12
<gr33n7007h>
h
<gr33n7007h>
DeBot: h
<DeBot>
␣et::HTT␣␣␣et [aiousr] 6/12
<sevenseacat>
ooh
<gr33n7007h>
g
<gr33n7007h>
DeBot: g
<DeBot>
␣et::HTT␣␣get [aiousr] 6/12
<gr33n7007h>
DeBot: p
<DeBot>
␣et::HTTP␣get [aiousr] 6/12
<sevenseacat>
DeBot: n
<DeBot>
Net::HTTP␣get [aiousr] 6/12
<sevenseacat>
DeBot: #
<DeBot>
Net::HTTP#get [aiousr] 6/12 You won!
iMe has joined #ruby
<sevenseacat>
\o/
<gr33n7007h>
DeBot: .
<gr33n7007h>
damn :)
* sevenseacat
thiefs the win
<gr33n7007h>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<gr33n7007h>
DeBot: aeiou
<DeBot>
O␣e␣U␣I␣␣␣␣␣␣␣e␣i␣e␣␣␣␣␣e␣ [a] 1/12
<gr33n7007h>
DeBot: #
<DeBot>
O␣e␣U␣I␣␣␣␣␣␣␣e␣i␣e␣␣␣␣␣e␣ [a#] 2/12
<gr33n7007h>
DeBot: p
<DeBot>
Ope␣U␣I␣␣␣␣␣P␣e␣i␣e␣␣␣␣␣e␣ [a#] 2/12
<sevenseacat>
DeBot: ::
<DeBot>
Ope␣U␣I::␣␣␣P␣e␣i␣e␣␣::␣e␣ [a#] 2/12
<gr33n7007h>
DeBot: n
<DeBot>
OpenU␣I::␣␣␣P␣e␣i␣e␣␣::ne␣ [a#] 2/12
<gr33n7007h>
DeBot: r
<DeBot>
OpenURI::␣␣␣PRe␣ire␣␣::ne␣ [a#] 2/12
astrobunny has quit [Remote host closed the connection]
<gr33n7007h>
DeBot: t
<DeBot>
OpenURI::␣TTPRe␣ire␣t::ne␣ [a#] 2/12
<sevenseacat>
DeBot: w
<DeBot>
OpenURI::␣TTPRe␣ire␣t::new [a#] 2/12
thahive has quit [Quit: Leaving]
slap_stick has quit [Client Quit]
<sevenseacat>
DeBot: h
<DeBot>
OpenURI::HTTPRe␣ire␣t::new [a#] 2/12
<gr33n7007h>
DeBot: q
<DeBot>
OpenURI::HTTPRe␣ire␣t::new [a#q] 3/12
<gr33n7007h>
DeBot: d
<DeBot>
OpenURI::HTTPRedire␣t::new [a#q] 3/12
<gr33n7007h>
DeBot: c
<DeBot>
OpenURI::HTTPRedirect::new [a#q] 3/12 You won!
<sevenseacat>
yay
<gr33n7007h>
woo hoo!
davedev24_ has quit [Ping timeout: 244 seconds]
sivsushruth has quit [Read error: Connection reset by peer]
sivsushruth has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
<zacts>
?
astrobunny has joined #ruby
Musashi007 has joined #ruby
<Musashi007>
evening gents
lessless has joined #ruby
SOLDIERz has joined #ruby
michael_mbp has quit [Excess Flood]
<certainty>
moin
<certainty>
ah ruby hang man time
chridal has joined #ruby
ghostpl_ has joined #ruby
sevvie has joined #ruby
ajsdklfjalksdf has quit [Quit: ajsdklfjalksdf]
michael_mbp has joined #ruby
tagrudev has joined #ruby
hanmac1 has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
iamninja has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
sandelius has joined #ruby
iamninja has joined #ruby
Hirzu has joined #ruby
tobago has joined #ruby
brandly has quit [Ping timeout: 244 seconds]
sivsushruth has joined #ruby
andikr has joined #ruby
wottam has joined #ruby
alec-c4 has joined #ruby
sivsushruth has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
JohnBat26 has joined #ruby
pwnz0r has joined #ruby
sivsushruth has joined #ruby
karmatr0n has quit [Remote host closed the connection]
bigmac_ has quit [Ping timeout: 245 seconds]
last_staff has joined #ruby
ghostpl_ has quit [Ping timeout: 264 seconds]
<Musashi007>
wat is this ruby hang man
hakunin has joined #ruby
jhebden has quit [Ping timeout: 265 seconds]
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
milesmatthias has joined #ruby
<certainty>
DeBot: aeiuo
<DeBot>
O␣e␣␣␣␣␣␣␣␣␣␣␣␣␣e␣ue␣␣␣␣o␣␣e␣ [ai] 2/12
riotjones has joined #ruby
<Musashi007>
I have a puma.rb file that i’m working with that I got from a rails app but I’m working with sinatra and i’m trying to figure out how to make sure it’s updated for sinatra.. does anyone have any suggestions as to where I might go to learn more about this? I’ve been searching for_ever_ and am having a hell of a time finding information or a sample puma.rb file for a sinatra application
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* certainty
is addicted
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<sevenseacat>
DeBot: est
<DeBot>
Se␣␣␣e␣␣␣␣␣␣␣␣␣e␣ [t] 1/12
<certainty>
DeBot: ::#_
<DeBot>
Se␣␣␣e␣␣␣␣␣␣::␣e␣ [t#_] 3/12
echevemaster has joined #ruby
<sevenseacat>
DeBot: nm
<DeBot>
Se␣␣␣e␣␣n␣␣m::␣e␣ [t#_] 3/12
<certainty>
DeBot: lrk
<DeBot>
Se␣␣reR␣n␣␣m::␣e␣ [t#_lk] 5/12
<sevenseacat>
ahh
<certainty>
DeBot: and
<DeBot>
Se␣␣reRand␣m::␣e␣ [t#_lk] 5/12
<certainty>
DeBot: omc
<DeBot>
Sec␣reRandom::␣e␣ [t#_lk] 5/12
<sevenseacat>
DeBot: cuo
<DeBot>
SecureRandom::␣e␣ [t#_lk] 5/12
<certainty>
DeBot: hx
<DeBot>
SecureRandom::hex [t#_lk] 5/12 You won!
Wolland has quit [Ping timeout: 256 seconds]
apeiros_ has quit [Ping timeout: 244 seconds]
<wasamasa>
are there other things to guess than ruby methods?
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty>
wasamasa: i think not
fandi has quit [Max SendQ exceeded]
<wasamasa>
DeBot: hangman
<wasamasa>
DeBot: hangman english
<certainty>
DeBot: !hangman help
<wasamasa>
.-.
<certainty>
worth a shot
fandi has joined #ruby
<wasamasa>
DeBot: hangman ruby
sivsushruth has quit [Ping timeout: 264 seconds]
<certainty>
DeBot: !hangman scheme
alec-c4 has joined #ruby
<wasamasa>
oh damnit
<wasamasa>
DeBot: !hangman
<DeBot>
␣␣␣␣␣␣ [] 0/12
<shevy>
lol
<certainty>
erm
<sevenseacat>
DeBot: e
<DeBot>
␣␣␣␣␣e [] 0/12
<certainty>
DeBot: umn
<DeBot>
␣␣␣␣␣e [umn] 3/12
<wasamasa>
DeBot: s
<DeBot>
␣␣␣␣␣e [umns] 4/12
<sevenseacat>
no idea what this is going to me
<sevenseacat>
be
<sevenseacat>
DeBot: r
<DeBot>
␣␣␣␣␣e [umnsr] 5/12
<wasamasa>
DeBot: t
<DeBot>
␣␣␣␣␣e [umnsrt] 6/12
<sevenseacat>
DeBot: d
<DeBot>
d␣␣␣de [umnsrt] 6/12
<wasamasa>
DeBot: u
<DeBot>
d␣␣␣de [umnsrt] 6/12
mistermocha has quit [Ping timeout: 244 seconds]
craigp has joined #ruby
<sevenseacat>
DeBot: a
<DeBot>
d␣␣␣de [umnsrta] 7/12
<sevenseacat>
DeBot: i
<DeBot>
di␣ide [umnsrta] 7/12
<wasamasa>
DeBot: v
<DeBot>
divide [umnsrta] 7/12 You won!
<sevenseacat>
DeBot: v
<wasamasa>
hah, I was faster
<certainty>
erm
<sevenseacat>
guess just dictionary words lol
<wasamasa>
yes
<certainty>
ah
<wasamasa>
either plain english or ruby
<certainty>
i was thinking about ruby
<wasamasa>
lol
starless has quit [Quit: Leaving]
<wasamasa>
you and your fascination with languages that are not scheme!
<certainty>
hehe
<certainty>
DeBot: !hangman german
flip_digits has quit [Ping timeout: 250 seconds]
<certainty>
DeBot: !hangman de
<Musashi007>
I’m trying to update a puma.rb file which was taken from a rails app to be more configured to sinatra.. does anyone have a suggestion as to where i might be able to go to get an example or read more? It’s really ahrd to find this by searching le goog
alec-c4 has quit [Remote host closed the connection]
<Musashi007>
@certainty so different from what i ahve i don’t know how to blend them
lxsameer has joined #ruby
Nuck has joined #ruby
<Musashi007>
As to the second one, i’m not seeing the puma.rb file
jonr22 has joined #ruby
<certainty>
me neither :D
fandi has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<certainty>
why not build it from scratch. Do you need everything in the config tailored for rails?
havenwood has quit [Remote host closed the connection]
PhaseCode has quit []
wallerdev has quit [Quit: wallerdev]
Rarikon has joined #ruby
<certainty>
DeBot: !hangman brainfuck
<Musashi007>
haha.. I had found those two
<certainty>
i'd totally always win that
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Musashi007>
I’m a little intimadated by doing it, to be honest
<sevenseacat>
isnt that like always >#+
lessless has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 265 seconds]
<certainty>
sevenseacat: hehe basically yes. ><+.
<certainty>
[]
<certainty>
also
<sevenseacat>
insta-win
<sevenseacat>
DeBot: !hangman whitespace
<sevenseacat>
<_<
<certainty>
haha
jimms has joined #ruby
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
i know you want it
<certainty>
DeBot: OpenSSL
<DeBot>
OpenSSL␣␣␣␣␣␣␣␣S␣o␣e␣p␣␣pose␣ [] 0/12
<wasamasa>
lolwat
<certainty>
DeBot: #
<DeBot>
OpenSSL␣␣␣␣␣␣␣␣S␣o␣e#p␣␣pose␣ [] 0/12
<sevenseacat>
XD
<wasamasa>
DeBot: :
<DeBot>
OpenSSL::␣␣␣␣::S␣o␣e#p␣␣pose␣ [] 0/12
<certainty>
DeBot: ru
<DeBot>
OpenSSL::␣␣␣␣::S␣ore#purpose␣ [] 0/12
yfeldblum has quit [Ping timeout: 265 seconds]
<certainty>
DeBot: c
<DeBot>
OpenSSL::␣␣␣␣::S␣ore#purpose␣ [c] 1/12
<wasamasa>
DeBot: t
<DeBot>
OpenSSL::␣␣␣␣::Store#purpose␣ [c] 1/12
<sevenseacat>
DeBot: x509
<DeBot>
OpenSSL::X509::Store#purpose␣ [c] 1/12
<wasamasa>
DeBot: d
<DeBot>
OpenSSL::X509::Store#purpose␣ [cd] 2/12
<certainty>
yay
<astrobunny>
DeBot: 100
<DeBot>
OpenSSL::X509::Store#purpose␣ [cd1] 3/12
<certainty>
DeBot: !
<DeBot>
OpenSSL::X509::Store#purpose␣ [cd1!] 4/12
<certainty>
DeBot: s
<DeBot>
OpenSSL::X509::Store#purpose␣ [cd1!] 4/12
<wasamasa>
I'm stumped
<sevenseacat>
DeBot: =
<DeBot>
OpenSSL::X509::Store#purpose= [cd1!] 4/12 You won!
<certainty>
erm, wait that makes no sense :)
<sevenseacat>
;)
<gr33n7007h>
DeBot: ?
<certainty>
well done
<astrobunny>
DeBot: 3
<wasamasa>
certainty: how did you know it's going to be openssl?
Xoro has quit [Ping timeout: 256 seconds]
<certainty>
wasamasa: it loves openssl
<sevenseacat>
it seems to have a lot of openssl in it
<wasamasa>
certainty: I'm not sure what to make of that
lemur has quit [Remote host closed the connection]
<certainty>
every longish name has a good chance to be openssl
<sevenseacat>
DeBot: !hangman ruby
<DeBot>
␣␣ [] 0/12
<sevenseacat>
wat
<wasamasa>
DeBot: in
<DeBot>
␣␣ [in] 2/12
<astrobunny>
Debot: e
<certainty>
DeBot: ==
<DeBot>
␣␣ [in=] 3/12
<sevenseacat>
DeBot: o
<DeBot>
␣␣ [in=o] 4/12
<certainty>
DeBot: <<
<DeBot>
␣␣ [in=o<] 5/12
<wasamasa>
DeBot: >>
<DeBot>
␣␣ [in=o<>] 6/12
<astrobunny>
DeBot: e
<DeBot>
␣␣ [in=o<>e] 7/12
<certainty>
is that toplevel? I mean why no scope
<certainty>
DeBot: @
<DeBot>
␣␣ [in=o<>e@] 8/12
<astrobunny>
DeBot: =
<DeBot>
␣␣ [in=o<>e@] 8/12
<sevenseacat>
DeBot: u
<DeBot>
␣␣ [in=o<>e@u] 9/12
<certainty>
DeBot: ++
<DeBot>
␣␣ [in=o<>e@u+] 10/12
nii236 has quit [Ping timeout: 256 seconds]
<wasamasa>
DeBot: --
<DeBot>
␣␣ [in=o<>e@u+-] 11/12
<astrobunny>
DeBot: if
<DeBot>
$* [in=o<>e@u+-f] 12/12 You lost!
<sevenseacat>
we fail
<certainty>
that doesn't even exist. silly me
<astrobunny>
LOL
<wasamasa>
holy shit
<sevenseacat>
XD
<certainty>
lol
<wasamasa>
who would have guessed that
<sevenseacat>
awesome
<certainty>
so it's not only methods
<astrobunny>
mmm
<wasamasa>
I didn't have that much fun in #ruby ever
dEPy has joined #ruby
<astrobunny>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: #::
<DeBot>
␣␣␣␣␣::␣␣␣␣ [#] 1/12
<sevenseacat>
DeBot: est
<DeBot>
␣␣␣t␣::t␣␣␣ [#es] 3/12
<astrobunny>
DeBot: o
<DeBot>
␣␣␣t␣::t␣␣␣ [#eso] 4/12
<certainty>
DeBot: o
<DeBot>
␣␣␣t␣::t␣␣␣ [#eso] 4/12
<sevenseacat>
DeBot: mn
<DeBot>
␣M␣t␣::t␣n␣ [#eso] 4/12
<astrobunny>
DeBot: rim
<DeBot>
␣M␣t␣::t␣n␣ [#esori] 6/12
<wasamasa>
DeBot: u
<DeBot>
␣M␣t␣::t␣n␣ [#esoriu] 7/12
<certainty>
hmm
<certainty>
DeBot: _
<DeBot>
␣M␣t␣::t␣n␣ [#esoriu_] 8/12
pontiki has joined #ruby
<wasamasa>
DeBot: a
<DeBot>
␣Mat␣::tan␣ [#esoriu_] 8/12
<certainty>
DeBot: h
<DeBot>
␣Math::tanh [#esoriu_] 8/12
<astrobunny>
DeBot: C
<DeBot>
CMath::tanh [#esoriu_] 8/12 You won!
<sevenseacat>
i was wondering about the M
<certainty>
:)
<astrobunny>
lolol
<certainty>
me too
<certainty>
ok quick round
<certainty>
DeBot: !hangman ruby
<DeBot>
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<certainty>
DeBot: Openssl
<DeBot>
␣␣␣␣le␣␣␣␣n␣␣␣on␣␣o␣␣ [ps] 2/12
<certainty>
worth a shot
<astrobunny>
DeBot: ::
<DeBot>
␣␣␣␣le::␣␣n␣␣␣on␣␣o␣␣ [ps] 2/12
<astrobunny>
DeBot: fi
<DeBot>
Fi␣␣le::F␣n␣␣ion␣␣o␣i [ps] 2/12
<sevenseacat>
DeBot: m
<DeBot>
Fi␣␣le::F␣n␣␣ion␣␣o␣i [psm] 3/12
dc has joined #ruby
<wasamasa>
DeBot: DeBot
<DeBot>
Fiddle::F␣n␣tion␣to␣i [psmb] 4/12
<astrobunny>
DeBot: u
<DeBot>
Fiddle::Fun␣tion␣to␣i [psmb] 4/12
RegulationD has joined #ruby
<astrobunny>
DeBot: c
<DeBot>
Fiddle::Function␣to␣i [psmb] 4/12
<sevenseacat>
DeBot: _
<DeBot>
Fiddle::Function␣to_i [psmb] 4/12
<wasamasa>
DeBot: _
<DeBot>
Fiddle::Function␣to_i [psmb] 4/12
<astrobunny>
DeBot: a
<DeBot>
Fiddle::Function␣to_i [psmba] 5/12
<sevenseacat>
#
allenn has joined #ruby
<astrobunny>
DeBot: s
<DeBot>
Fiddle::Function␣to_i [psmba] 5/12
<sevenseacat>
DeBot: #
<DeBot>
Fiddle::Function#to_i [psmba] 5/12 You won!
<astrobunny>
lol nice
<astrobunny>
Fi..le confused me
wottam has joined #ruby
bal has quit [Quit: bal]
bal has joined #ruby
HoloIRCUser3 has joined #ruby
pontiki has quit [Ping timeout: 265 seconds]
pico-pete has quit []
RegulationD has quit [Ping timeout: 245 seconds]
jimms has quit [Remote host closed the connection]
relix has joined #ruby
riceandbeans has joined #ruby
<shevy>
Function?
<shevy>
Fiddle has a module named Function?
dc has quit [Remote host closed the connection]
jimms has joined #ruby
Nuck has quit [Read error: Connection reset by peer]
G has joined #ruby
dc has joined #ruby
AnxiousGarlic has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Nuck has joined #ruby
spyderman4g63 has quit [Ping timeout: 272 seconds]
<hanmac1>
shevy in java it might have been named FunctionFactory or something like that ,P
<jokester>
AbstractFunctionFactoryProxy
chridal has quit [Ping timeout: 252 seconds]
xcesariox has joined #ruby
kith has quit [Quit: kith]
Synthbread has quit [Ping timeout: 252 seconds]
krisquigley has joined #ruby
ghostpl_ has joined #ruby
jimms has quit [Remote host closed the connection]
kith has joined #ruby
jolg42 has joined #ruby
wookiehangover has quit [Ping timeout: 265 seconds]
krisquigley has quit [Ping timeout: 246 seconds]
HoloIRCUser3 has quit [Ping timeout: 264 seconds]
Wolland_ has quit []
bluOxigen has joined #ruby
User458764 has joined #ruby
HoloIRCUser3 has joined #ruby
Koshian has quit [Quit: Tiarra 0.1+svn-39209: SIGTERM received; exit]
Koshian has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
dc has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 246 seconds]
ghostpl_ has quit [Ping timeout: 255 seconds]
dc has joined #ruby
Koshian is now known as Koshian
martinbmadsen has quit [Ping timeout: 255 seconds]
<jokke>
hi
<jokke>
i'm still stuck at my problem from yesterday regarding load path
anarang has joined #ruby
<jokke>
to summarize: i have an unpublished gem in a local directory that i need in another gem. I added the gem name into the gemspec and in the Gemfile i added it with path: '../mygem'
terlar has joined #ruby
<jokke>
i get load errors for any files i want to include from the gem
<jokke>
this is what the lib of the gem looks like:
<j416>
a module is commonly used for two things: 1) use as mixin, 2) use as namespace
<shevy>
you can use a class as a namespace too though
<j416>
the only good thing with 'extend self' is that it is short
lsmola has quit [Ping timeout: 246 seconds]
<j416>
the problem with it is that if the module is meant as a namespace, then there is nothing preventing it from being mixed in
<j416>
i.e. you'll get all those methods when mixing in, not that you would mix it in, but it's stupid to use something that exposes the methods when mixed in
<j416>
class << self; def mymethod foo ... ; end
pengin has joined #ruby
<jokke>
any help with my load path problem? :/
<j416>
this does not expose mymethod to the class this module may be mixed into
krz has quit [Ping timeout: 252 seconds]
<j416>
module_function suffers the same problem iirc.
<j416>
shevy: module is better for namespacing because it cannot be instantiated
msgodf has joined #ruby
User458764 has joined #ruby
<shevy>
funny that you say that - when I once asked apeiros why he used a class as a namespace, he said precisely because he could instantiate it
<shevy>
jokke can't you install your gem like all the other gems?
<shevy>
then you can do: require 'name_of_gem_here'
<jokke>
shevy: doesn't bundler install it?
<shevy>
dunno
<shevy>
bundler keeps things somewhere else too doesn't it?
flip_digits has joined #ruby
wookiehangover has joined #ruby
Hirzu_ has joined #ruby
danjordan has joined #ruby
<jokke>
maybe it has something to do with the fact that the name has a dash in it?
<jokke>
because it's part of a project bsh
<jokke>
so its bsh-persistance
<shevy>
nah
<shevy>
require does not mind
<jokke>
so i should require 'bsh-persistance'?
Synthbread has joined #ruby
<jokke>
not 'bsh/persistance'?
<shevy>
if you do: require 'bsh-persistance', it will first look at a file called 'bsh-persistance.rb'
markholmes has quit [Quit: So it goes.]
<j416>
shevy: might have been a different use case then
<shevy>
require 'bsh/persistance' translates to 'bsh/persistance.rb'
<jokke>
that would be correct
<j416>
shevy: class methods on classes can be nice if they are strongly related to the class
<j416>
shevy: when implementing the active record pattern for example
Nuck has quit [Quit: Nuck Off]
Hirzu has quit [Ping timeout: 265 seconds]
bim has quit [Remote host closed the connection]
SouL_ has quit [Ping timeout: 256 seconds]
jimms has joined #ruby
pengin has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alexherbo2 has quit [Quit: WeeChat 1.1.1]
alexherbo2 has joined #ruby
<apeiros_>
hurray, I set my ZNC up to listen to a port which isn't open on company network >:-(
alexherbo2 has quit [Client Quit]
alexherbo2 has joined #ruby
codecop has quit [Remote host closed the connection]
<hanmac1>
i was outside to look at it, we have clear sky but it was to cold outside
riotjone_ has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
<workmad3>
undeadaedra: yeah... great sky dragon that tries to eat the sun... you need to scare it away by standing outside and pointing pinhole cameras at it
<workmad3>
undeadaedra: it'll vomit up what it's eaten if you scare it away successfully
<undeadaedra>
I see
tlarevo has quit [Remote host closed the connection]
* workmad3
doubts that this is the craziest idea ever about eclipses
Takle has quit [Remote host closed the connection]
dawkirst has quit [Quit: Leaving...]
tlarevo has joined #ruby
mikecmpbll has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
<workmad3>
undeadaedra: next, I'll start commenting about the great sky dragon on facebook posts saying how the eclipse is 'auspicious' and other astrology BS :) see if I can get them to call me crazy
c0m0 has joined #ruby
<hanmac1>
hm maybe the dragon does like hot food? ;P
<workmad3>
hanmac1: well, they did an episode where the moon was a giant dragon egg (essentially), and the moon 'eats' the sun during an eclipse... so by extension, they've already done that episode ;)
<workmad3>
hanmac1: but yeah... a mythological, fire-breathing dragon... how does it get the fire inside it? It eats suns to keep its internal fusion reactor going!!!
tlarevo has quit [Ping timeout: 256 seconds]
gfawcettpq has joined #ruby
* hanmac1
makes a "oO" face ... that totally makes sense!! xD
<workmad3>
hanmac1: yeah... totally makes sense while being completely crazy and insane ;)
<workmad3>
perfect dr who :)
<undeadaedra>
workmad3: you don’t wonder how the dragon can throw fire. YOU RUN.
xploshioon has joined #ruby
<workmad3>
undeadaedra: and remember... you don't need to run faster than the dragon... you just need to run faster than the halfling
<hanmac1>
workmad3: reminds me of maps from the Discworld with notes like "* there might be dragons" ;P
astrobunny has quit [Remote host closed the connection]
<workmad3>
hanmac1: of course, the peril with doing that with a discworld map is that, by putting 'here be dragons' on it, you could in fact cause dragons to suddenly exist there!
yfeldblum has quit [Ping timeout: 246 seconds]
astrobunny has joined #ruby
chridal has joined #ruby
hectortrope has joined #ruby
<hectortrope>
Hi rubyists
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
hsps__ has joined #ruby
rorra has quit [Ping timeout: 244 seconds]
steve-la_ has quit [Quit: Be back later ...]
slap_stick has joined #ruby
rorra has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
chridal has quit [Ping timeout: 252 seconds]
leafybasil has quit [Remote host closed the connection]
yfeldblum has joined #ruby
hsps_ has quit [Ping timeout: 252 seconds]
Cust0sL1men has quit [Ping timeout: 250 seconds]
Hirzu_ has quit [Ping timeout: 252 seconds]
Soda has quit [Remote host closed the connection]
<jokke>
anyone here who can help me with my rspec issue?
<jokke>
undefined method `expect' for #<RSpec::ExampleGroups::BSHImporter:0x007f5dbac52398
arup_r has quit [Read error: Connection reset by peer]
d10n-work has quit [Quit: Connection closed for inactivity]
_64k has joined #ruby
martinbmadsen has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
Cust0sL1men has joined #ruby
mengu has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
leafybasil has joined #ruby
Hirzu has joined #ruby
arup_r_ has quit [Remote host closed the connection]
oo_ has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
flip_digits has joined #ruby
Rephiax has joined #ruby
bruno- has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
blackmes1 has joined #ruby
sdothum has joined #ruby
doodlehaus has joined #ruby
flip_digits has quit [Ping timeout: 264 seconds]
chridal has joined #ruby
milesmatthias has joined #ruby
bluOxigen has joined #ruby
msgodf has joined #ruby
juanpablo_ has joined #ruby
Aswebb_ has quit [Remote host closed the connection]
HoloIRCUser3 has quit [Ping timeout: 252 seconds]
vroomanj has joined #ruby
astrobunny has joined #ruby
ndrei has joined #ruby
kobain has quit [Ping timeout: 264 seconds]
blueOxigen has quit [Ping timeout: 246 seconds]
krz has quit [Quit: WeeChat 1.0.1]
milesmatthias has quit [Ping timeout: 246 seconds]
slasla has quit [Quit: leaving]
Takle has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
juanpablo_ has quit [Ping timeout: 272 seconds]
HoloIRCUser3 has joined #ruby
livathinos has joined #ruby
adriancb has joined #ruby
sprihodko has joined #ruby
lxsameer has quit [Quit: Leaving]
<sprihodko>
Hi! What is the most 'ruby way' to sort this array of hashes http://pastie.org/10041575 so it will show only one inclusion of user to group?
adriancb has quit [Ping timeout: 246 seconds]
<undeadaedra>
can you display an exemple of the expected outcome ?
<undeadaedra>
oh wait, misread -_-
<certainty>
i think he did
<certainty>
but i still don't know what exactly he wants
<undeadaedra>
I see it
<canton7>
de-dup, I think?
<canton7>
so, not sorting at all
<undeadaedra>
he just want a value to appear once, so if it appears in next hashes, it want it gone
<canton7>
alos [user1: Nick, user2: Jack] is not ruby :P
<canton7>
*also
<sprihodko>
its just an example)
<undeadaedra>
a table to save already seen names, and filter to collect and delete
Juanchito has joined #ruby
<canton7>
it helps if the examples are actually representative of what you want
<undeadaedra>
s/table/array/
<canton7>
otherwise there's a surprising amount of scope for misinterpretation
<certainty>
undeadaedra: you're some kind of mind-reader :)
<canton7>
... I don't know whether you want an array or a hash there
<undeadaedra>
certainty: :)
<sprihodko>
array of hashes
<undeadaedra>
there are just delete operations here, no real transformation
<canton7>
what is users? an array or a hash?
<gregf_>
sprihodko: well its ain't sorting exactly. dedupe?
<canton7>
it also means I need to message your input before testing a solution
<certainty>
hmmm i could use a massage
<undeadaedra>
sprihodko: can you fix your example so it’s valid ruby representation ?
<sprihodko>
usernames is just a strings. Sorry for bad example
<gregf_>
yeah, and [user1: Alex, user2: Nick ] needs to be {user1: Alex, user2: Nick}
juanpaucar has joined #ruby
<canton7>
or is it ['Alex', 'Nick']?
<canton7>
^ that would make the most sense
<undeadaedra>
%w[Alex Nick]
<undeadaedra>
:p
<gregf_>
canton7: exactly
max96at|off is now known as max96at
reinaldob has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
<sprihodko>
canton7: yes, you are right
pengin has joined #ruby
davidhq has joined #ruby
<gregf_>
sprihodko: you could just have something like: Main: [ 'Alex', 'Nick' ]
<clarkk>
rvm keeps complaining that my path is not set up correctly, but the path it states is the one at the start of my path when I run echo $PATH (on linux). Does anyone know how to fix this please?
sleeper has joined #ruby
<sprihodko>
canton7: I see. Thanks!
Aswebb_ has joined #ruby
<sleeper>
Are there any methods for extending and including a module or would I be better off using them in succession?
davedev24_ has joined #ruby
<gregf_>
sprihodko: you can also use set operations with inject. but yeah, canton7's solution would look more elegant
sandelius has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
<sleeper>
I'm wondering if there's an obscure (or obvious) method I can use to replace that double call in Complement.
pontiki has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
Takle has quit [Remote host closed the connection]
<gregf_>
sleeper: i just tried this: module Foo; module_function; def bar; puts "Bar!";end;end;module Bar; include Foo; def baz; puts "Baz!";end;end;%w{bar baz}.each{ |meth| Class.new.extend(Bar).send(meth.to_sym) }
<gregf_>
i thought extend is used with a class at runtime whereas include was at compile time(switch compile/run accordingly) :
failshell has joined #ruby
<sleeper>
gregf_: that's one way of looking at it. In this case I'm using one to apply class methods and the other to apply instance methods.
<workmad3>
gregf_: there isn't a 'compile time' or 'run time' difference in ruby
failshell has quit [Client Quit]
<gregf_>
workmad3: oh - i see
<workmad3>
gregf_: include adds a module's instance methods to instances of a class, extend adds a module's instance methods to the singleton class of whatever you called 'extend' on
HoloIRCUser1 has quit [Ping timeout: 255 seconds]
<sleeper>
that's right
<workmad3>
gregf_: most commonly, if you call 'extend' on a class, you pull in the module's methods as class methods
<workmad3>
gregf_: and if you call 'extend self' in a module, you make all the module's instance methods available as module methods
<sleeper>
I'm using them both in tandem to apply the methods to the module and class instances of any class it's mixed into
<workmad3>
sleeper: that doesn't work thoguh
<workmad3>
*though
<sleeper>
workmad3: try it. Works fine for me.
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3>
sleeper: unless you mean you always do 'include Foo; extend Foo' in the module/class you pull it into
doodlehaus has quit [Remote host closed the connection]
<workmad3>
sleeper: rather than you do that and then only do 'include Foo' in another module/class
<gregf_>
workmad3: cool, thanks!
<sleeper>
workmad3: which is what I'm checking up on.
jolg42 has quit [Quit: [->EXIT]]
<sleeper>
Is there a single call I can make to use it this way in modules?
<sleeper>
include is fine for classes, but for of_dna and of_rna to work on the module they need a module binding of their dependencies.
izzol has joined #ruby
<izzol>
hello
<workmad3>
sleeper: you can override 'self.included' to perform extend when the module is included... but that's not recommended in the majority of cases... it's better to just have people pull the module in with either extend or include as they desire
<sleeper>
workmad3: that's fair. I'll stick with using the two.
<sleeper>
Thanks for the perspective.
sevenseacat has joined #ruby
MasterPiece has joined #ruby
<workmad3>
sleeper: actually, of_dna and of_rna should work fine if you just have 'include NucleicAcids' if you only intend to make them available as mixin methods
<sleeper>
workmad3: I was hoping they could be used as module methods, too, hence the extend.
<workmad3>
sleeper: the extend is needed to make them usable in the form NucleicAcids.of_dna(sequence) (so callable directly on NucleicAcids)
MasterPiece has quit [Remote host closed the connection]
<sleeper>
workmad3: in standalone methods, for instance.
<sleeper>
def foo(bar); Complement.of_rna bar; end; for instance
Pupeno has joined #ruby
Pupeno has joined #ruby
reinaldob has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<workmad3>
sleeper: I tend to prefer explicit references in modules over setting up dependency chains of include/extend inside modules :)
<sleeper>
workmad3: you're right, I'm not sure why I was doing that. Habit, probably. :)
<workmad3>
habit, fixing on the thought "this needs NucleicAcids to work, so I should include it", not having been burned by a large module dependency structure crumbling around you? :)
bim has joined #ruby
sprihodko has quit [Quit: (null)]
<sleeper>
workmad3: you've made your point. ;)
<workmad3>
sleeper: I was more explaining why I have that preference than making a point
<sleeper>
workmad3: I know. They're good reasons, thanks again for the advice.
Aswebb_ has joined #ruby
withnale_ has joined #ruby
jgt1 has quit [Ping timeout: 252 seconds]
meschi has joined #ruby
rodfersou has joined #ruby
bim has quit [Remote host closed the connection]
rsavage has joined #ruby
<jhass>
apeiros_: sure, PRs always welcome
<withnale_>
Is it possible to use Enumerable when your class is effectively wrapping a hash? How would you define each in that case?
rkgudboy has joined #ruby
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
WillAmes has quit [Remote host closed the connection]
WillAmes has joined #ruby
fgo has joined #ruby
<certainty>
withnale_: you could delegate for example
<apeiros_>
13:08 izzol: this is how my yaml file looks like: {"bb1.test.de"=>{"time"=>1426852742, "last_time"=>"2015-03-20T11:59:02+00:00", "status"=>:CRITICAL}}
<apeiros_>
look like #to_s instead of #to_yaml
<Mon_Ouie>
(Wasn't the case in YAML 1.1 apparently)
<workmad3>
undeadaedra: simply because yaml allows '"foo": "bar"', '"foo": ["one", "two"]' and '{"foo": "bar"}' (i.e. it allows the enclosing {} for hashes and [] for arrays, and you can optionally quote both the key and the value)
nfk has joined #ruby
ipmgjt has joined #ruby
shevy has joined #ruby
mengu has quit [Remote host closed the connection]
<undeadaedra>
Wouldn’t saying that YAML ⊃ JSON implies that every JSON document is valid YAML?
<apeiros_>
undeadaedra: yes
<Mon_Ouie>
"every JSON file is a valid YAML file" is written verbatim in the spec
<workmad3>
hehe
<undeadaedra>
ah yes
<undeadaedra>
didn’t know that, actually
nfk has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 264 seconds]
<workmad3>
undeadaedra: same... I knew that [] was allowed for arrays, but didn't know {} were also allowed or that "foo": "bar" was allowed
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ismaelga has quit [Remote host closed the connection]
nfk has joined #ruby
ndrei has joined #ruby
ghostpl_ has joined #ruby
ismaelga has joined #ruby
oo_ has quit [Remote host closed the connection]
<undeadaedra>
I’m sceptic about mixing YAML and JSON constructs, but well
<undeadaedra>
anyway
<izzol>
ok it works now :)
<undeadaedra>
congrats
<izzol>
Anyway I'm not sure why.
oo_ has joined #ruby
<workmad3>
undeadaedra: same... but it's kinda nice that you could, in the extreme, use your compliant 1.2 yaml parser as a json parser
<undeadaedra>
D:
<c-c>
zomg
<workmad3>
undeadaedra: similarly, I quite like that ruby 2.2 allows {"foo": "bar"} for hash syntax, so I can copy-paste JSON responses directly into ruby now if I so desire :)
<helpa>
Hi izzol. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<undeadaedra>
workmad3: doesn’t this syntax creates hash keys as symbols?
<izzol>
hmm :)
<workmad3>
izzol: 'f.write(verify.to_yaml)'
<workmad3>
izzol: you're trying to call .to_yaml on the result of the write, not on the thing you're writing
<workmad3>
undeadaedra: it does indeed
rsavage is now known as R3Dk1nG
ismaelga has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
<izzol>
workmad3: yes, that works too
<workmad3>
undeadaedra: that doesn't really matter though... what's important, to me, is the convenience of being able to copy-paste json into IRB to examine the results easily, not that string/symbol access differences
<izzol>
workmad3: you right
<apeiros_>
and write calls to_s, which would be why it looks like what I said
huddy has joined #ruby
<izzol>
I didn't thing about it in that way
n80 has joined #ruby
<izzol>
think*
<undeadaedra>
workmad3: yes, but you still have to be careful, as the result is not exactly the same, and can lead to errors
milesmatthias has joined #ruby
<workmad3>
undeadaedra: well, unless what you're going to do is write 'eval(open("http://foobar.com/some.json").read' then it's not something I'm going to be doing in production code
haxrbyte has quit [Ping timeout: 244 seconds]
<workmad3>
(there should be another closing ) there... ah well)
msgodf has quit [Ping timeout: 246 seconds]
<undeadaedra>
no, but what could go wrong is if you use it to test code in IRB, and then switch to using JSON.parse
DaniG2k has joined #ruby
juanpablo_ has joined #ruby
<workmad3>
undeadaedra: sure... if you don't look at the output from both, you could make that mistake
<jhass>
programmer could make a mistake :o This is unacceptable!
<workmad3>
jhass: if that's unacceptable, use java ;)
jimms has joined #ruby
<jhass>
yes yes, I'll make a new AbstractSingletonProxyFactoryBean right away!
lele is now known as Guest24
<workmad3>
jhass: no... you get oracle to write it for you (because they can't possibly make a mistake) and then just use it in your spring XML config file
milesmatthias has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby
<undeadaedra>
so we’re bashing java now?
<workmad3>
jhass: and XML is just text, so can't possibly contain errors, meaning anyone can write it and be an uber-coder!
kyrylo has joined #ruby
<workmad3>
undeadaedra: I think we're just bashing common perceptions of J2EE development ;)
<undeadaedra>
ok
<kyrylo>
workmad3, wow, it's you
<workmad3>
kyrylo: yeah, I'm everywhere :P
jimms has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 246 seconds]
rkgudboy has joined #ruby
Musashi007 has quit [Client Quit]
andikr has joined #ruby
<workmad3>
kyrylo: apart from when I run away to eat lunch (like now) :)
<kyrylo>
workmad3, bon appetite
commmmodo has joined #ruby
<workmad3>
cheers :)
workmad3 is now known as wm3|away
adriancb has joined #ruby
xploshioon has quit [Ping timeout: 246 seconds]
jgt1 has joined #ruby
davispuh has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mengu has joined #ruby
mengu has joined #ruby
xenokiller has quit [Ping timeout: 264 seconds]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
Rollabunna has joined #ruby
alphaatom has joined #ruby
adriancb has quit [Ping timeout: 246 seconds]
commmmodo has quit [Ping timeout: 272 seconds]
pengin has joined #ruby
Pupeno has quit [Quit: Leaving...]
vtunka has quit [Quit: Leaving]
jimms has joined #ruby
Musashi007 has joined #ruby
dumdedum has quit [Quit: foo]
Takle has quit [Ping timeout: 246 seconds]
jimms has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
jerematic has joined #ruby
avril14th has joined #ruby
brb3 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Outlastsheep is now known as zz_Outlastsheep
spyderman4g63 has joined #ruby
delianides has joined #ruby
DerisiveLogic has quit [Ping timeout: 255 seconds]
mostlybadfly has joined #ruby
haxrbyte has joined #ruby
nateberkopec has joined #ruby
hiyosi has joined #ruby
juanpaucar has joined #ruby
beef-wellington has joined #ruby
ajsdklfjalksdf has joined #ruby
pengin has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 255 seconds]
iMe has quit [Ping timeout: 256 seconds]
dtordable has joined #ruby
<avril14th>
hi
6A4ABV6T3 has joined #ruby
<c-c>
hi
anaeem1 has quit [Remote host closed the connection]
delianides has quit [Ping timeout: 265 seconds]
jimms has joined #ruby
anaeem1 has joined #ruby
iMe has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
spyderman4g63 has joined #ruby
enebo has joined #ruby
DerisiveLogic has joined #ruby
slap_stick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderma_ has joined #ruby
banister has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
blackmes1 has quit [Ping timeout: 256 seconds]
spyderman4g63 has quit [Ping timeout: 265 seconds]
willharrison has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
ipmgjt has quit [Remote host closed the connection]
<a1fa>
well technically: row["whatever"] ? whatever = URI(row["whatever"])
Hirzu has joined #ruby
<tobiasvl>
no, you need the third parameter there
<tobiasvl>
it's a ternary operator
_maes_ has joined #ruby
freezey has quit [Remote host closed the connection]
<a1fa>
:
<tobiasvl>
yes
<tobiasvl>
but if you don't want an else clause you can write
<a1fa>
doh, i guess i should default it to nil
hdrv has quit [Ping timeout: 252 seconds]
hydrozen has joined #ruby
<tobiasvl>
whatever = row["whatever"] if URI(row["whatever"]
<tobiasvl>
or something
<a1fa>
that defaults to nil
<a1fa>
so that would probably work better
<a1fa>
unless i need else
<a1fa>
cool, thanks tobiasvl
<jhass>
a1fa: to answer the actual question: no, ternary for control flow is not cool
hyperdrive has joined #ruby
werelivinginthef has joined #ruby
a346 has joined #ruby
<a1fa>
jhass: thanks
DerisiveLogic has joined #ruby
joonty has joined #ruby
mengu has quit [Remote host closed the connection]
ta has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
razieliyo has quit [Quit: Saliendo]
kedare has quit [Quit: WeeChat 1.0.1]
alexherbo2 has quit [Quit: WeeChat 1.1.1]
alexherbo2 has joined #ruby
hcnewsom has joined #ruby
alec-c4 has joined #ruby
livathinos has joined #ruby
fmcgeough has joined #ruby
commmmodo has quit [Quit: commmmodo]
arup_r has quit []
ych4k3r has joined #ruby
ojacobson_ has joined #ruby
wm3|away is now known as workmad3
livingstn has quit [Ping timeout: 256 seconds]
RegulationD has joined #ruby
varunwachaspati has quit [Quit: Leaving]
fgo has quit [Quit: WeeChat 1.1.1]
palms has joined #ruby
juanpablo_ has joined #ruby
alec-c4 has quit [Remote host closed the connection]
ernetas has joined #ruby
<ernetas>
Hey guys.
<ernetas>
Is there a way to disable git in bundler?
<ernetas>
I don't want bundle install to do anything with git, but it does, even if the gems in gemfile are specificed in specific group, which is excluded with running bundle install --without=development...
alec-c4 has joined #ruby
codecop has joined #ruby
duggiefresh has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass>
mhh, that would sound like a bug
<jhass>
are they maybe still to be installed through dependencies outside of that group?
hesam has joined #ruby
ta has quit [Remote host closed the connection]
<hesam>
hi, I have installed Ruby and Rail and I am beginner in them, how can I test that i installed rail correctly? I used "rail -v" to see the version but i see "Usage: rail new <project_name>"
kedare has joined #ruby
<mikecmpbll>
there's more than one rail
<jhass>
hesam: the name is rails, rails -h
<ernetas>
jhass: neup, no deps.
<nickjj>
does anyone know offhand of a great image face detection gem? something to create thumbs of faces from a larger source image
<ddv>
I have this weird problem where I receive UDP packets in my Ruby program but then it stops receiving....
ta has joined #ruby
<jhass>
ernetas: are you sure? can you gist your Gemfile and .lock?
imanzarrabian has joined #ruby
<hesam>
Thanks
<jhass>
ddv: I think it's called "UDP"
Takle has quit [Remote host closed the connection]
<jhass>
your problem
<ddv>
jhass: What?
juanpablo_ has quit [Ping timeout: 264 seconds]
<mikecmpbll>
lol
User458764 has joined #ruby
pengin has joined #ruby
<jhass>
maybe the packets just don't come through anymore? you have no way to tell with udp
<ddv>
jhass: I'm checking with wireshark
alec-c4 has quit [Ping timeout: 256 seconds]
freezey has joined #ruby
ninedragon has joined #ruby
juanpaucar has joined #ruby
ta has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
<ernetas>
ddv: how is this Ruby's problem then, if your machine doesn't receive those UDP packets?
<jhass>
ernetas: a gist can have multiple files ;)
banister has joined #ruby
<ddv>
ernetas: I didn't say it was rubys problem
thumpba_ has joined #ruby
<jhass>
ernetas: could you please edit the first gist to add your .lock?
<ernetas>
ddv: sorry, I assumed so because of the channel :) .
flip_digits has joined #ruby
<ernetas>
jhass: I removed while testing my .lock file, does that impact anything?
<hesam>
I have another question in installing rails. I installed ruby (2.2.0), but I can't install RAILS. here is terminal errors. http://codepad.org/Wr7YHMwU
livathinos has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
<jhass>
ernetas: that's probably why it runs git then
Rollabunna has quit [Remote host closed the connection]
<jhass>
ernetas: removing the lock is making bundler's main job impossible btw
thumpba has quit [Ping timeout: 256 seconds]
allcentury has joined #ruby
<mikecmpbll>
hesam: looks like you don't have some system dependency. libxml2 by the looks of it.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
milesmatthias has joined #ruby
Takle has joined #ruby
<hesam>
<mikecmpbll> how can I fix it?
livathinos has joined #ruby
<mikecmpbll>
hesam: by installing libxml2 :p what OS you on?
<hesam>
mikecmpbll : Ubuntu
chinmay_dd has joined #ruby
<mikecmpbll>
hesam: then try sudo apt-get install libxslt-dev libxml2-dev
<a1fa>
jhass: not sure why its messing me up - i will double check again
<hesam>
I have another question in installing rails. I installed ruby (2.2.0), but I can't install RAILS. here is terminal errors. http://codepad.org/Wr7YHMwU
<a1fa>
maybe URI.parse?
<jhass>
the host part is optional though, so verify what kind of URLs you parse
<jhass>
a1fa: it's the same
juanpablo_ has joined #ruby
<undeadaedra>
hesam: install -dev version of libxml2 package
<mikecmpbll>
undeadaedra: he said he did already
<a1fa>
jhass: "it worked" with parse... more debugging required.. maybe i did something else.. brb going to check
<undeadaedra>
oh
<hesam>
undeadaedra : I have installed that but error does not changed!
n80 has quit [Quit: n80]
<jhass>
hasB4K: undeadaedra mikecmpbll checking for main() in -llzma... no
BuGo has joined #ruby
<jhass>
er hesam, sorry hasB4K
ndrei has joined #ruby
<undeadaedra>
that’s strange tho, it builds libxml2 itself and don’t find it
<jhass>
hesam: I always forget the package for that, I think it's zlib-dev
<mikecmpbll>
path issues?
hrs has joined #ruby
wottam has joined #ruby
<undeadaedra>
hesam: build tools are installed, too?
fryguy9 has joined #ruby
<jhass>
fine, ignore me
<a1fa>
url = uri.to_s if uri
<a1fa>
i got a syntax error in this
<hesam>
undeadaedra : what the hell is build tool? I don'r here it
<a1fa>
it worked prior to .parse
<hanmac1>
hesam from line 110 - 113 it does look as if something is funky ... hm try to install nokogiri without bundler and look what does happen
<undeadaedra>
jhass: seen it, nothing wrong in asking multiple questions to test multiple possibilities
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ChoiKyuSang has quit [Quit: Going offline, see ya! (( www.adiirc.com )]
<a1fa>
jhass: ok, found the problem
<a1fa>
jhass: fqdn, hostname = uri.host if uri
<jhass>
huh?
livathinos has quit [Remote host closed the connection]
Rephiax has quit [Ping timeout: 246 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<a1fa>
i removed fqdn, and it worked
<jhass>
well, sure
<undeadaedra>
-_-
ChoiKyuSang has joined #ruby
<jhass>
why would you think it would return an array of two times the same thing?
ojacobson_ has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
<a1fa>
i just assumed since you could a,b,c = nil
<a1fa>
wrong again?
<apeiros_>
kinda
<ddv>
jhass: so the packets are coming in, and my udpclient is listening on the correct ip/port, but I also saw some other device that sends my udp packets but to a broadcast address
<IceDragon>
I'm gonna start using a functional language, cause functional >->
kobain has joined #ruby
momomomomo has joined #ruby
vtunka has quit [Quit: Leaving]
ramfjord has joined #ruby
diegoviola has joined #ruby
dc has joined #ruby
ixti has joined #ruby
User458764 has joined #ruby
agarie has quit [Remote host closed the connection]
diegoviola has quit [Changing host]
diegoviola has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
sinkensabe has quit [Remote host closed the connection]
zenith_ has joined #ruby
lsmola has joined #ruby
_ixti_ has quit [Ping timeout: 256 seconds]
Takle has joined #ruby
DEA7TH has joined #ruby
revoohc has quit [Quit: revoohc]
<izzol>
ehh I'm trying to fix something at my code but so far I have no idea how. Can someone have a time to look at it ?
<jhass>
izzol: don't ask to ask, just ask
chinmay_dd has quit [Quit: Leaving]
<jhass>
don't ask for a person that you hope has the solution, ask the channel for the solution
davidhq has joined #ruby
<izzol>
jhass: ok
mostlybadfly has joined #ruby
ghostmoth has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
bentanweihao has quit []
revoohc has joined #ruby
kubunto has joined #ruby
cpruitt has joined #ruby
GaryOak_ has joined #ruby
Soda has joined #ruby
jgt1 has joined #ruby
<kubunto>
how can i define methods with arguments in external files?
bal has quit [Quit: bal]
<IceDragon>
kubunto: you mean like python modules, go imports or something of that nature?
<jhass>
kubunto: it should just work, can you show your code that's not working?
hcnewsom has quit [Quit: hcnewsom]
mistermocha has joined #ruby
keen______ has joined #ruby
hcnewsom has joined #ruby
zenith_ has quit [Remote host closed the connection]
<izzol>
The code is here: https://gist.github.com/wolfedale/0ceced74b78f245b5d6e and the problem that I have is I want to put everything which is at the @hash (line 127) to the status.yaml file. But so far I'm getting the list but I can save only the last host/node. So I'm missing something somewhere.
<helpa>
Hi kubunto. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<jhass>
izzol: Check is nice to represent a single check, but since you need want to write multiple checks to a single file, doing the writing to the file in something that represents a single check is your design issue
<jhass>
izzol: you need something that represents a collection of checks and let that do the writing
davedev24_ has quit [Ping timeout: 272 seconds]
lsmola has quit [Quit: Leaving]
riotjones has quit [Ping timeout: 264 seconds]
<jhass>
kubunto: are you sure that are the actual files, everything saved and in the right location? no different version opened in your editor or anything?
<kubunto>
jhass: i am
<kubunto>
it is seeing a phantom of the past isnt it?
anaeem1_ has joined #ruby
ismaelga has joined #ruby
alex88 has quit []
<centrx>
Learn from the past or it will haunt you secretly
<jhass>
kubunto: because when I clone the gist and run file, the requires work fine and parse, it throws a runtime error because I don't have the file, as expected
silkfox has joined #ruby
Synthbread has joined #ruby
<kubunto>
jhass: i had a regex in there before but the error would never clear
<jhass>
the error sounds like you missed the trailing / for /hello/
ValicekB has joined #ruby
chrishough has joined #ruby
aclearman037 has quit [Quit: I'm out!]
JDiPierro has quit [Remote host closed the connection]
<IceDragon>
kubunto: what version ruby are you running?
IrishGringo has quit [Ping timeout: 256 seconds]
<kubunto>
,--8<-
Zai00 has quit [Remote host closed the connection]
<jhass>
kubunto: oh and an aside for the gist tips: you can edit them too ;)
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<jhass>
same for 2.1 here
allcentury has quit [Ping timeout: 264 seconds]
<kubunto>
rebooting
<jhass>
I mean that I can't repro
<jhass>
wat
kubunto has quit [Quit: Lost terminal]
werelivinginthef has quit [Remote host closed the connection]
imanzarrabian has quit [Ping timeout: 256 seconds]
<IceDragon>
2.2.1p85 here
Megtastique has joined #ruby
<jhass>
windows users... you can't get it out of them
Megtastique has quit [Max SendQ exceeded]
delianides has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass>
I wish they would finally just drop that silly pnnn from the version
IrishGringo has joined #ruby
beef-wellington has quit [Ping timeout: 256 seconds]
commmmodo has quit [Quit: commmmodo]
Megtastique has joined #ruby
<centrx>
I thought they did, what is this about 2.2.1p85
Megtastique has quit [Max SendQ exceeded]
kubunto has joined #ruby
<kubunto>
i thought that maybe rebooting my machine would make it work
<IceDragon>
jhass: if anything I'd prefer they just tack it on the end like: 2.2.1.85
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
dorei has quit []
rbennacer has quit [Remote host closed the connection]
<kubunto>
ok i am an idiot
Megtastique has joined #ruby
ismael_ has joined #ruby
<kubunto>
they were not in the same directory
<jhass>
;)
Synthbread has quit [Ping timeout: 252 seconds]
<jhass>
another aside: ewww, spaces in filenames
<IceDragon>
jhass: File.read("So what if I used spaces in my filename.rb") # okay, I agree that is ewww
psyprus_ has quit [Quit: leaving]
DerisiveLogic has quit [Remote host closed the connection]
<kubunto>
jhass: ill fix that when i finish my exploration
towski_ has quit [Remote host closed the connection]
<jhass>
IceDragon: you break 40% of all shell scripts in existence :P
* IceDragon
is now king of breakage!
DerisiveLogic has joined #ruby
JDiPierro has joined #ruby
mistermocha has quit [Remote host closed the connection]
ismaelga has quit [Ping timeout: 255 seconds]
karmatr0n has quit [Remote host closed the connection]
cjim has joined #ruby
rbennacer has joined #ruby
opes has joined #ruby
<kubunto>
jhass: tyvm for the help
xymbol has joined #ruby
hcnewsom has quit [Quit: hcnewsom]
mistermocha has joined #ruby
wallerdev has joined #ruby
Zai00 has joined #ruby
kubunto has quit [Quit: I have no special talent I am only passionately curious]
BigRonnieRon has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
werelivinginthef has joined #ruby
IrishGringo has quit [Remote host closed the connection]
haxrbyte has joined #ruby
xymbol has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
Takle has quit [Remote host closed the connection]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevvie has quit [Ping timeout: 250 seconds]
GnuYawk has joined #ruby
haxrbyte_ has joined #ruby
<izzol>
jhass: I'm trying but no clue how to do this :( Do you have any idea what will help?
speakingcode has joined #ruby
sevvie has joined #ruby
shazaum has joined #ruby
BigRonnieRon has joined #ruby
BigRonnieRon has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
davedev2_ has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
porfa has quit [Quit: porfa]
rbennacer has quit [Ping timeout: 252 seconds]
<Senjai>
Good morning #ruby
_maes_ has joined #ruby
porfa has joined #ruby
haxrbyte has quit [Ping timeout: 245 seconds]
<Senjai>
IceDragon: I think you meant StringIO there xD
x1337807x has quit [Ping timeout: 246 seconds]
hpoydar has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
davedev24_ has joined #ruby
<IceDragon>
orly x3
maletor has joined #ruby
agarie has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
deric_skibotn has joined #ruby
<jhass>
izzol: there's not much more I can say, you need to collect the data you want to write somewhere and write that collection instead of writing single data points
x1337807x has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
iwaffles has joined #ruby
eighthbit has joined #ruby
Takle has joined #ruby
renanoronfle has joined #ruby
bentanweihao has joined #ruby
lnr has quit [Ping timeout: 245 seconds]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
delianides has quit [Remote host closed the connection]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
abyss has quit [Ping timeout: 252 seconds]
beef-wellington has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
mloveless has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
agarie has quit [Remote host closed the connection]
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
silkfox has quit [Ping timeout: 252 seconds]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
a346 has quit [Quit: a346]
karmatr0n has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
toothe has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<toothe>
what does the @ symbol mean?
<toothe>
so, a variable is @state.
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<gregf_>
toothe: @state is an instance level variable
<apeiros>
@@class_var scoping is actually relatively complex
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
sevvie has quit [Ping timeout: 252 seconds]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<IceDragon>
apeiros: class variables are just available across the class, and its children and its instances... (not that complex to me, unless I'm missing something here)
xymbol has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<apeiros>
IceDragon: now tell me how it works when modules come into play
lnr has joined #ruby
<IceDragon>
its available across every class/module that includes the module?
<IceDragon>
*sweating*
<apeiros>
IceDragon: what if a class and a module define the same @@var?
<IceDragon>
Only the heavens know what will happen!
<eam>
shadowing gets complicated, but it's pretty easy to just recognize that class variables are global
<apeiros>
tbh: I'm not sure. I avoid @@cvars because IME most rubyists don't know the full behavior.
<gregf_>
toothe: no, globals and classlevel and static variable are synonymous
withnale_ has quit [Ping timeout: 264 seconds]
<gregf_>
s/variable/variables/
* apeiros
included
<apeiros>
I think it's high time I actually went ahead and properly figured how all those things work.
GnuYawk has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
sevvie has joined #ruby
<IceDragon>
apeiros: its about the same problem with including the same constants from a module which defines the same constants in question
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
and now we have those funny added things called refinements, which might also have differences in how it works…
<IceDragon>
dafuq did I just write
<IceDragon>
has anyone used refinements yet?
<apeiros>
I do
<IceDragon>
I haven't tried em yet :(
<apeiros>
they are way less useful than I expected them to be
Pupeno has joined #ruby
Pupeno has joined #ruby
<apeiros>
you can't compose refinements
jonr22 has joined #ruby
<apeiros>
that's IMO the main drawback
<IceDragon>
bleh
<eam>
then of course there's the other set of globals no one talks about -- the kind that start with a capital letter
<apeiros>
the other main drawback is that you can't request refinements via method
<apeiros>
you must write `using <module>`
kirun has joined #ruby
<eam>
some people call them constants, but they're not
<IceDragon>
eam: $DERP
<apeiros>
though, that's a two sided sword. it also cuts back unexpected behavior changes.
martinbmadsen has joined #ruby
lemur has joined #ruby
bentanweihao has quit [Remote host closed the connection]
discr33t has joined #ruby
<eam>
>> def foo; a = 1; end; a rescue "a is not defined"
<aiguu>
any code/comments are welcome, looking for ways to improve the ruby/gem in general
a346 has quit [Quit: a346]
beef-wellington has quit [Ping timeout: 272 seconds]
<workmad3>
aiguu: is it reversible? :)
<gr33n7007h>
!gem bft
pandaant has quit [Remote host closed the connection]
<cybergem>
bft(1.0.1) - A source to source compiler. Co... by Corey Prophitt - downloads (59) - http://www.rubydoc.info/gems/bft
shadoi1 has joined #ruby
martinbmadsen has joined #ruby
<aiguu>
go from XYZ to brainfuck? Not yet, that sounds like a lot of work :p
<aiguu>
this was a 4 hour toy project
mikecmpbll has quit [Ping timeout: 245 seconds]
<aiguu>
but it will translate a lot of non-trivial programs, I tested with a pretty wide range
<workmad3>
aiguu: you could start by just being able to reverse your own output back into bf ;)
<aiguu>
I was thinking of that, like a feedback loop to check the output haha
pengin has quit [Remote host closed the connection]
<aiguu>
bf -> c -> bf == original?
<havenwood>
>> bitblt
<eval-in_>
havenwood => undefined local variable or method `bitblt' for main:Object (NameError) ... (https://eval.in/302642)
<workmad3>
aiguu: which would also give you a limited language -> language translator... you could translate some C programs into BF and then into java or ruby... thereby having a limited C -> ruby transformer ;)
<havenwood>
ahh, no SUPPORT_JOKE enabled..
allcentury has joined #ruby
wallerdev has joined #ruby
<aiguu>
that would be cool :p
<aiguu>
does anyone know a paste tool that can use pipes/stdin?
allenn has joined #ruby
<aiguu>
I would like to do soomething like gcc foobar | paste | pbcopy
joonty has quit [Quit: joonty]
ndrei has quit [Ping timeout: 244 seconds]
Jesterman81 has joined #ruby
<jhass>
aiguu: just search one with a API and curl it
Jesterman81 has left #ruby [#ruby]
krisquigley has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joonty has joined #ruby
<jhass>
digityuo: how's your ruby?
opes_ has quit [Ping timeout: 245 seconds]
kyrylo has quit [Quit: Konversation terminated!]
krisquigley has quit [Ping timeout: 244 seconds]
jimms has quit [Remote host closed the connection]
uri_ has quit [Ping timeout: 246 seconds]
ndrei has joined #ruby
kyrylo has joined #ruby
<flughafen_>
hey certainty
Juanchito has quit [Quit: Connection closed for inactivity]
ych4k3r has quit [Ping timeout: 255 seconds]
zorak8 has quit [Ping timeout: 264 seconds]
<digityuo>
jhass: :|
sinkensabe has joined #ruby
joonty has quit [Client Quit]
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
digityuo has quit [Quit: Page closed]
ych4k3r has joined #ruby
opes has joined #ruby
HOrangeJewce has joined #ruby
HOrangeJewce has quit [Client Quit]
steeze has joined #ruby
x1337807x has joined #ruby
<steeze>
so after a gem install, i'm trying to use bourbon but it tells me the command is not found. is this a path issue?
<jhass>
steeze: maybe, did gem install mention anything about it?
<havenwood>
steeze: It sounds like it. How'd you install Ruby?
<steeze>
im on arch, through pacman
<steeze>
gem install didn't mention anything
justin_pdx has quit [Quit: justin_pdx]
<steeze>
gem list shows the package
<jhass>
mmh, it should
<jhass>
what's your?: echo $PATH
SegFaultAX has quit [Excess Flood]
User458764 has joined #ruby
SegFaultAX has joined #ruby
<steeze>
ah it wont let me paste it
x1337807x has quit [Client Quit]
justin_pdx has joined #ruby
<steeze>
no mention of ruby though, all perl stuff
einarj has quit [Remote host closed the connection]
<steeze>
sbin:bin
<jhass>
well, normally it would inform you that the directory it installs binaries to isn't in the path if it isn't
Musashi007 has joined #ruby
<steeze>
ruby which returns an error
<jhass>
huh?
GnuYawk has joined #ruby
Skelz0r has quit [Ping timeout: 250 seconds]
<jhass>
oh, it's gem which
timonv has quit [Ping timeout: 256 seconds]
<steeze>
which is a linux command to show full paths of comands
sinkensabe has quit [Ping timeout: 244 seconds]
dc has quit [Remote host closed the connection]
<jhass>
yeah but ruby which isn't
<jhass>
which ruby would
Channel6 has joined #ruby
DerisiveLogic has quit [Ping timeout: 244 seconds]
<jhass>
and gem which bourbon would also report something (not related to the executable)
<steeze>
$shell_command which returns the full path of $shell_command
<steeze>
right sorry i had it backwards
Advocation has joined #ruby
x1337807x has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
joonty has joined #ruby
<jhass>
anyway, add $HOME/.gem/ruby/2.2.0/bin to your path
agrinb has quit [Remote host closed the connection]
allcentury has joined #ruby
agrinb has joined #ruby
jimms has joined #ruby
juanpaucar has quit [Remote host closed the connection]
Advocation has quit [Client Quit]
pengin has quit [Remote host closed the connection]
jcromartie has joined #ruby
jenrzzz has joined #ruby
Advocation has joined #ruby
<aiguu>
Is it best practice to include all requires in a gem's lib/name and not in lib/name/xyz whenever they are needed instead of all up front?
<aiguu>
I only include the require needed for the exposed API
<jhass>
aiguu: I see both equally often
<jhass>
pick what you like
josephleo has joined #ruby
<jhass>
or think makes more sense for the particular gem
<aiguu>
I just think it's weird to require all up front because it kind of hides that detail from the lib code itself and you use things assuming they are required
<aiguu>
coming from a C world it makes me a bit nuts
<jhass>
then don't do it ;)
<aiguu>
as long as it's not considered weird :p
pengin has joined #ruby
<steeze>
jhass, thanks that worked
<aiguu>
thanks :D
x1337807x has quit [Client Quit]
<jhass>
steeze: note you will need to update that with the Ruby 2.3 release (most likely), but I think we still have some time till that
agrinb has quit [Ping timeout: 256 seconds]
<jhass>
you will not need to update it for Ruby 2.2.2, 2.2.3 etc.
<steeze>
jhass, word thanks for the heads up
eighthbit has quit [Ping timeout: 256 seconds]
<jhass>
or maybe I can get anatolik to ship a /etc/profile.d/ that sets it, mmh
x1337807x has joined #ruby
josephleon has quit [Ping timeout: 256 seconds]
starless has joined #ruby
tvon has joined #ruby
<jhass>
wish he would be regularly on IRC :/
towski_ has joined #ruby
joonty has quit [Quit: joonty]
hyperdrive has quit [Changing host]
hyperdrive has joined #ruby
hyperdrive is now known as hdrv
towski_ has quit [Remote host closed the connection]
oetjenj has joined #ruby
blackmesa has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
<steeze>
jhass, i found this bad boy "export PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH""
werelivinginthef has quit [Remote host closed the connection]
josephleon has joined #ruby
<steeze>
jhass, that way i wont have to manually edit it on updates
<steeze>
you also forgot the :$PATH so i messed up all my sbin bin etc paths lol
rkgudboy has joined #ruby
abyss has quit [Ping timeout: 250 seconds]
<jhass>
ah well, yes
sigurding has joined #ruby
<jhass>
it's too slow for me personally :P
<jhass>
I think there's Gem.bin_dir directly though
<steeze>
what's too slow?
abyss has joined #ruby
yakko has quit [Read error: Connection reset by peer]
jgabrielygalan has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
dc has joined #ruby
mgorbach has joined #ruby
dc has quit [Remote host closed the connection]
C1ph3r_ has joined #ruby
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
<aiguu>
@jhass, do you mind if I wrapped/used your paste service?
Rephiax has joined #ruby
User458764 has joined #ruby
werelivinginthef has joined #ruby
<jhass>
as long as you don't spread and don't expect it to not be suddenly gone, sure, go ahead ;)
<aiguu>
thanks :)
<jhass>
note it's just a sticky notes install
rorra has quit [Quit: rorra]
last_staff has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
jimms has quit [Ping timeout: 252 seconds]
izzol has quit [Ping timeout: 256 seconds]
MasterPiece has quit [Remote host closed the connection]
jimms has joined #ruby
sevvie has joined #ruby
epistrephein has joined #ruby
C1ph3r_ has left #ruby [#ruby]
apxm has joined #ruby
epistrephein has quit [Max SendQ exceeded]
Obfuscate has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
epistrephein has joined #ruby
huddy has quit [Quit: Connection closed for inactivity]
shadoi1 has quit [Quit: Leaving.]
ta has joined #ruby
<claw>
can anybody please explain what stringio does ?
Obfuscate has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
<claw>
3~
<claw>
.
claw has left #ruby [#ruby]
<centrx>
claw, Treats a string as an IO stream
claw has joined #ruby
<claw>
.
<jhass>
claw: ?
<claw>
can anybody please explain what stringio does ?
<jhass>
it came through the first time
<wallerdev>
lol
<claw>
irssi was stuck sorry
rorra has joined #ruby
<jhass>
you quit in the moment centrx answered
<claw>
centrx: again plz
<wallerdev>
its useful for methods that require a stream like object
<centrx>
* claw (~claw@95.89.74.84) has left #ruby
<centrx>
<centrx> claw, Treats a string as an IO stream
<centrx>
* claw (~claw@95.89.74.84) has joined #ruby
<jhass>
anyway, it provides an IO like interface backed by a String
<wallerdev>
like a file handle
<wallerdev>
but all you have is a string
<claw>
okay i found out that it prevents zlib from raising Zlib::BufError
Guest20405 has quit [Ping timeout: 246 seconds]
jimms has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
doodlehaus has quit [Ping timeout: 244 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
epistrephein has quit []
krisquigley has joined #ruby
n008f4g_ has joined #ruby
Affix_ has joined #ruby
revoohc has quit [Quit: revoohc]
_hollywood has quit [Ping timeout: 244 seconds]
leafybasil has quit [Remote host closed the connection]
ghostpl_ has quit [Remote host closed the connection]
<deric_skibotn>
I'm debugging someone else's dsl - is there a way I can do something like method(:super).source_location on a call to 'super' to find out what it's executing?
justin_pdx has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 252 seconds]
<deric_skibotn>
'method(:super)' does not work - no surprise, as it's a keyword
rbennacer has joined #ruby
jespada has quit [Quit: WeeChat 1.1.1]
ghostpl_ has joined #ruby
mikepack has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
revoohc has joined #ruby
thinkswan has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
havenwood has quit []
shortdudey123 has quit [Max SendQ exceeded]
baweaver has quit [Remote host closed the connection]
shortdudey123 has joined #ruby
towski_ has joined #ruby
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
havenwood has joined #ruby
speakingcode has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
ndrei has joined #ruby
ghr has joined #ruby
jamgood96 has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 265 seconds]
x1337807x has quit [Ping timeout: 244 seconds]
_hollywood has joined #ruby
claw has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
softinio has quit [Ping timeout: 252 seconds]
streaxy has quit [Ping timeout: 252 seconds]
ghr has quit [Ping timeout: 246 seconds]
d10n-work has quit [Ping timeout: 256 seconds]
neersighted has quit [Ping timeout: 250 seconds]
andrewstewart has quit [Ping timeout: 250 seconds]
preyalone has quit [Ping timeout: 250 seconds]
yo61 has quit [Ping timeout: 250 seconds]
im0b has quit [Ping timeout: 252 seconds]
rippa has quit [Ping timeout: 256 seconds]
Guest85414______ has quit [Ping timeout: 256 seconds]
mitchellhenke has joined #ruby
zero7 has quit [Ping timeout: 252 seconds]
Heero has quit [Ping timeout: 250 seconds]
akitada has quit [Ping timeout: 250 seconds]
kapowaz has quit [Ping timeout: 250 seconds]
pmarreck has quit [Ping timeout: 250 seconds]
jmhmccr has quit [Ping timeout: 256 seconds]
bove has quit [Ping timeout: 250 seconds]
rippa has joined #ruby
machty has quit [Ping timeout: 256 seconds]
claw has joined #ruby
benlakey has quit [Ping timeout: 250 seconds]
shelling__ has quit [Ping timeout: 250 seconds]
a5i has quit [Read error: Connection reset by peer]
exadeci has quit [Ping timeout: 272 seconds]
ELLIOTTCABLE has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
iMe has quit [Quit: Bye Bye]
zorak8 has joined #ruby
hpoydar has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
x1337807x has joined #ruby
m8 has joined #ruby
<kyrylo>
deric_skibotn, you can use pry
jgt1 has quit [Ping timeout: 250 seconds]
anaeem1_ has quit [Read error: Connection reset by peer]
<deric_skibotn>
I figured it out: get the class, get the superclass, and then do superclass.method(method_name)
delianides has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
delianides has joined #ruby
delianides has quit [Remote host closed the connection]
<banister>
deric_skibotn you have to do complicated stuff to get that
<banister>
deric_skibotn look into Module#ancestors
<deric_skibotn>
well, I found what I needed, but thx guys
terlar has quit [Ping timeout: 252 seconds]
relix has joined #ruby
anaeem1 has quit [Ping timeout: 256 seconds]
AlexRussia has joined #ruby
<jhass>
deric_skibotn: 2.2 added super_method
rajeshchawla has joined #ruby
<deric_skibotn>
jhass: thx, still on 1.9.3 here (plans to move to 2.1.0 soon)
justin_pdx has joined #ruby
rhllor is now known as rhlloriscool
spider-mario has joined #ruby
frem has joined #ruby
jenrzzz has joined #ruby
lxsameer has joined #ruby
centrx has quit [Remote host closed the connection]
yekta has joined #ruby
centrx has joined #ruby
doodlehaus has joined #ruby
thiesen has joined #ruby
dtordable has quit [Quit: • IRcap • 8.72 •]
rajeshchawla has quit [Ping timeout: 245 seconds]
milesmatthias has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
thiesen has quit [Client Quit]
6A4ABV6T3 is now known as xenokiller
aclearma_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
Affix_ is now known as Affix
chinmay_dd has quit [Read error: Connection reset by peer]
waxjar has quit [Ping timeout: 265 seconds]
EllisTAA has joined #ruby
<EllisTAA>
i’m working with the command line and the concept of builtin came up, can anyone explain to me what that means? i can’t understand the explanations i’ve found online
aclearman037 has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 246 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
zorak8 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 255 seconds]
mitywf has quit [Remote host closed the connection]
ismael_ has quit [Remote host closed the connection]
rajeshchawla has joined #ruby
ismaelga has joined #ruby
ismaelga has quit [Remote host closed the connection]
<Mon_Ouie>
Not really related to Ruby though. Your shell (e.g. bash) can be used to run programs using a syntax like 'program_name arguments', but it sometimes uses the same syntax for things that aren't actual programs, but are hard-coded into the shell (e.g. source is a built-in)
leafybasil has joined #ruby
thiesen has joined #ruby
Musashi007 has joined #ruby
Zai00 has quit [Ping timeout: 256 seconds]
<EllisTAA>
mon_ouie: so it sounds like a built in is just a shell command
Pupeno has quit [Read error: Connection reset by peer]
kadoppe has quit [Ping timeout: 272 seconds]
<Mon_Ouie>
Well, what do you mean by shell command?
Pupeno has joined #ruby
<EllisTAA>
like cd or pwd or cat
kadoppe has joined #ruby
ramfjord has joined #ruby
<Mon_Ouie>
pwd and cat are not builtins. You can find files, they're just regular programs that you can find in /usr/bin/pwd and /usr/bin/cat.
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie>
You could very easily write them in Ruby if you wanted to and replace them
<EllisTAA>
so a program is different from a built in. ok now i’m back to not knowing what a built in is lol
<Mon_Ouie>
cd, on the other hand, can't (as easily) be implemented like that because it needs to change the state of the shell itself
<Mon_Ouie>
Basically when you run 'cd foo' the shell detects that you're trying to use a built-in and changes the current directory
<Mon_Ouie>
As opposed to trying to find a file called cd in your $PATH and executing it in a sub-process, which is what it would normally do
<EllisTAA>
looks like i might have to go back and get a clear idea of what a shell is. a shell is a program that lets you interact with the os right?
ghostpl_ has quit [Remote host closed the connection]
juanpaucar has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
<Mon_Ouie>
Sort of. It lets you run other programs, combining them in various ways
apxm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
wallerdev has quit [Quit: wallerdev]
<havenwood>
EllisTAA: For some reading on the subject take a look at: man sh
<EllisTAA>
so a shell is a program that runs other programs, and commands are names of programs?
<shevy>
Mon_Ouie, you are back! meet undeadaedra, he is also from france
<EllisTAA>
havenwood: thanks
ghostpl_ has joined #ruby
<Mon_Ouie>
shevy: I'm not from France. I briefly spoke to him earlier by the way :p
<shevy>
ohhh ok
R3Dk1nG has quit [Remote host closed the connection]
KnownSyntax has quit [Quit: Connection closed for inactivity]
<kyrylo>
shevy, why have you left #pry? :(
<Mon_Ouie>
EllisTAA: 'commands' are all the things executed by the shell. Some of them are to run a program with certain arguments, but they don't have to be.
<shevy>
I hate to set it up but once it is running, it's ok
<GaryOak_>
yeah, I just don't like the tooling to manage them
<GaryOak_>
or export or import them
maletor has joined #ruby
djbkd has joined #ruby
thinkswan has quit [Ping timeout: 246 seconds]
<GaryOak_>
postgresql is pretty nice, those sweet json operators
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
jgt1 has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
freerobby has joined #ruby
Megtastique has joined #ruby
lxsameer has quit [Ping timeout: 252 seconds]
MasterPiece has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agarie has joined #ruby
superspring has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
yekta has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 250 seconds]
shadoi1 has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
shazaum has quit [Quit: Leaving]
ndrei has joined #ruby
rubytor has joined #ruby
yekta has joined #ruby
DerisiveLogic has joined #ruby
gfawcettpq has quit [Ping timeout: 256 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
josephleon has quit [Quit: Leaving...]
milesmatthias has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
jcromartie has joined #ruby
apxm has joined #ruby
izzol has joined #ruby
bluOxigen has joined #ruby
Guest85414______ has joined #ruby
kapowaz has joined #ruby
Soda has quit [Remote host closed the connection]
<shevy>
yeah, raw SQL is weird
baweaver has quit [Ping timeout: 250 seconds]
lolmaus has quit [Ping timeout: 252 seconds]
banister has joined #ruby
<shevy>
I had to build some interface to the NCBI taxonomy database that maps ids to organisms; lateron I found out that you can query to the database, then use some more complicated SQL statement, to get all the information as one just as if you were asking programmatically
Guest94221 has joined #ruby
apxm has quit [Client Quit]
Pupeno has joined #ruby
<shevy>
my initial solution just used ruby to query stuff, and let ruby assemble the dataset, which was slower since I had to do different requests (I had to map towards the parent id of any random id number, which had like 10 nodes or so from a dataset of... I dunno... 500.000 ids?)
KnownSyntax has joined #ruby
jmhmccr has joined #ruby
diosmiux has joined #ruby
baweaver has joined #ruby
Lewix has quit [Remote host closed the connection]
Dolphi has joined #ruby
Pupeno__ has joined #ruby
pmarreck has joined #ruby
Pupeno_ has quit [Ping timeout: 272 seconds]
thiesen has joined #ruby
n1lo has quit [Remote host closed the connection]
Pupeno__ is now known as Pupeno_
freerobby has quit [Quit: Leaving.]
havenwood has quit [Remote host closed the connection]
Pupeno has quit [Disconnected by services]
Pupeno_ is now known as Pupeno
Pupeno has quit [Changing host]
Pupeno has joined #ruby
im0b has joined #ruby
JohnBat26 has joined #ruby
freerobby has joined #ruby
thiesen has quit [Quit: leaving]
neersighted has joined #ruby
freerobby has quit [Client Quit]
reinaldob has quit [Remote host closed the connection]
MrRobinhood5 has joined #ruby
yqt has joined #ruby
naftilos76 has joined #ruby
reinaldob has joined #ruby
Megtastique has quit []
MasterPiece has quit [Remote host closed the connection]
zero7 has joined #ruby
ta has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 1.1.1]
<GaryOak_>
shevy: the thing with SQL is that you can always throw more code at it and make your client code less and less
<GaryOak_>
although the SQL code ends up being an awful mess
ghostpl_ has quit [Remote host closed the connection]
crueber has quit [Quit: Leaving.]
Affix_ has joined #ruby
yfeldblum has joined #ruby
pengin has quit [Remote host closed the connection]
toothe has left #ruby [#ruby]
Affix_ is now known as Guest31258
reinaldob has quit [Ping timeout: 256 seconds]
Guest31258 is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
<shevy>
yeah
shelling__ has joined #ruby
<shevy>
I am no SQL guru though
wallerdev has joined #ruby
karl___ has joined #ruby
akitada has joined #ruby
pengin has joined #ruby
yekta has quit [Quit: yekta]
<karl___>
I have a hash ("ParentHash") with some settings in in it that is returned from a function. I'm defining a second hash ("ChildHash"), and I would like to essentially add all of the key/value pairs in ParentHash to ChildHash. What is the best way to do this?
Pupeno_ has joined #ruby
Megtastique has joined #ruby
andrewstewart has joined #ruby
wottam has joined #ruby
Megtastique has quit [Client Quit]
<jhass>
karl___: essentially?
digitalextremist has quit [Quit: Leaving]
MasterPiece has joined #ruby
<karl___>
I guess essentially is the wrong word - exactly what I want to do
<karl___>
and I appear to have found that .merge is the way to do it
justin_pdx has quit [Quit: justin_pdx]
Pupeno has quit [Ping timeout: 272 seconds]
machty has joined #ruby
<karl___>
another instance of prematurely consulting irc
<GaryOak_>
write functional php code next time you use it
axl_ has joined #ruby
<elben>
so the horrific hack i’m trying to do is that Rails’ tempalte renderer (e.g. ActionView::Templates::Renderer::ERB#call) returns a String that is a ruby program that will be eval-ed by Erubis. But I need to modify the returned value of this String-ly program. Imagine the program is: “10”. Well, I need to +1: “10”.with_self { |n| n += “+1” }
<jhass>
elben: .tap {|code| code << "+1" }
<elben>
ah yes.. i forgot strings are mutable
dfinninger has quit [Remote host closed the connection]
<elben>
langugage context switch. thanks!
starless has joined #ruby
<eam>
the best part is it stomps on any user defined functions named "lambda_\d+"
wottam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
enterprisedc has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
DerisiveLogic has quit [Ping timeout: 244 seconds]
<elben>
jhass: ah nvm that wouldn’t work in this case. The starting code looks like this: code = “@x.to_s”. But I need: “foo(@x.to_s)”. So something like: “@x.to_s” + “with_self { |x| foo(x) }”
Kruppe has joined #ruby
blackmesa has joined #ruby
<shevy>
<jhass> how is a function anonymous if it has a name?
<jhass>
elben: I have a hunch that you describe the solution you imagine
<shevy>
THIS IS SPARTA
<shevy>
THIS IS PHP!!!
baweaver has quit [Remote host closed the connection]
<jhass>
try to describe your problem
<jhass>
ideally without abstracting it into the general
baweaver has joined #ruby
milesmatthias has left #ruby [#ruby]
<shevy>
haha
<shevy>
jhass is confused
lolmaus has joined #ruby
jonr22 has joined #ruby
<shevy>
you've never seen .with_self before haven't you
ismaelga has joined #ruby
<jhass>
no I just have the feeling they want to eval and hide it by using ERB
revoohc has quit [Quit: revoohc]
flughafe1 has joined #ruby
Heero has joined #ruby
paradoja has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
rbennacer has joined #ruby
Nuck has joined #ruby
agarie has quit []
ismaelga has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 256 seconds]
mikepack has quit [Remote host closed the connection]
<elben>
`erb_program` is the program returned by Rail’s ERB renderer
fedoratiptip has joined #ruby
<fedoratiptip>
Does anyone know a code for the completes knight tour on a chess board? i.e a knight arriving at all squares once starting and ending at its initial square
a5i has joined #ruby
Nuck has quit [Ping timeout: 252 seconds]
<jhass>
elben: so you want to use redcarpet as a templating engine?
<helpa>
Hi Majost1. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa>
Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
rbennacer has quit [Remote host closed the connection]
<weaksauce>
ah nice. yeah working with the data should be ok then
<ericwood>
yeah ruby is surprisingly capable with this stuff
spiderbyte has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
ndrei has joined #ruby
<weaksauce>
I'm a little worried that it won't be fast but eh. the nagging premature optimizer is striking again. I have to remind myself to first make it work, then make it fast
<weaksauce>
whenever I start to think such thoughts
fedoratiptip has quit [Ping timeout: 246 seconds]
djbkd has quit [Remote host closed the connection]
<ericwood>
not sure about the speed, but it really depends on the implementation
<ericwood>
I'm under the impression that some of these operations are speedy as they're just delegated to some vanilla C code
<ericwood>
at least in MRI
<weaksauce>
yeah this is rubymotion which is compiled down to actual code
<weaksauce>
so it's probably fine
yekta has joined #ruby
<ericwood>
ah yeah just looked into it, pack and unpack are just C code, which will just be inlined most likely (ObjC is a superset of C!)
colorados has joined #ruby
Zai00 has quit [Ping timeout: 246 seconds]
<weaksauce>
not a very big superset either
<ericwood>
nope
Zai00 has joined #ruby
crueber has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
<shevy>
guys
it0a has quit [Ping timeout: 252 seconds]
<shevy>
have you ever heard of a funnier phrase than that:
<aiguu>
that would be nice, but I would like to automatically copy URL to system clipboard
karmatr0n has quit [Remote host closed the connection]
jwinder has joined #ruby
<aiguu>
like visual select + auto copy
<aiguu>
or entire file
icebourg has quit [Ping timeout: 255 seconds]
<aiguu>
easy to do for linux and osx (xclip or pbcopy)
jwinder has quit [Remote host closed the connection]
Jiyuhen has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
matled has joined #ruby
momomomomo has quit [Quit: momomomomo]
ghr has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
Azure has quit [Quit: My MBP went to sleep.]
noname001 has quit [Ping timeout: 256 seconds]
silkfox has quit [Ping timeout: 245 seconds]
davidhq has joined #ruby
Azure has joined #ruby
jwinder has joined #ruby
crueber has quit [Quit: Leaving.]
Jiyuhen has joined #ruby
Jiyuhen has quit [Remote host closed the connection]
elfuego has joined #ruby
djbkd has joined #ruby
uptownhr has joined #ruby
hpoydar has quit [Remote host closed the connection]
Wolland has joined #ruby
lys has joined #ruby
Jiyuhen has joined #ruby
wallerdev has quit [Quit: wallerdev]
sinkensabe has joined #ruby
<shevy>
long live linux
jmcc has joined #ruby
dh64 has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noname001 has joined #ruby
davidhq has joined #ruby
<jmcc>
I'm trying to give a user provided string '1,3,5' to array.values_at(var) and I can't seem to figure out how convert the string into a list of comma separated integers
sevvie has joined #ruby
<undeadaedra>
what do you mean
<undeadaedra>
you have ’1,3,5’ and want to call array.values_at(1, 3, 5) ?
hcnewsom has joined #ruby
crdpink has joined #ruby
<jmcc>
correct
crdpink has quit [Client Quit]
<undeadaedra>
use * operator: array.values_at(*var)
<undeadaedra>
var being your integer array
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 265 seconds]
Jiyuhen has quit [Read error: Connection reset by peer]
hcnewsom has quit [Client Quit]
arescorpio has joined #ruby
keen_______ has joined #ruby
martinbmadsen has quit [Ping timeout: 256 seconds]
Wolland has quit []
Jiyuhen has joined #ruby
<jhass>
jmcc: String#split and splat as undeadaedra said