scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
<r0bglees0n>
stormbytes: String#*
pupperwares has joined #ruby
marcgg has quit [Read error: No route to host]
felixjet has joined #ruby
cj3kim has joined #ruby
scrollback has quit [Remote host closed the connection]
<stormbytes>
doesn't work
scrollback has joined #ruby
marcgg has joined #ruby
<stormbytes>
insert_point = ((width-70)/2)
<stormbytes>
so.. that's 54 (fixnum)
<stormbytes>
when i then:
<stormbytes>
insert_point * " t"
<stormbytes>
i get: prompt.rb:7:in `*': String can't be coerced into Fixnum (TypeError)
<waxjar>
it'd be " t" * insert_point
bradhe has quit [Ping timeout: 240 seconds]
<stormbytes>
dang
YaNakilon has quit [Ping timeout: 256 seconds]
<stormbytes>
thank ;)
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
mengu has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
atno has joined #ruby
arya_ has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
Cooler_ has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
smathieu has joined #ruby
zodiak has quit [Ping timeout: 264 seconds]
sepp2k1 has quit [Quit: Leaving.]
vdandre_ has joined #ruby
dlitz has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
nanoxd has quit [Ping timeout: 260 seconds]
jalcine has quit [Excess Flood]
stormbytes has quit [Quit: Leaving...]
vdandre has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
jefflyne has joined #ruby
<jamesaanderson>
If I have an array that looks like [["title", "foo"], ["href", "http://dsfds"], ["title", "bar"] …] do you know how I can squash that to get a response of ["foo", "bar"]?
jefflyne has quit [Max SendQ exceeded]
jefflyne has joined #ruby
banister has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<r0bglees0n>
jamesaanderson: just arr[0][1], arr[2][1]
<r0bglees0n>
[arr[0][1],arr[2][1]]
<jamesaanderson>
That was an example. It's not that small. It's a response from an api so it extends
<r0bglees0n>
well, you need to establish a pattern first
<r0bglees0n>
otherwise there's no algorithm to write
<r0bglees0n>
and i dont see the pattern from that small example
<jamesaanderson>
inside the array there is an array for every result with a title attribute
<rubynooby>
'ello. I have a silly question and google has failed me, I was wondering if someone could assist.
sinusss has joined #ruby
<rubynooby>
do tables include an id column by default or do i have to specify them
<stormbytes>
whats wrong with this: (width-70)/2).round * " "
<stormbytes>
or rather insert_buffer = ((width-70)/2).round * " "
codemannew has quit [Ping timeout: 276 seconds]
<zets>
rubynooby: if you're talking rails, an id column will be created by default unless you specify not to
<rubynooby>
indeed i am, thank you
cofin has joined #ruby
arya_ has quit []
bonobo has quit [Quit: WeeChat 0.4.1]
Pandee has joined #ruby
dmiller_ has quit [Remote host closed the connection]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
RobW_ has quit [Quit: RobW_]
brjannc| has quit [Ping timeout: 245 seconds]
lebek has joined #ruby
vlad_starkov has joined #ruby
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
Spooner has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
stonevil_ has quit [Remote host closed the connection]
thepumpkin has quit [Remote host closed the connection]
brennanMKE has joined #ruby
yashshah_ has joined #ruby
gildo has joined #ruby
yashshah has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
DanKnox_away is now known as DanKnox
vlad_starkov has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
horofox_ has quit [Quit: horofox_]
jarin has joined #ruby
mary5030 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
stormbytes has quit [Quit: Leaving...]
codepython777 has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
smathieu has joined #ruby
Cyrus has quit [Quit: Cyrus.close()]
codepython777 has left #ruby [#ruby]
horofox_ has joined #ruby
codemannew has joined #ruby
Roa has quit [Ping timeout: 240 seconds]
stormbytes has joined #ruby
k3rn3lit1 has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Quit: stuff]
NeilCarvalho has joined #ruby
Yakko_ is now known as Yakko
Yakko_ has joined #ruby
Bry8Star{T2 has joined #ruby
platzhirsch has left #ruby [#ruby]
RORgasm has joined #ruby
<waxjar>
stormbytes: same as before, " " * sum instead of sum * " ". * isn't an operator in Ruby, it's just a method with the name *. 1 * 1 is equivalent to 1.*(1)
poga has joined #ruby
<stormbytes>
yes trial and error :)
<stormbytes>
gotta keep that in mind
niklasb has quit [Ping timeout: 240 seconds]
<waxjar>
your example failed because the * method on an Integer expects another Integer, the * method on a String however behaves differently :)
Yakko has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
pipework has quit [Read error: Connection reset by peer]
cj3kim has quit [Remote host closed the connection]
pipework has joined #ruby
fierycatnet has quit [Ping timeout: 241 seconds]
RORgasm has quit [Ping timeout: 276 seconds]
wallerdev has joined #ruby
mansi has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
Kruppe has quit [Ping timeout: 240 seconds]
DanKnox is now known as DanKnox_away
Yakko has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
fierycatnet has joined #ruby
Yakko_ has quit [Ping timeout: 246 seconds]
Guga_ has quit [Quit: ~]
robustus has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
lys1 is now known as lys
lys has quit [Quit: lys]
emergion has joined #ruby
Guga_ has joined #ruby
Yakko has quit [Ping timeout: 240 seconds]
cj3kim has joined #ruby
yashshah_ has quit [Ping timeout: 240 seconds]
Yakko has joined #ruby
n1x has quit [Ping timeout: 256 seconds]
Yakko has quit [Ping timeout: 246 seconds]
Dekade has quit []
kasper has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Pandee has quit [Ping timeout: 245 seconds]
Pandee has joined #ruby
Mars` has joined #ruby
n1x has joined #ruby
nanoxd has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
mansi has quit [Remote host closed the connection]
burz has quit [Ping timeout: 264 seconds]
nitish has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 256 seconds]
stormbytes has joined #ruby
Guga_ has quit [Quit: ~]
<RubyPanther>
make 2>&1 >/dev/null | grep 'error' | wc -l
<RubyPanther>
20 # extension hell
icecandy has quit [Remote host closed the connection]
stormbytes has quit [Ping timeout: 240 seconds]
passion_for_web has joined #ruby
Mars` has joined #ruby
<passion_for_web>
Hi , everyone , I am new to the ruby language , and willing to learn...is there any peer to peer mentoring website for ruby apprentices like phpmentoring.org
Fire-Dragon-DoL has left #ruby [#ruby]
<passion_for_web>
I am who looking for someone who can give me exercises , close to the real world , to help me practice the ruby language and also who could do code reviews and teach me various topics
<passion_for_web>
I have been programming for 3 yrs in various languages....now I wanna dive into ruby
Alina-malina has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
ThePicard has joined #ruby
n1x has quit [Ping timeout: 261 seconds]
Iszak has joined #ruby
iliketurtles has joined #ruby
horofox_ has quit [Quit: horofox_]
stkowski has quit [Quit: stkowski]
wallerdev has quit [Quit: wallerdev]
iliketurtles has quit [Client Quit]
smathieu has joined #ruby
<epitron>
so you want a personal ruby tutor?
n1x has joined #ruby
codesoda has joined #ruby
DestinyAwaits has joined #ruby
<passion_for_web>
yup
gildo has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
<passion_for_web>
more appropriately looking for unpaid apprenticeship
vdandre_ has quit [Quit: leaving]
<passion_for_web>
so someone teaches me , and I do their work for free if they are willing to give me a chance to work on real time projects
Artheist has quit [Read error: Connection reset by peer]
<passion_for_web>
I have been working for the past 1.5 years in php, object oriented php , javascript, jquery, html , css , mysql , mvc , frameworks
RORgasm has joined #ruby
<passion_for_web>
have been studying ruby for 3 months
robscomputer has quit [Remote host closed the connection]
<passion_for_web>
before that I have done some .Net and mostly C / C++ and C#
iliketurtles has quit [Client Quit]
robscomputer has joined #ruby
CrozzCyborg has quit [Quit: ...]
_ffio_ has joined #ruby
robscomputer_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
<pyoor>
Hi all. Can anyone tell me why I'm getting the following uninitialized constant error when I have what seem to be the appropriate gems installed? - https://gist.github.com/anonymous/5993502
<passion_for_web>
just thought I should share codeschool is offering 2 free days of membership if you use this pass to sign up to codeschool http://go.codeschool.com/-st9vw
mansi has quit [Ping timeout: 245 seconds]
hamed_r has joined #ruby
leonid__ has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
bbunny has quit [Ping timeout: 240 seconds]
ssvo has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
rshetty has quit [Ping timeout: 246 seconds]
<epitron>
excellent
<epitron>
that should be enough time to learn enough ruby to write a scraper, and then scrape the site \o/
<passion_for_web>
lol
braincra- has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
bbunny has joined #ruby
jarray52 has left #ruby [#ruby]
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
DanKnox_away is now known as DanKnox
RORgasm has joined #ruby
Xeago has joined #ruby
DanKnox is now known as DanKnox_away
marr has joined #ruby
ffio has joined #ruby
RORgasm has quit [Ping timeout: 260 seconds]
_ffio_ has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
bbunny has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
blitz has joined #ruby
ffio has quit [Excess Flood]
ehaliewicz has quit [Remote host closed the connection]
brennanMKE has joined #ruby
ffio has joined #ruby
hammond has joined #ruby
agjacome has joined #ruby
<hammond>
so I was thinking what scripting language to learn, php ruby or python
<hammond>
like which has more support is simpler and is more useful(is being used everywhere)
workmad3 has joined #ruby
<hammond>
oh perl too.
<hammond>
anyone?
<waxjar>
and you're asking #ruby? :P
mengu has joined #ruby
<hammond>
yes
<hammond>
maybe someone has used them.
<hammond>
the others.
<hammond>
lol
<passion_for_web>
well to tell you the truth , I know both ruby and php
<passion_for_web>
php is more conventional and closer to other languages in syntax....but i just love ruby
<r0bglees0n>
hammond: dont learn php
ddv has quit [Ping timeout: 246 seconds]
<passion_for_web>
precisely because it's so different
<r0bglees0n>
ruby or python is fine
<r0bglees0n>
but php is a bad choice if you want to be a good programmer
<passion_for_web>
once you learn ruby , you will never look back
brennanMKE has quit [Ping timeout: 256 seconds]
<waxjar>
haha. you're gonna regret learning php, but there's a lot of work for php programmers. ruby and python are very much alike i read (obviously i prefer ruby). perl i dont know too much about
<hammond>
well im inclined to learn php as most servers use it as a language.
_veer has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
<r0bglees0n>
sure but its shitty
<r0bglees0n>
idk
<r0bglees0n>
your call =p
<r0bglees0n>
thats my 2c
<hammond>
ok
mengu has quit [Ping timeout: 276 seconds]
n1x has quit [Ping timeout: 245 seconds]
<apeiros>
I think the one thing python and ruby coders agree is that php is a horrible hack of a language
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<hammond>
lol
ddv has joined #ruby
dash_ has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
<apeiros>
out of perl, php, python and ruby I'd recommend either python or ruby.
Spooner has joined #ruby
<apeiros>
my personal preference is clearly ruby. but there are valid reasons for python.
<ChristianS>
perl is ok too. but php stinks.
<apeiros>
I did ~6y of perl, and while perl is powerful and has a huge library, I'd not recommend it.
<hammond>
hehe why is php so bad? it doesn't have sophisticated libraries or functions like the others?
denver has quit [Remote host closed the connection]
arya_ has joined #ruby
<seriously_random>
nice
jefflyne has joined #ruby
workmad3 has quit [Read error: Operation timed out]
jefflyne has quit [Max SendQ exceeded]
jefflyne has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
smathieu has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
fenicks has quit [Read error: No route to host]
mansi has joined #ruby
artofraw has joined #ruby
arya_ has quit []
smathieu has quit [Ping timeout: 240 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
fenicks has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
mansi has quit [Ping timeout: 246 seconds]
cime has joined #ruby
<cime>
hi! I'm trying to install bson_ext on a debian (testing) system and I get the following (not very usefull) error https://gist.github.com/cime/f6bdc5b21db3cf72e40f anybody know how can I fix that?
lkba has joined #ruby
<apeiros>
>> Results logged to /var/lib/gems/1.9.1/gems/bson_ext-1.9.1/ext/cbson/gem_make.out
Afhbl has quit [Remote host closed the connection]
<waxjar>
btw, :these are Symbols, not keys. They tend to be used as keys in Hashes a lot, but you can use (almost) any object as a Hash key :)
cha1tanya has quit [Quit: cha1tanya]
marcgg has quit [Read error: No route to host]
akashj87_ has joined #ruby
tkuchiki has joined #ruby
marcgg has joined #ruby
mansi has quit [Ping timeout: 276 seconds]
<seriously_random>
waxjar, do you mind explaining why I can't even `puts @menu[i.to_s.to_sym]`? Why it's nil? http://pastie.org/8139693
relix has joined #ruby
Peej has quit [Ping timeout: 260 seconds]
tkuchiki_ has joined #ruby
Peej has joined #ruby
akashj87__ has joined #ruby
<apeiros>
waxjar: in ruby 2.0 they are actually keys. but there comes seriously_random using ancient rubies, so it doesn't really matter :)
tkuchiki_ has quit [Read error: Connection reset by peer]
akashj87 has quit [Ping timeout: 246 seconds]
tkuchiki_ has joined #ruby
<apeiros>
ah, actually he uses {}, so still no keys iirc
workmad3 has quit [Read error: Operation timed out]
monkegjinni has quit [Remote host closed the connection]
<waxjar>
seriously_random: for loops aren't really used in Ruby. tbh i'm not even familiar with the semantics of them in Ruby
akashj87_ has quit [Ping timeout: 246 seconds]
gildo has joined #ruby
tkuchiki has quit [Ping timeout: 245 seconds]
akashj87 has joined #ruby
<artofraw>
people developing on OS X with Vi
<artofraw>
do you use tmux?
Splourian has joined #ruby
<seriously_random>
waxjar, found the mistake `for i in l` outputs key+key, e.g. `ricenoodles`
<waxjar>
apeiros: hmm, what do you mean?
Afhbl has joined #ruby
<apeiros>
waxjar: ruby 2 has keyword args
gadgetoid_ has joined #ruby
akashj87__ has quit [Ping timeout: 246 seconds]
timonv has quit [Remote host closed the connection]
arya_ has joined #ruby
<waxjar>
aah, i see. i specifically meant to point out the difference between a key and a Symbol
iko1 has joined #ruby
tkuchiki_ has quit [Ping timeout: 276 seconds]
Splourian has quit [Quit: Leaving]
wildcard0 has quit [Ping timeout: 260 seconds]
diabel232 has quit [Read error: Connection reset by peer]
diabel232 has joined #ruby
akashj87_ has joined #ruby
<waxjar>
*hash key
DrShoggoth has joined #ruby
akashj87 has quit [Ping timeout: 246 seconds]
Peej has quit [Ping timeout: 260 seconds]
Peej has joined #ruby
tkuchiki has joined #ruby
tkuchiki_ has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
ananthakumaran has joined #ruby
Peej has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 248 seconds]
tkuchiki_ has quit [Ping timeout: 256 seconds]
RORgasm has joined #ruby
akashj87__ has joined #ruby
arya_ has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
schickung has joined #ruby
akashj87_ has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
RORgasm has quit [Ping timeout: 276 seconds]
Iszak has joined #ruby
ZadYree has joined #ruby
felipebalbi has joined #ruby
gildo has quit [Quit: Leaving]
<felipebalbi>
I want to use ruby to run compile tests on the linux-kernel, is there any gem which would help running the shell commands, or should I just use backtics|popen|popen3|popen4 ?
akashj87 has joined #ruby
akashj87__ has quit [Ping timeout: 246 seconds]
radic_ has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
akashj87_ has joined #ruby
prezJFK has quit [Remote host closed the connection]
yashshah has joined #ruby
<felipebalbi>
hmm, looks like shell-executer is what I want, good
akashj87 has quit [Ping timeout: 246 seconds]
atmosx has quit [Ping timeout: 240 seconds]
end_guy has quit [Ping timeout: 240 seconds]
akashj87 has joined #ruby
felipebalbi has left #ruby [#ruby]
emergion has quit [Quit: Computer has gone to sleep.]
end_guy has joined #ruby
bradhe has joined #ruby
akashj87_ has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics`away is now known as elaptics
kofno has joined #ruby
ntus1017 has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 240 seconds]
radic_ has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Quit: leaving]
akashj87 has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
mansi has joined #ruby
marcgg has quit [Read error: No route to host]
klaut has joined #ruby
marcgg has joined #ruby
rickruby has quit [Remote host closed the connection]
ToApolytoXaos has joined #ruby
bbunny has joined #ruby
mansi has quit [Ping timeout: 264 seconds]
DestinyAwaits1 has joined #ruby
jaybe has left #ruby ["."]
niklasb has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
marcgg has quit [Read error: No route to host]
marcgg has joined #ruby
DestinyAwaits has quit [Ping timeout: 240 seconds]
nitish has quit [Remote host closed the connection]
arya_ has joined #ruby
ju65rf has joined #ruby
emergion has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<ju65rf>
Jesus there's alot of people in here.
jamesaxl has quit [Ping timeout: 246 seconds]
arya_ has quit [Ping timeout: 248 seconds]
ju65rf has left #ruby [#ruby]
DestinyAwaits2 has joined #ruby
marcgg has quit [Read error: No route to host]
marcgg_ has joined #ruby
DestinyAwaits1 has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
krnflake_ is now known as krnflake
ntus1017 has joined #ruby
bbunny has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
michael_mbp is now known as zz_michael_mbp
horofox_ has joined #ruby
smathieu has joined #ruby
Notte has joined #ruby
arya_ has joined #ruby
klaut has quit [Remote host closed the connection]
Notte has quit [Ping timeout: 264 seconds]
enebo has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
ananthakumaran has quit [Quit: Leaving.]
sailias has joined #ruby
sailias has quit [Client Quit]
arya_ has quit [Ping timeout: 248 seconds]
Kibs has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
arietis has joined #ruby
Notte has joined #ruby
maxmanders has joined #ruby
yashshah has quit [Ping timeout: 245 seconds]
zigomir_ has joined #ruby
zigomir has quit [Read error: Operation timed out]
arya_ has joined #ruby
maxmanders has quit [Client Quit]
rshetty has joined #ruby
enebo has quit [Quit: enebo]
dmiller has joined #ruby
jamesaxl has joined #ruby
kofno has quit [Remote host closed the connection]
wallerdev has joined #ruby
bradhe has joined #ruby
klaut has joined #ruby
timonv has quit [Remote host closed the connection]
wallerdev has quit [Client Quit]
bbunny has joined #ruby
Daemoen has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
rubybee has quit [Ping timeout: 246 seconds]
jefflyne has joined #ruby
schickung has quit [Quit: schickung]
schickung has joined #ruby
schickung has quit [Client Quit]
pskosinski has joined #ruby
n1x has quit [Ping timeout: 260 seconds]
eka has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
KevinSjoberg has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
freerobby has joined #ruby
subbyyy has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
codesoda has quit [Remote host closed the connection]
bbunny has quit [Ping timeout: 241 seconds]
eldariof has joined #ruby
Morrolan has quit [Ping timeout: 264 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
ravster has joined #ruby
wallerdev has quit [Quit: wallerdev]
bbunny has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Morrolan has joined #ruby
klaut has joined #ruby
zmike123 has quit [Quit: ~]
Dekade has joined #ruby
allaire has joined #ruby
axeman- has joined #ruby
chrisramon has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
ananthakumaran has joined #ruby
axeman- has quit [Ping timeout: 240 seconds]
viszu has quit [Quit: Leaving.]
DestinyAwaits2 is now known as DestinyAwaits
io_syl has joined #ruby
DestinyAwaits has quit [Changing host]
DestinyAwaits has joined #ruby
KevinSjoberg has joined #ruby
bbunny has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
bklane has joined #ruby
Shirakawasuna has quit [Ping timeout: 260 seconds]
eregon has quit [Remote host closed the connection]
mansi has joined #ruby
maxmanders has joined #ruby
n1x has joined #ruby
jbpros has quit [Quit: jbpros]
hogeo has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
hogeo has quit [Read error: Connection reset by peer]
arkiver has joined #ruby
hogeo has joined #ruby
axeman- has joined #ruby
thepumpkin has joined #ruby
maxmanders has quit [Ping timeout: 276 seconds]
alexwh has joined #ruby
lebek has joined #ruby
sayan has joined #ruby
wallerdev has joined #ruby
mansi has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
mansi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
pgluciano has joined #ruby
goshakkk has joined #ruby
mansi has joined #ruby
EPIK has joined #ruby
bradhe has joined #ruby
sayan has quit [Read error: Connection reset by peer]
cofin has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
DonRichie has joined #ruby
denver has joined #ruby
mansi has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 240 seconds]
thams has quit [Quit: thams]
heidar has quit [Quit: Connection closed for inactivity]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kasper has joined #ruby
goshakkk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alexwh has left #ruby [#ruby]
axeman- has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
yashshah has joined #ruby
sayan has joined #ruby
rshetty has quit [Quit: Sleeping]
axeman- has quit [Ping timeout: 240 seconds]
platzhirsch1 has joined #ruby
arietis has joined #ruby
<platzhirsch1>
So if you use unless, then the not is also invisibly added to all the concatenated conditions (concatenated conditions I mean through the use of and, or, ..)
pupperwares has joined #ruby
workmad3 has joined #ruby
tvw has joined #ruby
marcgg has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
arkiver has quit [Ping timeout: 245 seconds]
ntus1017 has quit [Remote host closed the connection]
<platzhirsch1>
nevermind, that's not the case
pupperwares has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
allaire has quit [Quit: allaire]
dhruvasagar has joined #ruby
codesoda has joined #ruby
<apeiros>
platzhirsch1: `unless condition` is like `if !(condition)`
<apeiros>
the condition as a whole is negated
mansi has joined #ruby
Guga_ has joined #ruby
codesoda has quit [Ping timeout: 240 seconds]
shouya has quit [Remote host closed the connection]
arkiver has joined #ruby
shouya has joined #ruby
dmiller has quit [Remote host closed the connection]
<platzhirsch1>
apeiros: but unless c1 and c2 == if !c1 and c2
kofno has joined #ruby
iko1 has quit [Ping timeout: 245 seconds]
seriously_random has quit [Quit: Leaving]
camx has joined #ruby
JZTech101 has joined #ruby
cime has quit [Ping timeout: 245 seconds]
<heftig>
platzhirsch1: no, if !(c1 and c2)
<platzhirsch1>
ohhh
yashshah has quit [Ping timeout: 246 seconds]
<platzhirsch1>
heftig: thanks... that's different
<platzhirsch1>
now I can make some sense of my broken code
<platzhirsch1>
probably by starting to use if instead
axeman- has quit [Ping timeout: 240 seconds]
rubybee has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 245 seconds]
robscomputer_ has quit [Remote host closed the connection]
axeman- has joined #ruby
<apeiros>
platzhirsch1: I didn't put those () for fun ;-p
timonv has quit [Remote host closed the connection]
robscomputer has joined #ruby
<platzhirsch1>
apeiros: now that you say that and I revisited your statement that makes sense :)
emergion has quit [Quit: Computer has gone to sleep.]
yashshah has joined #ruby
axeman- has quit [Read error: Connection reset by peer]
axeman- has joined #ruby
DrCode has quit [Remote host closed the connection]
yashshah has quit [Client Quit]
bradhe has joined #ruby
DrCode has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 240 seconds]
pgluciano has quit [Remote host closed the connection]
nitish has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
tomzx_mac has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
shouya1 has joined #ruby
sambao21 has joined #ruby
jonkri has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
ILoveYou has joined #ruby
shouya has quit [Ping timeout: 245 seconds]
Guest1988 has quit [Quit: Leaving.]
ericmathison has joined #ruby
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
enebo has quit [Quit: enebo]
freerobby has quit [Quit: Leaving.]
sambao21_ has joined #ruby
Guest7205 has quit [Changing host]
Guest7205 has joined #ruby
Guest7205 is now known as C0deMaver1ck
anonymuse has quit [Ping timeout: 256 seconds]
marcgg has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
sambao21_ has quit [Ping timeout: 246 seconds]
wargasm has joined #ruby
trepidaciousMBR has joined #ruby
jefflyne has joined #ruby
ninegrid has quit [Read error: Operation timed out]
kasper has quit [Remote host closed the connection]
kasper has joined #ruby
arietis has quit [Ping timeout: 245 seconds]
Afhbl has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
RORgasm has joined #ruby
joast has joined #ruby
kasper has quit [Ping timeout: 264 seconds]
knightblader has quit [Ping timeout: 246 seconds]
chrisramon has quit [Quit: chrisramon]
marcdel has joined #ruby
smathieu has joined #ruby
ssvo has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
ffio_ has joined #ruby
ffio has quit [Ping timeout: 245 seconds]
cofin has quit [Quit: cofin]
axeman- has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 248 seconds]
smathieu has quit [Ping timeout: 245 seconds]
leonid__ has quit [Ping timeout: 240 seconds]
dmiller has quit [Ping timeout: 264 seconds]
Afhbl has joined #ruby
thams has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
ananthakumaran has quit [Quit: Leaving.]
6JTAAW00D has quit [Ping timeout: 256 seconds]
DestinyAwaits1 has joined #ruby
kasper has joined #ruby
splittingred has joined #ruby
DestinyAwaits has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
pupperwares has joined #ruby
stranbird has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby
sambao21 has joined #ruby
phite has joined #ruby
phite has quit [Changing host]
phite has joined #ruby
mansi has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
mansi has joined #ruby
<joshu_>
hi guys I'm using rake-test to write tests for my api project. I;ve got one test that POSTs like this: post "/users/user/calls", "from=1234, to=4567". Just want some feedback on whether I'm doing it correctly ;)
vlad_starkov has quit [Remote host closed the connection]
<stranbird>
Hi, all! I am a university student and have been using Ruby for development for several years. I love Ruby so much that I want to learning more about this language itself. Could you please give me some suggestions on how to dive in? Thanks~!
mansi has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
renderful has joined #ruby
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Ping timeout: 248 seconds]
RichardBaker has joined #ruby
dEPy has quit [Ping timeout: 240 seconds]
arietis has joined #ruby
bradhe has joined #ruby
RichardBaker has quit [Client Quit]
Zeeraw has quit [Quit: Computer has gone to sleep.]
arietis has quit [Read error: Connection reset by peer]
ssvo has quit [Ping timeout: 246 seconds]
bradhe has quit [Ping timeout: 240 seconds]
viszu has joined #ruby
<pyoor>
Hi all. Would someone mind taking a look at this? I'm not very familiar with ruby and I'm trying to run someone elses code but I keep getting an error regarding an uninitialized constant. I believe I have all the correct gems installed but it doesn't appear to work --https://gist.github.com/anonymous/5993502
<pyoor>
canton7: does that apply to the rest of the includes as well?
nettoweb has joined #ruby
<canton7>
pyoor, no idea
<pyoor>
hrmm
<pyoor>
because if I comment out Windows::Process, then the error of course continues on to the remaining includes
akashj87 has joined #ruby
<pyoor>
I was able to work past it yesterday by changing the require to 'windows/process', 'windows/error', etc but then an error was triggered in the code calling it
mlue has quit [Ping timeout: 240 seconds]
<pyoor>
and as I'm not very familiar with ruby or its libraries I'm kind of at a loss (I mostly code in python)
blaxter_ has joined #ruby
<canton7>
pyoor, ooh, there's a difference between the win32/process and windows/process libraries?
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
scrollback has quit [Remote host closed the connection]
<pyoor>
heh, don't ask me -- that's why I'm here ;)
scrollback has joined #ruby
timonv has joined #ruby
YaNakilon has joined #ruby
chrisramon has joined #ruby
mikewintermute has joined #ruby
<pyoor>
looking at this code (unrelated) I'm seeing that the requires are in fact windows/error, windows/time, etc
eldariof has quit [Read error: Operation timed out]
<pyoor>
oddly enough, I had used this same code about 9-12 months ago
akashj87 has quit [Ping timeout: 246 seconds]
<pyoor>
unfortunately I no longer have the VM that I originally ran it on. So I'm not sure if it's an issue with the gems or the versions of these gems, etc
timonv has quit [Remote host closed the connection]
mansi has joined #ruby
zooz has left #ruby ["Leaving"]
<karthikeyan>
so quiet wooh!
<apeiros>
"Beauty is just skin deep. Only fools will get seduced by it. If you are using Mac, break free from itand try out GNU/Linux which is rock solid and DRM5 (Digital Rights Management) free."
<apeiros>
seriously?
<karthikeyan>
ya
<karthikeyan>
agree 100%
<karthikeyan>
but people want to be stupids
<spike|spiegel>
lalalalalala
<apeiros>
besides that it is factually wrong, it also doesn't exactly reflect well on you to put such a statement into a book.
cortexman has joined #ruby
Spami has joined #ruby
Spami has joined #ruby
<spike|spiegel>
And a ruby one at tht
cortexman has quit [Max SendQ exceeded]
lebek has joined #ruby
<apeiros>
way to insult a rather large portion of ruby devs.
cortexman has joined #ruby
<karthikeyan>
I did not write the book to gain good character look
<karthikeyan>
I want to be honbest
<karthikeyan>
honest I mean
<apeiros>
there's honest and polite
<spike|spiegel>
GNU/Linux sounds like RMS licking
<apeiros>
seems you don't get the second part of that
<karthikeyan>
I see it as call for liberation than an insult
klaut has joined #ruby
Sunshine_ has joined #ruby
<karthikeyan>
RMS hates some of Linux distros
<apeiros>
assertions "people want to be stupid" tell me you're weaseling out now.
<apeiros>
+like
<spike|spiegel>
'fools' is not a word you can just throw anywhere you like
<karthikeyan>
u can use that if you don't want to lick him
<apeiros>
anyway, the impression you left with me is that of a dogmatic zealot. which pretty much means you've lost me as an audience.
vlad_starkov has joined #ruby
<karthikeyan>
no problem
<Sunshine_>
hihi. anybody intimately familiar with installing ruby & rails on arch?
<karthikeyan>
if u don't want it throw away
<karthikeyan>
or get the source and modify it!
DestinyAwaits1 has quit [Quit: Leaving]
<canton7>
" In technical talk we call this concatenation (joining together). Why there
<canton7>
are so many difficult words to learn when you want to be programmer? Who knows? Possibly
<canton7>
speaking some non-understandable blah blah might make you look intelligent, possibly fetch higher
<canton7>
pay" yeah you lost me as well
<canton7>
oops, bad linebreaking my bad
locriani has joined #ruby
<spike|spiegel>
Sunshine_: what specifically? arch packages latest ruby version.. and there usually no real notion of 'installing rails'
DrCode has quit [Remote host closed the connection]
<karthikeyan>
why not try rvm sunshine?
Afhbl has joined #ruby
<Sunshine_>
spike|spiegel: well! i *had* working installs of ruby and rails, and rails suddenly broke. i tried some tinkering, everything got worse
redgirl has quit [Ping timeout: 246 seconds]
<Sunshine_>
so i tried uninstalling everything and doing it all clean
DrCode has joined #ruby
<karthikeyan>
try rvm
<Sunshine_>
and now there's no .gem/ruby/2.0.0 folder thing, i can't gem install shit
<karthikeyan>
try rvm
thepumpk_ has quit [Remote host closed the connection]
<Sunshine_>
i tried rvm once. it made things worse too.
<karthikeyan>
oops
<karthikeyan>
no idea!
thepumpkin has joined #ruby
yashshah has joined #ruby
<Sunshine_>
like you'd think if you removed *everything* and did it clean, things would be good, yeah?
<karthikeyan>
arch is no way based on debian right?
<Sunshine_>
nope
<spike|spiegel>
Sunshine_: just install ruby through pacman, and if you already got rid of rvm, just gem install rails after that should do
<Sunshine_>
i tried.
<Sunshine_>
ruby installed through pacman okay.
<Sunshine_>
gem install hangs. or at least it looks like it does
axeman- has quit [Ping timeout: 248 seconds]
<spike|spiegel>
get a better network
<Sunshine_>
gem install -V outputs a bunch of lines, but nothing actually happens and it goes on indefinitely til i kill it
<Sunshine_>
it's not a network problem. it's a i-fucked-something-up problem.
Zeeraw has quit [Quit: Computer has gone to sleep.]
<Sunshine_>
but i can't even find where this magical fuck-up is.
<Sunshine_>
(as if getting a better network was a viable thing anyway.)
<spike|spiegel>
Sunshine_: work your brain a little harder, try installing a small gem without deps first... does it work?
<Sunshine_>
bundler seems to install. takes a minute to get goin' but it's goin'.
<karthikeyan>
gem install takes time
airlok has joined #ruby
<Sunshine_>
(also, getting the "NOT IN YOUR PATH" error, but...of course it isn't, it doesn't even *exist*)
nettoweb has quit [Quit: nettoweb]
<Sunshine_>
actually, shit, while i'm asking stupid questions: how do i add things to my path. i've done it successfully, kinda, i've done it largely unsuccessfully more often.
<apeiros>
karthikeyan: !< and !> don't exist as methods/operators in ruby.
<karthikeyan>
ok
<karthikeyan>
got it
<karthikeyan>
will change thanks
<Sunshine_>
well, i'll try doing rails again anyway. if bundler installs, rails should. then i just hafta figure out the path...thing.
n1x has joined #ruby
<d3>
хм
inimit has joined #ruby
Mars` has quit [Ping timeout: 245 seconds]
intuxicated has joined #ruby
airlok has quit [Remote host closed the connection]
<apeiros>
your description of break/next is incomplete/inaccurate
Es0teric has joined #ruby
<apeiros>
your important math discovery… you do 0/0, which is undefined. you probably should talk to a mathematician, he can explain what you do wrong.
<apeiros>
(page 190)
<karthikeyan>
thats a prank 0/0 ;)
arietis has quit [Read error: Connection reset by peer]
<karthikeyan>
whats the problem with break and next?
<karthikeyan>
how can I improve
<apeiros>
tell how they relate to a method you write yourself, within which you yield
<apeiros>
there's more than just iterators which make use of blocks
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
<spike|spiegel>
does he cover flip-flops? callcc?
apeiros_ has joined #ruby
horofox_ has quit [Ping timeout: 260 seconds]
wildcard0 has joined #ruby
redgirl has joined #ruby
<spike|spiegel>
^-^
horofox_ has joined #ruby
arietis has joined #ruby
KevinSjoberg has quit [Ping timeout: 240 seconds]
yashshah has quit [Ping timeout: 276 seconds]
kasper has quit [Remote host closed the connection]
<apeiros_>
Regexp.new is not very idiomatic to create a regex. Using the literal is better. e.g. /.*/ instead of Regexp.new('.*')
kasper has joined #ruby
jozefg has joined #ruby
tvw has quit []
<jozefg>
Hello
<karthikeyan>
hi jozefg
<jozefg>
What's new and exciting over here?
NimeshNeema has quit [Quit: Connection closed for inactivity]
KevinSjoberg has joined #ruby
<spike|spiegel>
hype
apeiros has quit [Ping timeout: 260 seconds]
<spike|spiegel>
we sell hype by the pound
<Sunshine_>
huh, lookit that. karthikeyan, you were right. rails is just taking forever and a day to install.
intuxicated has quit [Remote host closed the connection]
nbouscal has joined #ruby
iko1 has joined #ruby
<karthikeyan>
ok
atno has quit [Remote host closed the connection]
<karthikeyan>
try my ruby book
<jozefg>
I just switched from Racket to Ruby for web stuff, it's nice
<apeiros_>
constants have (or rather: are supposed to) a constant reference. i.e. they should always reference to the same object. but that object doesn't need to be "constant" (immutable)
<karthikeyan>
ya
ssvo has joined #ruby
ravster has quit [Remote host closed the connection]
<karthikeyan>
will cchange it
<spike|spiegel>
nor are they really constant referencs
<spike|spiegel>
get away with a warning
<karthikeyan>
ya spike thats true
<karthikeyan>
there are no real constants in ruby
<spike|spiegel>
there are
<karthikeyan>
but whats a constant that can be changed?
<karthikeyan>
if you can change it its not a constant
<spike|spiegel>
'special exceptions'
<karthikeyan>
example?
havenwood has joined #ruby
redgirl has quit [Ping timeout: 276 seconds]
freerobby has quit [Ping timeout: 260 seconds]
colonolGron has quit [Quit: Lost terminal]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
colonolGron has joined #ruby
<spike|spiegel>
>> class C; end; Array = C; Array(0)
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
smathieu has joined #ruby
<colonolGron>
i would like to use ruby to draw some geometric figures for maths class, are there any good libraries for that? of graphics in general?
tatsuya_o has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
cortexman has joined #ruby
vlad_starkov has joined #ruby
cortexman has quit [Max SendQ exceeded]
<Kelet>
colonolGron, Install image_magick and try quick_magick out, maybe.
<Kelet>
colonolGron, If you just need lines, chunky_png is native and can draw lines and circles, but is not nearly as full featured as image_magick with the quick_magick or similar gem.
cortexman has joined #ruby
<Kelet>
(there is also mini_magick, rmagick, etc - they are all gems that interface with image_magick which is image creation/modification software separate to ruby)
roadt__ has quit [Ping timeout: 276 seconds]
syamajala has quit [Quit: leaving]
d4rkstalk3r has quit [Read error: Operation timed out]
<colonolGron>
Kelet: thank you, i will check it out!
vlad_starkov has quit [Ping timeout: 264 seconds]
bradhe has quit [Write error: Broken pipe]
bradhe has joined #ruby
leonid__ has joined #ruby
freerobby has quit [Quit: Leaving.]
Gugster has joined #ruby
Guga_ has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
txdv has quit [Read error: Connection reset by peer]
txdv has joined #ruby
lscott3 has quit [Quit: Sleep]
Gugster is now known as Guga_
kasper has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
Guest17548 has quit [Ping timeout: 246 seconds]
Cyrus has joined #ruby
radic_ has quit [Ping timeout: 246 seconds]
c0rn has joined #ruby
maxmanders has joined #ruby
momomomomo has joined #ruby
tatsuya_o has joined #ruby
maxmanders has quit [Max SendQ exceeded]
DanKnox is now known as DanKnox_away
digifiv5e has joined #ruby
maxmanders has joined #ruby
digifiv5e is now known as Guest14705
iko1 has joined #ruby
<colonolGron>
so whats the difference between rmagick and quickmagic? (it seems i already have rmagic installed)
beneggett-alt has quit [Quit: beneggett-alt]
michaeldeol has quit [Ping timeout: 245 seconds]
<Kelet>
colonolGron, rmagick basically interfaces with the image_magick API, whereas quickmagick just invokes the image_magick command-line utilities
<Kelet>
colonolGron, rmagick will use more memory, whereas quickmagick may have trouble processing more complex images due to command-length restrictions on your OS
<Kelet>
colonolGron, I would say use rmagick if you got it. It's just difficult to install on Windows, but you're probably not using Windows then.
<colonolGron>
Kelet: i'm not. thanks
arya_ has joined #ruby
Mars` has joined #ruby
RobW_ has joined #ruby
TheRealPygo is now known as pygospa
eldariof has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
<gr33n7007h>
Whats the difference between each and collect on an array?
<gr33n7007h>
And how the hell fo you install tk?
<Kelet>
gr33n7007h, On what operating system?
radic_ has joined #ruby
<gr33n7007h>
Kelet, Debian
<Kelet>
gr33n7007h, Run [1, 2, 3, 4, 5].collect { |x| x + 1 } in irb
<Kelet>
and then run the same thing with each
<gr33n7007h>
ok let me check
icecandy has quit [Remote host closed the connection]
<Kelet>
gr33n7007h, Try installing libtcltk-ruby via apt-get
<gr33n7007h>
Kelet, will try the now
obanta has joined #ruby
<Kelet>
gr33n7007h, And the different between collect and each is that each returns the original array, and collect returns a modified array with the operation performed on each element.
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Kelet>
The result in irb should be pretty telling.
<gr33n7007h>
Ah, thanks so it does
<Kelet>
So you use .collect when you want to modify the elements, and .each if you only want to use them or read them, for the most part
<Kelet>
It's also worth noting .collect and .map are the same thing.
<gr33n7007h>
Kelet, got it :)
<Kelet>
It just so happens most languages call it map
<Kelet>
and Ruby is nice to people from other languages
<gr33n7007h>
Like it python
icecandy has joined #ruby
<Kelet>
yep
<gr33n7007h>
Yes tk works brilliant thank Kelet
<Kelet>
Also worth noting that collect, inject and friends are provided by the Enumerable mixin. Many collections support it, and you can add it to your own class easily.
icecandy has quit [Remote host closed the connection]
<Kelet>
Array is just one thing in particular that has it mixed in.
<Kelet>
(core-2.0.0 if you're on ruby 2 but I think Debian is still on 1.9.3)
<gr33n7007h>
will have a look now cheers
<gr33n7007h>
yes it is
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bnagy has joined #ruby
<iliketurtles>
I'm trying to XOR two strings as byte arrays in ruby, ie "\x1A" ^ "\x1C" -- is this possible?
<iliketurtles>
i know there isn't an XOR operator for strings
sambao21 has joined #ruby
<apeiros_>
iliketurtles: no, there is not
<apeiros_>
you can implement it using e.g. unpack("C*") and then map with ^ and pack the result
<Kelet>
iliketurtles, Can't you just pad the byte arrays to the same size and xor the elements individually?
<apeiros_>
if you want to improve performance, you can unpack("N*"), xor that, pack with "N*" again. but then you have to take care of the remaining bytes
<Kelet>
I would probabably just do the unpack thing though.. :)
optimusprimem has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
optimusprimem has joined #ruby
c0rn has joined #ruby
<apeiros_>
hrmpf, I really have to clean up my mess… I have it implemented. just no idea in which image of my old computers it is hiding…
<iliketurtles>
apeiros_ thanks
optimusprimem has quit [Remote host closed the connection]
bradhe has joined #ruby
divi has joined #ruby
ewnd9 has joined #ruby
divi has left #ruby [#ruby]
optimusprimem has joined #ruby
radic_ has quit [Quit: Verlassend]
radic has joined #ruby
mahmoudimus has joined #ruby
bnagy has quit [Ping timeout: 240 seconds]
hamakn has quit [Ping timeout: 264 seconds]
dkeefe75 has quit [Quit: Lost terminal]
cads2 has joined #ruby
<iliketurtles>
apeiros_ when you say map with ^ and pack the result, do you mean literally string.unpack("C*").map { }
Artheist has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
camx has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
hadees has joined #ruby
Bry8Star{T2 has joined #ruby
colonolGron has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Remote host closed the connection]
cime has quit [Ping timeout: 248 seconds]
pierre1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
jonkri has quit [Quit: jonkri]
colonolGron has joined #ruby
iko1 has quit [Ping timeout: 245 seconds]
codecop has quit [Remote host closed the connection]
ToApolytoXaos has quit [Quit: Leaving]
jbpros_ has joined #ruby
bklane has joined #ruby
momomomomo has quit [Quit: momomomomo]
bnagy has joined #ruby
dash_ has quit [Quit: Time to beer :)]
jbpros_ has quit [Client Quit]
maxmanders has quit [Quit: Computer has gone to sleep.]
jbpros has quit [Ping timeout: 256 seconds]
<apeiros_>
iliketurtles: if you say "literally", then it's only "almost" ;-)
<iliketurtles>
hahaha
<iliketurtles>
well I went at it like so: self.unpack('C*').zip(other.unpack('C*')).map{ |a,b| a ^ b }.pack('C*')
<iliketurtles>
but i'm not getting exactly the desired output; guess ill keep hacking
<apeiros_>
that looks good
<apeiros_>
misses length checks, though
smathieu has joined #ruby
<apeiros_>
i.e., what do you do when a.bytesize != b.bytesize?
[Fudge] has quit [Changing host]
[Fudge] has joined #ruby
mlue has quit [Quit: leaving]
mlue_ has quit [Quit: leaving]
<iliketurtles>
hmm good point
<apeiros_>
if you just want to repeat the pattern, you can swap a/b so that a is always the shorter
<Kelet>
How does it avoid programs that don't halt, or programs that consume extremely high amounts of resources? I'm guessing it has an external script that kills processes if they exist too long or use too many resources?
bradhe has quit [Ping timeout: 246 seconds]
rickruby has joined #ruby
<Kelet>
Cool website though.
<Kelet>
(And bot)
thepumpk_ has quit [Remote host closed the connection]
thepumpkin has joined #ruby
nopolitica has joined #ruby
lebek has joined #ruby
Artheist has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
BrianJ has joined #ruby
_veer has joined #ruby
_veer has joined #ruby
nopolitica has quit [Client Quit]
tatsuya_o has joined #ruby
arya_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fierycatnet has joined #ruby
fierycatnet has quit [Max SendQ exceeded]
jimg has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
fierycatnet has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
sailias has joined #ruby
fierycatnet has quit [Client Quit]
thepumpk_ has joined #ruby
<platzhirsch1>
Whoever recommended me Typhoeus back then, thanks. This library is totally rat
Es0teric has joined #ruby
jimg has quit [Read error: Connection reset by peer]
io_syl_ has joined #ruby
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
Es0teric has quit [Client Quit]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
thepumpkin has quit [Ping timeout: 248 seconds]
kofno has joined #ruby
jimg has quit [Read error: Connection reset by peer]