ljarvis changed the topic of #ruby-lang to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p547: http://ruby-lang.org || Paste code on http://gist.github.com
djbkd has quit [Remote host closed the connection]
vvikus has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
sepp2k has quit [Ping timeout: 240 seconds]
saarinen has joined #ruby-lang
sepp2k has joined #ruby-lang
vvikus has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
jmeeuwen has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby-lang
yfeldblum has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Quit: I growing sleepy]
sduckett has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
jmeeuwen has joined #ruby-lang
caral has quit [Ping timeout: 245 seconds]
alexju_ has joined #ruby-lang
alexju has quit [Read error: No route to host]
bruno- has quit [Ping timeout: 256 seconds]
nathanstitt has joined #ruby-lang
willmarshall has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby-lang
stardiviner has joined #ruby-lang
bruno- has joined #ruby-lang
bantic has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
ddv has quit [Ping timeout: 260 seconds]
abhi_rsd has joined #ruby-lang
ddv has joined #ruby-lang
bruno- has quit [Ping timeout: 272 seconds]
tkuchiki has joined #ruby-lang
abhi_rsd___ has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
astro_turf has quit [Remote host closed the connection]
astro_turf has joined #ruby-lang
fmendez has quit [Remote host closed the connection]
agrinb has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 250 seconds]
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
lsegal has joined #ruby-lang
astro_turf has quit [Ping timeout: 250 seconds]
bantic has quit [Quit: bantic]
saarinen has quit [Quit: saarinen]
astro_turf has joined #ruby-lang
symm- has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
vintik has quit [Ping timeout: 250 seconds]
haraoka has joined #ruby-lang
mistym has quit [Remote host closed the connection]
astro_turf has quit [Read error: Connection reset by peer]
astro_turf has joined #ruby-lang
|jemc| has quit [Ping timeout: 245 seconds]
alexju_ has quit [Ping timeout: 250 seconds]
alexju has joined #ruby-lang
bruno- has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karamazov has joined #ruby-lang
Cakey has joined #ruby-lang
charliesome has joined #ruby-lang
bruno- has quit [Ping timeout: 255 seconds]
astro_turf has quit [Remote host closed the connection]
astro_turf has joined #ruby-lang
charliesome has quit [Ping timeout: 256 seconds]
simoz1111117 has quit [Ping timeout: 250 seconds]
mistym has joined #ruby-lang
davispuh has quit [Ping timeout: 245 seconds]
astro_turf has quit [Ping timeout: 250 seconds]
Cakey has quit [Ping timeout: 240 seconds]
Miphix has joined #ruby-lang
<karamazov> So that koans were fun. I think I learned more about vim than ruby.
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
tdy has quit [Quit: WeeChat 0.4.3]
shinnya has quit [Ping timeout: 250 seconds]
jbardin has quit [Quit: jbardin]
charliesome has joined #ruby-lang
vintik has joined #ruby-lang
|jemc| has joined #ruby-lang
t_ has joined #ruby-lang
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
houhoulis has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
bruno- has joined #ruby-lang
tkuchiki has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 245 seconds]
vvikus has quit [Quit: WeeChat 0.4.2]
vvikus has joined #ruby-lang
tkuchiki has joined #ruby-lang
amclain has joined #ruby-lang
diegoviola has joined #ruby-lang
JohnFord has joined #ruby-lang
vvikus has quit [Ping timeout: 255 seconds]
vvikus has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
znz_jp has quit [Quit: kill -QUIT $$]
karamazov has joined #ruby-lang
karamazov has quit [Ping timeout: 250 seconds]
saarinen has joined #ruby-lang
john___ has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby-lang
vvikus has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby-lang
znz_jp has joined #ruby-lang
vvikus has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
znz_jp has quit [Client Quit]
znz_jp has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby-lang
ascarter has joined #ruby-lang
jxie has quit [Quit: leaving]
lewix has quit [Read error: Connection reset by peer]
lewix has joined #ruby-lang
bantic has joined #ruby-lang
bantic has quit [Client Quit]
mistym has quit [Remote host closed the connection]
tectonic has joined #ruby-lang
bantic has joined #ruby-lang
bantic has quit [Client Quit]
bantic has joined #ruby-lang
vvikus has quit [Ping timeout: 250 seconds]
bantic has quit [Quit: bantic]
stayarrr has joined #ruby-lang
hahuang65 has quit [Ping timeout: 240 seconds]
sMecKs has joined #ruby-lang
ikrima has joined #ruby-lang
godd2 has joined #ruby-lang
Cakey has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
mistym has joined #ruby-lang
john___ has quit []
Cakey has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby-lang
Xzyx987X_ has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 255 seconds]
saarinen has quit [Quit: saarinen]
Xzyx987X_ has joined #ruby-lang
djbkd has joined #ruby-lang
AlecTaylor has joined #ruby-lang
AlecTaylor has quit [Changing host]
AlecTaylor has joined #ruby-lang
AlecTaylor has joined #ruby-lang
AlecTaylor has quit [Changing host]
<AlecTaylor> hi
vintik has quit [Remote host closed the connection]
gix has joined #ruby-lang
vintik has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
btiefert has joined #ruby-lang
<godd2> what's up?
AlecTaylor_ has joined #ruby-lang
<AlecTaylor_> hi
<AlecTaylor_> How do I use rspec? - Here's what I have: `require 'rspec' \n describe 'Foo' do \n end` - Error: in `<top (required)>': undefined method `describe' for main:Object (NoMethodError)
AlecTaylor_ is now known as Tailor
AlecTaylor has quit [Ping timeout: 246 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
vintik has quit [Ping timeout: 250 seconds]
Tailor is now known as AlecTaylor
jamilbk has joined #ruby-lang
JohnBat26 has joined #ruby-lang
<godd2> you have to run the spec from the command line; outside of irb
weems|mac has joined #ruby-lang
<godd2> so save that code to foo_spec.rb (it doesn't have to be named that, it can be named anything) and then from the command line, navigate to the folder that holds foo_spec.rb and run `rspec foo_spec.rb` (without the quotes)
agrinb has joined #ruby-lang
sepp2k has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 0.4.3]
alexju_ has joined #ruby-lang
alexju has quit [Read error: No route to host]
diegoviola has joined #ruby-lang
agrinb has quit [Ping timeout: 240 seconds]
agrinb has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hellome has quit [Read error: Connection reset by peer]
pvelidi has joined #ruby-lang
pvelidi has quit [Client Quit]
JohnFord has joined #ruby-lang
skade has joined #ruby-lang
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby-lang
agrinb has quit [Ping timeout: 264 seconds]
Cakey has joined #ruby-lang
charliesome has joined #ruby-lang
charliesome has quit [Client Quit]
<AlecTaylor> Thanks godd2
AlecTaylor has quit [Quit: Page closed]
robbyoconnor has quit [Quit: Konversation terminated!]
r0bby_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
r0bby_ has quit [Client Quit]
alexju_ has quit [Remote host closed the connection]
skade has joined #ruby-lang
alexju has joined #ruby-lang
bruno- has joined #ruby-lang
alexju has quit [Ping timeout: 240 seconds]
michaeldeol has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
jamilbk has quit [Quit: jamilbk]
djbkd has quit [Remote host closed the connection]
skade has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weems|mac has quit [Quit: weems|mac]
bruno- has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JohnBat26 has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby-lang
agrinb has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 264 seconds]
agrinb_ has joined #ruby-lang
michaeldeol has joined #ruby-lang
agrinb has quit [Read error: Connection reset by peer]
agrinb_ has quit [Ping timeout: 240 seconds]
skade has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Quit: WeeChat 0.4.3]
diegoviola has joined #ruby-lang
vintik has joined #ruby-lang
caral has joined #ruby-lang
caral has quit [Client Quit]
supe has joined #ruby-lang
<supe> hi
<supe> How do I zip/map these two into a Hash? - ['foo', 'bar'], [[5,6], [6,7],[7,8]] ===== into ====> {:foo => [5,6,7], :bar => [6,7,8]}
supe has quit [Client Quit]
<freedrull> has there ever been talk of writing `Encoding.exists?` ?
<freedrull> hmm well i guess there's #name_list and i can do .include? there
sduckett has quit [Ping timeout: 240 seconds]
<freedrull> kind of
yfeldblum has quit [Ping timeout: 255 seconds]
t_ has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
kyb3r_ has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
Authenticator has quit [Quit: leaving]
relix has joined #ruby-lang
AKASkip has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby-lang
lewix has quit [Read error: Connection reset by peer]
saarinen has joined #ruby-lang
lewix has joined #ruby-lang
bruno- has joined #ruby-lang
t_ has joined #ruby-lang
RobertBirnie has joined #ruby-lang
bruno- has quit [Ping timeout: 255 seconds]
ur5us has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
<apeiros> freedrull: Encoding.find
<apeiros> wow, supe didn't have a lot of patience. <3 people asking and leaving 2min later…
vintik has quit [Ping timeout: 250 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
agrinb has joined #ruby-lang
stayarrr has quit [Quit: Leaving...]
gss has joined #ruby-lang
wallerdev has joined #ruby-lang
apeiros has quit [Ping timeout: 250 seconds]
agrinb has quit [Ping timeout: 240 seconds]
tectonic has quit []
djbkd has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
djbkd has quit [Remote host closed the connection]
RobertBi_ has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 240 seconds]
houhoulis has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
yatish27 has joined #ruby-lang
abhi_rsd___ has quit [Remote host closed the connection]
abhi_rsd has quit [Remote host closed the connection]
tectonic has joined #ruby-lang
AKASkip has quit [Ping timeout: 245 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eeezkil has joined #ruby-lang
saarinen has quit [Quit: saarinen]
rsl has quit [Read error: Connection reset by peer]
eeezkil has quit [Max SendQ exceeded]
rsl has joined #ruby-lang
RobertBi_ has quit [Ping timeout: 240 seconds]
gss_ has joined #ruby-lang
RobertBirnie has joined #ruby-lang
gss has quit [Ping timeout: 250 seconds]
flori has quit [Remote host closed the connection]
ikrima has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
relix has joined #ruby-lang
nofxx has quit [Ping timeout: 240 seconds]
skade has joined #ruby-lang
flori has joined #ruby-lang
flori has quit [Client Quit]
tectonic has quit []
apeiros has joined #ruby-lang
flori has joined #ruby-lang
ddv has quit [Changing host]
ddv has joined #ruby-lang
flori has quit [Client Quit]
flori has joined #ruby-lang
agrinb has joined #ruby-lang
gss_ has quit [Remote host closed the connection]
_ht has joined #ruby-lang
mistym has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 256 seconds]
riffraff has joined #ruby-lang
TvL2386 has joined #ruby-lang
<TvL2386> hi guys, I'm using cancan and when I want to create a new record I get CanCan::AccessDenied. In the ability I have "can :manage, ModelA, model_b: { locked: false }". This seems to bite because it won't trigger if I remove the :model_b constraint. I'm not sure how to work around this
Xzyx987X_ has quit [Read error: Connection reset by peer]
<TvL2386> woops, wrong channel, sorry guys
Forgetful_Lion has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
Cakey has quit [Ping timeout: 245 seconds]
nandubatchu has joined #ruby-lang
jhass|off is now known as jhass
<nandubatchu> hello
<nandubatchu> any indian?
|jemc| has quit [Quit: WeeChat 0.4.3]
AKASkip has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nandubatchu> any one online?
<jhass> if you have a question just ask
stayarrr has joined #ruby-lang
<jeaye> indian?
<nandubatchu> yes
<nandubatchu> i have an opensource code for my project in Ruby language
<nandubatchu> need some one to verify
<nandubatchu> or help me
<nandubatchu> is ruby language secure?
willmarshall has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
solars has joined #ruby-lang
<jhass> your system needs to be secure, it's not a language property
bruno- has joined #ruby-lang
<nandubatchu> i mean, is it having higher vulnerability to get hacked?
<jeaye> higher than?
<nandubatchu> can it be used for financial transaction website?
<nandubatchu> ?
bruno- has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vintik has joined #ruby-lang
eeezkil has joined #ruby-lang
<apeiros> nandubatchu: as jhass already said - that's not really a language property
<apeiros> libraries can have vulnerabilities. ruby doesn't differ from other languages in that regard.
ur5us has joined #ruby-lang
tomkadwill has joined #ruby-lang
tomkadwill has quit [Client Quit]
lewix_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
sMecKs has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
lewix has quit [Ping timeout: 255 seconds]
supe has joined #ruby-lang
<supe> hi
<supe> How do I zip/map these two into a Hash? - ['foo', 'bar'], [[5,'a'], [6,'b'],[7,'c']] ===== into ====> {:foo => [5,6,7], :bar => ['a','b','c']}
Atttwww has quit [Ping timeout: 264 seconds]
<jhass> keys = ['foo', 'bar']; values = [[5,'a'], [6,'b'],[7,'c']]; keys.map(&:to_sym).zip(values.transpose).to_h # I hope keys is not user input
tomkadwill has joined #ruby-lang
<supe> Thanks
mikecmpbll has joined #ruby-lang
bruno- has joined #ruby-lang
bruno- is now known as Guest38040
supe has quit [Ping timeout: 246 seconds]
agrinb has joined #ruby-lang
supe has joined #ruby-lang
<supe> hi
<supe> Darn, my computer randomly shut down
wallerdev has quit [Quit: wallerdev]
<supe> Can someone please tell me what was just written in reply to my question? - Thanks
<apeiros> 09:51 jhass: keys = ['foo', 'bar']; values = [[5,'a'], [6,'b'],[7,'c']]; keys.map(&:to_sym).zip(values.transpose).to_h # I hope keys is not user input
<supe> Thanks
<apeiros> did it shut down last time you asked too?
stayarrr has quit [Quit: Leaving...]
<supe> apeiros: :v
agrinb has quit [Ping timeout: 240 seconds]
<supe> Hmm
<supe> How do I go from ['foo', 'bar'], [[6,'a'], [9, 'b'], [12, 'c']] to [{'foo' => 6, 'bar' => 'a'}, {'foo' => 9, 'bar' => 'b'}, {'foo' => 12, 'bar' => 'c'}?
<supe> I.e.: a list of Hashes, rather than key=>List
gss has joined #ruby-lang
<jhass> keys = ['foo', 'bar']; values = [[5,'a'], [6,'b'],[7,'c']]; values.map {|items| keys.zip(values).to_h } # choose better variable names
<jhass> eh, .zip(items) of course
<yorickpeterse> morning ugly bags of mostly water
<DefV> sup
<supe> Thanks jhass
elia has joined #ruby-lang
r0bby_ has joined #ruby-lang
elia has quit [Ping timeout: 264 seconds]
supe has quit [Quit: Page closed]
michd is now known as MichD
fullybaked has joined #ruby-lang
r0bby_ is now known as robbyoconnor
elia has joined #ruby-lang
ssam2 has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
tomkadwill has joined #ruby-lang
astro_turf has joined #ruby-lang
<nandubatchu> i am planning to start a crypto exchange in my country
<nandubatchu> can that be written in ruby language securely?
<apeiros> nandubatchu: if we answer the question a third time, will you ask again?
<nandubatchu> i did not mention crypto exchange
<yorickpeterse> "crypto exchange"?
<nandubatchu> last time
<nandubatchu> yes
<jhass> yorickpeterse: next mtgox I guess
<nandubatchu> so how much man power would it take to program the code for this project?
<apeiros> nandubatchu: yes, it can. but the language is quite probably not the first part to break.
<yorickpeterse> nandubatchu: isn't that your job to find out? That question is really hard to answer without *any* information
<yorickpeterse> "Hi how do I write a faster than light engine" - euuhhh
<apeiros> also note that security isn't a static thing. you don't write something securely once and it stays secure.
<nandubatchu> I mean how hard is the project?
<nandubatchu> would it require a team?
<apeiros> nandubatchu: how difficult is it to build a building?
<apeiros> this question is utterly nonsensical.
<nandubatchu> ok listen
<nandubatchu> i want to have a platform for buyers and sellers
<nandubatchu> for about 30 crypto currencies
<apeiros> nandubatchu: you want business advice. this channel isn't for business advice.
<apeiros> hire a consultant.
<nandubatchu> I actually possess the code required for this project
<nandubatchu> but cannot verify it
<DefV> don't make a language choice
<apeiros> nandubatchu: then too, hire a consultant
<nandubatchu> I need someone to check the genuinity of the code
<DefV> find someone with technical competency who wants to do this project with you
<DefV> then see what language he is best with
<apeiros> it sounds rather odd to me that you have "the code" but can't assess its properties.
<DefV> if it's PHP, find someone else
diegovio1 has joined #ruby-lang
<yorickpeterse> nandubatchu: again hire somebody for that
<nandubatchu> i can assess its properties but i have no programming background
<yorickpeterse> We're happy to help with anything Ruby related, but we're not business consultants
diegoviola is now known as Guest43425
diegovio1 is now known as diegoviola
Guest43425 has quit [Ping timeout: 250 seconds]
<apeiros> nandubatchu: "i can assess its properties ***but i have no programming background***" so you can't.
<apeiros> and now he tries to get consultancy in my pm.
<surrounder> lol
<nandubatchu> i just wanted to talk to some person with knowledge of the language
<ddv> I don't hope he's the next mtgox, which was a gigantic amateurish php mess
<apeiros> ddv: IME lots of business stuff is.
<ddv> that might be true yes
<apeiros> "it works" is sadly often enough
<DefV> +1
<yorickpeterse> nandubatchu: hire
<apeiros> that it's a train wreck heading for disaster is a problem for "the next guy in charge"
<yorickpeterse> nandubatchu: a
<yorickpeterse> nandubatchu: consultant
<yorickpeterse> That's what they do, and that's what you pay them for
knu has quit [Ping timeout: 250 seconds]
<nandubatchu> what if I find the code I have is useless? what is the point in hiring a consultant?
<ddv> to find out if the code is useless
<yorickpeterse> Also hire a lawyer since you're dealing with financial stuff
<apeiros> the point is that you then don't use the useless code
<yorickpeterse> ^
<ddv> or acquire the knowledge to find out yourself
<apeiros> or that you get the useless code into a usable state
<apeiros> what's the point if you ask here and get told that the code is useless? same difference…
<nandubatchu> thank you
<ddv> where are you from, nandubatchu?
<nandubatchu> India
<ddv> ok
* DefV makes a mental reminder not to buy any crypto-cash originating in india in the next few months
marr has joined #ruby-lang
<surrounder> lol
nandubatchu has left #ruby-lang [#ruby-lang]
pvelidi has joined #ruby-lang
pvelidi has quit [Client Quit]
agrinb has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
agrinb has quit [Read error: Connection reset by peer]
agrinb has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
agrinb has quit [Ping timeout: 272 seconds]
arBmind1 has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
ssam2 has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
arBmind has joined #ruby-lang
vintik has quit [Remote host closed the connection]
Guest38040 has quit [Quit: leaving]
vintik has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
workmad3 has joined #ruby-lang
tomkadwill has joined #ruby-lang
vintik has quit [Ping timeout: 240 seconds]
tomkadwill has quit [Read error: No route to host]
tomkadwill has joined #ruby-lang
vintik has joined #ruby-lang
kek has joined #ruby-lang
<yorickpeterse> Stupid newrelic rpm
<yorickpeterse> getting this to run outside of rack/rails/whatever they support requires an academic degree in shaving yaks and digging holes
banister has joined #ruby-lang
<DefV> good thing you're just the man for the job
<DefV> then
<surrounder> lol
face has joined #ruby-lang
bin7me has joined #ruby-lang
* yorickpeterse dusts off a kitchen towel and slaps it at DefV
<yorickpeterse> Like, it *somehow* worked yesterday for a little while
<yorickpeterse> but now it doesn't anymore
redhat_ has joined #ruby-lang
<yorickpeterse> But if I look at it, it couldn't have worked yesterday
<DefV> that's the best code
<DefV> code where you look at it and wonder
<DefV> "did this ever work?"
monteg has joined #ruby-lang
neurodamage has joined #ruby-lang
marr123 has joined #ruby-lang
Kuukunen- has joined #ruby-lang
ihme-TTilus has joined #ruby-lang
dostoyev1ky has joined #ruby-lang
skinny_much_ has joined #ruby-lang
marr123 has quit [Remote host closed the connection]
saltsa_ has joined #ruby-lang
badeball_ has joined #ruby-lang
joevandy1 has joined #ruby-lang
tommylom1ykins has joined #ruby-lang
marr has quit [*.net *.split]
faces has quit [*.net *.split]
anekos_ has quit [*.net *.split]
badeball has quit [*.net *.split]
ohsix has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
creede has quit [*.net *.split]
neurodam1ge has quit [*.net *.split]
igalic has quit [*.net *.split]
serhart has quit [*.net *.split]
saltsa has quit [*.net *.split]
bougyman has quit [*.net *.split]
jayne has quit [*.net *.split]
paul_k has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
Jamo has quit [*.net *.split]
sindork has quit [*.net *.split]
TTilus has quit [*.net *.split]
mahlon has quit [*.net *.split]
cid404 has quit [*.net *.split]
skinny_much has quit [*.net *.split]
webhat has quit [*.net *.split]
joevandyk has quit [*.net *.split]
oddmunds has quit [*.net *.split]
fumduq has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
serhart has joined #ruby-lang
jayne has joined #ruby-lang
igalic_ has joined #ruby-lang
ohsix has joined #ruby-lang
fumduq has joined #ruby-lang
anekos_ has joined #ruby-lang
oddmunds has joined #ruby-lang
cid404 has joined #ruby-lang
paul_k has joined #ruby-lang
sindork has joined #ruby-lang
bougyman has joined #ruby-lang
mahlon has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
Jamo has joined #ruby-lang
marr has joined #ruby-lang
Cakey has joined #ruby-lang
gss has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Miphix has quit [Quit: Leaving]
Fushi has joined #ruby-lang
agrinb has joined #ruby-lang
lewix_ has quit [Remote host closed the connection]
lewix has joined #ruby-lang
Cakey has quit [Ping timeout: 255 seconds]
badeball_ is now known as badeball
agrinb has quit [Ping timeout: 245 seconds]
gpg_ has joined #ruby-lang
lewix has quit [Ping timeout: 250 seconds]
vintik has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
<gpg_> what does*def name=(arg) end* mean name=(arg)?
<gpg_> the = is bothering me?
stamina has joined #ruby-lang
<yorickpeterse> That's just a setter method
<yorickpeterse> If you define a method "foo=" on a class, you can use it like "instance_of_that_class.foo = 10"
<gpg_> 10x
<gpg_> what does def method(*args) end
<gpg_> *args is bothering me
<gpg_> thank you
pskosinski has joined #ruby-lang
haraoka has quit [Ping timeout: 240 seconds]
pskosinski has quit [Client Quit]
pskosinski has joined #ruby-lang
stamina has quit [Quit: WeeChat 0.4.3]
knu has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 250 seconds]
diegovio1 has joined #ruby-lang
<godd2> *args takes all the arguments passed to a method and stores them in an array called args
diegoviola is now known as Guest28858
diegovio1 is now known as diegoviola
Guest28858 has quit [Ping timeout: 255 seconds]
earthquake has quit [Quit: earthquake]
jxie has joined #ruby-lang
agrinb has joined #ruby-lang
faces has joined #ruby-lang
face has quit [Ping timeout: 260 seconds]
agrinb has quit [Ping timeout: 255 seconds]
banister has joined #ruby-lang
symm- has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
astro_turf has quit [Remote host closed the connection]
astro_turf has joined #ruby-lang
caral has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegovio1 is now known as diegovio1a
astro_turf has quit [Ping timeout: 240 seconds]
m3k40 has joined #ruby-lang
diegoviola has quit [Ping timeout: 272 seconds]
bantic has joined #ruby-lang
bantic has quit [Client Quit]
diegovio1a is now known as diegoviola
astro_turf has joined #ruby-lang
JohnFord has joined #ruby-lang
skade has joined #ruby-lang
sferik has joined #ruby-lang
tomkadwill has quit [Remote host closed the connection]
creede has joined #ruby-lang
tomkadwill has joined #ruby-lang
tomkadwill has quit [Read error: Connection reset by peer]
tomkadwill has joined #ruby-lang
ldnunes has joined #ruby-lang
sferik has quit [Client Quit]
tbuehlmann has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby-lang
spastorino has joined #ruby-lang
Sgeo has quit [Read error: Connection reset by peer]
agrinb has joined #ruby-lang
earthquake has joined #ruby-lang
agrinb has quit [Ping timeout: 250 seconds]
astro_turf has quit [Remote host closed the connection]
astro_turf has joined #ruby-lang
yfeldblum has joined #ruby-lang
astro_turf has quit [Ping timeout: 245 seconds]
<yorickpeterse> wohoo, got the darn newrelic rpm going
<yorickpeterse> something something a Gem shouldn't connect to the network upon a require()
yfeldblum has quit [Ping timeout: 255 seconds]
rsl has quit [Ping timeout: 250 seconds]
rsl has joined #ruby-lang
jxie has quit [Remote host closed the connection]
mehlah has joined #ruby-lang
pabloh has joined #ruby-lang
astro_turf has joined #ruby-lang
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby-lang
igalic_ has quit [Changing host]
igalic_ has joined #ruby-lang
igalic_ is now known as igalic
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
Miphix has joined #ruby-lang
Cakey has joined #ruby-lang
[spoiler] has joined #ruby-lang
gss has joined #ruby-lang
saarinen has quit [Quit: saarinen]
kyb3r_ has quit [Read error: Connection reset by peer]
futilegames has joined #ruby-lang
futilegames has quit [Client Quit]
nofxx has joined #ruby-lang
pablo_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
sferik has joined #ruby-lang
pabloh has quit [Ping timeout: 256 seconds]
dwknoxy has joined #ruby-lang
agrinb has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
malconis has joined #ruby-lang
alexju has joined #ruby-lang
tkuchiki has quit [Ping timeout: 264 seconds]
malconis has quit [Read error: Connection reset by peer]
malconis has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 255 seconds]
jgpawletko has joined #ruby-lang
weems|mac has joined #ruby-lang
jxie has joined #ruby-lang
Missphoenix has joined #ruby-lang
Miphix has quit [Ping timeout: 250 seconds]
banister has quit [Read error: Connection reset by peer]
banister_ has joined #ruby-lang
sarkyniin has joined #ruby-lang
tkuchiki has joined #ruby-lang
sduckett has joined #ruby-lang
JohnFord has joined #ruby-lang
sarkyniin has quit [Ping timeout: 255 seconds]
Adhok has joined #ruby-lang
chouhoulis has joined #ruby-lang
alexju has quit [Remote host closed the connection]
astro_turf has quit [Remote host closed the connection]
alexju has joined #ruby-lang
astro_turf has joined #ruby-lang
TvL2386 has quit [Quit: Ex-Chat]
agrinb has quit [Remote host closed the connection]
alexju has quit [Ping timeout: 256 seconds]
agrinb has joined #ruby-lang
astro_turf has quit [Ping timeout: 264 seconds]
karamazov has joined #ruby-lang
ascarter has joined #ruby-lang
agrinb_ has joined #ruby-lang
agrinb has quit [Read error: Connection reset by peer]
gss has quit [Remote host closed the connection]
skade has joined #ruby-lang
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loincloth has joined #ruby-lang
sferik has joined #ruby-lang
Cakey has quit [Ping timeout: 240 seconds]
queue has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
gss has joined #ruby-lang
diegovio1 has joined #ruby-lang
diegoviola is now known as Guest42018
banister_ has quit [Read error: Connection reset by peer]
gss has quit [Read error: Connection reset by peer]
banister has joined #ruby-lang
tkuchiki has quit [Read error: Connection reset by peer]
gss has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby-lang
futilegames has joined #ruby-lang
<chris2> is nginx 1.7 ok for production?
<workmad3> chris2: I wanted the syslog logging from it so got it installed... haven't had any issues with it
<chris2> the website recommends 1.7
<chris2> but debian unstable and arch have 1.6...
<chris2> workmad3: yeah, that is my reason too
<workmad3> debian will take quite a while to update
<workmad3> as will ubuntu
<chris2> unstable even
<workmad3> I think 1.7 has only been out for a few months :)
<chris2> same time as 1.6 afaiu
diegovio1 is now known as diegovio1a
<workmad3> ah, 1.6 is 1.5 as the new 'stable' branch, while 1.7 is the new 'mainline' branch
<DefV> idd
<workmad3> seems to be how nginx version things... odd numbers are the dev branch, while even numbers are 'stable'
mark_slight has joined #ruby-lang
<darix> chris2: why syslog?
<chris2> because it's simple and supports easy log rotation here
<darix> chris2: does nginx support pipe logging?
<chris2> fifo should work, not sure
<chris2> own pipe i dont see here
<darix> chris2: cronolog is really nice for webservers
<chris2> i use socklog/svlogd, but yes
<chris2> used cronolog as well
agrinb_ has quit [Remote host closed the connection]
futilegames has left #ruby-lang [#ruby-lang]
yatish27 has quit [Remote host closed the connection]
pablo_ has quit [Remote host closed the connection]
QuintinAdam has joined #ruby-lang
<Adhok> hey, I have a variable called age = "5m", I then make a variable called age_mod = age[-1], which should pull in an m (and does on my machine running 2.1.x) but on the machine that runs 1.8.7, It instead pulls in 109 (which is the ascii value for m)
<Adhok> and it's driving me nuts
<jhass> Adhok: yes, that changed with 1.9
<Adhok> ok
<jhass> Adhok: just stop using 1.8
<Adhok> I wish I could, it's what's getting loaded with puppet on all our machines
cmhobbs has joined #ruby-lang
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby-lang
<Adhok> I'm assuming the best workaround would be to do a .to_s on it?
Cakey has joined #ruby-lang
<Adhok> since I'm stuck with 1.8 for now
nathanstitt has joined #ruby-lang
<jhass> that would return "109" on 1.8
<Adhok> wowzers
<jhass> seriously, I would investigate if it isn't less work upgrading your ruby
<Adhok> ya I'm loving the 2.1.x version I have installed on arch, works beautifully
<jhass> 1.8 is ancient and basically out of support
<darix> jhass: it is still in support right now
<darix> as far as i know
<karamazov> I have to make tic-tac-toe for an interview - I'm thinking of just making it a gem for the sake of organization? Does that make sense?
<darix> and for many enterprise distro users, if they want to keep support, they are stuck on 1.8
<canton7> I'd follow the gem directory layout, but not bother actually writing a .gemspec, karamazov
<karamazov> canton7: Yeah - I was going more for the layout not so much the gem aspect - thanks!
<jhass> darix: not from MRI maintainers, thus "basically"
<karamazov> I've never written anything like this - it's a bit daunting but I know it shouldn't be
<darix> jhass: didnt zzak take over the 1.8.7 maintenance for now?
agrinb has joined #ruby-lang
<darix> ah
<darix> jhass: as i said ... enterprise distros sadly cant just upgrade ruby
diegovio1a has quit [Remote host closed the connection]
<darix> as newer rubies are not a drop in replacement
<jhass> then they should do the support for that. Not we or MRI core
<darix> jhass: they do. they usually backport security fixes
<jhass> it's still valid to advise to upgrade and to not support it here
<darix> jhass: yes and no. because maybe they cant. for mentioned reasons already. and here is my biggest gripe with it.... people will install ruby manually or with some tool rvm/rbenv/...
bantic has joined #ruby-lang
mistym has joined #ruby-lang
<darix> who is doing the security maintenance then? you think most of the users will watch for this and upgrade if needed?
gpg_ has quit [Quit: Page closed]
<darix> i highly doubt that.
<darix> so i rather see people on a vendor supported ruby which is older than a newer which is without sec fixes.
<chris2> have there been notable bugs in the C part of ruby?
<darix> chris2: just recently actually
<chris2> hm, floating point parsing
<chris2> the hash thing, ok
mistym has quit [Remote host closed the connection]
<darix> (that one only affects 32bit rubies)
<chris2> nice
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chris2> and i use .pack("m*") a lot even :>
<Adhok> jhass: thanks for the heads up man. and ya it looks like i'm stuck at the moment with 1.8 (we have build systems we use ranging from u10.04 and rhel5 on up, so just upgrading and hoping everything works isn't really in the cards atm) I'll dig through the 1.8.7 documentation explicitly and figure out how this should be working though
agrinb has quit [Remote host closed the connection]
sferik has joined #ruby-lang
shinnya has joined #ruby-lang
mistym has joined #ruby-lang
yatish27 has joined #ruby-lang
queue has quit [Ping timeout: 260 seconds]
AKASkip has quit [Ping timeout: 240 seconds]
|jemc| has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
CaptainJet has joined #ruby-lang
queue has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
ruby-lang354 has joined #ruby-lang
<ruby-lang354> Hi Guys
jlovick has joined #ruby-lang
<ruby-lang354> I am trying to download a tar file of size 25M using the Net::Http class of Ruby.....
Guest42018 has quit [Ping timeout: 250 seconds]
<ruby-lang354> however I see that the downloaded file is 85M and I am not able to untar ir using zlib ruby utils
<ruby-lang354> here is the code and details
robmiller has joined #ruby-lang
yalue has joined #ruby-lang
<ruby-lang354> this occurs only on ruby 2 but on Ruby 1.9 works fine
<ruby-lang354> any ideas what I am missing?
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
<karamazov> Any of you use vim-ruby? I can't seem to get it to indent correctly. I figured that it would be pre-configured with 2 space indentation
queue has quit [Ping timeout: 240 seconds]
monteg has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
gss has quit []
praveend has joined #ruby-lang
jgpawletko is now known as jgpawletko_away
ta has quit [Quit: Leaving...]
ruby-lang354 has quit [Quit: Page closed]
apeiros has quit [Ping timeout: 272 seconds]
ta has joined #ruby-lang
momomomomo has joined #ruby-lang
davidfrey has joined #ruby-lang
queue has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<praveend> guys could some one help with the issue reported here https://www.ruby-forum.com/topic/5342548#1153832
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
tbuehlmann has quit [Quit: Leaving]
sduckett has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
yatish27 has quit [Ping timeout: 260 seconds]
rippa has joined #ruby-lang
<yorickpeterse> Could be that Net::HTTP already gzip-decodes the response while reading
Missphoenix has quit [Quit: Leaving]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
btiefert has quit [Read error: Connection reset by peer]
jgpawletko_away is now known as jgpawletko
agrinb has joined #ruby-lang
jkprg has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
brianpWins has joined #ruby-lang
mark_slight has quit [Quit: mark_slight]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
vintik has joined #ruby-lang
michaeldeol has joined #ruby-lang
<praveend> @yorickpeterse : no doesn't look like it has Gzip decoded.....because if I try to issue a normal tar -xf command on the file it untars it with out no errors.....this is putting me in dilemma
__butch__ has joined #ruby-lang
stef_204 has joined #ruby-lang
<praveend> interesting is it works fine on ruby-1.9
<yorickpeterse> tar -xf has nothing to do with gzip
vintik has quit [Remote host closed the connection]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
<yorickpeterse> Try running `gunzip FILE`, it will probably complain about either an unknown suffix or the file not being gzip format
<praveend> one more thing I observe is if I download the same file onto my machine and try to host it on hfs and then download via Net::Http pointing to my hfs link....it works fine
<yorickpeterse> euh yeah, the HTTP headers are probably at play here
<praveend> I checked if the web link is redirecting....it does not
<yorickpeterse> You'll want to compare those if possible
<praveend> any pointers....how can I do that?
<praveend> sorry...bit naive here
<yorickpeterse> well, the raw file contains the following header (curl -I .....):
<yorickpeterse> Content-Encoding: x-gzip
bantic has quit [Quit: bantic]
<yorickpeterse> Looks like Net::HTTP automatically inflates the payload now
<yorickpeterse> or deflate, whatever the one used for unpacking was
banister has joined #ruby-lang
<yorickpeterse> bbl
<praveend> oh ok....
<praveend> what is bbl?
<ljarvis> be back later
symm- has quit [Ping timeout: 255 seconds]
<praveend> :) encountering this for first time....I had heard only ttyl [talk to you later]
ikrima has joined #ruby-lang
sarkyniin has joined #ruby-lang
seamon has joined #ruby-lang
mark_slight has joined #ruby-lang
stamina has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
<praveend> guys, any help on how can I write the inflated contents on to disk....?
mikecmpbll has quit [Ping timeout: 245 seconds]
<praveend> @ljarvis...could help on saving the inflated contents that is coming out of Net::Http
loincloth has joined #ruby-lang
jkprg has quit [Quit: jkprg]
jbardin has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tomkadwill has quit []
wallerdev has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby-lang
amsi has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
sferik has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fullybaked has quit []
hinbody has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby-lang
shinnya has quit [Ping timeout: 260 seconds]
agarie has joined #ruby-lang
futilegames has joined #ruby-lang
futilegames has quit [Client Quit]
Xzyx987X has joined #ruby-lang
ikrima has quit [Ping timeout: 255 seconds]
QuintinAdam has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
QuintinAdam has joined #ruby-lang
stamina has quit [Ping timeout: 256 seconds]
Xzyx987X_ has quit [Ping timeout: 260 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby-lang
<praveend> @yorickpeterse could you please answer my question of how to persist this uncompresed stream onto disk on this thread https://www.ruby-forum.com/topic/5342548#1153870
relix has joined #ruby-lang
QuintinAdam has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 250 seconds]
skade has joined #ruby-lang
sindork has quit [Changing host]
sindork has joined #ruby-lang
futilegames has joined #ruby-lang
astro_turf has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
sferik has joined #ruby-lang
wallerdev has joined #ruby-lang
cirenyc has joined #ruby-lang
futilegames has quit [Client Quit]
jperry has quit [Ping timeout: 272 seconds]
saarinen has joined #ruby-lang
AKASkip has joined #ruby-lang
mistym has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
tbuehlmann has joined #ruby-lang
yfeldblum has joined #ruby-lang
dwknoxy is now known as dknox-lunch
jbardin has quit [Quit: jbardin]
hahuang65 has quit [Ping timeout: 272 seconds]
robmiller has quit [Quit: Leaving.]
dostoyev1ky is now known as dostoyevsky
gix has quit [Ping timeout: 245 seconds]
lewix has joined #ruby-lang
gix has joined #ruby-lang
alexju has joined #ruby-lang
ender|dkm has joined #ruby-lang
apeiros has joined #ruby-lang
duderonomy has quit [Ping timeout: 256 seconds]
michaeldeol has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
luiz_lha has joined #ruby-lang
seamon has quit [Quit: Zzzzzzz]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
riffraff has quit [Quit: Leaving]
vintik has joined #ruby-lang
seamon has joined #ruby-lang
mark_slight has quit [Quit: mark_slight]
jbardin has joined #ruby-lang
bougyman has quit [*.net *.split]
anekos_ has quit [*.net *.split]
bougyman has joined #ruby-lang
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
anekos_ has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
yk has joined #ruby-lang
<yk> warning
<yk> you may be watched
<yk> do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to spy??
<yk> do they record&analyse everything we do on the internet,,can they harm you using these informations??
<yk> ÊÍÐíÑ
<yk> do usa&israel use the internet 2 collect informations,,can we call that spying??
yk has quit [Excess Flood]
yk has joined #ruby-lang
<yk> warning
<yk> you may be watched
<yk> do usa&israel use the internet 2 collect informations,,can we call that spying??
<yk> do they record&analyse everything we do on the internet,,can they harm you using these informations??
<yk> do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to spy??
yk has quit [Excess Flood]
<jhass> apeiros: here to
yk has joined #ruby-lang
<jhass> o
<apeiros> oh
yk has quit [Excess Flood]
<apeiros> off for an hour… lets hope he doesn't change IP :)
<apeiros> s/he/they/
<apeiros> hm… with gender neutral "they", do you still use "doesn't", or do you use "don't"?
stamina has joined #ruby-lang
postmodern has joined #ruby-lang
<eam> I'm spying on on this channel right now
hahuang65 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
mistym has joined #ruby-lang
diegoviola has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<yorickpeterse> apeiros: just ban everything
symm- has joined #ruby-lang
<yorickpeterse> also you "may" be watched?
<yorickpeterse> Somebody hasn't exactly used the internet in the past 10 years
Atttwww has joined #ruby-lang
futilegames has joined #ruby-lang
mark_slight has joined #ruby-lang
<yorickpeterse> Tonight's exercise: recursion without recursion
loincloth has quit [Remote host closed the connection]
<yorickpeterse> betting on how many holes I'll bang in the wall with my head starts in 10 minutes
loincloth has joined #ruby-lang
<jhass> how much wall do you have available?
<yorickpeterse> About 55m2
<yorickpeterse> excluding the walls of my neighbours
praveend has quit [Quit: Page closed]
<jhass> I say 450
rippa has joined #ruby-lang
skade_ has joined #ruby-lang
loincloth has quit [Ping timeout: 264 seconds]
skade has quit [Ping timeout: 256 seconds]
jlovick has quit [Ping timeout: 245 seconds]
jlovick has joined #ruby-lang
ascarter_ has joined #ruby-lang
banister has joined #ruby-lang
davispuh has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has quit [Ping timeout: 255 seconds]
kramsee_ has quit [Quit: leaving]
kramsee has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
malconis has joined #ruby-lang
yfeldblum has joined #ruby-lang
jlovick has quit [Quit: No Ping reply in 180 seconds.]
jlovick has joined #ruby-lang
yfeldblum has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astro_turf has quit [Remote host closed the connection]
momomomomo has joined #ruby-lang
astro_turf has joined #ruby-lang
amsi has quit [Quit: Leaving]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alexju has quit [Remote host closed the connection]
jlovick_ has joined #ruby-lang
jlovick has quit [Ping timeout: 272 seconds]
alexju has joined #ruby-lang
astro_turf has quit [Ping timeout: 272 seconds]
loincloth has joined #ruby-lang
alexju has quit [Ping timeout: 260 seconds]
nathanstitt has quit [Quit: I growing sleepy]
michaeldeol has joined #ruby-lang
Xzyx987X has quit [Read error: Connection reset by peer]
seamon has quit [Quit: Zzzzzzz]
Xzyx987X has joined #ruby-lang
<dacamp> Anyone know peter Zotov (whitequark.org) Getting 403 for assets on rxr.whitequark.org/mri/source -- or if you know a better mri reference that'd work too
<jhass> whitequark: ^
<dacamp> jhass: thanks :)
mehlah has quit [Quit: Leaving...]
djbkd has quit [Remote host closed the connection]
JohnFord has joined #ruby-lang
djbkd has joined #ruby-lang
<apeiros> yorickpeterse: `/mode #ruby +b *!*@*` ?
<apeiros> errr, #ruby-lang, obv
sferik has quit [Ping timeout: 250 seconds]
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> apeiros: heh
<apeiros> I managed to do that once. I accidentally the whole channel.
kek_ has joined #ruby-lang
<yorickpeterse> I guess that day was a very productive day
<apeiros> it lasted only for ~3s ;-)
kek has quit [Ping timeout: 255 seconds]
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
vintik has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
jlovick_ has quit [Ping timeout: 245 seconds]
kek_ has quit [Ping timeout: 250 seconds]
vintik has joined #ruby-lang
bantic has joined #ruby-lang
MichD is now known as michd
vintik has quit [Ping timeout: 255 seconds]
michd is now known as MichD
Raycaster has joined #ruby-lang
Fushi has quit [Quit: Connection closed for inactivity]
diegoviola has quit [Quit: WeeChat 0.4.3]
charliesome has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby-lang
relix has joined #ruby-lang
diegoviola has joined #ruby-lang
vintik has joined #ruby-lang
havenwood has joined #ruby-lang
mark_slight has quit [Quit: mark_slight]
duderonomy has joined #ruby-lang
futilegames has quit [Quit: futilegames]
relix has quit [Client Quit]
QuintinAdam has joined #ruby-lang
seamon has joined #ruby-lang
nathanstitt has joined #ruby-lang
dknox-lunch is now known as dknox
elia has joined #ruby-lang
dik_dak has joined #ruby-lang
<whitequark> dacamp: will fix soon
jlovick has joined #ruby-lang
<whitequark> in fact, working on it right now...
workmad3 has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 245 seconds]
jlovick has quit [Ping timeout: 260 seconds]
<whitequark> fixed
jlovick has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
Jam___ has quit [Quit: Connection closed for inactivity]
jam__ has quit [Quit: Connection closed for inactivity]
davidfrey has quit [Remote host closed the connection]
<dacamp> whitequark: thanks!
davidfrey has joined #ruby-lang
borkabrak has joined #ruby-lang
davidfrey has quit [Read error: Connection reset by peer]
davidfre_ has joined #ruby-lang
djbkd has joined #ruby-lang
monees has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> jhass: no wall banging here, managed to find a decent solution
<jhass> :(
<yorickpeterse> :D
mark_slight has joined #ruby-lang
MichD is now known as michd
seamon has quit [Quit: Zzzzzzz]
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has quit [Quit: bantic]
futilegames has joined #ruby-lang
davispuh has quit [Quit: rebooting]
mark_slight has left #ruby-lang [#ruby-lang]
futilegames has quit [Client Quit]
[spoiler] has quit [Quit: Leaving]
yfeldblum has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
michd is now known as MichD
arBmind has joined #ruby-lang
JohnFord has joined #ruby-lang
brianpWins_ has joined #ruby-lang
astro_turf has joined #ruby-lang
godd2 has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 260 seconds]
brianpWins_ is now known as brianpWins
jbardin has quit [Quit: jbardin]
elia has quit [Quit: Computer has gone to sleep.]
yalue has quit [Quit: Leaving]
momomomomo has quit [Quit: momomomomo]
pskosinski has joined #ruby-lang
weems|mac has joined #ruby-lang
momomomomo has joined #ruby-lang
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
amerine_ is now known as amerine
astro_turf has quit []
torrieri has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
elia has joined #ruby-lang
vvikus has joined #ruby-lang
vintik has quit [Remote host closed the connection]
vintik has joined #ruby-lang
weems|mac has quit [Quit: weems|mac]
vintik has quit [Read error: Connection reset by peer]
vintik has joined #ruby-lang
alexju has joined #ruby-lang
jbardin has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
skade_ has quit [Quit: Computer has gone to sleep.]
djbkd has joined #ruby-lang
agarie has quit [Read error: Connection reset by peer]
agarie has joined #ruby-lang
davidfre_ has quit [Remote host closed the connection]
davidfrey has joined #ruby-lang
cleopatra has joined #ruby-lang
jgpawletko has quit [Ping timeout: 255 seconds]
davidfrey has quit [Ping timeout: 250 seconds]
elia has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
jgpawletko has joined #ruby-lang
relix has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
sepp2k has joined #ruby-lang
monees has quit [Ping timeout: 260 seconds]
skade has joined #ruby-lang
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
jam__ has joined #ruby-lang
skade_ has joined #ruby-lang
ur5us has joined #ruby-lang
elia has joined #ruby-lang
elia has quit [Client Quit]
michaeldeol has joined #ruby-lang
skade has quit [Ping timeout: 264 seconds]
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
elia has joined #ruby-lang
banister has joined #ruby-lang
ur5us has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
seamon has joined #ruby-lang
Sirupsen has joined #ruby-lang
stamina has quit [Ping timeout: 255 seconds]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby-lang
ur5us has joined #ruby-lang
toastynerd has quit [Remote host closed the connection]
tommylom1ykins is now known as tommylommykins
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ItSANgo has quit [Quit: Leaving...]
agrinb has quit [Read error: No route to host]
agrinb has joined #ruby-lang
luiz_lha has quit [Remote host closed the connection]
tbuehlmann has quit [Remote host closed the connection]
luiz_lha has joined #ruby-lang
kyb3r_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
momomomomo has quit [Quit: momomomomo]
ItSANgo has joined #ruby-lang
momomomomo has joined #ruby-lang
ldnunes has quit [Quit: Leaving]
momomomomo has quit [Client Quit]
caral has quit [Ping timeout: 240 seconds]
_ht has quit [Read error: Connection reset by peer]
mehlah has joined #ruby-lang
ItSANgo has quit [Client Quit]
weems|mac has joined #ruby-lang
momomomomo has joined #ruby-lang
loincloth has joined #ruby-lang
ItSANgo has joined #ruby-lang
dingus_khan has joined #ruby-lang
ender|dkm has quit [Ping timeout: 255 seconds]
skade has joined #ruby-lang
Sonja has joined #ruby-lang
<Sonja> hi
skade_ has quit [Ping timeout: 272 seconds]
seamon has quit [Quit: Zzzzzzz]
agarie has quit [Remote host closed the connection]
weems|mac has quit [Quit: weems|mac]
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> well... not fired yet
skade has quit [Ping timeout: 245 seconds]
skade_ has joined #ruby-lang
David__ has joined #ruby-lang
x0f has quit [Ping timeout: 264 seconds]
<dacamp> Any known bugs with rb_ary_includes on MRI 1.9.3?
<dacamp> It's probably me, but 1.9.3 is the only version that breaks. Here's a bt if anyone is interested. http://pastebin.com/46Mxj944
workmad3 has quit [Ping timeout: 272 seconds]
x0f has joined #ruby-lang
<dacamp> rb_ary_includes(assigned_uids, 10000) causes a seg fault. :/
jhass is now known as jhass|off
David__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
momomomomo_ has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
loincloth has joined #ruby-lang
<zenspider> dacamp: that's not what I see
<karamazov> What skill level do you think someone would need to write Tic Tac Toe with an unbeatable AI?
<dacamp> i'm all ears
<zenspider> dacamp: there's too much info missing, but #4 is on rb_type via fix_equal
<zenspider> the fact that you have something that LOOKS like a fixnum, but segvs afterwards? that's not good.
<zenspider> fixnums fit inside a VALUE pointer and just use bitflags to say they're not real pointers
michaeldeol has quit [Ping timeout: 245 seconds]
<zenspider> so you have something that is masquerading as a fixnum, but isn't?
<zenspider> I forget what rb_type is doing... sec
agrinb has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 240 seconds]
<zenspider> inline function... sees that it is IMMEDIATE_P, then tries FIXNUM_P
<dacamp> zenspider: it's a uid_t but I have a macro UIDT2FIX
<dacamp> so maybe that's exactly the problem
<zenspider> that ... looks... odd.. I read it is a function pointer cast, but I think it is just a multi cast across types?
<zenspider> dacamp: possibly
michaeldeol has joined #ruby-lang
<zenspider> you should run ruby under gdb so you can repro this and see what's going on before the segv
alexju has quit []
<dacamp> ok, do i need to recompile ruby in debug?
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> karamazov: that was the goal of my intro to programming class in high school
<wallerdev> was our final project after the semester
<zenspider> dacamp: possibly
<wallerdev> most of the kids coded an if statement for every single possible position on the board
<wallerdev> and would spend the hour each day copying and pasting if statements
<dacamp> heh, ok. thanks for the tips!
<karamazov> wallerdev: I had the same one in HS and did it with Visual Basic with no issue.
<zenspider> dacamp: lemme know what you find out
<dacamp> will do!
<wallerdev> our teacher wasn't the greatest haha, but we were lucky to have any programming class offered in high school :)
<karamazov> I know Ruby decently well but I feel dump
<karamazov> *dumb
<zenspider> iirc, my tictactoe thing was a bunch of ints. that was a long time ago
<apeiros> wallerdev: nice, so if they were clever, 945 if statements. if they were not, 362880? :)
<wallerdev> haha yeah i know some people had over 2000
<wallerdev> not sure what their strategies were
<wallerdev> one person had over 10,000
<karamazov> I already know I'll probably do a minimax
<wallerdev> that class was great though, thats where programming really clicked for me
<wallerdev> im sure my solution wasnt the best but i made use of loops and the program was maybe 300 lines total
<wallerdev> it also had some bugs but i didnt program in a condition where my AI lost
<karamazov> That's better than some that I've seen on github
<apeiros> with such a small problem space, I'd probably be lazy, enumerate all 362880 possible moves and pick out the 945 (or less) winning moves for O and the 384 (or less) winning moves for X
<wallerdev> so even when the AI lost it told the user they lost
<wallerdev> it was pretty funny lol
<apeiros> and then generate a lookup table for those
Adhok has quit [Remote host closed the connection]
<Sonja> i like "case"
<apeiros> afair with two perfect players, tic tac toe ends in a tie all the time
<wallerdev> yeah always a tie
<apeiros> ever tried 4d tic tac toe?
<apeiros> err, 3d
<wallerdev> ive played 3d and also the ones on bigger boards
<apeiros> but it's a 4x4x4 playfield
<apeiros> was one of my first video games. played it on my fathers mac. always lost against the computer :D
<wallerdev> i had to make connect 4 for an interview a few months ago
<wallerdev> was one of those "take home" assignments they do these days
<apeiros> bigger boards? "4 wins"? (at least in german I think it's called "4 gewinnt")
sMecKs has joined #ruby-lang
<zenspider> yeah. mine was some lookup table of ints. I don't remember it too well, just that it was easy to write and hard to debug.
<apeiros> hm yeah I can imagine how you can compress the board into bits of an int to create an efficient LUT
cirenyc has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sonja has quit []
alexju has joined #ruby-lang
skade_ has quit [Quit: Computer has gone to sleep.]
cmhobbs has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
David__ has joined #ruby-lang
<whitequark> LUT?
<whitequark> are we talking about FPGAs now?
<apeiros> LUT = LookUp-Table
MichD is now known as michd
<whitequark> oh, I see, the software kind
<zenspider> fpgas were way out of my budget back then.
<zenspider> very expensive at the time
<zenspider> not so much now
<karamazov> I've gone through the koans, read two books on Ruby, two on rspec, and I'm just sitting here not knowing what to do.
<karamazov> TDDing tictactoe can't be that difficult.
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<zenspider> wee. I have a script to probe inside temp and nearby outside temp and compare the two. now I just need some persistence so it knows the previous state and notifies me when it crosses
Sgeo has joined #ruby-lang
karamazov has quit [Remote host closed the connection]
karamazov has joined #ruby-lang
AKASkip has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RobertBi_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
RobertBirnie has quit [Ping timeout: 264 seconds]
Squeatus has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
michaeldeol has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
<zenspider> anyone here have good computer engineering / electronics fundamentals? I'm working on a talk on building a computer from scratch and could use some sanity checks against it. tenderlove was CE and he's looked at it, but he's also very ADD. I'd like someone to beat this up.
dingus_khan has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
RobertBi_ has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
chouhoulis has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
shinnya has joined #ruby-lang
QuintinAdam has quit [Remote host closed the connection]
msch has left #ruby-lang [#ruby-lang]
|jemc| has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Ping timeout: 255 seconds]
bin7me has quit [Read error: Connection reset by peer]
agarie has joined #ruby-lang
mikecmpbll has quit [Quit: i've nodded off.]
jam__ has quit [Quit: Connection closed for inactivity]
<dacamp> zenspider: so I've found the problem... definitely don't understand it though - http://pastebin.com/L2u618Kq
dik_dak has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
<zenspider> looking
vvikus has quit [Quit: WeeChat 0.4.2]
vintik has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
<zenspider> dacamp: so it's a string object w/ "9999" in it, but rb_string_value_ptr prints out 19999? heh
<dacamp> it is a string objects with "9999"
vintik has joined #ruby-lang
<zenspider> wait. sorry. misdescribed. rb_Integer
<dacamp> rb_string_value_ptr does return "9999"
<dacamp> rb_Integer returns 19999
<dacamp> rb_to_int raises an error converting a String to an Integer
<zenspider> lemme look at rb_string_value_ptr again
<zenspider> so... is it a real string, or something "stringy"?
<zenspider> rb_string_value_ptr calls rb_string_value. if it isn't a string, it calls rb_str_to_str, and then returns that pointer
<dacamp> yes
<zenspider> which?
<dacamp> it's actually an entry from an array
JammyHammy has joined #ruby-lang
<zenspider> ok. yeah. rb_Integer goes a different path. if it isn't an integer/float/string/nil, then it calls to_int on it
<dacamp> VALUE ary is really just "test:x:9999:9999:Test User:/home/test:/bin/bash".split(":")
<zenspider> so they can go down completely different paths
<zenspider> you're going through /etc/passwd via C instead of ruby? :D
marr has quit [Ping timeout: 255 seconds]
symm- has quit [Ping timeout: 264 seconds]
nathanstitt has joined #ruby-lang
<dacamp> ha. yes. business requirement
<zenspider> and... you do know about the Etc module?
<dacamp> I do. It doesn't provide write access.
banister has quit [Ping timeout: 240 seconds]
<zenspider> kk
symm- has joined #ruby-lang
<zenspider> so this is `ary = rb_str_split(nam,":");` followed by the cast
banister has joined #ruby-lang
<zenspider> #define UIDT2NUM(v) UINT2NUM(v) -- seems wrong, no?
<dacamp> yeah, it is. I've removed that. It should be LONG2NUM
banister has quit [Max SendQ exceeded]
<zenspider> still catching up...
banister has joined #ruby-lang
<zenspider> I might be a bit slow here... but you already have the results of the split, why are you then going back with getpwnam instead of using what you have and casting to an int?
banister has quit [Max SendQ exceeded]