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
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?
<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?
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
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]
<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 .....):
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]
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.
<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
<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?