apeiros changed the topic of #ruby to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
<drakedouay> havenwood: awesome... thanks
joeycarmello has quit [Read error: Connection reset by peer]
nicoulaj has quit [Remote host closed the connection]
<havenwood> drakedouay: np, happy hacking!
joeycarmello has joined #ruby
cobragoat has quit [Quit: cobragoat]
carlyle has quit [Remote host closed the connection]
grayson_ has quit [Quit: Computer has gone to sleep.]
atyz has quit [Quit: Leaving...]
ffranz has joined #ruby
joshman_ has quit [Quit: Computer has gone to sleep.]
kirun has quit [Quit: Client exiting]
<nfk> is there some SAN preserving introduction to ruby stack?
<havenwood> nfk: What is SAN preserving?
<nfk> i'm seeing some very extremely unspeakable behaviour from my rails application and the only explanation i can think of is stack magic
<nfk> havenwood, SANity point preserving
b1rkh0ff has quit [Read error: Connection reset by peer]
<havenwood> nfk: #RubyOnRails might be a better forumn.
<havenwood> sec
piotr__ has quit [Ping timeout: 256 seconds]
<havenwood> sic
johndouthat has joined #ruby
<nfk> havenwood, they are not answering
<havenwood> nfk: Aha!
coder_neo has joined #ruby
<havenwood> nfk: Can you paste a gist of the unspeakable behavior and error results?
Coolhand|laptop has joined #ruby
<nfk> sorry, proprietary
<havenwood> nfk: Hrm. Makes it hard.
<havenwood> nfk: Error only? :P
<nfk> let's just say that a helper module is repeating code from the action itself
headius has joined #ruby
<nfk> no error
<havenwood> nfk: Sounds like #RubyOnRails domain.
<nfk> it's duplicating code that it should not have access to in my puny mind
jonathanwallace has joined #ruby
<nfk> but since a lot of ruby magic is in the module i expect some of that magic might be leaking
<havenwood> nfk: If we can't look at the magic, seem hard to divine.
<nfk> sorry
<havenwood> s/seem/seems
<nfk> as i said, it should be stack related as i expect that's how a method might have implicit access to stuff defined outside it
anonymuse has quit [Quit: Leaving.]
pu22l3r has quit [Remote host closed the connection]
postmodern has joined #ruby
Monie has joined #ruby
Skylab has joined #ruby
chimkan has quit [Quit: chimkan]
mrbloo has joined #ruby
reinaldob has quit [Remote host closed the connection]
techhelp has quit [Quit: This computer has gone to sleep]
MattRB has quit [Quit: This computer has gone to sleep]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
chrisramon has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
aaronmacy has joined #ruby
<Eiam> about the one time when I dislike working at a corporation
<Eiam> is when seeking help on code =)
<Eiam> "sorry, proprietary!"
keyvan has quit [Remote host closed the connection]
amacleod has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
MattRB has joined #ruby
tatsuya_o has quit [Ping timeout: 256 seconds]
amacleod has quit [Client Quit]
<havenwood> Proprietary code at a 'stealth mode' startup, ftw?
wargasm has quit [Ping timeout: 245 seconds]
blaines has joined #ruby
<blaines> hey there. I wrote a module that gets included into another. Both modules have siblings with the same name (Configuration) but when I reference Configuration in the module that gets included it only refers to it's Configuration (not the included one).
SQLDarkly has joined #ruby
<blaines> I can write up an example if necessary
<SQLDarkly> Has anyone used slop before? I have a question regarding subcommands, but am having difficulty as my opts are nil. Curious if im accessing them correctly
robbyoconnor has quit [Ping timeout: 245 seconds]
chussenot has quit [Quit: chussenot]
<blaines> but basically I want to include a module that can access the configuration of the including module
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
moshee has quit [Ping timeout: 245 seconds]
<havenwood> SQLDarkly: I don't know the answer without looking it up, but Slop author is in #pry atm.
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<SQLDarkly> ahh thanks
<havenwood> *and Pry is a large project that uses Slop
<havenwood> Injekt
<havenwood> ^ Slop creator
havenwood has quit [Remote host closed the connection]
<jrajav> I would not advertise myself as a slop creator
dougireton has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
therod has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
yshh has joined #ruby
miskander has joined #ruby
yshh has quit [Remote host closed the connection]
miskander has quit [Client Quit]
adeponte has joined #ruby
Dom_ has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
Dom_ has joined #ruby
atyz has joined #ruby
_nitti has joined #ruby
sellers86|gone has joined #ruby
<blaines> Anyone have any suggestions? https://gist.github.com/3c0122ce6f61bc5fca99
therod has quit [Ping timeout: 256 seconds]
<blaines> never mind my mind was blanking on extend
toekutr has quit [Read error: Connection reset by peer]
Dom_ has quit [Ping timeout: 244 seconds]
toekutr has joined #ruby
sayem has joined #ruby
marr has quit [Ping timeout: 255 seconds]
robotmay has quit [Ping timeout: 276 seconds]
<blaines> hm guess that's still not exactly what I want since it's all sharing the same configuration
idkazuma has quit [Remote host closed the connection]
iamjarvo has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
drakedouay has quit [Quit: leaving]
iamjarvo1 has quit [Ping timeout: 272 seconds]
robbyoconnor has joined #ruby
reinaldob has joined #ruby
atyz has quit [Ping timeout: 272 seconds]
sayem has quit [Remote host closed the connection]
<epitron> SQLDarkly: so, puppet doesn't have a database of all your machines?
apoch632 has joined #ruby
<SQLDarkly> puppet can use an ENC. an ENC is nothing more than a script to grab node info and outputs yaml so puppet can parse it
jonathanwallace has joined #ruby
<epitron> but doesn't it need to know what machines to query for yaml?
<epitron> hence, it knows what your nodes are?
forced_request has joined #ruby
<epitron> i'm not a sysadmin, so i don't really know much about the tools that exist
<SQLDarkly> exactly so the script in question would take an fqdn or hostname as an argument and return yaml from a db
<SQLDarkly> in this case mongo
<epitron> but i know there's lots of stuff out there for keeping databases of nodes
<SQLDarkly> sure there is, but for an exercise in learning i find it beneficial
<epitron> ok :)
<SQLDarkly> if I use another's work I wont be able to learn thus remaining stupid
<epitron> i'd at least look at how they do things first
<SQLDarkly> ;)
<epitron> like, superficially
<epitron> basic construction
<SQLDarkly> Well I have it working in IRB. I just cannot get those darn options working
<SQLDarkly> i can add nodes update them remove them modify classes etc.
<SQLDarkly> just wanting to put a nice wrapper on the cli for it
moos3 has joined #ruby
_tockitj has quit [Ping timeout: 255 seconds]
adkron has joined #ruby
adkron_ has joined #ruby
solitude88 has quit [Quit: Linkinus - http://linkinus.com]
sayem has joined #ruby
blaines has left #ruby ["Textual IRC Client: www.textualapp.com"]
sayem has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
zeade has joined #ruby
banjara has joined #ruby
reinaldob has quit [Remote host closed the connection]
mrbloo has quit [Quit: mrbloo]
sayem has joined #ruby
slainer68 has quit [Remote host closed the connection]
sayem has quit [Remote host closed the connection]
tommyvyo has joined #ruby
timbowen has joined #ruby
coder_neo has quit [Ping timeout: 240 seconds]
yshh has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
TomyLobo has quit [Quit: Standby mode...]
mneorr has quit [Remote host closed the connection]
renanoronfle has joined #ruby
taoru has joined #ruby
<nfk> okay, i think i have managed to a bit sort out my mind warping problem
statarb3 has quit [Read error: Connection reset by peer]
<nfk> basically it boils down to implicit return in methods
aboudreault has joined #ruby
<aboudreault> is this supposed to be interpreted properly? directories = %w{ ::File.join(user_home,'src/') }
freakazoid0223 has joined #ruby
<nfk> aboudreault, i would say no
<Spooner_> aboudreault, No, that doesn't not make sense.
aaronmacy has quit [Quit: Leaving.]
nga4 has quit [Ping timeout: 272 seconds]
<aboudreault> hehe ok
<nfk> Spooner_, it does, it's "::File.join(user_home" "'src/')", i imagine
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<nfk> of course as array
mneorr has joined #ruby
coder_neo has joined #ruby
adkron_ has quit [Ping timeout: 248 seconds]
<aboudreault> yes, that is nfk
<aboudreault> can I call that function there?
<nfk> oh, and , is probably part of the string too
therod has joined #ruby
<nfk> aboudreault, unless #{} works, i would guess no
<Spooner_> Yep. It is just a single string.
adkron has quit [Ping timeout: 276 seconds]
<nfk> though i really don't know enough about this
<aboudreault> #{} don't work neither in %w
jpfuentes2 has joined #ruby
<Spooner_> aboudreault, %w{} splits the string around white-space to make an array of strings. I don;t think you think it is that.
<nfk> then to my nooby understanding of ruby, no
jaequery has quit [Ping timeout: 252 seconds]
<aboudreault> Spooner_, ah
robotmay has joined #ruby
<Spooner_> E.g. %w{ frog sauce } => ["frog", "sauce"]
<aboudreault> I see... I simply replace the %w with [File.join...]
<nfk> Spooner_, more imporantly, if i have something like def something do "foo"; "bar", "baz" end
<aboudreault> Spooner_, thanks
<nfk> and i want to return them all concatenated, what are my options?
<Spooner_> aboudreault, If that is what you want, yes.
<Spooner_> nfk, Your code isn't valid Ruby so I can't guess what you actually want to do.
tomzx_mac has joined #ruby
pskosinski has quit [Quit: Learn Life's Little Lessons]
<nfk> note that that IRL in place of those strings is some of the worst code i have written in my life
<nfk> Spooner_, eh?
<nfk> let's try
jaequery has joined #ruby
fenak has joined #ruby
<nfk> Spooner_, oh, yeah, ; should have been used
hashtree has quit []
luckyruby has quit [Remote host closed the connection]
<nfk> ...
timbowen has left #ruby ["Linkinus - http://linkinus.com"]
<Spooner_> "return them all concatenated" - what are "them all"?
<nfk> three string objects
<nfk> or more
<nfk> the really evil part is that they are results of some evil evaluations
Virunga has joined #ruby
<nfk> right now i use local variable named "a" and do = the first time and then += but surely there's some better way
ddv has quit [Ping timeout: 240 seconds]
<nfk> i mean, this is something a 1st year student might come up
<nfk> in pascal
<Spooner_> Which you probably don't need, but I know that trying to convince people of that is madness. Concatenating strings, however, you can just a + b + c
itsdavem has quit [Ping timeout: 252 seconds]
chendo has quit [Ping timeout: 252 seconds]
<Spooner_> You particularly shouldn't use += because that creates an entirely new string rather than concatenating. Use << instead.
<nfk> Spooner_, ugh, the a b and c are not methods but still evil nested code
<nfk> Spooner_, << doesn't work, actually
<nfk> i was a bit surprised too
ddv has joined #ruby
<Spooner_> Does for me.
robotmay has quit [Ping timeout: 276 seconds]
adkron has joined #ruby
<nfk> yes, it works in irb with simple tests
chendo_ has joined #ruby
<nfk> but when i try to use it in the real code, only += works
<Spooner_> But you are describing code that I can't see, so hard to debug it for you :)
aaronmcadam has quit [Quit: aaronmcadam]
<nfk> there's nothing to see
slainer68 has joined #ruby
<Spooner_> If there is no code, then it doesn't need to be fixed.
megha has quit [Ping timeout: 264 seconds]
<nfk> and the actual html output of the rails application is giving me tachycardia if i trigger the right unspeakable horror behaviour
adeponte has quit [Remote host closed the connection]
jjbohn has joined #ruby
JackyAlcine has quit [Ping timeout: 252 seconds]
adkron_ has joined #ruby
jjbohn has quit [Client Quit]
pyx has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<nfk> Spooner_, a << method arg1 do a_block follows end
therod has quit [Ping timeout: 245 seconds]
robotmay has joined #ruby
_nitti has quit [Remote host closed the connection]
<nfk> a_block_follows
<nfk> using += works as expected but not using <<
<Spooner_> I wish that made any sense.
<Spooner_> That is because of arguments. You need a << method(arg1)
robotmay has quit [Read error: Connection reset by peer]
<Spooner_> It is parsing it as (a << method) arg1
apoch632 has left #ruby [#ruby]
<nfk> and += is different?
<Spooner_> When in doubt, parenthesise.
<nfk> aren't both binary operators?
<Spooner_> It has a different precedence, obviously.
Dom_ has joined #ruby
<nfk> but that different?
<Spooner_> Yes.
steg132 has joined #ruby
<nfk> thanks for at least clearing that part
chendo_ has quit [Ping timeout: 252 seconds]
tatsuya_o has joined #ruby
<nfk> Spooner_, and is really using a local variable for final return (implicit of course) really the right style?
chendo_ has joined #ruby
dustint has joined #ruby
<Spooner_> I don't see why not.
JackyAlcine has joined #ruby
renanoronfle__ has joined #ruby
<Spooner_> At least here were you are constructing a string from the results of several calls.
benlieb has joined #ruby
<nfk> but.. but.. CUTENESS
banisterfiend has quit [Ping timeout: 252 seconds]
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
<nfk> having a local variable that's there only to hold some intermediate results is not cute
<nfk> why must programming be engineering? why can't it be art
aaronmacy has joined #ruby
<Spooner_> So just use + then, between the different methods. Again, I can't elegantise invisible code.
aytch has quit [Read error: Connection reset by peer]
<hakunin> guys
renanoronfle__ has quit [Client Quit]
<hakunin> could somebody explain wtf is going on here
arya_ has quit [Ping timeout: 248 seconds]
<hakunin> ruby 1.9.3p327
<hakunin> echo "require 'minitest/autorun'; class FooTest < MiniTest::Unit::TestCase; def test_foo; assert_equal('0x0', '0x1') end end" > foo.rb
chendo_ has quit [Ping timeout: 252 seconds]
<hakunin> ruby foo.rb
tatsuya_o has quit [Ping timeout: 272 seconds]
carloslopes has joined #ruby
jonathanwallace has joined #ruby
adkron_ has quit [Ping timeout: 245 seconds]
slainer68 has quit [Remote host closed the connection]
arya has joined #ruby
adkron has quit [Ping timeout: 245 seconds]
undersc0re97 has joined #ruby
banisterfiend has joined #ruby
<Spooner_> hakunin, You maybe want to explain what doesnt' make sense and also to pastie code note paste it.
<Spooner_> *not paste it
itsdavem has joined #ruby
aytch has joined #ruby
chendo_ has joined #ruby
mrsolo has quit [Quit: Leaving]
ckrailo has quit [Quit: Computer has gone to sleep.]
graft is now known as Guest88717
Guest25364 is now known as graft
megha has joined #ruby
recycle has quit [Remote host closed the connection]
daniel_-_ has quit [Ping timeout: 264 seconds]
Dom_ has quit [Remote host closed the connection]
zeade has quit [Quit: Leaving.]
<hakunin> Spooner_: ^
i_s has quit [Quit: i_s]
Dom_ has joined #ruby
elkclone has joined #ruby
<hakunin> Spooner_: that's great, but look at 2 strings
<hakunin> being compared
maletor has quit [Quit: Computer has gone to sleep.]
adkron has joined #ruby
adkron_ has joined #ruby
breakingthings has joined #ruby
chimkan has joined #ruby
epylinkn has joined #ruby
mrbloo has joined #ruby
Dom_ has quit [Ping timeout: 252 seconds]
peregrine81 has joined #ruby
<Spooner_> hakunin, Well, yes, it makes less sense than it could.
<hakunin> Spooner_: either ruby or minitest broke
<hakunin> on those strings
freezway has quit [Disconnected by services]
<breakingthings> anyone know of a way to properly test whether a Thread has been created in RSpec
<Spooner_> Updating minitest gives the clearer message in that patch, but still, as you say, it makes no sense.
andrew__ has joined #ruby
jon_wingfield has joined #ruby
<hakunin> Spooner_: the message is understood, and I even tried .inspect on those strings as a sanity check, they inspect correctlyu
v0n has quit [Quit: WeeChat 0.4.0]
adkron has quit [Ping timeout: 244 seconds]
adkron_ has quit [Ping timeout: 252 seconds]
Virunga has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 252 seconds]
jrajav has quit [Ping timeout: 255 seconds]
dmerrick has quit [Quit: dmerrick]
banisterfiend has quit [Read error: Connection reset by peer]
<Spooner_> It seems to be diffing the two outputs (expected and actual).
jjbohn has joined #ruby
banisterfiend has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
<hakunin> Spooner_: this is the problem
v0n has joined #ruby
Inoperable has joined #ruby
benlieb has quit [Quit: benlieb]
<Spooner_> Ahhh, right, the 0xXXXXXX replacement.
ner0x has quit [Quit: Leaving]
jrajav has joined #ruby
<hakunin> Spooner_: I'll submit an issue
eka has quit [Quit: Computer has gone to sleep.]
<Spooner_> Yeah, that just seems painfully dumb.
atyz has joined #ruby
itsdavem has quit [Ping timeout: 252 seconds]
<nfk> is output_buffer a ruby or rails thing?
<nfk> i suppose rails
Inoperable is now known as Inoperabled
sn0wb1rd has quit [Quit: sn0wb1rd]
Inoperabled has quit [Quit: Coyote finally caught me]
mockra has quit [Remote host closed the connection]
Skelz0r has quit [Ping timeout: 252 seconds]
atyz has quit [Ping timeout: 272 seconds]
renanoronfle has quit [Ping timeout: 248 seconds]
coder_neo has quit [Ping timeout: 276 seconds]
JackyAlcine has quit [Read error: Connection reset by peer]
Inoperable has joined #ruby
JackyAlcine has joined #ruby
johnmilton has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
nwertman_ has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
nwertman_ has quit [Read error: Connection reset by peer]
MattRB has quit [Quit: This computer has gone to sleep]
markalanevans has quit [Ping timeout: 252 seconds]
bricker is now known as bricker`work
recycle has joined #ruby
nwertman has quit [Ping timeout: 276 seconds]
plotter has left #ruby ["Leaving"]
dmerrick has joined #ruby
slainer68 has joined #ruby
plotter has joined #ruby
carloslopes has quit [Remote host closed the connection]
icole has quit [Read error: Connection reset by peer]
icole has joined #ruby
itsdavem has joined #ruby
recycle has quit [Remote host closed the connection]
bigmac has joined #ruby
bigmac has joined #ruby
chrishough has quit [Quit: chrishough]
sn0wb1rd has joined #ruby
mercwithamouth has joined #ruby
c0rn has quit [Ping timeout: 264 seconds]
nga4 has joined #ruby
x82_nicole has joined #ruby
louisror has joined #ruby
adeponte has joined #ruby
headius has quit [Quit: headius]
yacks has joined #ruby
mikepack_ has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 244 seconds]
c0rn has joined #ruby
headius has joined #ruby
headius has quit [Client Quit]
nari has joined #ruby
x82_nicole has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
techhelp has joined #ruby
sepp2k has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
innohero has joined #ruby
<innohero> hi
kpshek has joined #ruby
AntiTyping has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
Skylab has quit [Quit: Skylab]
kpshek has quit [Client Quit]
<plotter> Does anyone have experience creating a website using rubys without rails?
<plotter> *ruby without rails.
<Spooner_> plotter, There are lots of other options than Rails. Sinatra, for example.
therod has joined #ruby
Skylab has joined #ruby
<plotter> Ah yes someone else told me that I would want to check out sintra.
<waxjar> i <3 sinatra
Skylab has quit [Client Quit]
<plotter> Maybe that should be where I begin. I just want to be different thats all no specific reason why I do not want to use rails.
<waxjar> you'll probably want to read up on HTTP and REST first a bit though, steve klabnik has some great articles written on them
<plotter> I'm googling it now. Thanks waxjar.
<waxjar> yw
chrisramon has quit [Quit: chrisramon]
tjbiddle_ has joined #ruby
therod has quit [Ping timeout: 248 seconds]
MattRB has joined #ruby
MattRB has quit [Client Quit]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
<innohero> @plotter sinatra is amazing, especially when you use in-line templates along with your ruby code, you simply can create a full prototype in one file, very convinant
<banisterfiend> innohero: convenient*
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle_ is now known as tjbiddle
mmitchell has quit [Remote host closed the connection]
objectivemo has quit [Quit: objectivemo]
drago757 has joined #ruby
apok has quit [Quit: apok]
robert__ has joined #ruby
robert__ has joined #ruby
robert__ has quit [Changing host]
gnarmis has joined #ruby
rakl has quit [Quit: sleeping]
SKLaDUkAS has joined #ruby
SKLaDUkAS has left #ruby [#ruby]
tjbiddle_ has joined #ruby
_nitti has joined #ruby
robert_ has quit [Ping timeout: 276 seconds]
bttf has joined #ruby
icole has quit [Remote host closed the connection]
robert__ is now known as robert_
banisterfiend is now known as banister`sleep
Hanmac has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
adkron has joined #ruby
jduan1981 has quit [Ping timeout: 252 seconds]
_nitti has quit [Ping timeout: 248 seconds]
adkron_ has joined #ruby
itsdavem has quit [Remote host closed the connection]
fgro has joined #ruby
Hanmac1 has quit [Ping timeout: 255 seconds]
fuzai has joined #ruby
Spooner_ has quit [Quit: Leaving]
fuzai has quit [Client Quit]
templaedhel has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
GeekSir has joined #ruby
Takehiro has joined #ruby
goraxe has quit [Ping timeout: 240 seconds]
etcetera has quit []
pixie79 has quit [Read error: Operation timed out]
fuzai has joined #ruby
ner0x has joined #ruby
GeekSir has left #ruby [#ruby]
<breakingthings> is there a particular way to test return values with RSpec?
<breakingthings> or is `subject.method('whatever').should == 'expected result'` the way to go about it
atyz has joined #ruby
fyolnish has joined #ruby
danktamagachi has joined #ruby
rupee has quit [Ping timeout: 264 seconds]
rakl has joined #ruby
nga4 has quit []
MattRB has joined #ruby
rakl has quit [Client Quit]
nga4 has joined #ruby
io_syl has quit [Ping timeout: 252 seconds]
jon_wingfield has quit [Quit: Bye]
peregrine81 has quit [Quit: Computer sleeping.]
jonathanwallace has quit [Ping timeout: 252 seconds]
dr_neek has joined #ruby
mrbloo has quit [Quit: mrbloo]
joofsh has joined #ruby
<v0n> hi all
atyz has quit [Ping timeout: 272 seconds]
<v0n> Why do I have to add/commit the Gemfile.lock file again?
<mehwork> don't have to
markalanevans has joined #ruby
<mehwork> if it's a gem you shouldn't
<mehwork> if it's for your development team you probably should
<mehwork> v0n: because it will ensure that they will have the exact same 3rd party code as you
<mehwork> instead of having to guess which versions to install
bricker`LA has joined #ruby
<v0n> mehwork: that's for a development repo with a friend, not a gem. But I still don't get why the Gemfile file isn't enough
chimkan has quit [Quit: chimkan]
banister`sleep has quit [Ping timeout: 248 seconds]
<mehwork> v0n: because the gemfile will install a ton more gems behind the scenes
mercwithamouth has quit [Ping timeout: 245 seconds]
<mehwork> the Gemfile.lock will also include all those so that bundle install won't have to recalculate them and possibly get them wrong
<aedornm> v0n: Gemfile.lock contains version information, so it makes sure every gem is the exact same between developers or production environments.
<mehwork> so it's both a consistency thing and a performance thing
<mehwork> and a documentation thing
danktamagachi has quit [Ping timeout: 276 seconds]
mmitchell has joined #ruby
squidBits has quit [Quit: squidBits]
dmiller has joined #ruby
<mehwork> i think .lock is a bad extention for the file though. It makes it feel like something that should not be committed
itsdavem has joined #ruby
noxoc has quit [Read error: Connection reset by peer]
terrorpup has quit [Ping timeout: 244 seconds]
noxoc has joined #ruby
techhelp has quit [Quit: Leaving]
jonathanwallace has joined #ruby
<mehwork> can't complain too much though as RubyGems/bundler are amazing tools that i wouldn't wanna nit pick too much about
marius has joined #ruby
<waxjar> the gemfile.lock lists the exact versions of the dependencies you're working with
jackyalcine_ has joined #ruby
jackyalcine_ has joined #ruby
<waxjar> if you include it in your project, you can be sure no errors stem from a backward incompatibility or w/e in one of the dependencies
<v0n> mehwork: ho ok, I get it, tell me if I'm wrong:
JackyAlcine has quit [Ping timeout: 272 seconds]
Takehiro has quit [Remote host closed the connection]
<v0n> in your Gemfile you specify data_mapper version 1.2,
<v0n> but it depends of tons of gems, let's say dm-validations 0.0.1
<v0n> the Gemfile.lock will say "dm-validations 0.0.1"
<v0n> if this particular gem is updated but not the data_mapper gem, then only the gemfile.lock can tells you which version you dev folks have
<v0n> right?
mmitchell has quit [Ping timeout: 248 seconds]
slainer68 has joined #ruby
pietr0 has joined #ruby
<v0n> ok I wasn't clear at all, but I think I understand myself
sn0wb1rd has quit [Quit: sn0wb1rd]
<v0n> mehwork: I agree though, it's confusing
<waxjar> imagine that data_mapper gem defined the dependency on dm-validations like this: ~> 0.1.0. you release your gem depending on data_mapper, you tested it locally with dm-validations 0.1.1. the devs of dm-validations found a bug, fixed it, but also introduced a new one that breaks your gem. now if you didn't give people your gemfile.lock, they'd get dm-validations 0.1.2 (the one that breaks your gem).
banister`sleep has joined #ruby
<waxjar> maybe that doesn't make sense. i'm tired :p
Axsuul has quit [Ping timeout: 255 seconds]
tjbiddle has quit [Quit: tjbiddle]
<v0n> waxjar: you were as clear as me
<v0n> so I understood you
<v0n> :)
megha has quit [Quit: WeeChat 0.4.0]
sellers86|gone has left #ruby ["Leaving"]
slainer68 has quit [Ping timeout: 272 seconds]
mockra has joined #ruby
<v0n> in fact, Gemfile list gems you think you need, Gemfile.lock lists all gems *and their dependencies* you actually use.
a_a_g has joined #ruby
<waxjar> exact versions yea, so you're working with the same "stack" i think it is they call it
dmiller has quit [Quit: WeeChat 0.3.9.2]
mafolz has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
mrkris has quit [Quit: 'MURICA!]
techhelp has joined #ruby
mockra has quit [Remote host closed the connection]
a_a_g has quit [Client Quit]
carloslopes has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
cableray has joined #ruby
chimkan has joined #ruby
jackyalcine_ has quit [Quit: Quit]
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
jackyalcine_ has joined #ruby
jackyalcine_ has quit [Changing host]
jackyalcine_ has joined #ruby
mafolz has joined #ruby
noxoc has quit [Read error: Connection reset by peer]
jackyalcine_ is now known as jalcine
chrishough has joined #ruby
DarkFoxDK has quit [Read error: Operation timed out]
jonathanwallace has quit [Ping timeout: 252 seconds]
jonathanwallace1 has joined #ruby
banister`sleep has quit [Ping timeout: 244 seconds]
DarkFoxDK has joined #ruby
joeycarmello has quit [Remote host closed the connection]
therod has joined #ruby
carloslopes has quit [Ping timeout: 272 seconds]
pu22l3r has joined #ruby
MattRB has quit [Quit: This computer has gone to sleep]
cableray has quit [Quit: cableray]
<mehwork> is there anything for rope.vim for ruby instead of python?
<mehwork> i mainly want something that when i save the file, tells me if i have any unused variables, syntax errors, etc
terrorpup has joined #ruby
therod has quit [Ping timeout: 276 seconds]
krz has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
jduan1981 has joined #ruby
x82_nicole has joined #ruby
ffranz has quit [Quit: Leaving]
chrishough has quit [Quit: chrishough]
taoru has quit [Remote host closed the connection]
x82_nicole has quit [Client Quit]
dmerrick has quit [Quit: dmerrick]
sn0wb1rd has joined #ruby
arkiver has joined #ruby
jblack has joined #ruby
dougireton has joined #ruby
ahokaomaeha has joined #ruby
<jblack> I seem to be having a problem with destroy when using datamapper with sqlite under sinatra.
mockra has joined #ruby
<jblack> in configure I'm doing a Cache.destroy, which is intented to wipe a particular table clear. however, something is coming along after that point and removing records from the cache table created after that.
fgro has quit [Ping timeout: 256 seconds]
<jblack> and it only happens if I do a Cache.destroy in configure. otherwise, things work exatly as anticipated.
cha1tanya has joined #ruby
Takehiro has joined #ruby
banjara has quit [Quit: Leaving.]
forced_request has quit [Read error: Connection reset by peer]
<jblack> I can actually watch, in a console, with a "select count(*) from caches" where the number of rows goes up, then goes back down.
<jblack> but again, only if I have a Cache.destroy in the configure block.
pu22l3r has quit [Remote host closed the connection]
joshkeith has joined #ruby
<jblack> the problme doens't seem to happen if I replace Cache.destroy with a Cache.all.each.destroy
adeponte has joined #ruby
<jblack> oh, and it only happens on one system. it doesn't happen on another system
foolsh has joined #ruby
SrPx has quit [Quit: SrPx]
arkiver has quit [Quit: Leaving]
MattRB has joined #ruby
arkiver has joined #ruby
<jblack> hmmm, one is using ruby 1.9.3.p194 (works as expected). the other is using 1.9.3.p0
zeade has joined #ruby
arkiver has quit [Read error: Connection reset by peer]
terrorpup has quit [Read error: Connection timed out]
SrPx has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
vinax has joined #ruby
mockra has quit [Remote host closed the connection]
aaronmacy has quit [Quit: Leaving.]
keyvan has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
jjbohn has quit [Quit: Leaving...]
hackerdude has quit [Remote host closed the connection]
jjbohn has joined #ruby
reset has quit [Ping timeout: 244 seconds]
angusiguess has joined #ruby
jjbohn has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
atyz has joined #ruby
joeycarmello has joined #ruby
crackfu has joined #ruby
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
crackfu has quit [Read error: Connection reset by peer]
crackfu has joined #ruby
terrorpup has joined #ruby
atyz has quit [Ping timeout: 240 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
zeade has left #ruby [#ruby]
zeade has joined #ruby
Inoperable is now known as Inoperabled
danktamagachi has joined #ruby
mockra has joined #ruby
dougireton has quit [Quit: Leaving.]
toekutr has quit [Remote host closed the connection]
dougireton has joined #ruby
io_syl has joined #ruby
chrishough has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
chimkan_ has joined #ruby
chendo_ has joined #ruby
dougireton has quit [Read error: Connection reset by peer]
chimkan has quit [Ping timeout: 248 seconds]
chimkan_ is now known as chimkan
itsdavem has quit [Remote host closed the connection]
dougireton has joined #ruby
ewilliam has quit [Read error: Operation timed out]
<aedornm> sweet.. only 90 minutes to parse through just slightly over 1 million records in MySQL
cyong has joined #ruby
chimkan has left #ruby [#ruby]
oinkon has joined #ruby
louisror has quit [Ping timeout: 255 seconds]
angusiguess has quit [Ping timeout: 276 seconds]
Vert has quit [Ping timeout: 252 seconds]
<blazes816> o.0
dmerrick has joined #ruby
dougireton has left #ruby [#ruby]
Takehiro has joined #ruby
<breakingthings> Anyone around familiar with threads I can ask some conceptual stuff to?
Takehiro has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
chimkan has joined #ruby
joofsh has quit [Remote host closed the connection]
mrdtt has joined #ruby
aapzak has quit [Ping timeout: 255 seconds]
tils_ has quit [Ping timeout: 252 seconds]
jblack has quit [Ping timeout: 276 seconds]
aapzak has joined #ruby
tils has joined #ruby
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
m0rphix1988 has joined #ruby
dougireton has joined #ruby
JackyAlcine has joined #ruby
jonahR has joined #ruby
Coolhand|laptop has quit [Remote host closed the connection]
techhelp has quit [Quit: This computer has gone to sleep]
mockra has quit [Remote host closed the connection]
jblack has joined #ruby
jalcine has quit [Ping timeout: 272 seconds]
tcstar has joined #ruby
nfk has quit [Quit: yawn]
joeycarmello has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
caleb_io has joined #ruby
tcstar has quit [Client Quit]
tcstar has joined #ruby
Araxia_ has joined #ruby
bradleyprice has joined #ruby
Araxia_ has quit [Client Quit]
adeponte has joined #ruby
mercwithamouth has joined #ruby
jasonkuhrt has joined #ruby
dannybtran has quit [Quit: dannybtran]
techhelp has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
m0rphix1988 has left #ruby [#ruby]
chimkan has quit [Ping timeout: 248 seconds]
chimkan__ has joined #ruby
dougireton has quit [Quit: Leaving.]
terrorpup has quit [Read error: Connection timed out]
joeycarmello has joined #ruby
caleb_io has quit [Quit: caleb_io]
brook has joined #ruby
Guest____ has joined #ruby
jjbohn has joined #ruby
bradleyprice has quit [Remote host closed the connection]
radic has quit [Disconnected by services]
ananthakumaran has joined #ruby
radic_ has joined #ruby
klip has quit [Ping timeout: 256 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
terrorpup has joined #ruby
browndawg has quit [Max SendQ exceeded]
<aedornm> 9 minutes. Much better .. ish.
jasonkuhrt has quit [Quit: Linkinus - http://linkinus.com]
browndawg has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
love_color_text has quit [Remote host closed the connection]
keyvan is now known as love_color_text
jjbohn has quit [Quit: Leaving...]
cajone has joined #ruby
alienvenom has quit [Ping timeout: 276 seconds]
alienvenom has joined #ruby
cha1tanya has quit [Quit: Leaving]
chimkan has joined #ruby
<mehwork> That's what she said
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
heyitsdave has quit [Ping timeout: 248 seconds]
HAKEON has quit [Quit: HAKEON]
berserkr has quit [Quit: Leaving.]
Guest____ has quit [Ping timeout: 276 seconds]
chimkan__ has quit [Ping timeout: 272 seconds]
foolsh has left #ruby ["Leaving"]
dustint has quit [Quit: Leaving]
rondale__ has joined #ruby
templaedhel has quit [Quit: Leaving...]
aaronmacy has joined #ruby
quest88 has joined #ruby
dmiller has quit [Ping timeout: 255 seconds]
atyz has joined #ruby
browndawg has quit [Quit: Leaving.]
Guest____ has joined #ruby
goddard has joined #ruby
<goddard> how do i run a ruby application
<goddard> i see a rake file
atyz has quit [Ping timeout: 264 seconds]
brook has quit []
arya has quit [Ping timeout: 248 seconds]
freakazoid0223 has quit [Ping timeout: 272 seconds]
<mehwork> goddard: depends. Generally you can just run 'ruby file.rb' or './file.rb'. Otherwise if you don't knwo what file to run directly, type 'rake --tasks' to see a list of available tasks
ddd has joined #ruby
ddd is now known as Guest71081
x82_nicole has joined #ruby
SrPx has quit [Quit: SrPx]
<mehwork> if it's a rails app, it will be a whole different way of running it, e.g,. by doing 'rails server' and going to your browser like http://locahost:3000
tommyvyo has joined #ruby
tatsuya_o has joined #ruby
templaedhel has joined #ruby
arya has joined #ruby
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
rondale__ has quit [Ping timeout: 248 seconds]
yacks has joined #ruby
tatsuya_o has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby
brianpWins has quit [Quit: brianpWins]
Targen has joined #ruby
banjara has joined #ruby
apoch6321 has joined #ruby
jaequery has joined #ruby
Bosox20051 has quit [Quit: Leaving]
Guest71081 is now known as ddd
vinax has quit [Excess Flood]
vinax has joined #ruby
huoxito has quit [Ping timeout: 276 seconds]
ananthakumaran has quit [Quit: Leaving.]
Guest____ has quit [Read error: Connection reset by peer]
aaronmacy has quit [Quit: Leaving.]
dcwu has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
slainer68 has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
joeycarmello has quit [Remote host closed the connection]
gnarmis has quit [Remote host closed the connection]
chendo_ has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
girija_ has joined #ruby
jrist is now known as jrist-afk
bawigga has joined #ruby
robbyoconnor has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
slainer68 has quit [Ping timeout: 246 seconds]
<bawigga> I can't seem to get httparty to log debug output, when i run my tats via rspec
<bawigga> tests*
Guest____ has joined #ruby
<bawigga> in my class i have:
<bawigga> include HTTParty
<bawigga> debug_output $stdout
<bawigga> then using rspec w/ autotest, I don't get any debug info
<bawigga> any ideas?
jjbohn has joined #ruby
crackfu has quit [Ping timeout: 244 seconds]
brianpWins has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
chimkan has quit [Ping timeout: 240 seconds]
Monie has quit [Quit: Quit]
MattRB has quit [Quit: This computer has gone to sleep]
meoblast001 has quit [Remote host closed the connection]
mahmoudi_ is now known as mahmoudimus
girija_ has quit [Read error: Connection reset by peer]
girija_ has joined #ruby
therod has joined #ruby
yewton has quit [Excess Flood]
yacks has joined #ruby
tjbiddle has joined #ruby
dougireton has joined #ruby
ElderFain has joined #ruby
Mon_Ouie has joined #ruby
yewton has joined #ruby
tjbiddle_ has joined #ruby
epylinkn has quit [Quit: Leaving.]
jjbohn has quit [Quit: Leaving...]
haxrbyte has quit [Read error: Connection reset by peer]
therod has quit [Ping timeout: 246 seconds]
dougireton has quit [Client Quit]
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
mercwithamouth has quit [Ping timeout: 276 seconds]
joshkeith has left #ruby [#ruby]
ner0x has quit [Quit: Leaving]
gnarmis has joined #ruby
goddard has quit [Quit: This computer has gone to sleep]
aaronmacy has joined #ruby
goddard has joined #ruby
goddard has quit [Changing host]
goddard has joined #ruby
ryanf has quit [Quit: leaving]
steffes has joined #ruby
oinkon has quit [Ping timeout: 248 seconds]
steffes has quit [Remote host closed the connection]
a_a_g1 has joined #ruby
joeycarmello has joined #ruby
cableray has joined #ruby
uris has quit [Read error: Operation timed out]
cableray has quit [Client Quit]
a_a_g1 has quit [Client Quit]
a_a_g1 has joined #ruby
ananthakumaran has joined #ruby
dougireton has joined #ruby
dougireton has left #ruby [#ruby]
noxoc has joined #ruby
innohero has quit [Ping timeout: 257 seconds]
dougireton has joined #ruby
dougireton has left #ruby [#ruby]
havenn has joined #ruby
Guest____ has quit [Quit: Computer has gone to sleep.]
jfl0wers has quit [Quit: jfl0wers]
innohero has joined #ruby
aaronmacy has quit [Quit: Leaving.]
recycle has joined #ruby
chendo_ has quit [Ping timeout: 264 seconds]
Vektur has quit []
Loaft has joined #ruby
<ElderFain> right now I've got three methods (create & load, store file, read file) and it feels more messy than it needs to be.. like I should be able to say in one method "create this file if it doesn't exist & add this data to it, read the file if it already exists & append this data to it"
SQLDarkly has quit [Read error: Connection reset by peer]
<ElderFain> I came up with this https://gist.github.com/2221f78f99ce7c324d27 but it feels.. I dunno
<ElderFain> not right?
gnarmis has left #ruby [#ruby]
browndawg has joined #ruby
chendo_ has joined #ruby
rakl has joined #ruby
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
BoomCow has joined #ruby
andrew__ has quit [Ping timeout: 272 seconds]
cyong has quit [Quit: Leaving.]
x82_nicole has quit [Quit: Computer has gone to sleep.]
benlieb has joined #ruby
Guest__ has joined #ruby
oinkon has joined #ruby
spaceships has quit [Quit: leaving]
a_a_g has joined #ruby
n1x has joined #ruby
a_a_g has quit [Disconnected by services]
EPIK has quit []
a_a_g1 is now known as a_a_g
chrishough has quit [Quit: chrishough]
icole has joined #ruby
iamjarvo has quit [Quit: Leaving.]
jfl0wers has joined #ruby
IceDragon has quit [Quit: Space~~~]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
ewilliam has joined #ruby
arkiver has joined #ruby
jonathanwallace1 has quit [Ping timeout: 276 seconds]
tommyvyo has joined #ruby
ryanf has joined #ruby
<danktamagachi> exit
danktamagachi has quit [Quit: leaving]
zeade has quit [Quit: Leaving.]
tomzx_mac has quit [Ping timeout: 246 seconds]
Takehiro has joined #ruby
mafolz has quit [Read error: Connection reset by peer]
BoomCow has quit [Quit: This computer has gone to sleep]
BoomCow has joined #ruby
mafolz has joined #ruby
joeycarmello has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
arya has quit [Ping timeout: 248 seconds]
brook has joined #ruby
caleb_io has joined #ruby
Guest__ has quit [Quit: Computer has gone to sleep.]
Goldman82 has joined #ruby
JumpMast3r has joined #ruby
h4mz1d has joined #ruby
toekutr has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<shevy> ElderFain the first thing I notice is that you use Marshal.load() twice
<shevy> this is almost never a good idea
arya has joined #ruby
<ElderFain> I just changed it up a little bit
<shevy> it also is a problem that your method does a lot of things, different things
yakko has joined #ruby
<shevy> in the first if branch you return something instantly
<shevy> in the else structure, you dont care about what you return at all
<shevy> from a conceptual point of view, this is strange
<ElderFain> shevy: yeah.. as i mentioned now its currently 3 separate methods, a read method, a write method and a create method
MissionCritical has quit [Ping timeout: 255 seconds]
<ElderFain> but I was doing all these checks to either "create the file if it didn't exist, read it if it did, or read & append" which felt silly
<tcstar> what IDE's do you guys find best when working with ruby/rails? I tried RubyMine and while nice -- i didn't like the cursor functionality -- where clicking in a line places the cursor wherever i click even if the line is shorter than wherei clicked.
<shevy> well that seems like a logical step-by-step point
<shevy> try_to_create_file
tomzx_mac has joined #ruby
<ElderFain> tcstar: sublime_text
<shevy> read_file
<shevy> I dont quite understand why you must read _and_ append at the same time
<shevy> I never had to do that so far
<ElderFain> shevy: it didn't seem like marshal could handle appending
<ElderFain> it looks like it has to read the whole thing in, modify the object, then write it back out
<shevy> aha. no idea. I dont use marshal, it was too confusing for my poor brain. I am yamling all the time
h4mz1d has quit [Ping timeout: 272 seconds]
love_color_text has quit [Remote host closed the connection]
<shevy> eh sounds like how one uses yaml
<ElderFain> which I don't particularly like mind you
<shevy> YAML.load_file
<ElderFain> it was just the first think i ran into
<shevy> YAML.dump
<tcstar> Thanks ElderFain.. I'm downloading it now, as well as the RubyMine (i paidfor it along side PHPStorm -- may as well install it)
<ElderFain> shevy: sounds like marshal.. marshal.load & marshal.dump =0
<shevy> tcstar I dont use rails. but for plain ruby, I try to use a simple editor. right now bluefish 1.0.7 still. (bluefish 2.x changed so many things, I hate it now :( )
<ElderFain> hows that solve streaming into a file?
<shevy> ElderFain define "streaming". I always manipulate the data structure in ruby, then store via YAML.dump
<tcstar> bluefish have the syntax highlighting shevy? I think as beginning with ruby/rails -- that'll be of benefit to me
<shevy> tcstar dunno. you may love or hate it. I like it. in 1.0.7 that is... 2.x changed highlighting too, which I hate
<shevy> I was considering moving to geany or sublime one day
<ElderFain> shevy: right, thats what I'm doing with marshal. load the object in, modify it in ruby (by appending to it usually) then write it back out
<shevy> ElderFain ah so you dont append to the file directly? you modify the internal data in ruby right?
<ElderFain> but that means i pay the cost of reading in the file
<ElderFain> shevy: right
love_color_text has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
<shevy> ok so you dont want to read in a file
<shevy> how can you then modify the data structure? :P
<tcstar> yeah ive never really played with geany.. limited with sublime.. I used to use Aptana Studio -- then I switched to PHPStorm.. but phpstorm doesnt have ruby S/H
mneorr has joined #ruby
<ElderFain> shevy: sounds like a problem a streaming library should solve not me! =)
jaequery has quit [Quit: Computer has gone to sleep.]
noxoc has quit [Read error: Connection reset by peer]
<shevy> I think the only problem I had with yaml files was when they got big
<shevy> starting at around 2 MB in size, such a big hash slowed down things quite a bit
<shevy> but typically, my yaml files for even larger projects are still fairly small
<shevy> a big config file is like: 31K configuration.yml
<tcstar> yeah that sucks... in php i use symfony -- and some of my yml files make me want to puke @ how large they are
<shevy> and that includes comments!
blacktulip has joined #ruby
<shevy> how large are they?
<ElderFain> shevy: basically I have to make requests out to a web service and get a response. when I get a response I load the file & append the response. sometimes I don't get a response, so it goes into another file. when its done running, I'll usually run it later for other information gathering, in which case I load the 'cached' data so I don't repeat requests
<tcstar> biggest one i have is somewhere around 4M
stkowski has quit [Quit: stkowski]
noxoc has joined #ruby
<ElderFain> sometimes the service responds, sometimes it doesn't, so its useful to repeatedly make a request until I get a response, without repeating requests
sepp2k has quit [Remote host closed the connection]
<ElderFain> hmm these are around 90KB or so atm, so not huge
<shevy> tcstar hehe ok that's quite getting fat
<shevy> pffft 90 KB that's the size of my little toe
<shevy> you handcount every byte don't you ElderFain!!!
<tcstar> yeah... it's one of my yml files for routing... for a CRM i built...
<shevy> I once wanted to register every file on my hdd
<shevy> you know, a "package manager" in ruby, using yaml
<ElderFain> shevy: just trying to be smarter about my development
<shevy> but yaml is too slow for that when you have several thousand files to register :(
<tcstar> might re-do the crm in ruby -- if i can figure out how to get my apache to listen on another port -- and serve up a ruby app... (unmanaged VPS)
<ElderFain> focus on things I traditionally don't care about
noxoc has quit [Read error: Connection reset by peer]
<ElderFain> shevy: what did you think of the rewritten method? https://gist.github.com/d31ad44cb09c93f51ecb
generalissimo has joined #ruby
[Neurotic] has quit [Remote host closed the connection]
<ElderFain> whoops was missing an end ;p
a_a_g has quit [Ping timeout: 255 seconds]
<ElderFain> basically no matter what it gives you back the data in the file, either with it appended or with what already existed in it
chrishough has joined #ruby
<shevy> dunno, I would not use it
<ElderFain> cause it does multiple things?
<shevy> def rw_file
<shevy> that too
<shevy> but it starts that the method name alone does not give me meaningful information for the style I use when writing ruby
<chrishough> c/lear
<shevy> hey chrishough ;)
<chrishough> hey shevy
<ElderFain> guess i can go back to read_locally & store locally
<ElderFain> and just have them both handle creating the file if it doesn't exist
<shevy> ElderFain what I usually do lately is: (1) write a class to solve a task (2) define its logic in a general run() method (which usually gets called from within def initialize)
<shevy> I must write code in a way so that I never have to think about it
tomzx_mac has quit [Read error: Operation timed out]
<shevy> for instance, yesterday in a game, I had a "hero" class. It has a default name for that hero
quest88 has quit [Quit: quest88]
<shevy> I needed to change that name at runtime, so I had to use a .name = method, so I added an attr_write :name
tommyvyo has joined #ruby
nomenkun has joined #ruby
<shevy> your method does two opposite things - load data, save data
etcetera has joined #ruby
MissionCritical has joined #ruby
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
<ElderFain> shevy: or looked at another way, it does one thing -- give you back an object from a file =)
nomenkun has quit [Remote host closed the connection]
bradleyprice has joined #ruby
<shevy> it does?
<shevy> but you use that only in the first if branch
apoch6321 has quit [Quit: Leaving.]
<ElderFain> the file.open block doesn't return the file?? =0
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
a_a_g has joined #ruby
tokime06 has joined #ruby
jaequery has joined #ruby
tokime06 has quit [Client Quit]
BoomCow has quit [Quit: This computer has gone to sleep]
<shevy> you dont use an explicit return, you use .write in it
<shevy> anyway, it is your code
wakoinc has joined #ruby
<blazes816> take all that stuff out of the else, it's unneccissary
dmerrick has quit [Quit: dmerrick]
<shevy> :D
<shevy> next someone suggest to kill the whole method ... ;P
tjbiddle has quit [Quit: tjbiddle]
<blazes816> lol, I didn't mean remove it from the code, just don't have it in the else block
Adys_ has joined #ruby
mockra has quit [Remote host closed the connection]
<ElderFain> blazes816: wouldn't that mean you pay the cost of both a write and an unnecessary read?
atyz has joined #ruby
jonahR has quit [Quit: jonahR]
Adys has quit [Ping timeout: 256 seconds]
<blazes816> ElderFain: all you do in the first part is return
<ElderFain> yeah i thought the second part would return the result of the write from the block
<blazes816> rather, in the first part you always return
<ElderFain> but apparently it doesn't
tommyvyo has joined #ruby
atyz has quit [Read error: Connection reset by peer]
<blazes816> Marshal.dump(data).tap{|data| File.open(filename, 'w'){|f| f.write(data) }}
cparen has joined #ruby
girija_ has quit [Ping timeout: 264 seconds]
<ElderFain> so the block returns the number of bytes of the file, damn
<ElderFain> thought it would return the object that resulted from the write
<ElderFain> blazes816: what the heck.. lemme go read what tap does
chendo_ has quit [Ping timeout: 252 seconds]
<blazes816> data = Marshal.dump(data); File.open(filename, 'w'){|f| f.write(data) }; data
<blazes816> would also work
<blazes816> ElderFain: it just returns what you call it on
AntiTyping has quit [Quit: AntiTyping]
<shevy> see? blazes816 last code is awesome
<shevy> super easy, no .tap, and all same
<blazes816> shevy.tap.tap.tap_on_the_head
<shevy> I have not yet understood .tap
<ElderFain> blazes816: that assumes the file already exists and doesn't append data into it
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
<shevy> I understand it is somehow used to prevent nil objects
<blazes816> ElderFain: change the 'w' as needed
<blazes816> ElderFain: also, I was only writing the portion after the eager return
rmc3 has quit [Ping timeout: 252 seconds]
<blazes816> it's mostly just a nice way to do an expensive operation, then do a bunch of stuff to it, but ensure it remains the last expression
rmc3 has joined #ruby
caleb_io has quit [Quit: caleb_io]
cableray has joined #ruby
klip has joined #ruby
<blazes816> def foo(data); data.tap{|data| # do whatever we want to data, and the method will always return data }; end
<blazes816> also good for 'tapping' into method chains
<blazes816> Account.first.tap{|a| a.last_accessed = Time.now; a.save}.login!
zommi has joined #ruby
timonv has joined #ruby
nomenkun has joined #ruby
rippa has joined #ruby
templaedhel has quit [Quit: Leaving...]
girija_ has joined #ruby
mneorr has quit [Remote host closed the connection]
<ElderFain> blazes816: his last line seems verbose & wordy
<ElderFain> sort of like the first version provided
bigmac has quit [Quit: Leaving]
<ElderFain> whoops, blazes816 -> shevy
<blazes816> I wouldn't actually do it all on one line that way
breakingthings has quit [Ping timeout: 248 seconds]
<ElderFain> also you end up calling dump on a nil
<blazes816> yeah, I wasn't attempting to completely rewrite the method
thufir_ has joined #ruby
Guest__ has joined #ruby
quest88 has joined #ruby
<ElderFain> okay well going to think on it some more
<ElderFain> maybe i should just move to activerecord
quest88 has quit [Client Quit]
<ElderFain> and create a record for each object
<ElderFain> then i don't have to worry about any of this crap
Mon_Ouie has quit [Ping timeout: 272 seconds]
undersc0re97 has quit [Ping timeout: 272 seconds]
girija_ has quit [Ping timeout: 248 seconds]
ChampS666 has joined #ruby
Guest__ has quit [Ping timeout: 276 seconds]
a_a_g1 has joined #ruby
<ElderFain> no more loading/saving mess etc
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
ABK has joined #ruby
blazes816 has quit [Quit: blazes816]
a_a_g has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
dekroning has joined #ruby
etcetera has quit []
elkclone has quit [Quit: It's never too late to unplug and run.]
JumpMast3r has quit [Quit: JumpMast3r]
<ElderFain> shevy/blazes thanks for the chat, heading to bed
tcurdt has joined #ruby
joeycarmello has joined #ruby
generalissimo has quit [Remote host closed the connection]
Monie has joined #ruby
ElderFain has quit [Quit: ElderFain]
Guest__ has joined #ruby
answer_42 has joined #ruby
dr_bob has joined #ruby
tcurdt has quit [Client Quit]
roadt_ has quit [Ping timeout: 264 seconds]
ChampS666 has quit [Ping timeout: 246 seconds]
joeycarmello has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 276 seconds]
a_a_g has joined #ruby
chendo_ has quit [Ping timeout: 240 seconds]
main has joined #ruby
recycle has quit [Remote host closed the connection]
robustus has joined #ruby
nomenkun has quit [Remote host closed the connection]
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
girija_ has joined #ruby
Elhu has joined #ruby
a_a_g1 has quit [Ping timeout: 252 seconds]
atyz has joined #ruby
mneorr has joined #ruby
bradleyprice has quit [Remote host closed the connection]
recycle has joined #ruby
timonv has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 248 seconds]
dmerrick has joined #ruby
aapzak has joined #ruby
templaedhel has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
samlt has joined #ruby
Takehiro has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
dhruvasagar has joined #ruby
adeponte has quit [Remote host closed the connection]
goddard has quit [Quit: This computer has gone to sleep]
rakl has quit [Quit: sleeping]
templaedhel has quit [Ping timeout: 260 seconds]
aaronmacy has joined #ruby
adeponte has joined #ruby
pyx has quit [Quit: WeeChat 0.4.0]
adeponte has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
mneorr has quit [Remote host closed the connection]
vinax has quit [Ping timeout: 248 seconds]
Michael1 has joined #ruby
vinax has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Dom__ has joined #ruby
Michael1 has left #ruby [#ruby]
vinax has quit [Client Quit]
chussenot has joined #ruby
mneorr has joined #ruby
Giorgio has joined #ruby
dekroning has quit [Ping timeout: 256 seconds]
JackyAlcine has quit [Quit: Quit]
JackyAlcine has joined #ruby
araujo has quit [Ping timeout: 244 seconds]
jduan1981 has quit [Quit: jduan1981]
JackyAlcine has quit [Client Quit]
Elhu has joined #ruby
Elhu has quit [Client Quit]
mockra has joined #ruby
Elhu has joined #ruby
markalanevans has quit [Quit: markalanevans]
Dom__ has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
mercwithamouth has joined #ruby
Elhu has quit [Client Quit]
atyz has joined #ruby
sayan has joined #ruby
mockra has quit [Ping timeout: 264 seconds]
deeepblue has joined #ruby
slainer68 has joined #ruby
filipe has joined #ruby
aganov has joined #ruby
slainer68 has quit [Ping timeout: 276 seconds]
havenn has quit [Remote host closed the connection]
johndouthat has quit [Quit: johndouthat]
icole has quit [Remote host closed the connection]
deeepblue has left #ruby [#ruby]
epylinkn has joined #ruby
wakoinc has quit [Ping timeout: 272 seconds]
jprovazn has joined #ruby
deeepblue has joined #ruby
icole has joined #ruby
chussenot has quit [Quit: chussenot]
deeepblue has left #ruby [#ruby]
deeepblue has joined #ruby
deeepblue has left #ruby [#ruby]
eldariof has joined #ruby
blaxter has joined #ruby
adeponte has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
gosshedd has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
rismoney has quit []
epylinkn has left #ruby [#ruby]
lkba has quit [Ping timeout: 256 seconds]
afd__ has quit [Quit: No Ping reply in 180 seconds.]
shtirlic has joined #ruby
afd__ has joined #ruby
filipe_ has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
DrCode has quit [Remote host closed the connection]
zigomir has joined #ruby
tjbiddle has joined #ruby
jgrevich has quit [Remote host closed the connection]
toekutr has quit [Remote host closed the connection]
apoch632 has joined #ruby
dekroning has joined #ruby
DrCode has joined #ruby
apoch632 has quit [Client Quit]
altamic has joined #ruby
tagrudev has quit [Remote host closed the connection]
shtirlic has quit [Ping timeout: 248 seconds]
girija_ has left #ruby ["Ex-Chat"]
Signum has quit [Ping timeout: 255 seconds]
Signum has joined #ruby
girija_ has joined #ruby
adeponte has quit [Remote host closed the connection]
Morkel has joined #ruby
tagrudev has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
main has quit [Ping timeout: 248 seconds]
chussenot has joined #ruby
dcwu has quit [Quit: Leaving.]
templaedhel has joined #ruby
mneorr has quit [Remote host closed the connection]
chussenot has quit [Client Quit]
tcstar has quit [Remote host closed the connection]
fgro has joined #ruby
lkba has joined #ruby
ryanf has quit [Quit: leaving]
Skelz0r has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
roadt_ has joined #ruby
nomenkun has joined #ruby
hoelzro|away is now known as hoelzro
emergion has joined #ruby
senny has joined #ruby
mrdtt has quit [Quit: mrdtt]
apoch632 has joined #ruby
templaedhel has quit [Ping timeout: 248 seconds]
shtirlic has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
piotr_ has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
workmad3 has joined #ruby
nomenkun has joined #ruby
oposomme has joined #ruby
nomenkun_ has joined #ruby
idkazuma has joined #ruby
adeponte has joined #ruby
marr has joined #ruby
Dom__ has joined #ruby
apoch632 has quit [Quit: Leaving.]
Dom__ has quit [Read error: Connection reset by peer]
segv- has joined #ruby
nomenkun has quit [Read error: Connection reset by peer]
Dom__ has joined #ruby
brianpWins has quit [Quit: brianpWins]
emergion has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
Elhu has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
terrorpup has quit [Read error: Connection timed out]
Hanmac_ has joined #ruby
mahmoudimus has joined #ruby
nomenkun_ has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
jimeh has joined #ruby
arya has quit [Ping timeout: 248 seconds]
tcstar has joined #ruby
adeponte has quit [Remote host closed the connection]
Choobie has joined #ruby
dawkirst has joined #ruby
emergion has joined #ruby
JumpMast3r has joined #ruby
terrorpup has joined #ruby
chussenot has joined #ruby
arya has joined #ruby
io_syl has joined #ruby
Hanmac_ has quit [Quit: Page closed]
<fuzai> http://pastie.org/5957334 does anyone know why I can set my environment variables, install the gems needed, but then my script can't find them?
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
vlad_starkov has joined #ruby
<workmad3> fuzai: out of curiosity... what ruby version?
statarb3 has joined #ruby
thufir_ has quit [Quit: Leaving.]
<fuzai> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<fuzai> i'm using #!/usr/bin/env ruby to start my script
noxoc has joined #ruby
cparen has quit [Quit: cparen]
therod has joined #ruby
osaut has joined #ruby
<fuzai> should i be setting something more then GEM_HOME and GEM_PATH?
<workmad3> you need to require 'rubygems' in your script
<fuzai> ohhhh
reinaldob has joined #ruby
<fuzai> thank you
main has joined #ruby
therod has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
<yakko> hey guys, I've always been more on the Rails side, so I wanted to make some scripts that run in background and require heavy gems, but they are never going to be used in the Rails app itself. Having said that, how can I add gems Gemfile that don't get loaded on the rails server?
<yakko> to the Gemfile*
timmow has joined #ruby
terrorpup has quit [Read error: Connection timed out]
io_syl has quit [Quit: Computer has gone to sleep.]
louisror has joined #ruby
<workmad3> yakko: you can also 'require: false' those gems in the Gemfile
<workmad3> yakko: or you could create a separate Gemfile for your scripts
<workmad3> s/also/always
<yakko> workmad3: is this the kind of thing you use custom groups for?
<workmad3> yakko: you could do that too
rezzack1 has joined #ruby
chussenot has joined #ruby
buscon has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
rezzack has quit [Ping timeout: 245 seconds]
wudofyr_ has quit [Remote host closed the connection]
wudofyr_ has joined #ruby
haxrbyte has joined #ruby
<yakko> workmad3: just by invoking say... ruby scripts/heavy RAILS_GROUPS=heavy_bg_stuff # will it do?
niklasb has joined #ruby
oposomme has quit [Read error: Connection reset by peer]
niklasb has quit [Client Quit]
buscon has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
buscon has joined #ruby
chendo_ has joined #ruby
robotmay has joined #ruby
clooth has joined #ruby
Vainoharhainen has joined #ruby
JackyAlcine has joined #ruby
robotmay has quit [Ping timeout: 272 seconds]
Guest__ has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
timmow has quit [Quit: timmow]
emergion has joined #ruby
templaedhel has joined #ruby
elaptics`away is now known as elaptics
poikon has joined #ruby
kold has joined #ruby
terrorpup has joined #ruby
nari has quit [Ping timeout: 245 seconds]
yacks has quit [Remote host closed the connection]
oinkon has quit [Ping timeout: 248 seconds]
TheFuzzball has joined #ruby
lushious has joined #ruby
baphled has joined #ruby
mneorr has joined #ruby
ephemerian has joined #ruby
WhereIsMySpoon has quit [Quit: No Ping reply in 180 seconds.]
WhereIsMySpoon has joined #ruby
rippa has quit [Read error: Connection reset by peer]
marius has quit []
rippa has joined #ruby
chandan_kumar has joined #ruby
templaedhel has quit [Ping timeout: 264 seconds]
chandan_kumar has left #ruby ["Leaving"]
mneorr has quit [Ping timeout: 252 seconds]
clooth has quit [Read error: Connection reset by peer]
kold has quit [Read error: Connection reset by peer]
timmow has joined #ruby
jean-louis has joined #ruby
kold has joined #ruby
idkazuma has quit [Remote host closed the connection]
clooth has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
tatsuya_o has joined #ruby
beiter has joined #ruby
kold has quit [Remote host closed the connection]
WhereIsMySpoon has quit [Quit: No Ping reply in 180 seconds.]
WhereIsMySpoon has joined #ruby
timmow has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
timmow has joined #ruby
wallerdev has quit [Quit: wallerdev]
jaequery has quit [Quit: Computer has gone to sleep.]
emergion has quit [Quit: Computer has gone to sleep.]
robotmay has joined #ruby
Mon_Ouie has joined #ruby
cdt has joined #ruby
cdt has quit [Read error: Connection reset by peer]
yacks has joined #ruby
terrorpup has quit [Read error: Connection timed out]
chendo_ has quit [Ping timeout: 252 seconds]
Guest__ has joined #ruby
chendo_ has joined #ruby
cdt has joined #ruby
terrorpup has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
odyssey4me has joined #ruby
banjara has quit [Quit: Leaving.]
aaronmacy has quit [Quit: Leaving.]
yacks has quit [Ping timeout: 245 seconds]
yshh has quit [Remote host closed the connection]
maleghast has joined #ruby
timonv has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
<maleghast> I am trying to mock an ActiveRecord object, which in my code I use like this -> ad[:cat_1] <- to access the value of a column/attribute. I am using test/unit and mocha, but nothing I try seems to work… What am I missing? Please… :-S
arya has quit [Ping timeout: 248 seconds]
chussenot has quit [Quit: chussenot]
sn0wb1rd has quit [Quit: sn0wb1rd]
yacks has joined #ruby
chendo_ has joined #ruby
arya has joined #ruby
Skelz0r has quit [Ping timeout: 248 seconds]
Inoperabled is now known as Inoperable
Inoperable has quit [Excess Flood]
Inoperable has joined #ruby
Inoperable has quit [Excess Flood]
thisirs has joined #ruby
lolmaus has joined #ruby
buibex has joined #ruby
therod has joined #ruby
TomJ has joined #ruby
TomJ has joined #ruby
vaicine has joined #ruby
Takehiro has joined #ruby
alexmreis has joined #ruby
<vaicine> Is it okay to post a link to a job spec in here?
arturaz has joined #ruby
beiter has quit [Quit: beiter]
nkr has joined #ruby
Dom__ has quit [Remote host closed the connection]
zz_chrismcg is now known as chrismcg
fyolnish has quit [Ping timeout: 276 seconds]
innohero has quit [Ping timeout: 245 seconds]
<JonnieCache> vaicine: try #rubyonrails as well
<vaicine> Have done :) thanks JonnieCache
baphled has quit [Ping timeout: 276 seconds]
cableray has quit [Ping timeout: 255 seconds]
idkazuma has joined #ruby
blacktulip has quit [Remote host closed the connection]
adambeynon has joined #ruby
blacktulip has joined #ruby
tcstar has quit [Quit: Leaving]
arya_ has joined #ruby
Skelz0r has joined #ruby
aaronmcadam has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Takehiro has quit [Remote host closed the connection]
blacktulip has quit [Ping timeout: 240 seconds]
huoxito has joined #ruby
renanoronfle has joined #ruby
Takehiro has joined #ruby
gvz has joined #ruby
blacktulip has joined #ruby
girija_ has quit [Ping timeout: 256 seconds]
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
browndawg has quit [Ping timeout: 276 seconds]
arya_ has quit []
chussenot has joined #ruby
templaedhel has joined #ruby
eka has joined #ruby
terrorpup has quit [Read error: Connection timed out]
dekroning has quit [Ping timeout: 248 seconds]
eka has quit [Client Quit]
ExxKA has joined #ruby
therod has quit [Quit: Leaving...]
terrorpup has joined #ruby
arya has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
arturaz has quit [Ping timeout: 255 seconds]
timonv has quit [Remote host closed the connection]
RurouniJones has joined #ruby
templaedhel has quit [Ping timeout: 245 seconds]
elkclone has joined #ruby
girija_ has joined #ruby
elkclone has quit [Client Quit]
browndawg has joined #ruby
senny has quit [Remote host closed the connection]
pskosinski has joined #ruby
browndawg has quit [Max SendQ exceeded]
s1n4 has joined #ruby
browndawg has joined #ruby
timonv has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
fenak has quit [Quit: Lost terminal]
RurouniJones has quit [Remote host closed the connection]
banister`sleep has joined #ruby
wargasm has joined #ruby
Giorgio has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
girija_ has quit [Read error: Operation timed out]
Xeago has joined #ruby
arya has quit [Ping timeout: 248 seconds]
therod has joined #ruby
icole has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
icole has joined #ruby
Virunga has joined #ruby
arturaz has quit [Remote host closed the connection]
terrorpup has quit [Read error: Connection timed out]
dr_bob has joined #ruby
arturaz has joined #ruby
sheerun has quit [Quit: ZNC - http://znc.in]
terrorpup has joined #ruby
Adys_ is now known as Adys
icole has quit [Ping timeout: 252 seconds]
aib has quit [Ping timeout: 260 seconds]
pdtpatrick has quit [Ping timeout: 255 seconds]
samphippen has joined #ruby
pdtpatrick has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
aib has joined #ruby
aib has quit [Client Quit]
aib has joined #ruby
rmartin has joined #ruby
carloslopes has joined #ruby
osaut has quit [Quit: osaut]
girija_ has joined #ruby
rdark has joined #ruby
Takehiro has quit [Remote host closed the connection]
cha1tanya has joined #ruby
mister_zombie has joined #ruby
Takehiro has joined #ruby
rmartin has quit [Ping timeout: 248 seconds]
Takehiro has quit [Remote host closed the connection]
<Raboo> Hi
<Raboo> I have two ruby's installed
<Raboo> thru rpm
<Raboo> one in /opt and one in /usr
workmad3 has quit [Quit: Lost terminal]
<Raboo> for some strange reason when i try to execute bundle it uses the libs under /opt
<Raboo> how does it even know that there exists a ruby under /opt?
dmerrick has quit [Quit: dmerrick]
<Raboo> is it because of ld.so.conf?
rmartin has joined #ruby
terrorpup has quit [Read error: Connection timed out]
Astralum has joined #ruby
<mister_zombie> How stable is the stable ruby release?
<Paradox> stable enough to be used by hundreds of thousands of apps
<mister_zombie> I meant this more in a "how often will I piss my sysadmins off" way.
Astral__ has quit [Ping timeout: 255 seconds]
<Paradox> not often
<mister_zombie> Is it updated often? I'm guessing they probably shouldn't mind security updates.
<Paradox> most of the recent patch upgrades are for very minor bugs
<Paradox> the big brouhaha about security was an issue with YAML and rails
<carloslopes> Raboo: the ruby under /opt is the one that is on your path.. try $ which ruby to check this
<Paradox> not with ruby itself
<mister_zombie> I don't plan to use rails anyway, if anything I'll be building lightweight web services and for that I'll be using Sinatra
<carloslopes> Raboo: '$ which ruby'
rmartin has quit [Ping timeout: 248 seconds]
<mister_zombie> For now, it's only a tiny daemon that works with inotify to rsync stuff automagically to CDNs.
<Paradox> mister_zombie, then it shouldnt be a problem
<Paradox> if its small enough
<Paradox> you can just keep it on your user account and use rbenv or rvm
<Paradox> i run about 20 reddit bots that way
chussenot has quit [Quit: chussenot]
<Paradox> and its 4:30 am
<Paradox> so i need le sleep
<mister_zombie> Thing is, for some weird reason, I have to run my daemon as root. -_-
<Paradox> goodnight
<mister_zombie> Good night, thanks for the help
<mister_zombie> (Here it's 6:30. Got up at the time you're getting to bed. :P)
eka has joined #ruby
chussenot has joined #ruby
terrorpup has joined #ruby
rmartin has joined #ruby
Hanmac_ has joined #ruby
idkazuma has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
icole has joined #ruby
Virunga has quit [Remote host closed the connection]
rmartin has quit [Ping timeout: 248 seconds]
Takehiro has joined #ruby
fermion has joined #ruby
Virunga has joined #ruby
timonv has joined #ruby
rmartin has joined #ruby
aaronmcadam_ has joined #ruby
aaronmcadam has quit [Read error: Connection reset by peer]
aaronmcadam_ is now known as aaronmcadam
renanoronfle has quit [Quit: This computer has gone to sleep]
maleghast has left #ruby [#ruby]
lkba has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
icole has quit [Ping timeout: 240 seconds]
TomyLobo has joined #ruby
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
rmartin has quit [Ping timeout: 248 seconds]
mklappstuhl has joined #ruby
ahokaomaeha has joined #ruby
berserkr has joined #ruby
DrCode has joined #ruby
wreckimn1 has quit [Ping timeout: 252 seconds]
rmartin has joined #ruby
HAKEON has joined #ruby
megha has joined #ruby
renanoronfle has joined #ruby
devmodem has joined #ruby
noop has joined #ruby
osaut has joined #ruby
templaedhel has joined #ruby
<fuzai> did rand change between ruby 1.8 and ruby 1.9? my Ruby 1.9 environment has no problem with number = rand(10..20) and in my 1.8 environment i can't seem to generate a random number at all
rdark has quit [Quit: leaving]
<Hanmac_> yes it does
tagrudev has quit [Read error: Connection reset by peer]
rmartin has quit [Ping timeout: 248 seconds]
<fuzai> ok my irb on 1.8 has a rand but takes a single number and spits out a floating point
<Raboo> carloslopes i had the libpath for the /opt ruby in ld.so.conf
tagrudev has joined #ruby
rmartin has joined #ruby
tvw has joined #ruby
<fuzai> so i need something like num = rand(high-low)+low ?
<banister`sleep> fuzai: ruby 1.8 doesnt support that
<banister`sleep> fuzai: but srsly u shouldn't be on 1.8 at this stage (without very good reason), it's extremely old and we're really trying to move on from it
Takehiro has quit [Remote host closed the connection]
<fuzai> openshift uses 1.8
<carloslopes> Raboo: hm so it's this that is causing the issue, change the path in ld.so.conf then it will execute the right binaries
<fuzai> talk to the powers that be at red hat they default to 1.8
QKO_ has quit [Ping timeout: 240 seconds]
Virunga has quit [Remote host closed the connection]
templaedhel has quit [Ping timeout: 256 seconds]
rmartin has quit [Ping timeout: 248 seconds]
<fuzai> so 1.8 doesn't have spawn either
<fuzai> i guess i'm gonna have to figure out how to upgrade this
* fuzai crosses fingers
Elhu has quit [Quit: Computer has gone to sleep.]
jprovazn has quit [Quit: Leaving]
<poikon> "no more joke code"
MissionCritical has quit [Ping timeout: 276 seconds]
rmartin has joined #ruby
<renanoronfle> hehe nice commit
innohero has joined #ruby
emocakes has joined #ruby
<Raboo> carloslopes yeah that solved the problem
<carloslopes> Raboo: nice :)
yacks has joined #ruby
rdark has joined #ruby
baphled has joined #ruby
daxroc has quit [Read error: Connection reset by peer]
rmartin has quit [Ping timeout: 248 seconds]
dr_bob has quit [Quit: Leaving.]
plotter has quit [Ping timeout: 248 seconds]
JonnieCache has quit [Ping timeout: 255 seconds]
rmartin has joined #ruby
dr_bob has joined #ruby
baphled has quit [Ping timeout: 246 seconds]
Mission-Critical has joined #ruby
Giorgio has joined #ruby
razibog has joined #ruby
rmartin has quit [Ping timeout: 248 seconds]
HAKEON has quit [Quit: HAKEON]
rmartin has joined #ruby
<Hanmac_> ah where is the evalin creator?
vlad_starkov has quit [Remote host closed the connection]
rmartin has quit [Remote host closed the connection]
osaut has quit [Quit: osaut]
_tockitj has joined #ruby
nfk has joined #ruby
Mission-Critical is now known as MissionCritical
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
odyssey4me has quit []
buibex has quit [Remote host closed the connection]
pcarrier has quit []
gyre007 has joined #ruby
krz has quit [Quit: krz]
Bry8Star has quit [Ping timeout: 276 seconds]
cha1tanya has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
Bry8Star has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
ExxKA has quit [Quit: This computer has gone to sleep]
_bart has joined #ruby
hybris has joined #ruby
Banistergalaxy has joined #ruby
Pandaen has joined #ruby
nateberkopec has joined #ruby
poikon has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 256 seconds]
Beoran__ has joined #ruby
Elhu has joined #ruby
buibex has joined #ruby
wreckimn1 has joined #ruby
browndawg has quit [Quit: Leaving.]
Beoran_ has quit [Ping timeout: 276 seconds]
Adys is now known as mod_adys
mod_adys is now known as Adys
chussenot has quit [Quit: chussenot]
ryanh has quit [Quit: Computer has gone to sleep.]
grayson_ has joined #ruby
wf2f has quit []
banister`sleep has quit [Remote host closed the connection]
s__dana_ has joined #ruby
moos3 has joined #ruby
banister`sleep has joined #ruby
browndawg has joined #ruby
JonnieCache has joined #ruby
s__dana has quit [Ping timeout: 246 seconds]
s__dana_ is now known as s__dana
Banistergalaxy has quit [Ping timeout: 264 seconds]
Astral_ has joined #ruby
templaedhel has joined #ruby
Banistergalaxy has joined #ruby
Astralum has quit [Ping timeout: 240 seconds]
zommi has left #ruby [#ruby]
dustint has joined #ruby
a_a_g has quit [Quit: Leaving.]
k610 has joined #ruby
fgro has quit [Ping timeout: 248 seconds]
hrr has joined #ruby
daniel_-_ has joined #ruby
templaedhel has quit [Ping timeout: 245 seconds]
KDEvmodem has joined #ruby
v1p has joined #ruby
sayan has quit [Read error: Connection reset by peer]
louisror has quit [Ping timeout: 276 seconds]
devmodem has quit [Ping timeout: 252 seconds]
senny has joined #ruby
mark_locklear has joined #ruby
banister_ has joined #ruby
arturaz has quit [Remote host closed the connection]
banister`sleep has quit [Read error: Connection reset by peer]
hrr has quit [Quit: hrr]
noop has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
adkron_ has quit [Ping timeout: 255 seconds]
adkron has quit [Ping timeout: 255 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
AltGrendel has joined #ruby
megha has quit [Read error: Connection reset by peer]
yakko has quit [Remote host closed the connection]
banister_ has quit [Read error: Connection reset by peer]
mrbloo has joined #ruby
osaut has joined #ruby
chussenot has joined #ruby
chussenot has quit [Client Quit]
banister`sleep has joined #ruby
mrbloo has quit [Client Quit]
heyitsdave has joined #ruby
v1p has quit [Ping timeout: 272 seconds]
robert_ has quit [Read error: Connection reset by peer]
robert_ has joined #ruby
noop has joined #ruby
iamjarvo has quit [Quit: Leaving.]
poikon has joined #ruby
thillux has joined #ruby
KDEvmodem has quit [Remote host closed the connection]
KDEvmodem has joined #ruby
xemu has joined #ruby
dhruvasagar has quit [Read error: Operation timed out]
heyitsdave has quit [Ping timeout: 252 seconds]
girija_ has quit [Ping timeout: 245 seconds]
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
sbear has joined #ruby
yacks has quit [Quit: Leaving]
enroxorz-work has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
<mklappstuhl> Having a Mongoid Object is there any reason why .try(:name) does not work after I did obj.unset(:name) ?
daniel_-_ has quit [Quit: WeeChat 0.3.9.2]
buibex has quit []
jjbohn has joined #ruby
rjmt___ has quit [Remote host closed the connection]
Uranio has joined #ruby
WrErase has joined #ruby
browndawg has joined #ruby
v0n has joined #ruby
invisime has joined #ruby
<nopolitica> exit
nopolitica has quit [Quit: leaving]
<JonnieCache> i dont know mongoid at all but an inability to "try" something after one has "unset" it seems logical
idkazuma has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
joofsh has joined #ruby
x0F_ is now known as x0F
megha has joined #ruby
geekbri has joined #ruby
griffindy has joined #ruby
<mklappstuhl> JonnieCache: but shouldn't try be "failsafe" in some way?
<JonnieCache> you would have thought so
<JonnieCache> thats what its name implies i guess
<mklappstuhl> I'll ask again in #rails
<mklappstuhl> lets see what they say
osaut has quit [Ping timeout: 252 seconds]
<JonnieCache> the main rails channel is #rubyonrails
<JonnieCache> good luck
poikon has quit [Remote host closed the connection]
WrErase has quit [Quit: Lost terminal]
haxrbyte has joined #ruby
WrErase has joined #ruby
girija_ has joined #ruby
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
mengu has joined #ruby
Stilo has joined #ruby
Virunga has joined #ruby
poikon has joined #ruby
reinaldob has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 264 seconds]
alexmreis has quit [Quit: alexmreis]
exxpcf has joined #ruby
jrajav has joined #ruby
jjbohn has quit [Quit: Leaving...]
banister_ has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
v1p has joined #ruby
buibex has joined #ruby
Virunga has quit [Ping timeout: 256 seconds]
yacks has joined #ruby
rjmt___ has joined #ruby
banister_ has quit [Read error: Connection reset by peer]
banister`sleep has joined #ruby
Takehiro has joined #ruby
alexmreis has joined #ruby
poikon has quit [Remote host closed the connection]
<mklappstuhl> JonnieCache: fun thing. I completely misunderstood .try
<mklappstuhl> JonnieCache: try is meant to be called on vars that could be nil.
IrishGringo_ has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116073211]]
Guest46025 has joined #ruby
Goldman82 has quit []
MissionCritical has quit [Ping timeout: 264 seconds]
tommyvyo has joined #ruby
freeayu has quit [Remote host closed the connection]
<fuzai> someone showed me a nifty trick the other day and i seem to have lost my notes. if i have table = [ { "a" => "apple", "b" => "boy"},{},{},{}] and I wanted to test the whole array to see if any of the hashes "a" records matched "apple" how would i do that?
vlad_starkov has joined #ruby
<banister`sleep> fuzai: table.any? { |h| h["apple"] == "a" }
<banister`sleep> other way round
Virunga has joined #ruby
<banister`sleep> fuzai: table.any? { |h| h["a"] == "apple" }
vlad_sta_ has joined #ruby
banister`sleep is now known as banisterfiend
buibex has quit []
drago757 has quit [Quit: drago757]
<fuzai> ok that looks like the trick
<fuzai> thank you :)
elake has joined #ruby
pu22l3r has joined #ruby
baphled has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
etank has quit [Ping timeout: 256 seconds]
akemrir has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
gvz has quit [Ping timeout: 252 seconds]
templaedhel has joined #ruby
sayan has joined #ruby
<fuzai> so if i have table = [ { "a" => "apple", "b" => "boy"}, { "a" => "android", "b" => "battery" }] how do i return the contents of b when a == "apple" ?
Mission-Critical has joined #ruby
Spooner_ has joined #ruby
<Hanmac_> (table.find { |h| h["a"] == "apple" } || {})["b"]
terrorpup has quit [Remote host closed the connection]
<fuzai> thank you i'm going to digest that for a moment
jjbohn has joined #ruby
<fuzai> whats the || {} mean?
carloslopes has quit [Remote host closed the connection]
<Hanmac_> it protects the line from crashing when find does not find anything7
<Xeago> if the lefthand operator is falsy empty hash
ABK has quit [Remote host closed the connection]
tatsuya_o has quit [Ping timeout: 272 seconds]
<fuzai> ok cool
Guest46025 has quit [Ping timeout: 255 seconds]
<fuzai> thank you for all your help :)
aquaranto has joined #ruby
__BigO__ has joined #ruby
samphippen has joined #ruby
poikon has joined #ruby
yeltzooo has quit [Ping timeout: 255 seconds]
yeltzooo has joined #ruby
mister_zombie has quit [Quit: Leaving.]
v0n has quit [Ping timeout: 240 seconds]
templaedhel has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
buibex has joined #ruby
jrafanie has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
<fuzai> Error: undefined method `shift' for nil:NilClass. if function = msg.scan(/^~~(\d)/).shift.shift If I try to wrap this with an else i get the fore mentioned error. The code works fine if i pass it the correct information, but bombs if I don't. Is there something i can wrap this in or a better way to do this so my if then else works better?
pu22l3r has quit [Remote host closed the connection]
KDEvmodem is now known as devmodem
_nitti has joined #ruby
failshell has joined #ruby
chendo_ has joined #ruby
pu22l3r has joined #ruby
Virunga has quit [Remote host closed the connection]
fubhy has joined #ruby
Mission-Critical is now known as MissionCritical
<shevy> for yaml files
<shevy> would you rather store them in:
<shevy> yml/
<shevy> or
<shevy> yaml/
<shevy> directory ?
pavilionXP has joined #ruby
<hoelzro> yaml
<Spooner_> shevy, data/ or config/ ;) Their format is not their purpose.
<shevy> fuzai you must ensure that .shift is not used on a nil object before
haxrbyte has quit [Ping timeout: 245 seconds]
<shevy> Spooner_ hmm config/ would not be applicable, data/ perhaps but that is soooo unspecific
<fuzai> is that possible to do all on the same line or do i need to break this up?
<shevy> registry/ would fit properly here :D
<Spooner_> fuzai, If you only want one result then match not scan.
<fuzai> ok
<fuzai> :)
<shevy> fuzai with a regex, keep in mind that your regex could find nothing
<Hanmac_> shevy it depends, yml normaly, and yaml on leap years
<shevy> lol
solidoodlesuppor has joined #ruby
<shevy> I can not trust Hanmac_
senny has quit [Remote host closed the connection]
<Spooner_> fuzai msg.match(/^~~(\d)/)[1] will match or be nil.
<shevy> I will trust hoelzro
vlad_sta_ has quit [Read error: Connection reset by peer]
<Hanmac_> Spooner i dont know if he can use match, he wants the last of the results if there are many ...
Virunga has joined #ruby
jonathanwallace1 has joined #ruby
vlad_starkov has joined #ruby
<s1n4> hey, I have a bunch of keys like this: "def keys do c = gets; case c ..." how can I write a method to set another key in a 'when' statement?
blaxter has quit [Quit: foo]
<fuzai> i just want the first
<Spooner_> Hanmac, No, shift.shift implies that the very first match is the only one.
<fuzai> it's only got one line of text to dig though
<hoelzro> s1n4: sorry, what exactly do you mean?
anonymuse has joined #ruby
Choobie has quit [Read error: Operation timed out]
<Spooner_> Hanmac, fuzai And I'm dumb because that will nil out on a fail too.
<s1n4> hoelzro: wait, I'll leave an url
lolmaus has quit [Read error: Connection reset by peer]
<hoelzro> ok
lolmaus has joined #ruby
marr has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
<Spooner_> fuzai, result = ((matches = msg.match(/^~~(\d)/)) && matches[1])
<fuzai> so if i did something like function = msg.match(/^~~(\d)/)[1]; if function.nil? else
jeffreybaird has joined #ruby
<Spooner_> fuzai, No, because the #[] would fail if there wasn't a match.
jpfuentes2 has joined #ruby
<fuzai> ok
billy_ran_away has quit [Ping timeout: 256 seconds]
x82_nicole has joined #ruby
<fuzai> if function = ((matches = msg.match(/^~~(\d)/)) && matches[1]) else
Guest54315 has joined #ruby
senny has joined #ruby
<fubhy> Hey, warning: I am a complete ruby dummy. However, I was trying to configure a Guardfile with multiple watches() but all with the same callback: http://pastebin.com/R5Ae5aKj - Is that possible somehow?
<hoelzro> does anyone know if one can call pause(3) using an existing Ruby library?
zph has joined #ruby
<fuzai> if ((function = msg.match(/^~~(\d)/)) && matches[1]) else
<Hanmac_> fuzai & Spooner_: then use the "other" #[] : msg[/^~~(\d)/,1]
terrorpup has joined #ruby
joofsh has quit [Remote host closed the connection]
workmad3 has joined #ruby
<Spitfire> Heya, I'm playing around with STDIN.getc
billy_ran_away has joined #ruby
<Spitfire> The aim is to detect a single keystroke.
<Spitfire> However, it seems to always take two keystrokes before returning.
<s1n4> hoelzro: could you check it out pleace? http://pastebin.mozilla.org/2097303
<hoelzro> Spitfire: your tty is probably buffering input
<Spitfire> Hmm, well I've used system("stty raw -echo")
<Spitfire> Is there something I should add to that to prevent buffering?
<hoelzro> s1n4: so you want to set up a when clause dynamically?
louisror has joined #ruby
<fubhy> Hanmac, awesome, thanks :)
ananthakumaran has quit [Quit: Leaving.]
jjbohn has quit [Quit: Leaving...]
<s1n4> hoelzro: yes :)
himsin has joined #ruby
grayson_ is now known as grayson
<hoelzro> s1n4: what I would do is store the callbacks in a hash
<hoelzro> keyed by character
<s1n4> hoelzro: cool idea
kpshek has joined #ruby
jerius has joined #ruby
Aiur has joined #ruby
<shevy> guys... what do you think of http://kidsruby.com/
DaltonUS has joined #ruby
<shevy> especially http://kidsruby.com/about
renanoronfle has quit [Quit: This computer has gone to sleep]
jrafanie has quit [Quit: jrafanie]
<s1n4> hoelzro: I'm silly, could you give me an example please?
miskander has joined #ruby
poga has joined #ruby
<Spooner_> Spitfire, Look at the highline gem.
whowantstolivefo has quit [Quit: who wants to live forever ?]
yshh has joined #ruby
<hoelzro> s1n4: hang on; incoming
buibex has quit [Remote host closed the connection]
jgarvey has joined #ruby
buibex has joined #ruby
sambio has joined #ruby
carloslopes has joined #ruby
<Spitfire> Spooner_, hmmhm.
<Spitfire> Looks to me like that would still require return to be pressed?
<hoelzro> s1n4: something like this: https://gist.github.com/4673636
stayarrr has joined #ruby
Giorgio has quit [Ping timeout: 252 seconds]
<hoelzro> that example could definitely be improved.
v1p has quit [Ping timeout: 255 seconds]
LBRapid has joined #ruby
mrbloo has joined #ruby
kaen has quit [Read error: Connection reset by peer]
<Spooner_> Spitfire, http://stackoverflow.com/questions/8072623/get-single-char-from-console-immediately (HighLine::SystemExtensions#get_character or 1.9's getch seems possible).
<hoelzro> I wish highline had better docs
<hoelzro> the only way I can ever figure out how to use it is consulting SO
Choobie has joined #ruby
* lupine uses it fairly extensively
<lupine> if you can use something else, do so :)
pyreal has joined #ruby
olrrai has joined #ruby
RurouniJones has joined #ruby
joofsh has joined #ruby
pcarrier has joined #ruby
girija_ has quit [Ping timeout: 272 seconds]
jrist-afk is now known as jrist
<s1n4> hoelzro: exactly, thank you so much
<hoelzro> np
v1p has joined #ruby
beaky has joined #ruby
mmitchell has joined #ruby
<beaky> hello
fubhy has left #ruby ["Leaving"]
rjmt___ has quit [Remote host closed the connection]
<beaky> what is the difference between a message pass and a method invocation?
<hoelzro> hi
<workmad3> beaky: the mental model involved
<chiel> what's the best option for reloading apps on refresh (in browser)? before i was using pow on os x, but i'm trying to shift my work to a remote server
carloslopes has quit [Ping timeout: 244 seconds]
<beaky> ah
bradleyprice has joined #ruby
olrrai has quit [Ping timeout: 248 seconds]
sailias1 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
DrCode has quit [Quit: ZNC - http://znc.in]
noxoc has quit [Quit: noxoc]
hashtree has joined #ruby
sbear has quit [Ping timeout: 255 seconds]
nari has joined #ruby
peregrine81 has joined #ruby
buibex has quit [Remote host closed the connection]
blaxter has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
dawkirst has quit [Remote host closed the connection]
csmrfx has joined #ruby
jonahR has joined #ruby
<csmrfx> Simple way to load a file into an array so that each line is an array item?
haxrbyte has joined #ruby
bradleyprice has joined #ruby
<workmad3> csmrfx: File.readlines("/path/to/file")
<csmrfx> groovy
<hoelzro> no, this is #ruby
banisterfiend has quit [Read error: Connection reset by peer]
<hoelzro> groovy is probably in #groovy
<hoelzro> ;)
banisterfiend has joined #ruby
tomzx_mac has joined #ruby
hoelzro is now known as hoelzro|away
blaxter has quit [Client Quit]
philcrissman has joined #ruby
inokenty has joined #ruby
SPYGAME has joined #ruby
willob has joined #ruby
willob has quit [Max SendQ exceeded]
<SPYGAME> i have 2 arrays and i want to make sure both have same and equal number of values regardless of the order of values, i tried to use == but it requires both array values to be in the same order
olrrai has joined #ruby
jtharris has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
terrorpup has quit [Ping timeout: 272 seconds]
DrShoggoth has quit [Quit: Leaving]
willob has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
olrrai has quit [Remote host closed the connection]
<fuzai> array1.each do |element| puts "fail" if !array2.include? element end ?
<Spooner_> SPYGAME, You could sort them both before comparing.
nari has quit [Ping timeout: 244 seconds]
<fuzai> there is probably a better way to do that
preller has quit [Quit: leaving]
ffranz has joined #ruby
<workmad3> SPYGAME: ary1.size == ary2.size && ary1.all?{|i| ary2.include?(i)}
<Spooner_> workmad3, That doesn't work for all possible values. E.g. [1, 1, 2] and [1, 2, 2] would be equal.
olrrai has joined #ruby
slocate has joined #ruby
<Spooner_> SPYGAME, a.sort == b.sort
<workmad3> Spooner_: hmm, good point
olrrai has quit [Client Quit]
miskander has quit [Quit: miskander]
<Spooner_> workmad3, But we don't know the parameters, so hard to tell if that level of paranoia is needed.
<workmad3> Spooner_: I'd be tempted to do a.sort_by(:object_id) == b.sort_by(:object_id)
Aiur has quit [Quit: Computer has gone to sleep.]
baphled has quit [Ping timeout: 248 seconds]
<workmad3> Spooner_: so you can be assured of it working even if the array contains mixed items, not all of which implement <=>
<Spooner_> workmad3, Nope. For strings, for example, object_id doesn't have to be in alphabetical order.
<workmad3> Spooner_: you don't care about alphabetical order though, you care about the same order
miskander has joined #ruby
<Spooner_> workmad3, Yes, but that isn't assured either.
<workmad3> Spooner_: well, depends what sort of equality you want
<workmad3> Spooner_: but yes, if two items would be equal, but have different object_ids
<workmad3> Spooner_: then that wouldn't work...
<workmad3> hmm, difficult...
<Spooner_> If they are the same objects, certainly, but if they don't implement == then I wouldn't worry about them being equivalent in the first place.
buscon has quit [Quit: Leaving]
zph has quit []
MattRB has joined #ruby
kaen has joined #ruby
_nitti has quit [Remote host closed the connection]
techhelp has joined #ruby
<workmad3> I guess what you'd do for a full check is to duplicate both arrays, and then for each item in ary1 you would attempt to find and remove a single item from ary2
<Spitfire> Spooner_, well... highline appears to be able to do what I want via the agree method.
<workmad3> if at the end of it ary1 and ary2 are both empty - equal
<Spitfire> But I can't get it to work for the life of me. Even ask doesn't work: "undefined method `ask' for HighLine:Class (NoMethodError)"
embs has joined #ruby
<SPYGAME> workmad3, which one is fast and efficient ?
stopbit has joined #ruby
miskander has quit [Client Quit]
<Spooner_> Spitfire, It is Highline#ask, not Highline.ask.
<SPYGAME> wokmad3, sorting and comparing or the other one
embs_ has quit [Ping timeout: 248 seconds]
<Spitfire> Spooner_, eeeh... how should I put that in the code, then?
slocate has quit [Quit: EPIC5-1.1.5[1683] - amnesiac : light at the end of the tunnel could be headlights of train]
<Spooner_> Spitfire, You know, it is an object. high = Highline.new; high.ask "do you know any Ruby?"
<fuzai> so I have to run a "source" command with my shell to get to ruby 1.9.x. However when I spawn a process from a ruby script it seems to revert back to the default ruby 1.8.7. Is there an easy way to fix this?
<Spitfire> Ah right, of course. Cheers.
<workmad3> SPYGAME: neither is particularly great... sorting and comparing would be 2 sorts (probably O(n*log(n) ) and a walk through comparison O(n)
banisterfiend has quit [Remote host closed the connection]
<workmad3> SPYGAME: the other one would be n include checks, so probably O(n!)
thillux_ has joined #ruby
<workmad3> actually, not sure about that one
<workmad3> n^2 maybe
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
miskander has joined #ruby
thillux has quit [Ping timeout: 246 seconds]
devmodem has left #ruby [#ruby]
chrisja has joined #ruby
<Spitfire> Arrgh. Highline suffers from the same problem I was having with STDIN.getc it seems.
<Spitfire> Still requires two keystrokes before it does anything.
<csmrfx> Whats Highline
techhelp has quit [Quit: This computer has gone to sleep]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
theRoUS has joined #ruby
jpfuentes2 has joined #ruby
ignisf has joined #ruby
_nitti has joined #ruby
buibex has joined #ruby
sailias1 has quit [Quit: Leaving.]
sailias has joined #ruby
quest88 has joined #ruby
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
<Spooner_> Spitfire, io/console $stdin.getch seems to work for me, but I'm on Linux at the mo.
MattRB has quit [Quit: This computer has gone to sleep]
dawkirst has joined #ruby
<Spitfire> I tried that too.
nari has joined #ruby
<Spitfire> gem install io-console crashed.
jlast has joined #ruby
<Spooner_> Spitfire, It isn't a gem. Standard library.
wyhaines has joined #ruby
reinaldob has joined #ruby
speakingcode-wor has joined #ruby
quest88 has quit [Client Quit]
Goles has joined #ruby
Neomex has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
Neomex has quit [Client Quit]
chimkan has joined #ruby
Squarepy has quit [Remote host closed the connection]
<Spitfire> Spooner_, hm.
<Spitfire> undefined method `getch' for #<IO:0xb74f957c> (NoMethodError)
stayarrr has quit [Quit: Leaving...]
interactionjaxsn has joined #ruby
<breakingthings> Spitfire: did you require 'io/console'?
v0n has joined #ruby
<Spitfire> Yep, when I try that I get no such file to load -- io/console (LoadError)
uris has joined #ruby
<breakingthings> …
<breakingthings> yo shit broke as hell.
<Spooner_> Spitfire, You need to be using Ruby 1.9
iambic has joined #ruby
dmiller has joined #ruby
mikecmpbll has joined #ruby
<Spitfire> That would probably explain it.
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
nari has quit [Ping timeout: 248 seconds]
joofsh has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<RurouniJones> Is there a way to set the description of an RSpec rake task? something like RSpec::Core::RakeTask.new(:warning) do |t| ; t.desc = "Run tests with warnings enabled" ; end ?
nomenkun has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
mneorr has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
<Spitfire> Ugh.
imami|afk is now known as banseljaj
<Spitfire> I seem to be fully of problems today.
<Spitfire> I've done apt-get install ruby1.9
<Spitfire> ruby -v still returns the version as 1.8.7, and update-alternatives --config ruby doesn't list an alternatives.
generalissimo has joined #ruby
DrCode has joined #ruby
<Spooner_> Spitfire, Use rbenv or rvm to manage Ruby versions. apt-get doesn't like having more than one version.
yacks has quit [Quit: Leaving]
<Spitfire> Neither of those commands are found
<Spitfire> (I'm on debian btw)
<Spooner_> They aren't built-in commands, but systems for managing Ruby installations. Google them.
<breakingthings> chruby is another
io_syl has joined #ruby
<shevy> Spitfire debian is quite primitive after all those years it still does not allow appdirs
jaequery has joined #ruby
LBRapid has joined #ruby
<Spitfire> God.
yshh has quit [Remote host closed the connection]
<Spitfire> This is all mind boggling. lol.
* Spitfire contemplates just pressing enter instead.
<shevy> no, it is simple. you need to remember that at /usr/bin/ruby, in the FHS can exist only one ruby version
<Spooner_> You should be using Ruby 1.9 anyway. 1.8.7 is pretty much just for legacy stuff now.
<shevy> so debian worksaround this limitation with ruby1.8 or ruby1.9, respectively uses /etc/alternative as a weak-man replacement
enebo has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<shevy> Spitfire the main decision you have to do is whether you want to stick with the debian way or not
<Hanmac_> Spitfire install ruby1.9-full ... maybe then it does show on update-alternatives ... or your system is to old :P
<shevy> :D
<shevy> Hanmac_ is the only guy here using debian + ruby
arya has joined #ruby
<Spitfire> No luck, ruby1.9.1-full is already the newest version.
<shevy> haha
<Spitfire> Oh dear. :(
<Spitfire> lol
<shevy> so you cant even easily uncripple the crippled ruby debian gave you :)
sandeepdb has joined #ruby
<Hanmac_> shevy liar, i am using ubuntu .. its a bit different :P
<shevy> ok ubuntu
<Spitfire> Would uninstalling it all via apt-get and then just installing ruby1.9.1-full work... do you think...? :p
<shevy> perhaps ubuntu works better than debian
<Spooner_> I'm on Ubuntu too and use rbenv.
<Spitfire> Or might I be shooting myself in the foot.
<shevy> Spitfire that should work
<Hanmac_> and the ubuntus i use a soo new that they have 1.9.1 as default ruby
joshman_ has joined #ruby
<shevy> I know I managed to uncripple parts of debian ruby
<shevy> even require 'mkmf' worked
Giorgio has joined #ruby
renanoronfle has joined #ruby
axl_ has joined #ruby
<Xeago> doesn't building from source and packaging yourself solve all problems?
<Spitfire> -bash: ruby: command not found
<Spitfire> Well damn.
arkiver has quit [Ping timeout: 248 seconds]
<Xeago> yuck, bash!
<shevy> Xeago I was young and dumb back then. nowadays I only compile from source
<RurouniJones> Friends dont let friends install ruby using linux package managers
n1x has quit [Ping timeout: 272 seconds]
sbear has joined #ruby
<Spitfire> "ruby1.9.1 -v" works though
<Spitfire> lol
<RurouniJones> We try to discourage strangers to do it as well :p
<shevy> Spitfire see, you miss a "ruby" in /usr/bin
<shevy> you probably have a /usr/bin/ruby1.9.1 or something
<wmoxam> RurouniJones: that depends if it's packaged well or not
<shevy> RurouniJones everyone should use appdirs
<Spitfire> spitfire@wayfarer:~/connectwatch$ ruby1.9.1 channel.rb
<Spitfire> channel.rb:4:in `<main>': undefined method `getch' for #<IO:<STDIN>> (NoMethodError)
<wmoxam> I use packaged ruby on some servers
<shevy> but this would obsolete distributions, so it wont come :(
<Spitfire> Nooooo!! *commits suicide*
<shevy> Spitfire does irb work
<Hanmac_> RurouniJones & wmoxam i would say it depends on the packaged version
<Spitfire> irb1.9.1 does
<shevy> Spitfire you can commit suicide later ;)
<Spitfire> But not irb.
<Spitfire> lol
<shevy> ok and it starts? and you can use ruby code there?
<Spitfire> Yep
<shevy> good
<RurouniJones> Which distro has a decent package in your opinion?
mneorr has quit [Remote host closed the connection]
<shevy> but require 'mkmf' will not work right? ;)
tommyvyo has joined #ruby
<Spitfire> shevy, that returns true.
<shevy> wow
<shevy> I am impressed
saltcod has quit [Quit: saltcod]
jjbohn has joined #ruby
<shevy> that went against my expectation
recycle has quit [Remote host closed the connection]
<shevy> perhaps your ruby is working after all :P
* Spitfire grins
<shevy> you can symlink the ruby1.9.1 to ruby
baphled has joined #ruby
* Spitfire shall do.
wicked_shell has joined #ruby
tagrudev has quit [Remote host closed the connection]
<Spitfire> getch still doesn't work, though. :|
ignisf has left #ruby ["Leaving"]
kpshek has quit []
sandeepdb has quit [Quit: Leaving]
recycle has joined #ruby
<shevy> well
<beaky> I love object-oriented programming
<Xeago> getch, what is getch?
<shevy> who can show me example code for .getch
<Spooner_> People who just say "doesn't work" don't work.
RurouniJones has quit [Remote host closed the connection]
<shevy> yeah, I have the same question as Xeago
<wmoxam> RurouniJones: recent versions of Debian have good packages
<wmoxam> Debian/Ubuntu
techhelp has joined #ruby
<Spitfire> str = $stdin.getch
<Spooner_> shevy, Xeago require 'io/console'; $stdin.getch
<Spitfire> returns: undefined method `getch' for #<IO:<STDIN>>
<shevy> aha
<Xeago> ah getchar
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> yeah
<shevy> that works
<shevy> require 'io/console'; $stdin.getch
<shevy> Spitfire, I just tested it. it works for me. why it does not for you?
<wicked_shell> can someone give me a hint, i wrote a wordcounter using a hashtable, how can i filter common words like "a" and "the" ?
<Spooner_> shevy, Spitfire didn't require.
plotter has joined #ruby
<shevy> Spitfire see you should listen to Spooner_ !!!
<beaky> how well does ruby support functional programming?
<wicked_shell> currently i added a filter array but i don't know how to compare it with the hash keys to exclude them
<shevy> wicked_shell, filter how
<shevy> well ... .reject {|x| your_array.include? x}
<Spitfire> Spooner_, require gets me "LoadError: no such file to load -- io/console"
Takehiro has quit [Read error: Connection reset by peer]
tomzx_mac has quit [Ping timeout: 245 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
<shevy> Spitfire AHA SO DEBIAN CRIPPLED THAT TOO
<shevy> wait
<shevy> what ruby version do you use actually
<wicked_shell> i use list.each puts key + value later
<shevy> in irb do RUBY_VERSION
<Spitfire> RUBY_VERSION
<Spitfire> => "1.9.2"
<shevy> ok
<shevy> debian
<shevy> they hate you
<shevy> they hate ruby
peregrine81 has joined #ruby
<Spitfire> Bastards :(
<shevy> there must be a way to uncripple it
<shevy> because Hanmac_ is using it just fine
baphled has quit [Ping timeout: 248 seconds]
kpshek has joined #ruby
<shevy> beaky depends on the definition... you can use lots of lambdas all the time
<shevy> rack testing code has loads of lambdas
<shevy> lambda { Rack::Utils.parse_nested_query("x[y]=1&x[]=1") }.
<shevy> lib/rack/response.rb: @writer = lambda { |x| @body << x }
<shevy> hmm... a lambda with a name... how odd :\
<shevy> aha, the most common name for lambda:
<shevy> app = lambda { |env| [304, {'Content-Type' => 'text/plain'}, []] }
<Spooner_> shevy, Only odd for you ;)
<shevy> app!
<shevy> yeah
akemrir has quit [Quit: WeeChat 0.4.0]
<shevy> I always thought lambdas are all about being anonymous :(
<wicked_shell> shevy: http://pastebin.com/SHi7Q517
<Spooner_> beaky, Ruby supports a lot of functional stuff, but it isn't optimal. We have lamdas and stuff like map/reduce, so you can go a fair way.
<wicked_shell> shevy: i just want to filter it first and puts the filtered list instead of the hashtable
marr has joined #ruby
<csmrfx> all about Your definition of 'functional'
<csmrfx> you cant avoid 'side effects' in ruby
psyl0n has joined #ruby
jekotia has joined #ruby
chimkan has quit [Quit: chimkan]
whowantstolivefo has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
Takehiro has joined #ruby
peregrine81 has joined #ruby
<wicked_shell> is there a method for excluding matching keys from a hashtable?
<csmrfx> during insertion? or when
<wicked_shell> after insertion
<wicked_shell> like printing only the non matching
<csmrfx> and are you *really* talking about a hash-table?
<wicked_shell> yeah
<wicked_shell> i could also use a array tho
<shevy> wicked_shell pls use a pastie with syntax highlighting :(
ananthakumaran has joined #ruby
<wicked_shell> sorry ^^
<csmrfx> wicked_shell: ri Hash.has_key? enough for your situation?
GeekSir has joined #ruby
chimkan_ has joined #ruby
<wicked_shell> oh
undersc0re97 has joined #ruby
<wicked_shell> i knew there would be something this easy -,-
<wicked_shell> thx
vlad_starkov has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
<shevy> yeah that is the nice thing about ruby
<shevy> for years and years you use something
<shevy> then suddenly someone shows you a much shorter and more efficient way to do it
<wicked_shell> im a noob, just finished the codeacademy courses on ruby ^^
Takehiro has joined #ruby
<wicked_shell> syntax looked nice for pseudocode at first, but once i learned some of it i figured actuall code wouldn't differ much from pseudocode in ruby :D
<Hanmac_> wicked_shell: you could also look at Hash.values_at
<Uranio> would be posible, "rescue" ANY kind exception with the rescue setense?
<Uranio> ?
<wicked_shell> you mean like a global rescue?
<Uranio> yep
<wicked_shell> for all exceptions?
<Uranio> yeeeep...
noxoc has joined #ruby
<Uranio> begin; foo(param); rescue :ALL; puts ':-P'; end
<csmrfx> Why
<csmrfx> Probably no way to do that
<Hanmac_> Uranio: yes, rescue without does rescue all from StandardExceptions, with is okay, "rescue Exception" doees rescue really everything wich is not okay and should not wanted
sbear has quit [Ping timeout: 245 seconds]
<Spooner_> Uranio, rescue rescues all StandardExceptions already.
Giorgio has quit [Ping timeout: 255 seconds]
<Uranio> good to hear it...
<Uranio> thanks
<csmrfx> hnnnh
willob has quit [Quit: Leaving.]
v0n has quit [Quit: WeeChat 0.4.0]
geggam_ has joined #ruby
Virunga has joined #ruby
yacks has joined #ruby
maycon_ has joined #ruby
Takehiro has quit [Remote host closed the connection]
jgrevich has joined #ruby
Takehiro has joined #ruby
Spitfire has quit [Remote host closed the connection]
maycon has quit [Ping timeout: 255 seconds]
girija_ has joined #ruby
joofsh has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby
wreckimn1 has quit [Read error: No route to host]
wreckimnaked has joined #ruby
jrafanie has joined #ruby
dr_bob has quit [Quit: Leaving.]
Takehiro has joined #ruby
dallasm has joined #ruby
dekroning has joined #ruby
alexmreis has quit [Quit: alexmreis]
mercwithamouth has joined #ruby
_nitti_ has joined #ruby
SrPx has joined #ruby
JackyAlcine has quit [Quit: Quit]
_nitti has quit [Ping timeout: 276 seconds]
osaut has joined #ruby
louisror has quit [Ping timeout: 246 seconds]
GeekSir has left #ruby [#ruby]
JohnBat26 has joined #ruby
ralphvdh has joined #ruby
d2dchat has joined #ruby
Virunga has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby
rjmt___ has joined #ruby
<JonnieCache> whys it not ok
<JonnieCache> im not disagreeing id just like to know the specific reason
<JonnieCache> because non standarderror exceptions indicate something is badly wrong, that you cant/shouldnt rescue from?
marr has quit []
atyz has quit [Quit: Linkinus - http://linkinus.com]
v1p has quit [Ping timeout: 276 seconds]
dekroning has quit [Ping timeout: 264 seconds]
mneorr has joined #ruby
whowantstolivefo has quit [Quit: who wants to live forever ?]
dekroning has joined #ruby
v0n has joined #ruby
oposomme has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
senny has quit [Remote host closed the connection]
alexmreis has joined #ruby
<s1n4> is there any audio player in ruby? or any wrapper?
philcrissman has quit [Remote host closed the connection]
main has quit [Ping timeout: 255 seconds]
vinax has joined #ruby
Pandaen has quit [Ping timeout: 252 seconds]
rismoney has joined #ruby
DrShoggoth has joined #ruby
zommi has joined #ruby
blaxter has joined #ruby
Spitfire has joined #ruby
freakazoid0223 has joined #ruby
KelebekUsr1 has joined #ruby
Loaft has quit [Ping timeout: 255 seconds]
ralphvdh has quit [Ping timeout: 248 seconds]
tjbiddle has joined #ruby
<fuzai> s1n4: why not use mpg321?
KelebekUsr1 has quit [Ping timeout: 240 seconds]
<fuzai> how do i join two hashes together into one big hash?
steg132 has quit [Remote host closed the connection]
zeade has joined #ruby
geggam_ is now known as geggam
kpshek has quit []
<workmad3> fuzai: big_hsh = hsh1.merge(hsh2)
tjbiddle has quit [Client Quit]
Loaft has joined #ruby
recycle_ has joined #ruby
<fuzai> cool thank you
ralphvdh has joined #ruby
<Hanmac_> fuzai infomation: in this sample the hsh2 does overwrite the keys from hsh1
<JonnieCache> holy fucking shiut
Umren has joined #ruby
gosshedd has quit [Ping timeout: 255 seconds]
<JonnieCache> rubygems.org has been haxxored
jgrevich_ has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
megha is now known as firewall
lolsuper_ has quit [Ping timeout: 256 seconds]
recycle has quit [Read error: Connection reset by peer]
recycle_ has quit [Remote host closed the connection]
goddard has joined #ruby
goddard has quit [Changing host]
goddard has joined #ruby
<JonnieCache> apparently it was just a PoC
<s1n4> fuzai: I use it, and I found a good mp3 player, thats audite
<beaky> can you return blocks in ruby?
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
jaequery has joined #ruby
aganov has quit [Remote host closed the connection]
<beaky> also, waht is the dfirfecnee btween lambdas and blckos?
<beaky> hat sit eh diffewrence between lambdas and blocks*
BizarreCake has joined #ruby
<beaky> what is the difference**
<tobiasvl> beaky: you can return Procs
<beaky> ah
<tobiasvl> a Proc is a block that can be named
jrafanie has quit [Quit: jrafanie]
maletor has joined #ruby
<beaky> ah thanks
<Hanmac_> beaky procs and lambdas are objects, an block is not (directly)
ExxKA has joined #ruby
arya has quit [Ping timeout: 248 seconds]
<JonnieCache> this channel is remarkably calm
wallerdev has joined #ruby
<JonnieCache> considering our community's package archive just got hacked
chrishough has joined #ruby
<JonnieCache> i guess the panic is in the ruby-lang channel
<Hanmac_> an block turns imiditly into an object when you request it as an object ... like light ways turn into particles if they feel observed
<JonnieCache> Hanmac_: controvertial statement there :)
<workmad3> JonnieCache: how is what happens controversial?
<workmad3> JonnieCache: the moment you attempt to treat a block as an object, it's a proc
<JonnieCache> "turn into particles" thats the copenhagen interpretation isnt it?
sailias has quit [Read error: Connection reset by peer]
<workmad3> JonnieCache: oh that... yeah, that's probably controversial (or wrong)
<JonnieCache> not exactly accepted. but yeah basically you should ignore me :)
sailias has joined #ruby
kpshek has joined #ruby
<Hanmac_> i dont trust this light photons ... they are "changelings" imo
poga has quit [Remote host closed the connection]
<JonnieCache> wut
yshh has joined #ruby
oerrze has joined #ruby
<beaky> llmkllklmklmlkmlkmklmklmlkklm
sayan has quit [Read error: Connection reset by peer]
<beaky> oops wrong channel
<workmad3> 'is light a wave or a particle?' 'which one makes sense for your maths?'
jonathanwallace1 has quit [Ping timeout: 276 seconds]
<JonnieCache> i was under the impression that they are actually waves, that QFT is the "reality" and the particles are just mathematical objects
MEAT_CHICKEN has joined #ruby
<MEAT_CHICKEN> Hi, running the benchmark tool here
<workmad3> JonnieCache: if they were waves, how could we observe particle behaviour from them?
<MEAT_CHICKEN> the results are formatted weird.
<MEAT_CHICKEN> Any idea on how to solve?
<workmad3> JonnieCache: in physical experiments
jondon has joined #ruby
the_mentat has joined #ruby
<JonnieCache> the same reason we observe wave behaviour when we look at the sea, even though its just water molecules
<JonnieCache> its an illusion of scale
<jondon> Blocks return values don't they? How do I return a value before the final statement in a block. I can't use return because that returns from the method, not the block.
interactionjaxsn has quit [Remote host closed the connection]
<JonnieCache> but yeah im not a physicist. im just parroting what i heard Sean Carrol really
sailias1 has joined #ruby
<JonnieCache> *heard from
sailias has quit [Quit: Leaving.]
<workmad3> JonnieCache: then how do we observe wave behaviour in a *single* particle? (again actual, physical experiments)
<JonnieCache> qft is weird? thats the best i can do
<JonnieCache> all i know is i watched a lecture where carroll said that modern physics agrees that waves are the reality and particle-like effects are only the product of experimental effects
<JonnieCache> oops circular defintition there, but im sure you get what i mean
<workmad3> :)
yshh has quit [Ping timeout: 264 seconds]
frogstarr78 has joined #ruby
<workmad3> JonnieCache: ah, QFT actually treats particles as fields
<workmad3> JonnieCache: subtle distinction ;)
<Hanmac_> i like this video about that: https://www.youtube.com/watch?v=DfPeprQ7oGc
mmitchell has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mmitchell has joined #ruby
<jondon> Is anyone able to answer my block return question? I can't figure it out from googling
<shevy> jondon what was the question
<shevy> jondon blocks always go to the method
<shevy> if you want to "intercept" it, use yield, then do something with that
<shevy> hmm I think there is a way to turn a block into a proper object...
Spooner_ has quit [Remote host closed the connection]
<workmad3> jondon: structure your block so that the return value you want is the result of the last expression (typically done with an if statement)
<JonnieCache> workmad3: the way ive always heard it explained is that particles how we as macro-objects encounter energetic disturbances propagating through fields
MEAT_CHICKEN is now known as MEATCHICKEN
<JonnieCache> once there is enough energy in the wave, a particle "pops into existance" from our point of view
banisterfiend has joined #ruby
jondon has quit [Quit: Page closed]
<JonnieCache> but really its just an energetic wave
<shevy> JonnieCache you often sound like a mad prophet!
sambio has quit [Ping timeout: 276 seconds]
<shevy> meta-macro-objects
Guest45659 has joined #ruby
<shevy> lambda-meta-macro-objects
<JonnieCache> modern physics often has that effect
<shevy> lambda-meta-macro-objects propagating through eletrocmagnetc fields in hyperspace
<Hanmac_> jonnieCache: thats the funny point about the void ... if its empty enouth ghosty particles appear and disappear before the laws of physics can react :D
Guest54315 has quit [Ping timeout: 255 seconds]
<shevy> JonnieCache I know, one friend is a physicist, the parties he had were famous :D
koos303 has joined #ruby
interactionjaxsn has joined #ruby
hekin has joined #ruby
benlieb has joined #ruby
sn0wb1rd has joined #ruby
<workmad3> JonnieCache: yeah, QFT is beyond my ken really :)
blazes816 has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
SrPx has quit [Ping timeout: 248 seconds]
<JonnieCache> tbh its just a safe cheap alternative to LSD for me really
<JonnieCache> i investigate it when i feel like having my mind blown but i dont pretend to understand it
<shevy> lol
<workmad3> JonnieCache: heh :) you could also try nutmeg for that ;)
<Hanmac_> i have an another article where they turned this "virtual particle" into real ones with a wavelength-mirror ... :P ... but i dont have this article currently there
dougireton has joined #ruby
arya has joined #ruby
dougireton has quit [Client Quit]
mrbloo has quit [Quit: mrbloo]
lolmaus has quit [Read error: Connection reset by peer]
<speakingcode-wor> good ole lysergic
SPYGAME has quit [Quit: Leaving]
<shevy> hehehe
lolmaus has joined #ruby
Virunga has joined #ruby
<JonnieCache> virtual particles is supposedly also how black holes leak information
<speakingcode-wor> this is where #ruby gets derailed for the next oh i dunno, 8-12 hours
recycle has joined #ruby
<JonnieCache> sorry
<speakingcode-wor> haha no no, i don't mind. i was just stating it humorously
Hanmac_ has quit [Ping timeout: 245 seconds]
baphled has joined #ruby
templaedhel has joined #ruby
koos303 has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
<shevy> hey ok let's turn this on topic
<shevy> anyone ever coded ruby while under the influence of LSD?
<shevy> *coded in
<speakingcode-wor> i learned ruby under the influence
<JonnieCache> respect
oposomme has quit [Ping timeout: 248 seconds]
<speakingcode-wor> or well i 'll say, started learning. codecademy. learning never stops
dougireton has joined #ruby
grzywacz has quit [Quit: :wq]
mark_locklear has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
<JonnieCache> lupine: at last, someone else here is panicing
<lupine> I'm not panicking
<JonnieCache> alright not panicing but noticing
<lupine> :)
<JonnieCache> i tabbed to this shell hoping for absolute irc anarchy
<JonnieCache> if anything its calmer than normal
<lupine> tl;dr: if you installed any gems this week, you might have executed arbitrary code
<JonnieCache> lupine: whats new
<lupine> (but almost certainly not)
qohelet_ has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 264 seconds]
eldariof has quit [Ping timeout: 252 seconds]
MEATCHICKEN has quit [Quit: Page closed]
jaequery has quit [Quit: Computer has gone to sleep.]
Kuifje has joined #ruby
baroquebobcat has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
the_mentat has quit [Quit: Computer has gone to sleep.]
s1n4 has quit [Quit: leaving]
elico has quit [Ping timeout: 245 seconds]
mephux has quit [Excess Flood]
qohelet_ has quit [Client Quit]
<fuzai> is there a way i can capture the stdout out of a running script from within a running script? i'd like to grab the output from my eventmachine debug lines and pipe them to a websocket
qohelet_ has joined #ruby
hashpuppy has quit [Read error: Connection reset by peer]
mockra has joined #ruby
thisirs has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
mephux has joined #ruby
araujo has quit [Ping timeout: 264 seconds]
guilherme__ has joined #ruby
<speakingcode-wor> use pipes?
<JonnieCache> $stdout is an IO object
alex__c2022 has joined #ruby
<fuzai> hmmm
carloslopes has quit [Remote host closed the connection]
wicked_shell has quit [Remote host closed the connection]
swex has joined #ruby
<speakingcode-wor> ruby something | ruby somthingelse
<fuzai> i thought of doing something like that
arturaz has joined #ruby
<fuzai> but this environment is a pain to spawn processes in
<speakingcode-wor> can use tee also if you need to direct two ways
<fuzai> i guess i'll just suck it up i guess
<speakingcode-wor> o
<JonnieCache> cant you just grab the $stdout object and redirect it in ruby?
<fuzai> i'm gonna try that first
<JonnieCache> you can reassign the var to a different IO and ruby will write to that instead
<speakingcode-wor> ^^ JonnieCache is probably right. i'm a noob
carloslopes has joined #ruby
<fuzai> setup an eventmachine timer to poll it
elico has joined #ruby
dougireton has quit [Quit: Leaving.]
swex_ has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 276 seconds]
<JonnieCache> this rubygems thing seems pretty bad actually :( http://news.ycombinator.com/item?id=5140130
buibex has quit [Remote host closed the connection]
oerrze has quit [Remote host closed the connection]
dougireton has joined #ruby
alvaro_o has joined #ruby
dougireton has quit [Client Quit]
rippa has joined #ruby
joeycarmello has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
dougireton has joined #ruby
dekroning has quit [Ping timeout: 264 seconds]
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
Choobie has quit [Ping timeout: 276 seconds]
Uranio has quit [Quit: while you reading this, a kitty dies]
danneu has joined #ruby
beaky has quit [Ping timeout: 256 seconds]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
recycle has quit [Remote host closed the connection]
ixti has joined #ruby
beaky has joined #ruby
ixti has quit [Client Quit]
<beaky> what is ruby's most powerful feature?
<JonnieCache> blocks
<beaky> ah
<deed02392> it's shiny
<tobiasvl> beaky: meta-programming done easy
dr_bob has joined #ruby
<tobiasvl> IMHO
samphippen has quit [Quit: Computer has gone to sleep.]
<beaky> yeah I don't know of any other language (besides smalltalk and maybe LISP) where I can do that kind of thing
<JonnieCache> blocks are a simple feature compared to the fancy functional/meta stuff but they provide so much power for such a simple thing
<Mon_Ouie> Funny how most people avoid blocks whenever possible
<beaky> but isn't metaprogramming a 'with responsibility comes power' ?
<JonnieCache> Mon_Ouie: do they?
<beaky> aren't block everywhere in ruby on rails?
ralphvdh has quit [Quit: ralphvdh]
benlieb has quit [Quit: benlieb]
k610 has quit [Quit: Leaving]
<Mon_Ouie> &:something and the search for similar shortcuts
<tobiasvl> beaky: yes, sure it is.
<tobiasvl> beaky: some people don't like monkey patching
<JonnieCache> Mon_Ouie: thats just annoyance at the absense of a scala style _ implicit variable
rakl has joined #ruby
<JonnieCache> im shocked thats not in ruby2 tbh
<beaky> btw, does ruby have something like pypy to speed up code?
ckrailo has joined #ruby
frem has joined #ruby
recycle has joined #ruby
gnarmis has joined #ruby
ixti has joined #ruby
wreckimnaked has quit [Ping timeout: 252 seconds]
<beaky> all my ruby applications take ages to 'kick in' and do something
<speakingcode-wor> theres jruby
DaltonUS has quit [Quit: DaltonUS]
<speakingcode-wor> dunno how it performs tho but i imagine its a litle bit faster maybe? shrug
gnarmis has left #ruby [#ruby]
<beaky> ah :(
<JonnieCache> rubinius is the equivalent of pypy
the_mentat has joined #ruby
<JonnieCache> jruby is very fast to run, very slow to start
<JonnieCache> beaky: are all your ruby apps rails apps by any chance?
<David_Miller> Is there a way to get a numeric id of an object?
<JonnieCache> rails is very slow to start regardless of how you run it
nga4 has quit [Ping timeout: 255 seconds]
<Mon_Ouie> David_Miller: object_id. Why do you care about that?
<beaky> JonnieCache: yes
samphippen has joined #ruby
<beaky> is rails known for being dog slow? ^^
<JonnieCache> yeah pretty much aha
etcetera has joined #ruby
<Mon_Ouie> Other rubies rarely (if ever) beat YARV for start up time
<JonnieCache> but it is fast to develop in, and developer time is a lot more expensive than servers
<beaky> ah was hoping it would be at least as fast as PHP :(
<Xeago> beaky: zend optimizers are slow
<JonnieCache> its not "dog slow" but it isnt fast at all
<David_Miller> Mon_Ouie: just looking for a "random" value that perisists with the instance to seed a hash with
joofsh has quit [Remote host closed the connection]
<David_Miller> thanks
<David_Miller> that works
<beaky> but yes developer time is a priority so I would pick rails over the franekstein php
<Mon_Ouie> Any reason not to just use the default hash function then? (Object#hash)
<Xeago> beaky: rails is a framework, php is a language
jaequery has joined #ruby
<Xeago> it is like comparing melons to hot sexy girls
sn0wb1rd has joined #ruby
<speakingcode-wor> beaky not sure what you're working on but you might find sinatra more suitable if it's not huge and complex
<beaky> yeah, rails is to php as ruby is to zend's mvc framework
<Xeago> beaky: no
<speakingcode-wor> i think it would be, rails is to ruby what zend is to php
<Mon_Ouie> If you're working on something huge and complex, you're doing it wrong already :p
pcarrier has quit []
<beaky> ah I'll check out sinatra tehn
<speakingcode-wor> but i don't know much about zend other than it's a big monolithic framework so that may not even be accurate
<David_Miller> Mon_Ouie: yeah I will use #hash, thanks
<Xeago> speakingcode-wor: zend is more than a framework
<Xeago> zend is also a bytecode optimizer
epylinkn has joined #ruby
jean-louis has quit [Ping timeout: 240 seconds]
<speakingcode-wor> sinatra is simple. routing, templating.. thats about the gist of it, btu it's flexible n powerful with that simplicity. similar to express for node, flask for python or i dunno, Slim for php
<beaky> I hope ruby becomes lightning fast someday, like what happened to javascript :D
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<Xeago> beaky: javascript still is not lightning fast, comparisons to c lack GC's
banisterfiend has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<beaky> ah
<speakingcode-wor> what is the fastest of the modern popular dynamic/interperted langs? python?
inokenty has quit [Quit: Leaving.]
<Xeago> difficult to say
gosshedd has joined #ruby
__BigO__ has quit [Remote host closed the connection]
<Xeago> c-sharp can run line by line
SrPx has joined #ruby
<speakingcode-wor> c sharp isn't dynamic tho, no?
<Xeago> it can operate fully dynamic
mikecmpbll has quit [Client Quit]
<speakingcode-wor> o
Loaft has quit []
himsin has quit [Ping timeout: 272 seconds]
ananthakumaran has quit [Quit: Leaving.]
Loaft has joined #ruby
<JonnieCache> you should learn rails first then sinatra
RonScagz has joined #ruby
<JonnieCache> and you should take the lessons that rails teaches you about rigid design, and apply them to sinatra's less insane environment
Spooner has joined #ruby
<speakingcode-wor> i've never touched rails
DrCode has quit [Quit: ZNC - http://znc.in]
mmitchel_ has joined #ruby
<speakingcode-wor> though i've used activerecord
<David_Miller> as long as you don't touch the 3rd one
<David_Miller> you are good
<JonnieCache> speakingcode-wor: it doesnt matter which language is "faster" because your app will be IO bound anyway
yshh has joined #ruby
goddard has left #ruby ["Leaving"]
<JonnieCache> you could do it in fortran, it will still run at the speed of your disk and your network
<speakingcode-wor> JonnieCache: yeah it's not a debate i have much concern about, was just curious if there is a claimed winner
<JonnieCache> people who understand computers know that there cant be a winner ;)
alex__c2022 has quit [Ping timeout: 248 seconds]
__BigO__ has joined #ruby
louisror has joined #ruby
<speakingcode-wor> yeah that's mostly true
ephemerian has quit [Quit: Leaving.]
<_br_> JonnieCache: saying that you should learn rails first then sinatra is the same as saying apples are better than oranges.
arya_ has joined #ruby
phinfonet has joined #ruby
<JonnieCache> no its more like saying walk before you run
<speakingcode-wor> if you have two identical machines/environments, each with a different language/engine doing the same operaton on the same data in memory, one might be faster ;-)
Vert has joined #ruby
jlast has quit [Read error: Connection reset by peer]
mmitchell has quit [Ping timeout: 248 seconds]
jlast_ has joined #ruby
<phinfonet> Good Evening
dmiller has quit [Ping timeout: 240 seconds]
markalanevans has joined #ruby
himsin has joined #ruby
alex__c2022 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mrbloo has joined #ruby
rowsdower has joined #ruby
altamic has quit [Quit: altamic]
<speakingcode-wor> i mean i, in my limited exposure, find rails a bit too opinionated for my taste, but i never appraoched ruby unitl after already having some years of architecting under my belt in other langs, so yeah. i think JonnieCache is saying play sheet music before you compose
<_br_> JonnieCache: Different frameworks with different approaches on the same language. Makes no sense to recommend rails over sinatra. Depends on the task. It makes more sense to thoroughly review e.g. owasp
zigomir has quit [Quit: zigomir]
templaedhel has quit [Quit: Leaving...]
haxrbyte has quit [Ping timeout: 245 seconds]
Giorgio has joined #ruby
<speakingcode-wor> i don't think he is recommending rails over sinatra, just recommending to look at it and learn form it before going into sinatra, which is probably good advice for someone new to structuring applications (sorry to keep speakingo n your behalf JonnieCache )
MattRB has joined #ruby
Udom0 has joined #ruby
<shevy> I am gonna reveal a secret now
<shevy> I hate bugs...
__BigO__ has quit [Remote host closed the connection]
<Gate> but they love you and want to be your friend.....
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
therod has quit [Quit: Leaving...]
<shevy> no
<shevy> I must create a language without bugs
brianpWins has joined #ruby
<shevy> where documentation is code too
SrPx has quit [Quit: SrPx]
<shevy> nah, screw that... too much work
__BigO__ has joined #ruby
<_br_> shevy: hehe good luck... you can try Knuth's cweb ^^
<breakingthings> shevy: I'm going to make a language that's all bugs
dr_bob has quit [Read error: Connection reset by peer]
<breakingthings> anything you create will be a stroke of pure luck
<shevy> Knuth?
HAKEON has joined #ruby
<_br_> breakingthings: see malborge
<breakingthings> which will make all projects written in it more valued
<shevy> breakingthings that does not sound very useful
dougireton has quit [Quit: Leaving.]
hekin has quit [Quit: hekin]
<shevy> breakingthings I was not quite kidding about bug-free language btw... some kind of OOP language that is simulated along living cells. when bugs would happen, the system would be resilient and auto-corrective
ixti has quit [Read error: Connection reset by peer]
x82_nicole has quit [Quit: Computer has gone to sleep.]
moshee has quit [Ping timeout: 276 seconds]
bdnelson has joined #ruby
<breakingthings> _br_: no, not just a pain in the ass to write, just spontaneously malfunctioning code–functions that work perfectly fine in one instance, but break crazily in another
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<workmad3> shevy: it isn't the language you need to make bug-free
<workmad3> shevy: it's the implementation :P
<_br_> shevy: evolutionary languages are fun.. there are plenty of papers on this topic. Doesn't really work well unfortunately :(
rowsdower has left #ruby ["Konversation terminated!"]
<_br_> breakingthings: self-modifying code .. sounds like some sort of virus language :D
<Mon_Ouie> Well, languages can have "bugs" in their specification too
<breakingthings> Sounds pretty accurate _br_
dougireton has joined #ruby
<JonnieCache> speakingcode-wor: you got my views pretty correct :)
<_br_> I personally like the whitespace language. It makes typing so much more easy.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<workmad3> Mon_Ouie: true
<shevy> workmad3 hmm, I'd actually rather like to go the erlang route, just extend it
<workmad3> Mon_Ouie: or, in the case of C, lovely 'this behaviour is undefined' section or 'this behaviour is implementation defined'
benlieb has joined #ruby
adeponte has joined #ruby
mahmoudimus has joined #ruby
<rismoney> i just want to divide by 0 already, i mean wtf - lol
<Gate> shevy: bug free programs are like lightspeed. If you have any mass whatsoever you can only get close, with each step closer taking exponentially more energy.
<fuzai> EventMachine.popen("./neuroBot.rb", RubyCounter) how do i write data to that?
BoomCow has joined #ruby
<_br_> Whats the hot new language these days anyway the kids play with? Io?
<JonnieCache> go is pretty sweet
<fuzai> Ruby for me
<Muz> GoLang.
jduan1981 has joined #ruby
<speakingcode-wor> shevy: if i'm not mistaken i believe there is research on resilience modeled after biological immune systems
<shevy> Gate if you would have a million monkeys for free, they might create a perfect program, and 999.999 buggy ones. you can then just discard the buggy ones
<workmad3> _br_: PDP-11 assembler
<Gate> go and haskell are all the rage, But I'm still with my one true love, ruby.
baphled has quit [Ping timeout: 255 seconds]
<speakingcode-wor> that may be in the context of system security and reliablity tho, not sure about language and data
dallasm has left #ruby [#ruby]
<_br_> workmad3: haha... yeah that one is the rage
<shevy> _br_ I think Io died years ago :(
<shevy> and all because they used := for assignment!!!
<_br_> shevy: what dead? noo :(((
<shevy> yeah kinda
tjbiddle has joined #ruby
timonv has quit [Remote host closed the connection]
<Gate> shevy: if a program lacks intent, can it be said to work as intended?
<shevy> it lost momentum as the years passed by
<shevy> Gate if you have a specific goal in mind, sure!
<workmad3> shevy: 'There's a theory that if you gave a million monkeys a million typewriters, they would eventually randomly type the complete works of shakespear. Now, thanks to the internet, we know this theory is wrong'
<speakingcode-wor> isn't something popular based (loosely anyway) on io? i feel like i remember hearing that, but meh
<shevy> workmad3 well you could breed the better monkeys :D
<shevy> then you end up with the shakespeare monkey eventually
DaltonUS has joined #ruby
JohnBat26 has joined #ruby
<speakingcode-wor> workmad3: have you googled 'complete works of shakespseare' ?? i bet its out there
<workmad3> :)
<speakingcode-wor> i bet someone has typed it. completely bored and randomly. not by accident, of course
<workmad3> some people taking that a bit too literally :P
<shevy> I watched the old "Planet of the Apes"
HAKEON has quit [Read error: Connection reset by peer]
<_br_> good stuff
<shevy> I am gonna bet on the monkeys rather than the humans in the long run
JumpMast3r has quit [Quit: JumpMast3r]
baphled has joined #ruby
hackerdude has joined #ruby
<shevy> speakingcode-wor well if given enough time, we'd probably even find someone so bored enough to indeed type it all randomly...
breakingthings has quit []
arkiver has joined #ruby
<speakingcode-wor> i mean
shtirlic has quit [Remote host closed the connection]
<fuzai> http://eventmachine.rubyforge.org/EventMachine.html#popen-class_method could i just change def post_init to def send_data data; send_data "#{data}" and call it later from another event?
maycon_ has quit [Changing host]
maycon_ has joined #ruby
maycon_ is now known as maycon
<fuzai> or am i supposed to catch the return of popen and do it to that
<speakingcode-wor> how many charactersi s an average shakespear work? so there's 26^(that many chars) possible random texts of the same length, ignoring punctuation and capitlization
<fuzai> i'm really confused on how to send data to that popen from later in event machine
hashtree has quit []
<speakingcode-wor> lets find a shakespeare work and get a char count, and do some hard math on this
<workmad3> speakingcode-wor: I'm sure he uses numbers too, so 36^char_count
<speakingcode-wor> in good fanciful english numbers are usually written out tho
dougireton1 has joined #ruby
<shevy> fuzai no real clue, I never quite understood popen
<workmad3> some are :)
HAKEON has joined #ruby
a_a_g has joined #ruby
dougireton has quit [Remote host closed the connection]
<speakingcode-wor> but this is a bottom-line case tho
<Xeago> speakingcode-wor: what about dates
<_br_> speakingcode-wor: just search for "shakespeare corpus" should be out there
<workmad3> I think ignoring punctuation is a bit bad practice too... at least include comma, apostrophe and period... so 29^char_count
zeade has quit [Quit: Leaving.]
jtharris has quit [Quit: WeeChat 0.3.9.2]
HAKEON_ has joined #ruby
<Xeago> but!
<Xeago> why?
<speakingcode-wor> he did 37 plays
<Xeago> exclamation mark and question-mark are important too
<workmad3> Xeago: good point, 31 :)
<Xeago> but we are programmers right;
<workmad3> capitalization is important too
<Xeago> semi colon and colon require love
<speakingcode-wor> nah cause
Virunga has quit [Remote host closed the connection]
<shevy> lol
<speakingcode-wor> if a monkey randomly types a shakespeare play with no caps
<workmad3> "Capitalization is the difference between 'I helped my uncle Jack off a horse' and 'I helped my uncle jack off a horse' "
<speakingcode-wor> im satisfied that the monkey randomly typed a shakespeare play
<shevy> workmad3 what about spoken english :D
<workmad3> shevy: you emphasise a name differently ;)
<Xeago> unclejack
<Xeago> instead of uncle jackoff
ixti has joined #ruby
HAKEON__ has joined #ruby
<speakingcode-wor> anyway
<shevy> I heard the japanese require a lot of context-specific word information
<speakingcode-wor> damnit
<speakingcode-wor> 26!!! we're doing minimum case here
<_br_> Xeago: hehe... reminds me of this http://bash.org/?925050
<workmad3> speakingcode-wor: minimum case is still 27, not 26
<workmad3> speakingcode-wor: spaces :P
andrew__ has joined #ruby
<shevy> hahaha that bash comment is epic
aaronmcadam has quit [Quit: aaronmcadam]
miskander has quit [Quit: miskander]
cdt has quit [Quit: Ex-Chat]
HAKEON_ has quit [Read error: No route to host]
HAKEON has quit [Read error: Connection reset by peer]
HAKEON__ is now known as HAKEON
frem has quit [Ping timeout: 246 seconds]
<workmad3> speakingcode-wor: and in reality, shakespear was a wordsmith... punctuation placed emphasis and meaning into his work... it's much more important in, say shakespear, than in an IRC channel :P
tjbiddle_ has joined #ruby
banisterfiend has joined #ruby
tjbiddle_ has quit [Read error: Connection reset by peer]
lolmaus has quit []
epylinkn has quit [Quit: Leaving.]
tjbiddle_ has joined #ruby
<workmad3> speakingcode-wor: a mis-placed comma can change the meaning of an entire play, if it was placed badly
rupee has joined #ruby
<_br_> workmad3: ... was "a wordsmith". I wonder if that wasn't "they were". http://en.wikipedia.org/wiki/Shakespeare_authorship_question
<speakingcode-wor> ok but if a monkey randomly types a shakespeare play all in lower case and without punctuation i'm still satisfied it randomly typed the play
miskander has joined #ruby
<workmad3> speakingcode-wor: be satisfied all you want
<workmad3> speakingcode-wor: it's still not the play ;)
tvw has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
tjbiddle_ has quit [Read error: Connection reset by peer]
chrismcg is now known as zz_chrismcg
samuel02 has joined #ruby
<workmad3> _br_: ah, that old bs :)
HAKEON has quit [Read error: Connection reset by peer]
<speakingcode-wor> so Cymbeline is ~ 150,000 chars. , about 130,000 for romeo and juliet...
tjbiddle_ has joined #ruby
punkrawkR^Home has joined #ruby
<_br_> Surgeon Simulator (nsfw, animated gore) - http://www.youtube.com/watch?v=v2XkTIYhQC8 - LOL the comments from the guy....
hashtree has joined #ruby
moos3_ has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
baphled has quit [Ping timeout: 256 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
Vainoharhainen has quit [Ping timeout: 264 seconds]
moos3 has quit [Ping timeout: 244 seconds]
moos3_ is now known as moos3
<speakingcode-wor> so lets just say, on average, 125,000 chars per play. times 37 plays. so there's 26^(37*125000) possible permutations of letters (ignoring case) equal to the length of shakesspeares plays
tjbiddle has joined #ruby
<speakingcode-wor> thats a big number. and we have what, a million monkeys?
osaut has quit [Quit: osaut]
<workmad3> speakingcode-wor: 27, not 26
<workmad3> speakingcode-wor: you have to include spaces at a minimum
<speakingcode-wor> ok sure
Spooner has quit [Remote host closed the connection]
<workmad3> >> p 27**(37 * 125000)
<eval-in> workmad3: Output: "/tmp/execpad-e70fff3c3556/source-e70fff3c3556:1: warning: in a**b, b may be too big\nInfinity\n" (http://eval.in/7973)
<workmad3> haha
<speakingcode-wor> so 27^(4625000)
<workmad3> >> p 27 ** 4625000
<eval-in> workmad3: Output: "/tmp/execpad-6b2c3e568f92/source-6b2c3e568f92:1: warning: in a**b, b may be too big\nInfinity\n" (http://eval.in/7974)
<workmad3> :(
<speakingcode-wor> lmao
<speakingcode-wor> we need a million monkeys just to do the calculation
templaedhel has joined #ruby
nat2610 has joined #ruby
<samuel02> why does creating a tempfile with different tmp path then default fail, permissions seem correct?
samphippen has quit [Quit: Computer has gone to sleep.]
nga4 has joined #ruby
tjbiddle_ has quit [Ping timeout: 248 seconds]
<samuel02> that question mark should have been after the first sentence
_bart has quit [Ping timeout: 252 seconds]
caleb_io has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
<samuel02> and actually, maybe behind the second one as well
caleb_io has quit [Client Quit]
Astral_ has quit [Read error: Connection reset by peer]
robotmay has quit [Ping timeout: 276 seconds]
Astral_ has joined #ruby
axl_ has quit [Remote host closed the connection]
Guest45659 has quit [Quit: ChatZilla 0.9.89 [Firefox 17.0.1/20121128204232]]
<speakingcode-wor> so take that big number, and divide by a million. and that's how many 125,000 char permutations each monkey would have to do to 'gaurnatee' shakespeares works at minimum
axl_ has joined #ruby
Virunga has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
<speakingcode-wor> assuming they never repeat each other and ignoring punctuation and capitlization. eek
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Virunga has quit [Remote host closed the connection]
angusiguess has joined #ruby
<workmad3> speakingcode-wor: and then assume something like 10 characters a second
Kingy has joined #ruby
<speakingcode-wor> yup... so, never happens
banisterfiend has joined #ruby
<_br_> speakingcode-wor: 27^(4625000) is a "bit" large as it has way more decimals than atom in our universe...
vlad_starkov has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 248 seconds]
<samuel02> or could it be any other reason than permissions?
robotmay has joined #ruby
<speakingcode-wor> i don't accept that there is a hard limit of atoms in our universe
<speakingcode-wor> or if there is, that we have any fathom on what the number is
<workmad3> speakingcode-wor: switch 'universe' for 'observable universe' maybe?
c0rn has joined #ruby
<_br_> speakingcode-wor: "observable universe"
<workmad3> speakingcode-wor: still, those million monkeys would pump out 315360000000000000 characters in 1000 years
Xeago has quit [Remote host closed the connection]
enroxorz-work is now known as enroxorz
<_br_> samuel02: Can you be a bit more clear what the error is?
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> now just need to do a log base 27 on that...
<workmad3> speakingcode-wor: right, so in 1000 years, those monkeys would have pumped out 27^^12.22 characters
<workmad3> speakingcode-wor: give them a million years, 27^14.32 characters...
io_syl has joined #ruby
whowantstolivefo has joined #ruby
Xeago has joined #ruby
<workmad3> speakingcode-wor: hmm, if they'd started at the big bang and gone up to now, they'd still only be at 27^17.25 chars...
robotmay has quit [Ping timeout: 248 seconds]
<workmad3> speakingcode-wor: so yeah, not gonna happen that they'd get to 27^4625000 :)
<speakingcode-wor> nod so it's not possible
<speakingcode-wor> if we made a computer at the big bang that was cranking oout permutations, it still wouldn't be done
frem has joined #ruby
chrishough has quit [Quit: chrishough]
<speakingcode-wor> in fact i'm pretty sure, without calculating, that doing just a single work (say 27^125000) wouldn't be done
eldariof has joined #ruby
xemu has joined #ruby
<workmad3> speakingcode-wor: well, if that machine was pumping out 10 characters a microsecond, that would still only be up to 27^21.45
<_br_> Really ridiciously big numbers are fun. http://en.wikipedia.org/wiki/Graham%27s_number
<workmad3> _br_: :D
beiter has joined #ruby
<workmad3> _br_: not as much fun as normal numbers ;)
adeponte has quit [Remote host closed the connection]
<workmad3> afaik, it's still not proven that pi is normal
philcrissman has joined #ruby
<speakingcode-wor> here's a question
AltGrendel has quit [Quit: Leaving.]
beneggett has joined #ruby
<speakingcode-wor> if the number is bigger than the number of atoms in the observable universe... is there even a machine that can represent the number in long form?
dekroning has joined #ruby
<_br_> workmad3: normal numbers ... meh ... I'll take perfect ones every day ;)
Uranio has joined #ruby
<workmad3> _br_: normal numbers are fun though... decimal expansion of a normal number contains every number
<_br_> :) we sound like geeks from #math ^^
aapzak has quit [Read error: Connection reset by peer]
aaronmcadam has joined #ruby
<_br_> Sandwhich time.
<workmad3> _br_: e^(i*tau) = 1 !!
cha1tanya has quit [Ping timeout: 256 seconds]
<workmad3> tau > pi !!
<_br_> couldn't agree more !
stayarrr has joined #ruby
<workmad3> _br_: it's not just agreement, it's mathematical truth ;)
<_br_> for people who don't understand... -> http://tauday.com/
<speakingcode-wor> math was my 2nd major, largely unutlized these days tho. i liked graph theory n combinatorics tho (hence the let's count the permutations)
BoomCow has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Remote host closed the connection]
<workmad3> _br_: have you already started planning your pi-day and tau-day celebrations for the year?
DrCode has joined #ruby
BoomCow has joined #ruby
<_br_> workmad3: hehe... I wish .. you're having a party?
robotmay has joined #ruby
<workmad3> yeah, I'll invite all my socialable math friends
<_br_> speakingcode-wor: don't let your skill go to waste.. math is fun.. to many interesting things you can do
templaedhel has quit [Quit: Leaving...]
mrsolo has joined #ruby
<workmad3> I'm sooo alone
<_br_> :) thats nice... wish people around me would understand tau even -.-
dmerrick has joined #ruby
Kingy_ has joined #ruby
dmerrick has quit [Remote host closed the connection]
dmerrick has joined #ruby
banisterfiend has joined #ruby
<_br_> oh. irony. aehm
<workmad3> _br_: :P
dekroning has quit [Ping timeout: 252 seconds]
<_br_> lol
<speakingcode-wor> well i'm a software engineer so it comes in handy from time to time but i don't do much number crunching on a day to day basis
Bonieky has joined #ruby
joofsh has joined #ruby
<workmad3> bah, I'm a software developer :P
* workmad3 has just finished reading 'Software Craftsmanship'
andrew__ is now known as freezway
<_br_> I'm just a monkey typing random characters ^^
yacks has quit [Remote host closed the connection]
<speakingcode-wor> when i do signal processing stuff that seems to be where i use it most in my job, i guess i use 'applied graph theory' quite a bit
Kingy has quit [Ping timeout: 248 seconds]
joofsh has quit [Remote host closed the connection]
Kingy_ has quit [Client Quit]
joofsh has joined #ruby
miskander has quit [Quit: miskander]
<_br_> If you like math.. this can be quite fun ... http://projecteuler.net/
chrishough has joined #ruby
jtharris has joined #ruby
<_br_> speakingcode-wor: oh yeah graph theory ... had spectral clustering fun these days :/
adeponte has joined #ruby
BizarreCake has quit [Read error: Connection timed out]
<speakingcode-wor> yup i know of project euler, haven't looked in a while
rdark has quit [Quit: leaving]
miskander has joined #ruby
dougireton1 has quit [Quit: Leaving.]
<_br_> workmad3: how about the book? was it worth reading it? (software Craftsmanship)
neku has quit [Quit: Linkinus - http://linkinus.com]
<speakingcode-wor> haven't heardo f software craftsmanship but pragmatic programmer is a good one
willob has joined #ruby
<workmad3> _br_: it's pretty good, just don't read it expecting to agree with everything
<speakingcode-wor> pretty sure dave thomas who wrote the pick-axe ruby book is the author of pragmatic programmer
benlieb has quit [Quit: benlieb]
<workmad3> speakingcode-wor: pragprog was written by dave thomas and andy hunt, iirc
BizarreCake has joined #ruby
<speakingcode-wor> sounds about right
<workmad3> speakingcode-wor: they then went on to create pragmatic publishers, of which the pickax book is a title
BizarreCake has quit [Remote host closed the connection]
<speakingcode-wor> there is a cool online 'book' about architecture.. one sec
dougireton has joined #ruby
<workmad3> speakingcode-wor: is it 'architecture of open source applications'?
mneorr has quit [Remote host closed the connection]
<speakingcode-wor> http://www.aosabook.org/
nat2610 has quit [Quit: Leaving.]
<speakingcode-wor> yup it is, hehe
<workmad3> yeah :)
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
whowantstolivefo has quit [Remote host closed the connection]
<workmad3> I've got that bookmarked :)
<speakingcode-wor> iv'e started it but yet to complete
<workmad3> also, the art of unix programming is a good one that's also available online freely
whowantstolivefo has joined #ruby
johndouthat has joined #ruby
x82_nicole has joined #ruby
sduckett has joined #ruby
DrCode has quit [Quit: ZNC - http://znc.in]
nat2610 has joined #ruby
_nitti_ has quit [Remote host closed the connection]
<speakingcode-wor> ah
<speakingcode-wor> i have a book, understanding unix/linux programming, pretty good
chendo_ has quit [Ping timeout: 252 seconds]
noxoc has quit [Quit: noxoc]
oinkon has joined #ruby
<speakingcode-wor> also there's a book by mark sobell (sp?) Linux: commands, editors, and shells I think is the title. i have the 2nd edition, still much relevant and useful today but a third edition came out a couple of months ago
tommyvyo has joined #ruby
<speakingcode-wor> one of the most useful books on linux i've come across. very distro agnostic, well written, thorough, just all around good
<speakingcode-wor> do |rant| end
interactionjaxsn has quit [Remote host closed the connection]
kirun has joined #ruby
<workmad3> speakingcode-wor: taoup is nice, as it covers the ethos underlying unix as much as anything else
mneorr has joined #ruby
philcrissman has quit [Remote host closed the connection]
benlieb has joined #ruby
wallerdev has quit [Quit: wallerdev]
Takehiro has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
epylinkn has joined #ruby
epylinkn has left #ruby [#ruby]
slainer68 has quit [Remote host closed the connection]
mmitchell has joined #ruby
_tockitj has quit [Read error: Connection reset by peer]
mmitchel_ has quit [Ping timeout: 248 seconds]
clooth has quit [Quit: clooth]
dmiller has joined #ruby
<Xeago> can anyone help me
<Xeago> how heavy is steel relative to titanium
mmitchell has quit [Remote host closed the connection]
<speakingcode-wor> how dense?
<Xeago> no idea, stainless steel
<speakingcode-wor> steel varies
mmitchell has joined #ruby
<speakingcode-wor> steel is iron + carbon
<speakingcode-wor> depends on the grade of steel
<Xeago> between 7480-8000 I suppose, but my math looks wrong
<speakingcode-wor> The density of steel varies based on the alloying constituents but usually ranges between 7,750 and 8,050 kg/m3 (484 and 503 lb/cu ft), or 7.75 and 8.05 g/cm3
<Xeago> titanium is about half as heavy as steel right?
<speakingcode-wor> -wikipedia
samphippen has joined #ruby
hybris has quit [Ping timeout: 248 seconds]
speakingcode-wor has quit [Remote host closed the connection]
dekroning has joined #ruby
bricker`work is now known as bricker
<workmad3> Xeago: wiki reckons '4.506 g·cm−3' for titanium
<Xeago> my math was wrong by thousands
osaut has joined #ruby
thibauts has quit [Read error: Operation timed out]
buibex has joined #ruby
<workmad3> Xeago: 7480 is kg/m3, so titanium would be 4506 kg/m3
txdv has quit [Read error: Connection reset by peer]
<Xeago> thanks, aluminum is ±2700 right?
<Xeago> kg/m3
txdv has joined #ruby
<workmad3> wiki agrees
speakingcode-wor has joined #ruby
<speakingcode-wor> wooops
<Xeago> thanks
<shevy> ok so what kind of package managers do we have in ruby
<shevy> machomebrew... anything else?
<Xeago> gem?
ExxKA has quit [Quit: This computer has gone to sleep]
<shevy> hmm
<shevy> I meant general purpose actually
<Xeago> general purpose of what?
<Xeago> spreading bundled code?
alex__c2022_ has joined #ruby
<shevy> well, machomebrew allows you to install packages via formulas, like m4 or grep or ffmpeg so forth
benlieb has quit [Quit: benlieb]
<shevy> it seems to be the only general purpose package manager written in ruby or?
alex__c2022 has quit [Ping timeout: 248 seconds]
alex__c2022_ is now known as alex__c2022
mneorr has quit [Remote host closed the connection]
thibauts has joined #ruby
templaedhel has joined #ruby
mahmoudimus has quit [Ping timeout: 276 seconds]
mahmoudi_ has joined #ruby
templaedhe has joined #ruby
templaedhe has quit [Remote host closed the connection]
templaedhel has quit [Read error: Connection reset by peer]
shevy2 has joined #ruby
freakazoid0223 has joined #ruby
elux has joined #ruby
timmow_ has joined #ruby
qohelet_ has quit [Read error: Connection timed out]
qohelet_ has joined #ruby
Stilo has joined #ruby
dougireton has quit [Quit: Leaving.]
<shevy2> whee
<shevy2> I have 16826 .rb files ... in my ruby directory
mneorr has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
timmow has quit [Ping timeout: 252 seconds]
shevy2 is now known as shevy
<shevy> and I got disconnected...
girija_ has quit [Ping timeout: 276 seconds]
noxoc has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
philcrissman has joined #ruby
apok has joined #ruby
arkiver has quit [Ping timeout: 244 seconds]
<aedorn> *sigh* took off my headphones for just a few minutes to get some water, and now I can't get back to work. Let's see... what do we have going on today - Star Trek to the right, and I think some reality show to the left.
shtirlic has joined #ruby
QKO has joined #ruby
<shevy> pick Star Trek
<shevy> which series is it?
<aedorn> And someone is playing some FPS, but I can't tell what it is. I'm thinking BlackOps
_nitti has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
<aedorn> oh, it's Storage Wars to my left... and Star Trek TNG
<shevy> wtf I have gotten old
peregrine81 has quit [Quit: Computer sleeping.]
<shevy> Star Trek: Generations was made 1994
jonathanwallace1 has joined #ruby
<shevy> that is almost fucking 20 years :(
<shevy> ok watch TNG
peregrine81 has joined #ruby
aaronmacy has joined #ruby
dougireton has joined #ruby
<aedorn> can't.. it's behind a wall. I can only hear it. And by a wall I mean a short cube
<shevy> lol
sn0wb1rd has left #ruby [#ruby]
benlieb has joined #ruby
<shevy> you sound like someone in a prison man
<shevy> it must be like how ruby hackers in china code!
<aedorn> Cubes are like a prison
ChampS666 has joined #ruby
hekin has joined #ruby
<aedorn> and call centers tend to be designed to keep people from seeing other people, so yeah... it really is a prison. I saw some sun a few hours ago. It was neat.
hekin has quit [Client Quit]
shtirlic has quit [Ping timeout: 252 seconds]
<shevy> oh man
jrist is now known as jrist-afk
axl__ has joined #ruby
<Xeago> how much stuff that you want to get done do you get done
<Xeago> even if it is unproductive stuff
<Xeago> how much non-work do you get done, aedorn?
nomenkun has joined #ruby
mklappstuhl has quit [Ping timeout: 276 seconds]
<aedorn> Hmmm... with other people here I generally get 1 hour of work done for every 8 hours. With nobody here, it's 1 hour for 1 hour.
<Xeago> wait, are you classifying work in your sentence as non-work?
axl_ has quit [Ping timeout: 264 seconds]
axl__ is now known as axl_
renanoronfle has quit [Quit: This computer has gone to sleep]
lupine has quit [Quit: If you see this, my dogfood was poisoned]
<aedorn> Oh... no... that's both really. I'm lucky if I get to concentrate one a single task for more than 5 minutes without being interrupted with some nonsense.
dougireton has left #ruby [#ruby]
<aedorn> one=on... see? I can't even get through a full sentence!
_nitti has quit [Ping timeout: 244 seconds]
Elhu has joined #ruby
<aedorn> Then I go home and work, and my girlfriend complains that I work too much. I always tell her, "I know, but I didn't get anything done at work!"
arya_ has quit [Ping timeout: 248 seconds]
osaut has quit [Quit: osaut]
lupine has joined #ruby
arya has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
braoru has joined #ruby
shtirlic has joined #ruby
etcetera has quit [Ping timeout: 260 seconds]
miskander has quit [Quit: miskander]
x82_nicole has joined #ruby
generalissimo has quit [Remote host closed the connection]
jtharris has quit [Ping timeout: 252 seconds]
jtharris has joined #ruby
hoelzro|away is now known as hoelzro
miskander has joined #ruby
_bart has joined #ruby
<aedorn> What's the rest_client replacement? Faraday? httpclient? Hmmm
DrCode has joined #ruby
a_a_g has quit [Quit: Leaving.]
etcetera has joined #ruby
arietis has joined #ruby
breakingthings has joined #ruby
lupine has quit [Quit: If you see this, my dogfood was poisoned]
techlife has quit [Read error: Connection reset by peer]
qohelet_ has quit [Read error: Connection timed out]
_nitti has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
rakl has quit [Quit: sleeping]
Takehiro has joined #ruby
headius has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
qohelet_ has joined #ruby
undersc0re97 has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
techlife has joined #ruby
rpc__ has joined #ruby
Takehiro_ has joined #ruby
Takehiro_ has quit [Read error: Connection reset by peer]
chendo_ has joined #ruby
drago757 has joined #ruby
zeade has joined #ruby
Guest88717 has quit [Ping timeout: 256 seconds]
meuuf has joined #ruby
lupine has joined #ruby
Takehiro has quit [Ping timeout: 256 seconds]
carlyle has joined #ruby
osaut has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
_nitti_ has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
nomenkun has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
MattRB has quit [Quit: This computer has gone to sleep]
tjbiddle has joined #ruby
_bart has left #ruby [#ruby]
thinkclay has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
robotmay_ has joined #ruby
MattRB has joined #ruby
thinkclay has quit [Client Quit]
_nitti has quit [Ping timeout: 248 seconds]
thinkclay has joined #ruby
brad[] has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
tjbiddle_ has joined #ruby
robotmay has quit [Ping timeout: 255 seconds]
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
<meuuf> Hey folks I'm having some trouble undoing some pack/unpack operations on a number. I currently start with [123456789.0].pack("N").unpack("g") and get the result I want. It turns it into a 32bit unsigned bigendian array and then back to a big endian float. Anyone able to see how I can go from the result back to the first value?
rakl has joined #ruby
axl_ has quit [Quit: axl_]
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
asteve has joined #ruby
<meuuf> oh nevermind, the very act of typing out my question made me realise what the problem was
<meuuf> :)
meuuf has quit [Quit: leaving]
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
robotmay has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
aib has quit [Quit: So long and thanks for all the fish.]
reinaldob has quit [Remote host closed the connection]
aib has joined #ruby
browndawg has quit [Quit: Leaving.]
Elhu has joined #ruby
Takehiro has joined #ruby
ixti has quit [Ping timeout: 248 seconds]
Takehiro has quit [Read error: Connection reset by peer]
mafolz has quit [Remote host closed the connection]
robotmay_ has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
tcstar has joined #ruby
ixti has joined #ruby
dougireton has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
ryanh has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Guest__ has quit [Quit: Computer has gone to sleep.]
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<dyeske> so when are bundler and other tools going to have gem signing?
chrisja has quit [Quit: leaving]
Xeago has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
generalissimo has joined #ruby
warb0 has joined #ruby
RonScagz has joined #ruby
Stereo_ has joined #ruby
banjara has joined #ruby
samphippen has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
squidBits has joined #ruby
JumpMast3r has joined #ruby
maletor has joined #ruby
banisterfiend has joined #ruby
ixti has quit [Ping timeout: 244 seconds]
benlieb has quit [Quit: benlieb]
adkron has joined #ruby
adkron_ has joined #ruby
arya has joined #ruby
nomenkun has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
timonv has joined #ruby
freezway has quit [Ping timeout: 248 seconds]
qohelet_ has quit [Read error: Connection timed out]
Elhu has quit [Quit: Computer has gone to sleep.]
adkron has quit [Ping timeout: 245 seconds]
adkron_ has quit [Ping timeout: 252 seconds]
icole_ has joined #ruby
undersc0re97 has quit [Ping timeout: 248 seconds]
Elhu has joined #ruby
zigomir has joined #ruby
qohelet_ has joined #ruby
benlieb has joined #ruby
mmitchel_ has joined #ruby
dougireton has quit [Quit: Leaving.]
angusiguess has quit [Ping timeout: 245 seconds]
LBRapid has joined #ruby
Evixion has joined #ruby
failshell has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 248 seconds]
colonolGron has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
dougireton has joined #ruby
dougireton has quit [Client Quit]
ddv has quit [Changing host]
ddv has joined #ruby
aaronmacy has quit [Quit: Leaving.]
razibog has quit [Ping timeout: 272 seconds]
otters has quit [Ping timeout: 252 seconds]
Uranio has quit [Quit: while you reading this, a kitty dies]
Morkel_ has joined #ruby
sh42 has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
Morkel_ is now known as Morkel
rippa has quit [Ping timeout: 240 seconds]
adeponte has quit [Remote host closed the connection]
<fuzai> value = true ; module; def rxdata data; puts data if value; end; end <- I'm being told that value doesn't exist. how do i get around this?
Virunga has joined #ruby
hoelzro is now known as hoelzro|away
benlieb has quit [Quit: benlieb]
dawkirst has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
d2dchat has quit [Remote host closed the connection]
Bry8Star has quit [Ping timeout: 276 seconds]
benlieb has joined #ruby
<banisterfiend> fuzai: that code doesnt even make sense
<fuzai> i'll type it out in paste bin
dougireton has joined #ruby
sailias1 has quit [Ping timeout: 276 seconds]
otters has joined #ruby
Goles has quit [Remote host closed the connection]
<banisterfiend> fuzai: yeah, it's cos modules/methods are not closures
whowantstolivefo has quit [Quit: quit]
<fuzai> how do i get around it?
<banisterfiend> fuzai: if you want logOn to be global define it like this $logOn = vlah
<banisterfiend> instead
<fuzai> ok cool
<fuzai> thank you
<banisterfiend> but if you need to do that it's really a symptom of bad design
<banisterfiend> fuzai: best to make it a constant
banjara has quit [Quit: Leaving.]
<banisterfiend> and attach it to the module u want
timmow has joined #ruby
<banisterfiend> Logon = blah
banjara has joined #ruby
havenn has joined #ruby
<banisterfiend> ah nah, shouldn't be a constant if you want it to change :)
cr3 has joined #ruby
brooks_1 has joined #ruby
<cr3> what's it called in ruby when a value starts with :?
<shevy> symbol
rpc__ has left #ruby [#ruby]
<shevy> :foo :bla :ble are all symbols
Bry8Star has joined #ruby
alex__c2022 has quit [Remote host closed the connection]
<cr3> shevy: thanks, that makes searching much simpler :)
oinkon has quit [Ping timeout: 256 seconds]
<cr3> also, is there a way to output the type of a variable?
arya has joined #ruby
alex__c2022 has joined #ruby
graft has quit [Quit: Lost terminal]
<cr3> shevy: is there something like to_s, but to convert from string to symbol?
Evixion has quit [Read error: Connection reset by peer]
<Mon_Ouie> to_sym
Goles has joined #ruby
<fuzai> So it doesn't like ws.send on the receive event. How do I fix this?
brooks_1 has left #ruby [#ruby]
timmow has quit [Ping timeout: 252 seconds]
angusiguess has joined #ruby
qohelet_ has quit [Quit: qohelet_]
rdark has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Excess Flood]
<havenn> send
<havenn> sry, misstell
<Mon_Ouie> Well, that's because you didn't define a ws variable in that scope
chendo_ has quit [Ping timeout: 244 seconds]
<Mon_Ouie> Your RubyCounter instance needs a reference to ws
<fuzai> so like flip lines 36 and 37
<banisterfiend> fuzai: do you have a book on ruby? you need to learn about scope
<fuzai> and then end it with something like RubyCounter(ws) ?
Skylab has joined #ruby
<fuzai> i don't i understand scope from perl and pascal
<banisterfiend> fuzai: buy a ruby book :) it'll clear that stuff up for you in no time at all, but you'll need to read the chapter on scope (or whatever they call it)
<fuzai> i'd need money for that
Skylab has left #ruby [#ruby]
<fuzai> :(
<shevy> cr3 you can get a type via .class as in :foo.class
miskander has quit [Quit: miskander]
<banisterfiend> fuzai: there's free books online
<fuzai> that's how i got this far
Skylab has joined #ruby
<Mon_Ouie> Except you don't have a RubyCounter method. You should probably make it a class, but I don't know enough about EventMachine to say how
<fuzai> that was directly from the popen example
slainer68 has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
<Mon_Ouie> It's not that it's not correct, it's that it doesn't allow let you pass variables to initialize, etc.
osaut has quit [Quit: osaut]
maletor has quit [Quit: Computer has gone to sleep.]
miskander has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
s0ber has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
exxpcf has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
banjara has quit [Client Quit]
spider-mario has joined #ruby
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
nkr has quit [Quit: Linkinus - http://linkinus.com]
Inoperable has joined #ruby
banjara has joined #ruby
Inoperable is now known as Inoperabled
banjara has quit [Client Quit]
banjara has joined #ruby
Inoperabled is now known as Inoperable
main has joined #ruby
Virunga has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
banjara has quit [Client Quit]
banjara has joined #ruby
banjara has quit [Client Quit]
banjara has joined #ruby
Inoperable is now known as Inoperabled
d2dchat has joined #ruby
braoru has quit [Remote host closed the connection]
<innohero> will a ruby programmer like Go??
mmercer has quit [Ping timeout: 255 seconds]
chrishough has quit [Quit: chrishough]
Inoperabled has quit [Quit: Coyote finally caught me]
<banisterfiend> #ruby questions are so daft :P
oinkon has joined #ruby
poikon_ has joined #ruby
pcarrier has joined #ruby
otters has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
bradleyprice has quit [Ping timeout: 248 seconds]
axl_ has joined #ruby
pettsson has joined #ruby
elico has quit [Read error: Connection reset by peer]
shock_one has joined #ruby
zastern has joined #ruby
<havenn> innohero: I'd rather use Ruby. :P Go-like concurrency in Ruby: https://github.com/igrigorik/agent
codezombie has joined #ruby
poikon has quit [Killed (morgan.freenode.net (Nickname regained by services))]
poikon_ is now known as poikon
sduckett has quit [Ping timeout: 244 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
poikon_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Stereo_ has quit [Remote host closed the connection]
<shock_one> Hi. Here's the code snippet that bothers me https://dl.dropbox.com/u/608214/scrn/1359577748.png . Should I explicitly declare begin in blocks if I want the ensure clause?
Xeago has joined #ruby
<banisterfiend> shock_one: you should really gist that so people can modify the code
otters has joined #ruby
Elhu has joined #ruby
freezway has joined #ruby
stkowski has joined #ruby
bradleyprice has joined #ruby
<innohero> anybody here likes to play the violin ?
<shock_one> no problem http://hastebin.com/xokogebivi.rb
elico has joined #ruby
<banisterfiend> shock_one: wow that thing sucks compared to gist
arturaz has quit [Remote host closed the connection]
<shock_one> special for you, banisterfiend: https://gist.github.com/1325d6d6f51445ad3332 :)
<banisterfiend> shock_one: wlel it's not really for me, i'm not a rails programmer :) i was just looking at the thing
reset has joined #ruby
<shock_one> banisterfiend, it has nothing to do with rails. I'm asking about ruby syntax.
<banisterfiend> shock_one: ok in that case why not just do this
Goles has quit [Quit: Computer has gone to sleep.]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
apok has quit [Quit: apok]
<banisterfiend> oh
sduckett has joined #ruby
<banisterfiend> put an ensure around that
graft_ has quit [Ping timeout: 240 seconds]
<shock_one> In your code ensure is a part of the method. I want it to be a part of a block. Is it OK to skip the begin word?
<banisterfiend> but im not sure if the transaction method manages that exception, if it does, then it needs to be in the blck :)
<Mon_Ouie> I'm not sure that will work
<banisterfiend> shock_one: no you can't skip it
<Mon_Ouie> (Because of that)
banjara has quit [Quit: Leaving.]
<havenn> shock_one: Not okay to skip begin inside the block.
banjara has joined #ruby
<shock_one> banisterfiend, havenn, thank you guys. What about lambdas?
<banisterfiend> shock_one: same thing, people have asked matz for it, but he refuses to add that featuer for blocks
<banisterfiend> i dont remember the reason, but it made sense when i read it
<shock_one> banisterfiend, not a big deal
<havenn> shock_one: SyntaxError: unexpected keyword_ensure, expecting '}'
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
dawkirst has joined #ruby
s1n4 has joined #ruby
buibex has quit [Remote host closed the connection]
banjara has quit [Client Quit]
Takehiro has joined #ruby
banjara has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
<banisterfiend> shock_one: maybe this: http://hastebin.com/nidenapimu.rb
drago757 has quit [Quit: drago757]
<shock_one> banisterfiend, No, that method suppose to clean things up after executing controller action. See, it's around_filter?
<banisterfiend> it's just a helper method, it does exactly the same as your begin/ensure thing
vinax has quit []
<shock_one> banisterfiend, oh, I didn't notice you defined the rollback (forgot the underscore, though). I thought it's some rails helper
<banisterfiend> no hehe
vlad_starkov has joined #ruby
<banisterfiend> arguably not any nicer though
joshman_ has quit [Ping timeout: 260 seconds]
s1n4 has quit [Ping timeout: 255 seconds]
<shock_one> banisterfiend, then you shouldn't call yield in wrap_in_transaction, just call the roll_back
<dawkirst> new to Ruby - how can I see the class of an arbitrary argument of any arbitrary method?
<banisterfiend> dawkirst: arg.class
s1n4 has joined #ruby
joshman_ has joined #ruby
<shock_one> banisterfiend, http://hastebin.com/hinemajoxa.rb
<banisterfiend> if you want
joshman_ has quit [Client Quit]
benlieb has quit [Quit: benlieb]
<dawkirst> banisterfiend, in what context would I use that though? do I call it on the method?
vlad_starkov has quit [Remote host closed the connection]
joshman_ has joined #ruby
maycon has quit [Quit: Saindo]
nat2610 has joined #ruby
<banisterfiend> dawkirst: i think you need to gist some code, i'm not 100% sure what you're asking
<banisterfiend> gist.github.com
ixti has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
<shock_one> dawkirst, more generally you shouldn't ask what it is, you should ask what it respond_to?
angusiguess has quit [Ping timeout: 260 seconds]
<dawkirst> banisterfiend, ok so I'm trying to wrap my head around something fundamental, but let's use https://github.com/codingjester/tumblr_client/blob/master/lib/tumblr/post.rb as an example. I want to call tumbler_object.photo, so how can I see what parameters the photo method takes, and of what class they are?
<banisterfiend> dawkirst: oh, you can't find that out
dougireton has left #ruby [#ruby]
james__ has joined #ruby
cgcardona has joined #ruby
<banisterfiend> dawkirst: class is usually irrelevant in a dynamically typed language like ruby, all that matters is the object responds to the methods that are sent to it
<banisterfiend> dawkirst: method parameter do not have type information attached to them
<banisterfiend> just names :)
<dawkirst> banisterfiend, ok, so how would I know what to pass it at all?
Bonieky has quit []
jjbohn has quit [Quit: Leaving...]
<reactormonk> ass
<banisterfiend> dawkirst: because the documentation tells you
<reactormonk> hals#%bete139
<dawkirst> ok, so that is what shock_one meant :)
<reactormonk> htop
<banisterfiend> reactormonk: what's wrong?
<banisterfiend> you seem broken
<shock_one> dawkirst, If you use 3rd party lib without docs, the only way is to read the source code
<havenn> i <3 htop
blaxter has quit [Quit: foo]
<havenn> All those green and red bars, Christmas!
IrishGringo has joined #ruby
<dawkirst> shock_one, that was what I wanted to ask next. That is a big hurdle of course. I'm trying to learn Ruby, so I don't understand half the source code I read.
<shock_one> htop
Virunga has joined #ruby
<shock_one> what is htop?
<havenn> shock_one: The command-line tool. :P
<banisterfiend> dawkirst: what languages do you know already?
<shock_one> havenn, I thought some irc command :)
eldariof has quit []
bradleyprice has quit [Ping timeout: 248 seconds]
<dawkirst> banisterfiend, I'm new to programming in general, but I've had a wee bit of exposure to .net stuff
nat2610 has quit [Ping timeout: 264 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
<dawkirst> banisterfiend, shock_one, so this respond_to method can programatically check whether a method can be called on an object?
<banisterfiend> yes
<banisterfiend> but you shouldn't really use that either unless you really really have to
<dawkirst> ok
aaronmacy has joined #ruby
mikepack has joined #ruby
carlyle has joined #ruby
<banisterfiend> you just have to trust that people are going to send you the right kind of objects
<banisterfiend> if they dont do that, then it's their fault
<shock_one> C# is a great language except for one thing — windows only.
r2b2 has joined #ruby
<reactormonk> banisterfiend, aww, framebuffer fail :-/
biff_tannen has joined #ruby
<dawkirst> so last question for the night: take https://github.com/codingjester/tumblr_client/ again as an example. Is there any *additional* documentation other than that on GitHub? ri, rdoc (I've never used either)
<dawkirst> shock_one, so I've heard.
Elhu has quit [Quit: Computer has gone to sleep.]
<havenn> dawkirst: If a gem has tests/specs that is a good place to look (that one doesn't). Using Pry to poke around the gem is a nice way to get up to speed!
arya has quit [Ping timeout: 248 seconds]
Stilo has joined #ruby
jrist-afk is now known as jrist
<havenn> dawkirst: http://pryrepl.org
<dawkirst> havenn, thanks, never heard of Pry, will check it out
<dawkirst> thanks
cableray has joined #ruby
<havenn> dawkirst: Fantastic for exploring code! :D
<reactormonk> banisterfiend, and now I had to change my password... seriously. WTF did that write my input to the console as well as X.
<havenn> dawkirst: alias irb="pry"
<dawkirst> havenn, that looks brilliant. Does it hook into central doc repositories, or does it ship with its own?
<ericwood> I have mine the other way around
r2b2 has left #ruby ["Leaving"]
nat2610 has joined #ruby
squidBits has quit [Quit: squidBits]
jrafanie has joined #ruby
<havenn> dawkirst: banisterfiend is the one to ask! But for getting started I'd recommend: gem install pry pry-doc jist
<havenn> dawkirst: If you want to look at the C implementation of a method, you can do something like: ? Array#pop
<dawkirst> havenn, awesome, thanks.
<havenn> dawkirst: Type `help` in pry for a good list of pry commands.
<banisterfiend> dawkirst: most docs (except wikis) ship with the gem's source itself
<banisterfiend> dawkirst: so pry just grabs docs/source directly from the gem
undersc0re97 has joined #ruby
<dawkirst> banisterfiend, ok
mercwithamouth has joined #ruby
<banisterfiend> dawkirst: one advantage in an interpreted language, the source code hangs around :)
<aedornm> so how many people have come across developers that can't write Ruby without using Rails?
chendo_ has quit [Ping timeout: 252 seconds]
<ericwood> none, really
<havenn> aedornm: That sounds like jsut "can't write Ruby"
emmanuelux has joined #ruby
<ericwood> every once and a while I'll realize something I was using was just a nice thing activesupport provided, if that counts :P
<shock_one> aedornm, I've seen Java person who can't reverse a string without apache library
<banisterfiend> aedornm: i've met experienced rails programmers who are pretty bad at ruby
<banisterfiend> but obviously none who dont know ruby at all
<dawkirst> banisterfiend, indeed :)
cgcardona has left #ruby [#ruby]
Inoperable has joined #ruby
<aedornm> Well, what I mean is .. I just got asked how to get something to display if there aren't any view files (followed by no controllers, models, and app config)
arya has joined #ruby
<banisterfiend> aedornm: a lot of horrible cargo-culted code, where they use 'include' and included() hook instead of extend, for example
ZachBeta has joined #ruby
OliverJAsh has joined #ruby
carloslopes has quit [Remote host closed the connection]
<dawkirst> havenn, thanks again for the recommended gems, they're going to make learning easier
chendo_ has joined #ruby
<OliverJAsh> apologies for asking a n00b question, i never write any ruby but i've got to deal with this small script very quickly.
<dawkirst> anyway, I'm out for tonight
chendo_ has quit [Changing host]
chendo_ has joined #ruby
undersc0re97 has quit [Client Quit]
<aedornm> The whole conversation was pretty interesting. He built a rails app, it looked okay. It wasn't fancy or anything. So I ask for a simple script to wrap around ARPing which started with "rails new .."
<OliverJAsh> i have a string containing "Hello World" (each word on a new line) and another string containing "Hello". I need to compare these two and return the different. So in this example it would return "World", but if the compared string was "World", it would return "Hello".
cakehero has joined #ruby
HAKEON has joined #ruby
<elux> what do you guys recommend for an http library? im looking for something fast, with proper timeout handling, etc. etc? net::http is fine, however I don't like that it uses Timeout (which spawns a thread to test the timeout for each connection its opening)
<shock_one> OliverJAsh, you need what is called «longest common substring»
aaronmacy has quit [Quit: Leaving.]
dawkirst has quit [Ping timeout: 252 seconds]
cakehero has quit [Ping timeout: 248 seconds]
<RubyPanther> elux: I spider millions of pages a day with Net::HTTP I've never noticed any sort of bottleneck in Timeout
heyitsdave has joined #ruby
<OliverJAsh> shock_one: hmm okay…
<elux> RubyPanther: i do as well..
<banisterfiend> Mon_Ouie: the matching parentheses highlight in coolline is awesome :))
maletor has joined #ruby
_nitti has joined #ruby
<elux> but still.. im crazy about performance.. and the Timeout code does what it does.. which seems unnecessary to me.. doing Socket.new, with IO.select should be able to work just fine.. i wonder the difference with some benchmarking
bradleyprice has joined #ruby
<banisterfiend> lol
<banisterfiend> ok
<banisterfiend> showterm doesnt like coolline
<banisterfiend> it doesnt flicker like that locally
[Neurotic] has joined #ruby
<aedornm> elux: Most of the other libraries wrap around it. httpclient is its own client, and Faraday can wrap a bunch of others like patron, and typhoeus. Hiroshi Nakamura did a really good comparison at Ruby Conf: http://www.youtube.com/watch?v=x6CeB75aMwc
<havenn> OliverJAsh: Not really sure what you're expected input/output is, but: "Hello\nWorld".split.delete_if { |word| word == "Hello" }.join("\n")
nomenkun has quit [Remote host closed the connection]
_nitti_ has quit [Ping timeout: 245 seconds]
<elux> thanks
vlad_starkov has joined #ruby
<havenn> elux: What would be a better way to have preemptive timeout than a system thread?
haxrbyte has joined #ruby
cakehero has joined #ruby
jonahR has quit [Quit: jonahR]
<OliverJAsh> Is there a way I can test that quickly? I've created a .rb file and ran `ruby test.rb` but it doesn't return anything. sorry i'm such a n00b!
kritztopf has joined #ruby
<OliverJAsh> havenn:
jgrevich has quit [Quit: jgrevich]
elico has quit [Ping timeout: 276 seconds]
<havenn> OliverJAsh: I didn't put a #puts in there, so it doesn't print to terminal. Try it in irb (or better yet, Pry).
<havenn> OliverJAsh: gem install pry; pry
<invisime> OliverJAsh: alternately, just try using irb. :-)
elico has joined #ruby
<OliverJAsh> cheers guys!
angusiguess has joined #ruby
<OliverJAsh> What if the input is something like: "Hello there\nGoodbye now"
<shock_one> OliverJAsh, what do you want to output?
<OliverJAsh> The line that does not match the string.
mneorr has quit [Remote host closed the connection]
zommi has quit [Quit: Leaving.]
<OliverJAsh> So if I provide another string of "Hello there", it should return "Goodbye now"
jgrevich has joined #ruby
louisror has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
ahokaomaeha has quit [Ping timeout: 252 seconds]
colonolGron has quit [Ping timeout: 256 seconds]
<Mon_Ouie> banisterfiend: Doesn't blink here: http://showterm.io/5fc9bf424d3eaf6f8f1ac
miskander has quit [Quit: miskander]
<shock_one> OliverJAsh, you can try the String#start_with? method
SrPx has joined #ruby
<OliverJAsh> I literally no zero ruby…
kiwi38721 has joined #ruby
freezway has quit [Ping timeout: 252 seconds]
<havenn> OliverJAsh: https://gist.github.com/4677186
catphish has joined #ruby
<havenn> OliverJAsh: There, I monkey patched String for ya. :P (I mean freedom patched String).
cantonic_ has joined #ruby
therod has joined #ruby
ChampS666 has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
<OliverJAsh> you guys are geniuses :P
<OliverJAsh> cheeers havenn
SrPx has quit [Read error: Connection reset by peer]
answer_42 has quit [Ping timeout: 276 seconds]
<shock_one> Mon_Ouie, blinks for me. But it isn't pry-coolline problem because mine doesn't blink.
miskander has joined #ruby
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
chrishough has joined #ruby
mneorr has quit [Ping timeout: 264 seconds]
mjolk has joined #ruby
WrErase has quit [Quit: leaving]
vlad_starkov has joined #ruby
colonolGron has joined #ruby
haxrbyte_ has joined #ruby
<OliverJAsh> havenn: can i use that with variables? for instance: "availableOutputs.ditch_line currentOutput"
<havenn> OliverJAsh: yes
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
<shock_one> OliverJAsh, as long as these vars are strings
<havenn> ^
<havenn> Or act like strings. :P
mrc_ has joined #ruby
<shock_one> havenn, I noticed an «s» at the end of «availableOutputs»
<OliverJAsh> shock_one havenn: https://gist.github.com/4677280
<OliverJAsh> availableOutputs is just going to output something like the examples I gave, separated by a \n
mockra has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 260 seconds]
adeponte has joined #ruby
benlieb has joined #ruby
samphippen has joined #ruby
dawkirst has joined #ruby
Hanmac has quit [Quit: Leaving.]
mephux has quit [Excess Flood]
blacktulip has quit [Remote host closed the connection]
moos3 has quit [Ping timeout: 260 seconds]
Hanmac has joined #ruby
shtirlic_ has joined #ruby
moos3 has joined #ruby
ryanh has quit [Quit: Computer has gone to sleep.]
squidBits has joined #ruby
<shock_one> OliverJAsh, What is alfred? Is it some output prettyfier?
statarb3 has quit [Read error: Connection reset by peer]
mephux has joined #ruby
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has quit [Read error: Connection reset by peer]
baphled has joined #ruby
<elux> havenn: well.. since its synchronous i/o .. you could do non_blocking io, loop, and use IO.select to test the socket, which allows for a timeout value.. im pretty sure that would work
statarb3 has joined #ruby
DrShoggoth has quit [Quit: Leaving]
dawkirst has quit [Client Quit]
spider-mario has quit [Remote host closed the connection]
gosshedd has quit [Ping timeout: 245 seconds]
shtirlic has quit [Ping timeout: 264 seconds]
<OliverJAsh> alfred… it's a mac application but the module i'm requiring there is just for formatting xml i believe
<OliverJAsh> shock_one:
statarb3 has quit [Read error: Connection reset by peer]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
jgrevich_ has joined #ruby
_nitti has quit [Ping timeout: 248 seconds]
<havenn> elux: hmmmm
carlyle_ has joined #ruby
Skylab has quit [Quit: Skylab]
louisror has joined #ruby
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
carlyle has quit [Ping timeout: 245 seconds]
cr3 has left #ruby [#ruby]
allaire has joined #ruby
kiwi38721 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
gyre007 has quit [Ping timeout: 272 seconds]
apok has joined #ruby
beiter has quit [Quit: beiter]
arya has quit [Ping timeout: 248 seconds]
timonv_ has quit [Read error: Connection reset by peer]
dekroning has quit [Read error: Connection reset by peer]
timonv has joined #ruby
dekroning has joined #ruby
dmiller has joined #ruby
<OliverJAsh> is there any easy way i can debug that ruby file to see what it's doing?
<OliverJAsh> havenn: shock_one
HAKEON has quit [Quit: HAKEON]
<shock_one> OliverJAsh, just run it with ruby filename.rb
<havenn> OliverJAsh: Pry is very, very useful: http://pryrepl.org
chimmy has joined #ruby
<OliverJAsh> interestingly i'm getting this error: "`require': cannot load such file -- alfred (LoadError)"
<OliverJAsh> although the require worked fine before i added the ditch line stuff
mneorr has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<havenn> OliverJAsh: That seems like coincidence, I don't think the new code broke it.
<havenn> OliverJAsh: The alfred gem is installed in your currently selected Ruby?
<havenn> OliverJAsh: From Pry (or irb) what does this return: require 'alfred'
thone has joined #ruby
D3AX0N has joined #ruby
mockra has joined #ruby
jjbohn has joined #ruby
adeponte has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
geekbri has quit [Remote host closed the connection]
arya has joined #ruby
<OliverJAsh> if i change `result[:title] = result[:uid] = availableOutputs.ditch_line currentOutput ` to `result[:title] = result[:uid] = "test"` it works fine (from alfred, not from rib). i think alfred handles the require??
Guest97593 has joined #ruby
colonolGron has quit [Quit: leaving]
<havenn> OliverJAsh: So if you open irb and type just `require 'alfred'` it works?
<OliverJAsh> no. "LoadError: cannot load such file -- alfred"
thone_ has quit [Ping timeout: 245 seconds]
<havenn> OliverJAsh: And you've installed the gem?: gem install alfred
Kingy has joined #ruby
<OliverJAsh> but the require seems to work fine in the context of where i am actually running the script, not inside irb.
griffindy has quit [Quit: Computer has gone to sleep.]
<OliverJAsh> it's not a gem, it's simply another ruby file sitting alongside this script.
mcqueenorama has joined #ruby
joofsh has quit [Remote host closed the connection]
<OliverJAsh> so in my directory i have two files: script.rb and alfred.rb
therod has quit [Quit: Leaving...]
<havenn> OliverJAsh: Ahh, you need to add the directory to $LOAD_PATH, use `require_relative` or prefix alfred with ./, as in: require './alfred'
angusiguess has quit [Ping timeout: 256 seconds]
<havenn> OliverJAsh: try changing it to: require './alfred'
<OliverJAsh> havenn: agh, i see, cheers. now here's the error we need to deal witth: "get_current.rb:9:in `<main>': undefined method `ditch_line' for "AirPlay\nBuilt-in Output\n":String (NoMethodError)"
jblack has quit [Quit: Lost terminal]
jrajav has joined #ruby
rakuN has joined #ruby
firewall is now known as megha
pavilionXP has quit [Ping timeout: 252 seconds]
gabrielrotbart has joined #ruby
<danneu> where is #ditch_line defined and is it defined on String?
bradhe has joined #ruby
joofsh has joined #ruby
andrewvos has joined #ruby
emergion has joined #ruby
<andrewvos> Anyone know of something that allows you to use vcr but for another language? Basically it would just take all requests and either proxy them or respond with the vcr cached version.
<andrewvos> Cross post from ruby-lang ^
D3AX0N has quit []
moos3 has quit [Ping timeout: 276 seconds]
sh42 has quit [Quit: Leaving]
adeponte has joined #ruby
jjbohn has quit [Quit: Leaving...]
mneorr has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
mneorr has joined #ruby
moos3 has joined #ruby
_nitti has joined #ruby
<havenn> OliverJAsh: Does this work?: https://gist.github.com/4677566
mrc_ has quit [Quit: Leaving.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
cakehero has quit [Quit: Computer has gone to sleep.]
<havenn> OliverJAsh: Ruby convention is to name barewords in snake_case not headlessCamelCase (or whatever that is called :P)
maletor has quit [Quit: Computer has gone to sleep.]
hashtree has quit []
baphled has quit [Ping timeout: 264 seconds]
Udom0 has quit [Quit: Leaving.]
HAKEON has joined #ruby
Jork1 has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
baba_bubba has joined #ruby
chimmy has quit [Ping timeout: 252 seconds]
chrisja has joined #ruby
thillux_ has quit [Remote host closed the connection]
<OliverJAsh> havenn: perfect, thank you very much
<OliverJAsh> snake_case, oh i se
<OliverJAsh> see
jrafanie has quit [Quit: jrafanie]
shock_one has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
LBRapid has joined #ruby
samlt has quit [Ping timeout: 255 seconds]
havenn has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
aquaranto has quit []
havenn has joined #ruby
miskander has quit [Quit: miskander]
zigomir_ has joined #ruby
mrbloo has quit [Quit: mrbloo]
fgro has joined #ruby
Monie has quit [Quit: Quit]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
joeycarm_ has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
maxmanders has joined #ruby
Morkel has quit [Quit: Morkel]
mrc_ has joined #ruby
elux has quit [Quit: Leaving...]
havenn has quit [Ping timeout: 276 seconds]
chimmy has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
ilyam has joined #ruby
hydrozen has joined #ruby
ilyam has quit [Remote host closed the connection]
beilabs has joined #ruby
therod has joined #ruby
ilyam has joined #ruby
louisror has quit [Ping timeout: 276 seconds]
mmercer has joined #ruby
james__ has quit [Ping timeout: 248 seconds]
Xeago has quit [Remote host closed the connection]
havenn has joined #ruby
tyangerine has joined #ruby
<tyangerine> I'm helping my friend install ruby on his mac os snow leopard but I'm running into a c compiler issue
rakuN has quit [Remote host closed the connection]
<havenn> tyangerine: Has he installed Xcode with command-line-tools and Homebrew?
<tyangerine> he's not able to install xcode
SrPx has joined #ruby
idkazuma has joined #ruby
<havenn> tyangerine: Because of space or OS X version?
<tyangerine> let me check again
banseljaj is now known as imami|afk
MattRB has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
zigomir_ has quit [Read error: Connection reset by peer]
<tyangerine> im downloading gcc-10.6 in an attempt to solve this
<tyangerine> without xcode
codezombie has joined #ruby
zigomir_ has joined #ruby
<tyangerine> xocde can't be install because macosx version 10.7.4 is required
<interactionjaxsn> just need the osx-gcc-installer
<interactionjaxsn> what version of xcode are you installing?
<tyangerine> yea I'm waiting on that to download now
<tyangerine> i hope it works
<tyangerine> spent an hour on this already
<havenn> tyangerine: Does he have Homebrew installed?
<tyangerine> then i can install rails?
<tyangerine> how do i check
<havenn> tyangerine: Yeah, older versions of OS X are a problem....
<havenn> tyangerine: Type `brew` from commandline.
<tyangerine> command not found
dougireton has joined #ruby
v0n has quit [Quit: WeeChat 0.4.0]
<havenn> tyangerine: I'd highly recommend going ahead and installing Homebrew, you're going to need it.
<tyangerine> do i need it?
<tyangerine> ah thx
jrafanie has joined #ruby
philcrissman has quit [Remote host closed the connection]
<havenn> tyangerine: Then grab chruby or RVM to make installing and selecting your Ruby-of-choice easy: https://github.com/postmodern/chruby
<tyangerine> i have rvm already :)
<tyangerine> i used ruby installer
<tyangerine> but i guess it didn't work
_nitti has quit [Remote host closed the connection]
codezombie has quit [Client Quit]
<havenn> tyangerine: Once you have Homebrew installed (should be quick) install the rvm requirements listed under: rvm requirements
kirun has quit [Quit: Client exiting]
kpshek has quit []
huoxito has quit [Quit: Leaving]
<tyangerine> cheers
dioms has joined #ruby
ChampS666 has joined #ruby
biff_tannen has quit [Read error: Connection reset by peer]
himsin has quit [Ping timeout: 248 seconds]
<tyangerine> ok brew installed and gcc
<tyangerine> now i should run rvm ?
squidBits has quit [Quit: squidBits]
Goles has joined #ruby
<havenn> tyangerine: run: rvm requirements
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<havenn> tyangerine: and: rvm get stable
noxoc has quit [Quit: noxoc]
headius has quit [Quit: headius]
<havenn> tyangerine: make sure to `brew install` all the packages rvm asks for under rvm requirements.
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
Goles has quit [Max SendQ exceeded]
phantasm66 has quit [Quit: *sleeeep….]
dustint has quit [Ping timeout: 272 seconds]
himsin has joined #ruby
Goles has joined #ruby
mrc_ has quit [Quit: Leaving.]
<havenn> tyangerine: On an old OS X, you probably should also run and fix issues mentioned under: brew doctor
carlyle has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
<tyangerine> haha sorry havenn
<tyangerine> I'm quite confused
<tyangerine> so i run rvm requirements
<tyangerine> do i just type rvm get stable after that or do i need something in between
dioms has quit [Remote host closed the connection]
Goles has quit [Max SendQ exceeded]
<havenn> tyangerine: i kinda wrote that in the wrong order, yeah first: rvm get stable
<havenn> tyangerine: (Gets latest stable rvm version.)
<tyangerine> yup done
Goles has joined #ruby
Takehiro has joined #ruby
carlyle__ has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Jork1 has left #ruby [#ruby]
BoomCow has left #ruby ["Leaving"]
joshman_ has quit [Ping timeout: 264 seconds]
Goles has quit [Max SendQ exceeded]
stormetrooper has joined #ruby
<tyangerine> i ran : brew install autoconf automake apple-gcc42 libtool pkg-config openssl readline libyaml sqlite libxml2 libxslt libksba
<tyangerine> but i get an error
Spooner has joined #ruby
<tyangerine> no available ormula for apple-gcc42
zigomir_ has quit [Quit: zigomir_]
mengu_ has joined #ruby
Goles has joined #ruby
<havenn> tyangerine: what does this return?: brew doctor
carlyle_ has quit [Ping timeout: 245 seconds]
<tyangerine> it returns quite a few warnings
pcarrier has quit []
<tyangerine> xcode not installed
<tyangerine> unbowed dylibs were found
<tyangerine> unbrewed .la files were foud
<tyangerine> ditto .pc files
Goles has quit [Max SendQ exceeded]
<tyangerine> unbowed static libs were found
bluOxigen has quit [Ping timeout: 248 seconds]
<tyangerine> brew's sbin was not found in your path
chendo_ is now known as chendo
<tyangerine> non homebrew pkg-config in your path
joshman_ has joined #ruby
<ewilliam> hey guys
cakehero has joined #ruby
<havenn> tyangerine: Yeeeaaaah, OMGWTFBBQ...
Goles has joined #ruby
<ewilliam> need help here http://bit.ly/TV7Awd
carlyle has quit [Ping timeout: 245 seconds]
<tyangerine> lol yea, its actually been 3 hours
<tyangerine> :(
<ewilliam> stackoverflow link about how to recursively earch haml files and then convert to parent dir
<havenn> tyangerine: PM me if you want, this is gunna be a wall-of-text...
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
imami|afk has quit [Ping timeout: 276 seconds]
Goles has quit [Max SendQ exceeded]
carlyle has joined #ruby
dagnachew has joined #ruby
pcarrier has joined #ruby
Goles has joined #ruby
niklasb has joined #ruby
axl_ has quit [Quit: axl_]
statarb3 has quit [Quit: Leaving]
ilyam has quit [Ping timeout: 276 seconds]
himsin has quit [Ping timeout: 255 seconds]
invisime has quit [Quit: Leaving.]
carlyle__ has quit [Ping timeout: 245 seconds]
<interactionjaxsn> ewilliam: haml2erb?
etcetera has quit []
<ewilliam> no, haml to html
<ewilliam> interactionjaxsn: haml to html
<ewilliam> interactionjaxsn: basically the same function but w/recursive searching
timonv has quit [Read error: Connection reset by peer]
<interactionjaxsn> haml2erb is plugin, from there you'll have to do some of the lifting on your own.
timonv_ has joined #ruby
__BigO__ has quit [Remote host closed the connection]
axl_ has joined #ruby
jeffreybaird has left #ruby [#ruby]
thufir_ has joined #ruby
<interactionjaxsn> some one can correct me if i'm wrong but i don't know of an easier way
arya has quit [Ping timeout: 248 seconds]
banseljaj has joined #ruby
<ewilliam> interactionjaxsn: hmm im not understanding. i'm using the haml gem, which converts haml to html
DaltonUS has quit [Quit: DaltonUS]
<ewilliam> but i can only convert the specified folder, not recursively convert all of the folders within a folder
<aedornm> ewilliam: So you are converting your haml files to html with the output being saved in source/ instead of source/_whatever/ ?
<interactionjaxsn> tell me more about your usecase
<aedornm> or I guess source/_whatever instead of source/_whatever/haml
jonahR has quit [Quit: jonahR]
wallerdev has joined #ruby
<workmad3> ewilliam: why not just use the octopress haml plugin? https://github.com/imathis/octopress/blob/master/plugins/haml.rb
<ewilliam> yes. convert all haml to that specific folder's parent directory
joshman_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<ewilliam> workmad3: ive been having a hard time simply enabling that, but layouts n etc just dont convert
squidBits has joined #ruby
<ewilliam> workmad3: i suspect that i have to config it but no help from #octopress
<ewilliam> have u sed it?
<ewilliam> workmad3: have u used it?
__BigO__ has joined #ruby
pavilionXP has joined #ruby
<ewilliam> interactionjaxsn: example
alexmreis has quit [Quit: alexmreis]
poikon has quit [Remote host closed the connection]
<ewilliam> interactionjaxsn: layouts/haml/ex.haml, includes/haml/ex.haml, includes/post/haml/exhaml
<ewilliam> should end up being converted to /layouts, /includes, and /includes/post
<ewilliam> interactionjaxsn: hope im clear
<interactionjaxsn> got it
LBRapid has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
arya has joined #ruby
mengu_ has quit [Quit: This computer has gone to sleep]
<aedornm> Well, there's the Ruby way and the *nix way to do that
forced_request has joined #ruby
breakingthings has quit []
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
nateberkopec has quit [Quit: Leaving...]
<aedornm> Dir['**/*.haml'] will give you an array of all your haml files, then you can just iterate over them
joshman_ has joined #ruby
mjolk has quit [Quit: This computer has gone to sleep]
alanp_ has joined #ruby
__BigO__ has quit [Remote host closed the connection]
solidoodlesuppor has quit [Remote host closed the connection]
<aedornm> or you can use find -name '*.haml' -exec haml {} ... etc
c0rn has quit [Quit: Computer has gone to sleep.]
<ewilliam> then how do u print to parent directory? i get no file/destination errors all of the time
<ewilliam> autumn: ^
<aedornm> and since you're using rake, and calling a system command to do your conversion, I'm not really sure which one you really want
LBRapid has joined #ruby
<ewilliam> aedornm: ^ _-_
andrewvos has left #ruby [#ruby]
<ewilliam> lol -_-
<autumn> ewilliam: what?
interactionjaxsn has quit [Remote host closed the connection]
<ewilliam> autumn: my bad, a-tabbed too quick. was talking to aedornm
<autumn> an E may've helped
himsin has joined #ruby
<ewilliam> autumn: lol i know
poikon has joined #ruby
generalissimo has quit [Remote host closed the connection]
shiftpgdn has quit [Ping timeout: 240 seconds]
alanp has quit [Ping timeout: 272 seconds]
<aedornm> ewilliam: using find?
shiftpgdn has joined #ruby
mmitchel_ has quit [Remote host closed the connection]
<workmad3> ewilliam: I haven't used the haml plugin before... however, it works fine for me, I just put a file in my source directory with a .haml extension
<aedornm> you technically don't, but you can use awk in combination
ilyam has joined #ruby
<workmad3> ewilliam: even works for a layout
bigmac has joined #ruby
v0n has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
jonahR has joined #ruby
Kuifje has quit [Ping timeout: 256 seconds]
d2dchat has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
himsin has quit [Remote host closed the connection]
maxmanders has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
<davidcelis> How am I supposed to sign my gems and still allow for people to point their Gemfile to the GitHub repo?
nari has joined #ruby
<davidcelis> If they don't have the private key, it'll fail to build because it can't find that file
otters has quit [Quit: WeeChat 0.3.9.2]
<ewilliam> aedornm: how so with awk, never used that before
jtharris has quit [Quit: WeeChat 0.3.9.2]
tommyvyo has joined #ruby
<workmad3> davidcelis: is the signing info part of the gemspec file?
<Spooner> davidcelis, You can download from github without a key. Just can't upload.
gabrielrotbart has joined #ruby
<ewilliam> workmad3: thats really weird. i guess ill test the default theme, see if it works
enebo has quit [Quit: enebo]
<davidcelis> workmad3: Yes
MattRB has joined #ruby
bradleyprice has quit [Remote host closed the connection]
Astral_ has quit [Ping timeout: 240 seconds]
<davidcelis> workmad3: spec.signing_key and spec.cert_chain
chendo has quit [Ping timeout: 252 seconds]
cha1tanya has joined #ruby
<Spooner> Ah sorry. Dumb me.
<workmad3> davidcelis: alter your gem build process to add the signing info into the gemspec, and leave the github version without?
benlieb has quit [Quit: benlieb]
catphish has left #ruby ["Leaving"]
segv- has quit [Quit: segv-]
maxmanders has joined #ruby
jonahR has quit [Ping timeout: 276 seconds]
himsin has joined #ruby
<davidcelis> I could wrap the signing in a conditional to check for that file, i guess?
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
joshman_ has quit [Ping timeout: 246 seconds]
thufir_ has quit [Remote host closed the connection]
jrafanie has quit [Quit: jrafanie]
tcstar has quit [Remote host closed the connection]
stopbit has quit [Quit: Leaving]
jduan1981_ has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
danneu has quit [Ping timeout: 264 seconds]
otters has joined #ruby
tyangerine has quit [Quit: tyangerine]
postmodern has quit [Quit: Leaving]
jduan1981 has quit [Read error: Operation timed out]
jduan1981_ is now known as jduan1981
fgro has quit [Ping timeout: 240 seconds]
arya has joined #ruby
postmodern has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
peregrine81 has quit [Quit: Computer sleeping.]
peregrine81 has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 256 seconds]
peregrine81 has quit [Client Quit]
Goles has quit [Quit: Computer has gone to sleep.]
d2dchat has joined #ruby
Banistergalaxy has joined #ruby
bradhe has quit [Remote host closed the connection]
pewter_tao has joined #ruby
pettsson has quit [Remote host closed the connection]
bradhe has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<pewter_tao> How do you call a ruby function from a bash script?
occupant has joined #ruby
<havenn> pewter_tao: ruby -e "ruby script here"
jduan1981 has quit [Ping timeout: 255 seconds]
<havenn> pewter_tao: there are many ways, depends
<pewter_tao> then fuction_from_script() ?
Skylab has joined #ruby
kyle__ has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
<kyle__> Why would irb not be able to find rexml, when I can easily locate it via find {blah}/ruby1.9 -name "rexml.rb"?
poikon has quit [Remote host closed the connection]
<heftig> ruby -r ./programming/ruby/enum.rb -e 'puts [1,2,3].map.do + 3'
JMcAfreak has quit [Remote host closed the connection]
ddd has joined #ruby
arya has quit [Ping timeout: 248 seconds]
mneorr has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
mcqueenorama has quit [Remote host closed the connection]
i_s has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Vert has quit [Ping timeout: 252 seconds]
shtirlic_ has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
vinax has joined #ruby
adeponte has joined #ruby
jgarvey has quit [Quit: Leaving]
headius has joined #ruby
squidBits has quit [Quit: squidBits]
arya has joined #ruby
poikon has joined #ruby
LBRapid has joined #ruby
<davidcelis> Spooner: I forgot that gems fetched from GitHub aren't actually packed, so it doesn't matter
<workmad3> aha :) problem not really a problem
postmodern has quit [Quit: Leaving]
adeponte has quit [Read error: No route to host]
jerius has quit [Ping timeout: 264 seconds]
aef has joined #ruby
<davidcelis> aaaand my gems are signed
adeponte has joined #ruby
<davidcelis> well
<davidcelis> self signed :P
<workmad3> does rubygems let you give them your public key so they can verify your signing?
iambic has quit [Quit: leaving]
HAKEON has quit [Quit: HAKEON]
c0rn has quit [Quit: Computer has gone to sleep.]
philcrissman has joined #ruby
maxmanders has joined #ruby
geggam has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
LBRapid has quit [Client Quit]
punkrawkR^Home has quit [Read error: Connection reset by peer]
allaire has quit []
emocakes has quit [Quit: emocakes]
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
chendo_ has quit [Ping timeout: 260 seconds]
aaronmcadam has quit [Quit: aaronmcadam]
haxrbyte_ has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
frogstarr78 has quit [Remote host closed the connection]
louisror has joined #ruby
arya has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
frogstarr78 has joined #ruby
<davidcelis> dunno
philcrissman has quit [Remote host closed the connection]
ilyam has quit [Remote host closed the connection]
_nitti has quit [Read error: Operation timed out]
ilyam has joined #ruby
chendo_ has joined #ruby
chendo_ has quit [Changing host]
chendo_ has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
jeffreybaird has joined #ruby
jduan1981 has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
theRoUS has quit [Read error: Operation timed out]
banjara has quit [Ping timeout: 276 seconds]
blaines has joined #ruby
banjara has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
pewter_tao has left #ruby [#ruby]
MattRB has quit [Quit: This computer has gone to sleep]
jlast_ has quit [Remote host closed the connection]
kjbrock_ has joined #ruby
Skylab has quit [Quit: Skylab]
nari has quit [Ping timeout: 248 seconds]
willob has quit [Quit: Leaving.]
freezway has joined #ruby
drago757 has joined #ruby
anonymuse has quit [Quit: Leaving.]
apok has quit [Quit: apok]
poikon has quit [Remote host closed the connection]
samuel02 has quit [Remote host closed the connection]
Umren has quit [Read error: Connection reset by peer]
arya has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
peregrine81 has joined #ruby
cableray has quit [Quit: cableray]
fir_ed has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby