Arzaga has quit [Quit: Computer has gone to sleep.]
Nisstyre-laptop has quit [Quit: Leaving]
unstable has joined #ruby
ph^ has joined #ruby
reset has quit [Ping timeout: 248 seconds]
GeissT has quit [Ping timeout: 258 seconds]
DonRichie has quit [Ping timeout: 264 seconds]
jeremywrowe has quit [Ping timeout: 264 seconds]
hmarr has joined #ruby
DonRichie has joined #ruby
unstable has quit [Ping timeout: 256 seconds]
ph^ has quit [Ping timeout: 252 seconds]
banjara has quit [Quit: Leaving.]
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
d2dchat has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
robottinosino has quit [Quit: WeeChat 0.4.0]
pkrnj has joined #ruby
adamjleonard has quit [Quit: Leaving...]
lukeholder has quit [Quit: Computer has gone to sleep.]
dankest has quit [Quit: Leaving...]
zeade has quit [Quit: Leaving.]
tjbiddle has quit [Ping timeout: 258 seconds]
osvico has joined #ruby
johnkary has joined #ruby
tjbiddle_ has quit [Ping timeout: 240 seconds]
nathanieldavid has joined #ruby
txdv has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 256 seconds]
tyl has quit [Quit: Computer has gone to sleep.]
nathanrivera has joined #ruby
nathanieldavid has quit [Read error: Connection reset by peer]
txdv has joined #ruby
davedo has quit [Quit: Leaving]
zastern has quit [Remote host closed the connection]
lukeholder has joined #ruby
<jeebster>
does anyone have rm and rbenv running simultaneously? wondering if they'll run concurrently without clashing
baroquebobcat has joined #ruby
bradhe has joined #ruby
Yarou has quit [Ping timeout: 258 seconds]
jonahR has joined #ruby
rickruby has joined #ruby
<r0bgleeson>
jeebster: "Compatibility note: rbenv is incompatible with RVM. Please make sure to fully uninstall RVM and remove any references to it from your shell initialization files before installing rbenv."
<r0bgleeson>
from the README
<jeebster>
gracias
<jeebster>
womp womp
adamjleonard has joined #ruby
nezumi has joined #ruby
bradhe has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
unstable has joined #ruby
robert_ has quit [Ping timeout: 264 seconds]
nomenkun has joined #ruby
Nimsical has joined #ruby
jhn has joined #ruby
lethjakman has quit [Ping timeout: 240 seconds]
balishag has joined #ruby
JMcAfreak has quit [Ping timeout: 260 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
Nimsical has quit [Client Quit]
nomenkun has quit [Ping timeout: 252 seconds]
daniel_- has quit [Ping timeout: 246 seconds]
Spooner has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Computer has gone to sleep.]
hrs has joined #ruby
hrs has quit [Client Quit]
benlieb has joined #ruby
juarlex has quit [Remote host closed the connection]
v0n has joined #ruby
Proshot has quit [Quit: Leaving]
balishag has quit [Read error: Connection reset by peer]
bricker is now known as bricker`away
vlad_starkov has joined #ruby
hmarr has quit []
atmosx has quit [Quit: And so the story goes…]
nga4 has quit [Ping timeout: 246 seconds]
hamakn has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
hamakn has quit [Read error: Connection reset by peer]
haxrbyte has quit [Remote host closed the connection]
hamakn has joined #ruby
haxrbyte has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
zastern has joined #ruby
spoonman has quit [Read error: Operation timed out]
Nisstyre-laptop has joined #ruby
gabrielrotbart has joined #ruby
philcrissman has quit [Remote host closed the connection]
maxmanders has joined #ruby
pen has joined #ruby
wedgex_ has joined #ruby
nathanrivera has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
<Catharz>
is the ox gem the fastest way to parse xml in Ruby?
adamjleonard has quit [Quit: Leaving...]
johnkary has quit [Quit: @johnkary]
benlieb has quit [Quit: benlieb]
maxmanders has quit [Ping timeout: 258 seconds]
chrishunt has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
CalebMingle has quit [Quit: CalebMingle]
zastern has quit [Remote host closed the connection]
markalanevans has quit [Quit: markalanevans]
GOMADWarrior has quit [Ping timeout: 245 seconds]
gyre007 has quit [Remote host closed the connection]
chrishough has joined #ruby
jeremywr1we has joined #ruby
chrishunt has joined #ruby
tds has quit [Quit: tds]
benlieb has joined #ruby
brianherman has joined #ruby
spoonman has joined #ruby
jeremywrowe has quit [Ping timeout: 257 seconds]
xcv has joined #ruby
brum has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
sailias has joined #ruby
adamjleonard has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
stkowski has quit [Quit: stkowski]
randomau_ has quit [Ping timeout: 260 seconds]
adamjleonard has quit [Client Quit]
markalanevans has joined #ruby
yamez has joined #ruby
robscomputer has quit [Remote host closed the connection]
tjbiddle has joined #ruby
emmanuel__ has quit [Quit: emmanuel__]
marcdel has quit [Quit: marcdel]
LnL has quit [Quit: LnL]
moos3 has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Quit: baroquebobcat]
rakl has quit [Quit: sleeping]
generalissimo has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
okinomo has joined #ruby
baroquebobcat has joined #ruby
bhaarat has quit [Quit: bhaarat]
benlieb has quit [Quit: benlieb]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
braoru has quit [Ping timeout: 264 seconds]
love_color_text has joined #ruby
pen has quit [Remote host closed the connection]
pen has joined #ruby
brianpWins has quit [Quit: brianpWins]
generali_ has joined #ruby
adamjleonard has joined #ruby
zastern has joined #ruby
generalissimo has quit [Ping timeout: 258 seconds]
tjbiddle has quit [Quit: tjbiddle]
unstable has quit [Read error: Operation timed out]
generalissimo has joined #ruby
unstable has joined #ruby
spoonman has quit [Ping timeout: 248 seconds]
generali_ has quit [Ping timeout: 245 seconds]
worstadmin has quit [Ping timeout: 258 seconds]
tvw has quit [Ping timeout: 258 seconds]
F1skr has quit [Quit: WeeChat 0.4.0]
adamjleonard has quit [Ping timeout: 245 seconds]
wedgex_ has quit [Read error: Connection reset by peer]
love_color_text has quit [Read error: Connection reset by peer]
johnkary has joined #ruby
love_color_text has joined #ruby
viuo has joined #ruby
nomenkun has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
yamez has quit [Remote host closed the connection]
anildigitl is now known as anildigital
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
randomautomator has quit [Remote host closed the connection]
randomautomator has joined #ruby
ph^ has joined #ruby
poga has quit [Remote host closed the connection]
poga has joined #ruby
adamjleonard has joined #ruby
BizarreCake has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
mayankkohaley has joined #ruby
Cooler__ has joined #ruby
dankest has joined #ruby
akashj87__ has joined #ruby
veinofstars has quit [Read error: Connection reset by peer]
iaj_ has joined #ruby
notwen_ has joined #ruby
dv__ has joined #ruby
ph^ has quit [Ping timeout: 255 seconds]
sayan has joined #ruby
ddd__ has joined #ruby
casheew_ has joined #ruby
Politoed_ has joined #ruby
wereHams1er has joined #ruby
d-best has joined #ruby
DrForr__ has joined #ruby
sjhuang_ has joined #ruby
Muz_ has joined #ruby
setient_ has joined #ruby
kandinsk1 has joined #ruby
neurone-2337 has joined #ruby
multi_io has quit [Ping timeout: 240 seconds]
snooc has quit []
thone_ has joined #ruby
PaulePan1er has joined #ruby
x13378071 has joined #ruby
Elfix_113 has joined #ruby
epitron_ has joined #ruby
thone has quit [Read error: Operation timed out]
oz` has joined #ruby
multi_io has joined #ruby
matti_ has joined #ruby
rakl_ has joined #ruby
rickmasta has joined #ruby
grn_ has joined #ruby
guardian` has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
BadLarry_ has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
bjeanes- has joined #ruby
Jalada_ has joined #ruby
companion_ has joined #ruby
jmccune_ has joined #ruby
epochwolf|2 has joined #ruby
Cooler_ has quit [*.net *.split]
akashj87 has quit [*.net *.split]
love_color_text has quit [*.net *.split]
sjhuang has quit [*.net *.split]
shevy2 has quit [*.net *.split]
rakl has quit [*.net *.split]
MistuhKurtz has quit [*.net *.split]
braincrash has quit [*.net *.split]
matti has quit [*.net *.split]
Uranio has quit [*.net *.split]
epochwolf has quit [*.net *.split]
ThePicard has quit [*.net *.split]
neurone-1337 has quit [*.net *.split]
dv_ has quit [*.net *.split]
NimeshNeema has quit [*.net *.split]
dekz__ has quit [*.net *.split]
iaj has quit [*.net *.split]
companion has quit [*.net *.split]
jmccune has quit [*.net *.split]
spike|spiegel has quit [*.net *.split]
casheew has quit [*.net *.split]
BadLarry has quit [*.net *.split]
Politoed has quit [*.net *.split]
Muz has quit [*.net *.split]
wereHamster has quit [*.net *.split]
lmx has quit [*.net *.split]
wudofyr has quit [*.net *.split]
ddd has quit [*.net *.split]
epitron has quit [*.net *.split]
grn has quit [*.net *.split]
Guest85414 has quit [*.net *.split]
d-snp has quit [*.net *.split]
brandon_ has quit [*.net *.split]
guardian has quit [*.net *.split]
setient has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
Elfix has quit [*.net *.split]
kandinski has quit [*.net *.split]
notwen has quit [*.net *.split]
Jalada has quit [*.net *.split]
DrForr_ has quit [*.net *.split]
x1337807x has quit [*.net *.split]
oz has quit [*.net *.split]
bjeanes has quit [*.net *.split]
matti_ is now known as matti
epochwolf|2 is now known as epochwolf
companion_ is now known as companion
jmccune_ is now known as jmccune
jmccune has quit [Changing host]
jmccune has joined #ruby
companion has quit [Changing host]
companion has joined #ruby
oz` is now known as oz
Jalada_ is now known as Jalada
adamjleonard has quit [Quit: Leaving...]
adamjleonard has joined #ruby
vlad_starkov has joined #ruby
dv84 has quit [Read error: Connection reset by peer]
dv84 has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
v0n has quit [Ping timeout: 260 seconds]
kelabot has quit [Remote host closed the connection]
wudofyr has joined #ruby
Morkel has joined #ruby
nari has quit [Ping timeout: 245 seconds]
shevy2 has joined #ruby
aedornm has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
poga has quit [Remote host closed the connection]
Uranio has joined #ruby
spike|spiegel has joined #ruby
failshell has quit [Remote host closed the connection]
psyprus has quit [Read error: Connection reset by peer]
tealmage has quit [Remote host closed the connection]
psyprus has joined #ruby
SCommette has joined #ruby
nari has joined #ruby
bradhe has joined #ruby
thams has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
thams has quit [Remote host closed the connection]
divout has joined #ruby
wesside has joined #ruby
akashj87__ has quit [Quit: leaving]
akashj87 has joined #ruby
keyvan has quit [Remote host closed the connection]
love_color_text has joined #ruby
celinedior has quit [Quit: celinedior]
adamjleonard has quit [Quit: Leaving...]
nga4 has quit []
dankest has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
tds has joined #ruby
jasonthesensei has joined #ruby
<jasonthesensei>
need help I am trying to turncate a string of text at the 10th character but I am getting an error here is the code i am using <%= turncate('post.body', :length => 10, :omission => '...(continued)' %>
niceguy1234 has joined #ruby
niceguy1234 has quit [Remote host closed the connection]
<jasonthesensei>
any ideas on how to fix it or where to look to get an idea
<jasonthesensei>
oh crap sorry forgot i'm using rails
philcrissman has quit [Remote host closed the connection]
SCommette has joined #ruby
poga has joined #ruby
celinedior has joined #ruby
SCommette has quit [Client Quit]
jamie_ca_ has joined #ruby
AlSquire has quit [Ping timeout: 258 seconds]
rippa has joined #ruby
generalissimo has joined #ruby
robottin1 has joined #ruby
adamjleonard has joined #ruby
sayan has quit [Ping timeout: 258 seconds]
ehaliewicz has quit [Read error: Connection reset by peer]
robottinosino has quit [Ping timeout: 276 seconds]
dekz__ has joined #ruby
mercwithamouth has joined #ruby
ehaliewicz has joined #ruby
johnnyfuchs has joined #ruby
idkazuma has quit [Remote host closed the connection]
echoez_ has quit [Quit: Computer has gone to sleep.]
nadirvardar has quit [Quit: Computer has gone to sleep.]
yshh has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
vikhyat has joined #ruby
gabrielrotbart has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 240 seconds]
Gabri has joined #ruby
ntzrmtthihu777 has joined #ruby
<ntzrmtthihu777>
halloo! I don't suppose one of ya'll could point me at a good tutorial for writting ruby into a c++ shared object?
mayankkohaley has quit [Ping timeout: 252 seconds]
wael has joined #ruby
ph^ has joined #ruby
rickruby has quit [Read error: Operation timed out]
rhinux_ has quit [Remote host closed the connection]
rhinux_ has joined #ruby
kelabot has joined #ruby
ntzrmtthihu777 has quit [Quit: Changing server]
iamvery has quit [Remote host closed the connection]
s2013 has quit []
viuo has joined #ruby
salmon_ has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
vikhyat has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
salmon_ has quit [Client Quit]
brianpWins has joined #ruby
rickruby has joined #ruby
NimeshNeema has joined #ruby
emergion has joined #ruby
sayan has joined #ruby
freeayu__ has joined #ruby
morfin has quit [Read error: Connection reset by peer]
morfin has joined #ruby
freeayu has quit [Ping timeout: 264 seconds]
vikhyat has joined #ruby
sayan has quit [Read error: Connection reset by peer]
ntzrmtthihu777 has joined #ruby
randomautomator has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
Morkel_ has joined #ruby
hadees has joined #ruby
love_color_text has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
browndawg has joined #ruby
worstadmin has quit [Ping timeout: 256 seconds]
randomautomator has quit [Ping timeout: 264 seconds]
kunday has joined #ruby
jbueza has quit [Quit: Leaving.]
tevio has joined #ruby
kunday has quit [Client Quit]
mockra has quit [Remote host closed the connection]
kandinsk1 is now known as kandinski
bradhe has quit [Ping timeout: 252 seconds]
<ntzrmtthihu777>
hello, asked earlier but lost connection. I have a set of ruby classes and modules that, while doing the job, do it too slowly, and I would like to embed them into a c++ dll/so. can anyone point me at a good tutorial?
tevio has quit [Read error: Connection reset by peer]
shevy2 has quit [Ping timeout: 248 seconds]
tevio has joined #ruby
worstadmin has joined #ruby
billycravens has joined #ruby
indyrl has joined #ruby
nari has joined #ruby
vikhyat has quit [Remote host closed the connection]
vikhyat has joined #ruby
rippa has joined #ruby
chrishough has quit [Quit: chrishough]
yshh has joined #ruby
aedornm has quit [Remote host closed the connection]
jphpsf has quit [Quit: Leaving]
rickruby has quit [Ping timeout: 252 seconds]
adamjleonard has quit [Quit: Leaving...]
robbyoconnor has joined #ruby
kunday has joined #ruby
adamjleonard has joined #ruby
heliumsocket has joined #ruby
fir_ed has quit [Read error: Connection reset by peer]
sambio has quit []
yashshah_ has joined #ruby
shevy2 has joined #ruby
yashshah has quit [Ping timeout: 264 seconds]
nari has quit [Ping timeout: 245 seconds]
tds has quit [Quit: tds]
Hanmac1 is now known as Hanmac
epitron_ has quit [Changing host]
epitron_ has joined #ruby
epitron_ is now known as epitron
r0bby has joined #ruby
ehaliewicz has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
poga has quit [Remote host closed the connection]
kunday has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
kunday has joined #ruby
poga has joined #ruby
rton has joined #ruby
ph^ has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
poga has quit [Ping timeout: 258 seconds]
Elfix_113 has quit [Quit: rebooting]
daniel_hinojosa has quit [Quit: Leaving.]
tyl has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
nickbender has joined #ruby
poga has joined #ruby
MrZYX|off is now known as MrZYX
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
MrZYX is now known as MrZYX|off
idkazuma has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
neku has joined #ruby
Elfix has joined #ruby
Guest85414 has joined #ruby
MrZYX|off is now known as MrZYX
indyrl has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
Zai00 has joined #ruby
Zai00 has quit [Client Quit]
BlankVerse has quit [Quit: leaving]
generalissimo has quit [Remote host closed the connection]
krainboltgreene has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
tealmage has joined #ruby
codenapper has joined #ruby
marr has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<bnagy>
ntzrmtthihu777: there isn't a 'magic' way to speed up Ruby
<bnagy>
if you're running on MRI 2 or Jruby and your code is waay too slow it's good odds your algorithm is just bad
<bnagy>
otherwise, you can profile and convert hot spots to native code ( C, C++ etc ) but not really while keeping it 'ruby'
wesside has quit [Quit: Computer has gone to sleep.]
yacks has joined #ruby
yshh has quit [Remote host closed the connection]
<ntzrmtthihu777>
bnagy: did you even read what I said? I specifically said I wanted to use C++, not asking for a magic way to speed ruby up.
Morkel has quit [Quit: Morkel]
<bnagy>
ntzrmtthihu777: ok, so write c++
<bnagy>
thenwrap it
yojimbo_ has joined #ruby
<ntzrmtthihu777>
and a good tutorial on that?
yojimbo has quit [Ping timeout: 245 seconds]
<bnagy>
on writing c++?
<nickbender>
Start with K&R
<ntzrmtthihu777>
no, on wrapping c++ in such a way as ruby can use it.
<bnagy>
read the FFI docs, or look at swig
<bnagy>
IMHO you'll actually have a much easier time writing C
<bnagy>
flat C interfaces are a lot easier to wrap
<Hanmac>
bnagy i think rubyinline could be cool or?
<bnagy>
I mean you can effectively write C in C++ if you like
vlad_starkov has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
Xeago has joined #ruby
Zolo has joined #ruby
tealmage has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
yshh has joined #ruby
idkazuma has quit [Remote host closed the connection]
Neomex has joined #ruby
Neomex has quit [Client Quit]
SEASALT14 has joined #ruby
deadpool21619 has joined #ruby
artofraw has quit [Read error: Connection reset by peer]
jasonthesensei has quit [Ping timeout: 245 seconds]
artofraw has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
atno has quit [Remote host closed the connection]
SEASALT14 has quit []
atno has joined #ruby
LennyLinux has joined #ruby
bradhe has joined #ruby
OODavo has joined #ruby
dkannan has joined #ruby
buibex has joined #ruby
<OODavo>
I'm trying to define a class macro for performing around-aliasing in a less ad-hoc fashion; in particular, it attempts to capture the previous version of the method using a closure instead of giving it an explicit separate name in the class. My current try is here: http://sprunge.us/iTYH?ruby It fails because Procs do not have a Proc#bind method for changing their self value, however, and it appears that there isn't /any/…
<OODavo>
…way to bind a Proc to a specific self. Any ideas?
vlad_starkov has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Ca1us has quit [Quit: ""]
buibex has quit [Remote host closed the connection]
megha has joined #ruby
buibex has joined #ruby
poga has joined #ruby
baba has quit [Ping timeout: 256 seconds]
Jackneill has quit [Read error: Operation timed out]
maxmande_ has quit [Ping timeout: 258 seconds]
arya has joined #ruby
poga has quit [Read error: No route to host]
poga has joined #ruby
poga has quit [Remote host closed the connection]
<shevy>
sounds complicated
Nanuq has quit [Read error: Operation timed out]
kreantos has joined #ruby
<OODavo>
It seems Object#instance_eval and Object#instance_exec are the only ways to make a Proc run given a particular value of self. Unfortunately both aren't adequate for this situation, because it's necessary to preserve all arguments originally passed to the method, and instance_exec can't pass in a block argument since its block "slot" is taken by the Proc one is binding.
idletom has quit [Ping timeout: 272 seconds]
atmosx has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
buibex has quit [Remote host closed the connection]
<ntzrmtthihu777>
Having issue compiling some C++ with ruby guts, can someone tell me what I'm screwing up on: http://paste.ubuntu.com/5724077/ ?
arya has joined #ruby
<ntzrmtthihu777>
I'm getting this error: undefined reference to `rb_define_method' and a few similar ones. I thought this was the proper way to place ruby methods into C++?
Spooner has joined #ruby
wintermu1e has quit [Ping timeout: 248 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<ntzrmtthihu777>
I'm using ruby 2.0
evenix has joined #ruby
madb055 has joined #ruby
alup has joined #ruby
dkannan has quit [Ping timeout: 252 seconds]
Scriptor has quit [Read error: Connection reset by peer]
Scriptor has joined #ruby
d11wtq_ has quit [Ping timeout: 246 seconds]
kreantos has quit [Remote host closed the connection]
m8 has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
dkannan has joined #ruby
atmosx has quit [Quit: And so the story goes…]
hamed_r has quit [Quit: Leaving]
d11wtq has joined #ruby
AndChat| has joined #ruby
bradhe has joined #ruby
peta_ has joined #ruby
Banistergalaxy has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
pen has quit [Remote host closed the connection]
swarley- has joined #ruby
nari has quit [Ping timeout: 246 seconds]
arya has joined #ruby
marr has quit [Ping timeout: 264 seconds]
mayankkohaley has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 260 seconds]
maxmanders has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
swarley| has quit [Ping timeout: 260 seconds]
deadpool21619 has quit [Ping timeout: 256 seconds]
jasonthesensei has joined #ruby
miso1337 has joined #ruby
timmow has joined #ruby
okinomo has joined #ruby
swarley- has quit [Ping timeout: 258 seconds]
browndawg has joined #ruby
xcv has joined #ruby
ToApolytoXaos has joined #ruby
<Mon_Ouie>
OODavo: One kind of funny idea if you're using Ruby 2.0: create an anonymous module to store those methods, prepend it, and use super in it to call the original method
nminus1 has quit [Ping timeout: 258 seconds]
krishnau2 has joined #ruby
chandankumar has joined #ruby
<OODavo>
Oh wow, that way would work too. Intriguing.
<OODavo>
I think personally I still prefer passing the original method into the wrapper as an argument, though.
<Mon_Ouie>
(You do need to be in the right def scope for it to work)
xcv has quit [Ping timeout: 240 seconds]
monkegjinni has quit [Remote host closed the connection]
<OODavo>
Will that allow you to apply multiple around-wrappers to the same method, or do later ones end up in the same anonymous module and hence overwrite the earlier ones?
d11wtq_ has joined #ruby
Xeago has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
angusiguess has joined #ruby
<Mon_Ouie>
Ah, they do override each other. You'd need to create a new module for every method in that case.
d11wtq has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
<Mon_Ouie>
That sounds like it would be somewhat of an expensive way of doing it then
stacky has joined #ruby
ashka has quit [Ping timeout: 245 seconds]
DrCode has quit [Ping timeout: 276 seconds]
<OODavo>
That's one of the reasons the closure technique is awesome: You can apply as many wrappers as are needed, and they don't clash because the original method is squirreled away in the closure of the wrapped method each time.
DrCode has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
krishnau2 has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
Zolo has quit [Remote host closed the connection]
stef_204 has joined #ruby
<ntzrmtthihu777>
anyone?
<daed>
bueller?
slainer68 has joined #ruby
havenwood has joined #ruby
pioz has quit [Quit: This computer has gone to sleep]
ashka has joined #ruby
pioz has joined #ruby
neku has quit [Read error: Connection reset by peer]
neku has joined #ruby
sthetz has joined #ruby
<sthetz>
Anyone willing to test nokogiri segfault?
<havenwood>
Trying to convert `45` to "\x00\x00\x00\x2d"
<havenwood>
And "\x00\x00\x00\x2d" to 45
dawkirst has joined #ruby
franks2 has quit [Quit: leaving]
<havenwood>
"\x00\x00\x00\x2d".unpack("H*")[0].to_i(16) works for the former, but I just stumbled on it through trial and error - wondering how it can be done sanely?
gyre007 has quit [Remote host closed the connection]
hemanth has quit [Client Quit]
progbyperm has joined #ruby
<MrZYX>
hmm, unpack("C*").inject(:+) maybe?
<havenwood>
MrZYX: Nice.
dougireton has quit [Quit: Leaving.]
spider-mario has quit [Read error: Connection reset by peer]
soulisson has joined #ruby
<MrZYX>
it really depends on the data
baroquebobcat has joined #ruby
<MrZYX>
there's no "the right way"
Rym has quit [Quit: Rym]
<havenwood>
MrZYX: Yeah, the Python version is entirely ambiguous.
monkegjinni has joined #ruby
<soulisson>
Hi, I'm beginning Ruby, in ruby a block is a set of statements between the "do" and "end" keywords, is that right ?
<csmrfx>
it is one of the definitions
kofno has joined #ruby
<soulisson>
ok, thanks
whowantstolivefo has quit [Ping timeout: 258 seconds]
<csmrfx>
I guess ultimately a block is a set of statements (expressions?) between delimiters, bound to a variable or not
<csmrfx>
Decodes the string using the codec registered for encoding. encoding defaults to the default string encoding. errors may be given to set a different error handling scheme. The default is 'strict', meaning that encoding errors raise UnicodeError. Other possible values are 'ignore', 'replace' and any other name registered via codecs.register_error(), see section Codec Base Classes.
<csmrfx>
(^from Pythin dox)
momomomomo has joined #ruby
<havenwood>
MrZYX: Really? Weird... Ruby version?
browndawg has quit [Ping timeout: 276 seconds]
<MrZYX>
hmm
mockra has joined #ruby
<MrZYX>
nvm actually :P
michaelmartinez has joined #ruby
iPhoneMRZ has joined #ruby
<csmrfx>
hex_codec: hex byte string Convert operand to hexadecimal representation, with two digits per byte
kofno has quit [Remote host closed the connection]
<csmrfx>
^Pythin encode line for arg "hex_codex"
pioz has quit [Quit: This computer has gone to sleep]
predator217 has quit [Ping timeout: 264 seconds]
browndawg has joined #ruby
<csmrfx>
alias "hex" (the second value after semicolon)
<Mattix>
I'm converting: 1->true, 0->false, applying binary operators and converting it back: true->1, false->0
tds has quit [Quit: tds]
madb055 has joined #ruby
<MrZYX>
wouldn't that just shift the overhead to the caller side?
chrishunt has quit [Quit: ZzZzZz...]
vikhyat_ has joined #ruby
adamjleonard has joined #ruby
spider-mario has joined #ruby
<Mattix>
just a little bit. all the caller must do is call(:function, args) instead of function(args)
vikhyat has quit [Read error: Connection reset by peer]
subbyyy has joined #ruby
<csmrfx>
met-hod
Faris9 has joined #ruby
<Mattix>
mɛθəd
hemanth has quit [Quit: This computer has gone to sleep]
whowantstolivefo has joined #ruby
<MrZYX>
do you want to always do that to the methods or just sometimes? all of them or just some?
tomzx_mac has joined #ruby
dougireton has quit [Quit: Leaving.]
<Mattix>
always, some of them or all, I can isolate them if it's necessary
love_color_text has quit [Read error: Connection reset by peer]
<csmrfx>
tp
love_color_text has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
love_color_text has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
randomautomator has joined #ruby
LongLiveBacon has quit [Ping timeout: 245 seconds]
Arzaga has joined #ruby
bytemuse has joined #ruby
elux has joined #ruby
hadees has quit [Ping timeout: 258 seconds]
carloslopes has joined #ruby
ssms has quit [Quit: Konversation terminated!]
hiyakashi has quit [Ping timeout: 252 seconds]
carloslopes has quit [Remote host closed the connection]
vikhyat_ has quit [Ping timeout: 258 seconds]
randomautomator has quit [Remote host closed the connection]
codenapper has quit [Quit: Leaving...]
iamvery has joined #ruby
swex has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
randomautomator has joined #ruby
heliumsocket has joined #ruby
h8R has quit [Ping timeout: 245 seconds]
elux has quit [Quit: Leaving...]
supernullset has quit [Remote host closed the connection]
tk_ has quit [Quit: ばいばい]
ziggles has joined #ruby
bytemuse has quit [Quit: bytemuse]
gerep has joined #ruby
<gerep>
Hello worl!
codenapper has joined #ruby
_veer has joined #ruby
iamvery has quit [Ping timeout: 245 seconds]
<ziggles>
hi guys, i'm making a simple kitchen timer just for practice writing ruby and rspec tests. I was wondering if it's common opinion to do things like this in threads?
mneorr has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 258 seconds]
arya has joined #ruby
<swarley>
are you doing it asynchronously?
mneorr has joined #ruby
<gerep>
I need to read a log and separate some of its content. I need to get everything between the InitialGame until the other one is started, like https://gist.github.com/gerep/5426823
<ziggles>
swarley: I am currently (i'm new to ruby/programming so i have no idea if i even need to do it synchronously )
WarlockoftheWeb has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
<swarley>
It depends on how you're trying to do it.
<ziggles>
swarley: I'm having a hard time writing tests that don't wait for my timer to finish counting time before checking tests' expectations
<swarley>
You can do it semi easily with timeout
<ziggles>
that's why i was thinking i needed to start using threads
chrishunt has joined #ruby
<swarley>
ziggles, but if they don't wait then how do they know if it is sucessful?
randomautomator has quit [Remote host closed the connection]
<ziggles>
swarley: that's a good point. i'm trying to approach this from a test first perspective so i've barely gotten to that point lol
vikhyat has joined #ruby
johnkary has quit [Quit: @johnkary]
<swarley>
if time is sensitive in the test, it's usually a good idea to make the time very short
skattyadz has quit [Quit: skattyadz]
<ziggles>
swarley: basically i was planning on injecting a really short sleep interval from the test
<swarley>
0.01 seconds is always an option
chrishunt has quit [Client Quit]
bean has joined #ruby
<swarley>
It's best to not try to work around your tests. You want to use your methods exactly as they would be used in code
<swarley>
don't code for tests, write tests for the code
sayan has joined #ruby
<swarley>
Well, that may not be the best way to put it
<swarley>
but, tests should say what your code should do
mneorr has quit [Ping timeout: 256 seconds]
<swarley>
not how it does it
<ziggles>
swarley: i think i understand. you're saying... don't compromise my code so that i can write tests?
wedgex has joined #ruby
johnkary has joined #ruby
gyre007 has joined #ruby
LnL7 has quit [Ping timeout: 248 seconds]
<swarley>
yes, if the test means changing the code in a big way, find a different way to test it
tommyvyo has quit [Quit:]
<ziggles>
swarley: i have this: http://pastie.org/private/rnfjhq8jfbqwxhks1b6wq and i think it's reasonable. Basically after adding the "interval_duration" i realized it might be a cool feature
<gerep>
I have a log file with some content between lines with InitGame and ShutdownGame, I need to get everything between those two lines, this is what I have so far but it is showing only the first line. https://gist.github.com/gerep/5426823
Arzaga has quit [Quit: Computer has gone to sleep.]
<ziggles>
swarley: in #start there's a thread ... but i have no idea if that's even necessary. @ first glance does that class look like shit?
<Morrolan>
gerep: You only add the line to your array if it includes 'InitGame', which is only the case for your first line.
<ziggles>
Basically i wanna like... set a timer, start it ... then from another app (this is going to be a gem) i want to check the timer and see if it's finished
julian-delphiki has quit [Ping timeout: 252 seconds]
<gerep>
Morrolan damn, that's correct =) but how do I make it start from the next line?
<gerep>
unless?
<MrZYX>
you actually want to build an array of arrays, right?
<gerep>
MrZYX me?
<swarley>
also side note
<MrZYX>
gerep: yup
<swarley>
[] is faster than Array.new
wreckimnaked has quit [Ping timeout: 252 seconds]
<gerep>
swarley: thanks
<IceDragon>
gerep: Array.new(ysize) { Array.new(xsize) } # will this help?
<gerep>
MrZYX: I'll save the content between those two lines inside a array to access it later =)
<swarley>
No problem, I was typing something more helpful but Morrolan got you the answer first
skattyadz has joined #ruby
tomsthumb has quit [Quit: Leaving.]
<swarley>
ziggles, i'm sorry, I'm looking at it now
mneorr has joined #ruby
blaxter_ has quit [Ping timeout: 264 seconds]
<ziggles>
swarley: no worries man. thanks for your time!
<swarley>
for time_becomes_a_loop, you might want to do something like
<Morrolan>
gerep: '||' in this case means 'or'. '&&' would be 'and'.
tomsthumb has quit [Client Quit]
<gerep>
OK
BizarreCake has quit [Ping timeout: 260 seconds]
<gerep>
No I can read what is between those two lines
<Morrolan>
:)
<ziggles>
swarley: LOL what the hell was i thinking!
<gerep>
I'll be back in a moment with more doubts =)
<ziggles>
swarley: thanks for that.
<swarley>
no problem
BSaboia has quit [Read error: Connection reset by peer]
<ziggles>
swarley: what do you think of the main loop being executed inside of a Thread? My goal was to have some other class be able to create a timer, start it, then check it periodically
<ziggles>
Thread seems to be the only way i can do timer.start and not hold up everything
<fryguy>
ziggles: you should look at eventmachine
<fryguy>
it has timers built into it
statarb3 has joined #ruby
mneorr has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
<ziggles>
fryguy: thanks, ill check it out later today. For this problem though i'm trying to learn by doing it myself so i'd like work through w/o any libraries, you know?
security has joined #ruby
coffe has joined #ruby
megha has quit [Ping timeout: 248 seconds]
GOMADWarrior has quit [Ping timeout: 264 seconds]
statarb3 is now known as Proshot
GOMADWarrior has joined #ruby
bradleyprice has joined #ruby
<coffe>
Hi http://pastebin.com/yzePK51H i am a neewwbee .. just trying to understand using pry and how to access data in arrays.
skattyadz has joined #ruby
monkegji_ has quit [Ping timeout: 240 seconds]
gyre008 has joined #ruby
monkegjinni has joined #ruby
<MrZYX>
gerep: what about the first line?
<gerep>
MrZYX solved =)
<fryguy>
ziggles: you are missing the point hten
havenwood has joined #ruby
<ziggles>
fryguy: oh?
<MrZYX>
gerep: File.read('games.log').lines.slice_before(/^.+?InitGame:/) gives you an array of enumerators for each slice, though the first line is a distinct one
monkegji_ has joined #ruby
<gerep>
MrZYX that's great =) thanks a lot
monkegjinni has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 252 seconds]
shock_one has joined #ruby
wreckimnaked has joined #ruby
vikhyat_ has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
yfeldblum has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
<sorbo_>
banister_: awesome, thanks
<sorbo_>
this is really helpful
<Hanmac>
i have good C(++) exts but they are not very demo like ;(
<csmrfx>
pako2008: try $ ri String.to_i
slainer68 has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
<sorbo_>
IIIII figured it out
nickbend1r has joined #ruby
<sorbo_>
I was looking in the wrong directory
<banister_>
sorbo_: what was the issue
<sorbo_>
man
<sorbo_>
that was dumb
<sorbo_>
this is still awesome though, the only examples I've come across so far are very "hello world"
<sorbo_>
so this is good to learn from
h8R has joined #ruby
Iszak has quit [Quit: Computer has gone to sleep.]
<banister_>
sorbo_: well it's using private API, so it only works on 1.9.* :) it wont work on 2.0 anymore, but that gem is aware of that and does something different for 2.0
<pako2008>
cxmrfx now working - i have installed ruby only now installed rdoc also
<havenwood>
peta_: They handle different primary purposes. They do overlap for Gemsets/Gemfiles. What are you trying to do?
<havenwood>
peta_: Bundler is for bundling gems. RVM is for installing and selecting the current Ruby (alternatives include chruby and rbenv).
<peta_>
I am reading about bundler here and there and wondered why to use it instead of rvm
sean_s has joined #ruby
<csmrfx>
peta_: they are not alternatives
<peta_>
but rvm also offers full supported for gemsets
<peta_>
that can also be frozen/exported/imported/asf.
<csmrfx>
bundler is for apps
r0bgleeson has joined #ruby
<peta_>
Did I get it right that BUndler somehow scans the rb code fiels and extracts a list of all required gems?
<havenwood>
peta_: RVM was solving a problem before Bundler came around. Nowadays, a Gemfile is a common sight in an app.
<havenwood>
peta_: Nope.
<havenwood>
peta_: You put the required gems in the Gemfile.
<peta_>
okay, and bundler takes care that they are available?
<peta_>
when the app is deployed
<havenwood>
peta_: It bundles the gems, typically with deployment you use `bundle --deployment`, which puts the gems in a local vendor/ folder for the app to use in production.
lethjakm1 has quit [Ping timeout: 276 seconds]
centipedefarmer has joined #ruby
<havenwood>
peta_: It handles dependencies, and keeps the app's gems separate from system gems.
<peta_>
ah okay
<peta_>
now i get it
altivec has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
galbert_z has joined #ruby
kirun has quit [Quit: Client exiting]
LongLiveBacon has joined #ruby
setient_ is now known as setient
MisterPostIT has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
galbert_z has left #ruby ["WeeChat 0.3.7"]
momomomomo_ has joined #ruby
Gabri has quit [Remote host closed the connection]
marr has joined #ruby
timeout has joined #ruby
havenwood has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 258 seconds]
momomomomo_ is now known as momomomomo
jonahR has joined #ruby
ph^ has joined #ruby
atno has quit [Remote host closed the connection]
ph^ has quit [Remote host closed the connection]
danslo has quit [Quit: danslo]
atno has joined #ruby
tds has quit [Quit: tds]
sean_s has quit [Ping timeout: 256 seconds]
heliumsocket has joined #ruby
jonahR has quit [Ping timeout: 252 seconds]
notwen_ is now known as notwen
zodiak has quit [Ping timeout: 272 seconds]
altivec has quit [Quit: Computer has gone to sleep.]
adamjleonard has quit [Quit: Leaving...]
Jackneill has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
skattyadz has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
keymone has joined #ruby
sean_s has joined #ruby
lethjakm1 has joined #ruby
zodiak has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
subbyyy has quit [Ping timeout: 256 seconds]
Proshot has quit [Quit: Leaving]
huoxito has quit [Quit: Leaving]
pcarrier has joined #ruby
wael has joined #ruby
gyre007 has joined #ruby
codenapper has quit [Quit: Leaving...]
codenapper has joined #ruby
Beoran__ has joined #ruby
kuzushi_ has quit [Read error: Connection reset by peer]
kuzushi_ has joined #ruby
Proshot has joined #ruby
tijmencc has quit [Quit: tijmencc]
<gerep>
how can I dump a array to check its values and keys?
<MrZYX>
an array has only values, no keys. do you mean a hash?
gyre007 has quit [Ping timeout: 255 seconds]
Beoran_ has quit [Ping timeout: 264 seconds]
ioNull has quit [Quit: Computer has gone to sleep.]
<csmrfx>
.inspect it
soulisson has quit [Ping timeout: 258 seconds]
tomsthumb has joined #ruby
timeout has quit [Quit: leaving]
atno has quit [Remote host closed the connection]
atno has joined #ruby
wmoxam has quit [Ping timeout: 258 seconds]
zodiak has quit [Ping timeout: 258 seconds]
pcarrier has quit [Ping timeout: 258 seconds]
kuzushi__ has joined #ruby
chrishough has quit [Quit: chrishough]
skattyadz has joined #ruby
bhaarat has joined #ruby
skattyadz has quit [Client Quit]
kuzushi_ has quit [Ping timeout: 255 seconds]
zodiak has joined #ruby
indyrl has joined #ruby
r0bgleeson has quit [Ping timeout: 264 seconds]
skattyadz has joined #ruby
johnkary has quit [Quit: @johnkary]
kuzushi has joined #ruby
lethjakm1 has quit [Ping timeout: 252 seconds]
kuzushi_ has joined #ruby
chandankumar has quit [Quit: Leaving]
kuzushi__ has quit [Ping timeout: 252 seconds]
shock_one has quit [Ping timeout: 260 seconds]
kuzushi_ has quit [Read error: Connection reset by peer]
haxrbyte_ has joined #ruby
kuzushi_ has joined #ruby
wael has quit [Quit: wael]
pcarrier has joined #ruby
nomenkun has quit [Remote host closed the connection]
workmad3 has joined #ruby
kuzushi has quit [Ping timeout: 264 seconds]
haxrbyte has quit [Ping timeout: 256 seconds]
yashshah_ has quit [Quit: Konversation terminated!]
teddyp1cker has joined #ruby
kuzushi__ has joined #ruby
arya_ has joined #ruby
epochwolf is now known as epochcoyote
epochcoyote is now known as epochwolf
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
nickbend1r has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
nickbender has quit [Ping timeout: 264 seconds]
ziggles has joined #ruby
monkegj__ has joined #ruby
monkegj__ has quit [Read error: Connection reset by peer]
kuzushi_ has quit [Ping timeout: 240 seconds]
monkegji_ has quit [Read error: Connection reset by peer]
<ziggles>
hey guys, i'm trying to learn by building a gem with tests (rspec). I was wondering if it's good practice to have the spec/ directory mirror the lib/ directory's structure?
monkegj__ has joined #ruby
momomomomo_ has joined #ruby
iamvery has joined #ruby
momomomomo has quit [Ping timeout: 258 seconds]
momomomomo_ is now known as momomomomo
teddyp1cker has quit [Remote host closed the connection]
AlSquirikou has joined #ruby
sam113101 has quit [Quit: WeeChat 0.4.0]
slainer68 has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 240 seconds]
AlSquirrel has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
banjara has quit [Quit: Leaving.]
ziggles has left #ruby [#ruby]
Davey has joined #ruby
apeiros has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
backjlack has quit [Read error: Connection reset by peer]
sean_s has quit [Quit: sean_s]
dougireton has quit [Client Quit]
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
alanp has quit [Read error: Connection reset by peer]
alanp has joined #ruby
dougireton has joined #ruby
<linusoleander>
Isn't there a &&= that checks the right part of the expression?
Regis__ has joined #ruby
<linusoleander>
Like: a = 10; a &&= nil # => a == 10
dv__ is now known as dv_
dougireton has quit [Client Quit]
<spider-mario>
you mean a short equivalent to “a = b && a”?
subbyyy has joined #ruby
<spider-mario>
hm, that wouldn’t give a=10, sorry
zodiak has joined #ruby
<linusoleander>
b && a = b
<spider-mario>
when is it equal to a, then?
<linusoleander>
That would work, I read somewhere (~2 years ago) that a &&= 10 does the same thing
<linusoleander>
But it sin't work
<linusoleander>
*doesnt
GOMADWarrior has quit [Ping timeout: 264 seconds]
<linusoleander>
Only set "a" if "b" isn't nil
<linusoleander>
That is what I want to do, Ruby style
<MrZYX>
a = b if b
<linusoleander>
Then I've to repeat "b"
<spider-mario>
a = b || a
ciziar has joined #ruby
<linusoleander>
Then I*ve to repeat a instead :)
<MrZYX>
it's a = nil; a &&= foo; a #=> nil
<MrZYX>
like ||= it checks the left side
<spider-mario>
repeating `a` is just repeating a variable name, it sure is less than optimal but it’s not like repeating a more complex expression
splittingred has quit [Quit: splittingred]
<linusoleander>
MrZYX: Nope foo = nil; a = 1; a &&= foo; a => nil
cyberarm has quit [Remote host closed the connection]
<MrZYX>
mkay, both sides then
<linusoleander>
spider-mario: The problem is when you need to access a nested key in a hash
<spider-mario>
oh, right.
nanothief_ has joined #ruby
<linusoleander>
a[:a][:b][:c][:d]
nanothief has quit [Read error: Connection reset by peer]
<spider-mario>
does ruby have anything like perl’s references?
<spider-mario>
doesn’t look so
spider-mario has quit [Read error: Connection reset by peer]
pako2008 has quit []
codenapper has quit [Quit: Leaving...]
tchebb has quit [Read error: Connection reset by peer]
niceguyjames has quit [Quit: Computer has gone to sleep.]
nickbender has joined #ruby
<otters>
fancy quotes
tevio has quit [Remote host closed the connection]
tchebb has joined #ruby
marcellu1 has joined #ruby
keymone has joined #ruby
danneu has joined #ruby
marcellu1 has quit [Client Quit]
arya has quit [Ping timeout: 276 seconds]
wael has quit [Quit: wael]
r0bby has joined #ruby
nickbender has quit [Ping timeout: 264 seconds]
pioz has joined #ruby
rton has left #ruby [#ruby]
pioz has quit [Client Quit]
robbyoconnor has quit [Ping timeout: 248 seconds]
arya has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
r0bby is now known as robbyoconnor
pskosinski has quit [Quit: pskosinski]
<MrZYX>
linusoleander: _ = b && a = _
arya has quit [Ping timeout: 260 seconds]
<linusoleander>
MrZYX: Thanks!
Emmanuel_Chanel has joined #ruby
[eDu] has joined #ruby
keymone has quit [Quit: keymone]
Rym has joined #ruby
wedgex has joined #ruby
wmoxam has joined #ruby
Fuzai has joined #ruby
zodiak has quit [Quit: Leaving]
Hobogrammer_ has quit [Quit: さようなら]
<Fuzai>
Why does !!0 = true ? Shouldn't it equal false if we usually consider 0 false?
SCommette has joined #ruby
<MrZYX>
only false and nil are false in ruby, so !0 is true
<MrZYX>
er, false
<MrZYX>
since 0 is true
arya has joined #ruby
<Fuzai>
ouch
wedgex has quit [Remote host closed the connection]
[eDu] has quit [Quit: [eDu]]
wedgex has joined #ruby
veinofstars_ has joined #ruby
wedgex has quit [Ping timeout: 245 seconds]
huoxito has joined #ruby
veinofstars has quit [Ping timeout: 258 seconds]
veinofstars_ is now known as veinofstars
iamvery has quit [Remote host closed the connection]
iamvery has joined #ruby
jeremywrowe has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 256 seconds]
monkegji_ has joined #ruby
Politoed_ is now known as Politoed
tenmilestereo has quit [Quit: Leaving]
monkegjinni has quit [Read error: Operation timed out]
nminus1 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
jeremywrowe has joined #ruby
jbueza has quit [Quit: Leaving.]
nfk has quit [Quit: yawn]
arya has joined #ruby
rton has joined #ruby
iamvery has quit [Read error: Connection reset by peer]
iamvery has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
fjfish has quit [Remote host closed the connection]
francisfish has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
soulisson has joined #ruby
sailias has quit [Ping timeout: 258 seconds]
pcarrier has joined #ruby
mercwithamouth has quit [Ping timeout: 246 seconds]
iamvery has quit [Ping timeout: 256 seconds]
schiang has quit [Ping timeout: 245 seconds]
francisfish has quit [Ping timeout: 256 seconds]
chrishunt has quit [Quit: ZzZzZz...]
Davey has joined #ruby
chrishunt has joined #ruby
xardas has quit [Remote host closed the connection]
arya has quit [Ping timeout: 251 seconds]
sambao21 has joined #ruby
cantonic has quit [Ping timeout: 264 seconds]
dougireton has joined #ruby
droppedonmyhead has joined #ruby
carlsednaoui has joined #ruby
carlsednaoui has quit [Client Quit]
carlsednaoui has joined #ruby
schiang has joined #ruby
xkickflip_ has joined #ruby
cantonic has joined #ruby
hamakn has quit [Remote host closed the connection]
bradhe has joined #ruby
brennanMKE has joined #ruby
tomsthumb has quit [Quit: Leaving.]
dougireton has quit [Quit: Leaving.]
johnnyfuchs has joined #ruby
v0n has quit [Read error: Connection reset by peer]
LennyLinux has quit [Remote host closed the connection]
nickbender has joined #ruby
nickbend1r has joined #ruby
soulisson has quit [Ping timeout: 258 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
nomenkun has joined #ruby
carlsednaoui has quit [Remote host closed the connection]
rton has left #ruby [#ruby]
chxane has joined #ruby
carloslopes has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 260 seconds]
nickbender has quit [Ping timeout: 258 seconds]
schiang has quit [Ping timeout: 245 seconds]
nickbend1r has quit [Ping timeout: 260 seconds]
brennanMKE has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
Liothen has joined #ruby
Liothen has joined #ruby
Liothen has quit [Remote host closed the connection]
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
SCommette has quit [Quit: SCommette]
pilojo has joined #ruby
lethjakm1 has joined #ruby
<pilojo>
i'm trying to get regex to detect either an end of line, or an extra space, but i can't get it to detect one without being unable to detect the other
cooldman224 has quit [Remote host closed the connection]
<MrZYX>
in general I'd try to do regexes that, in doubt, are too strict than too open
<pilojo>
MrZYX: still doesn't work with the extra space
Xeago has quit [Remote host closed the connection]
<MrZYX>
where's the extra space?
v0n has joined #ruby
s2013 has quit [Ping timeout: 264 seconds]
<pilojo>
oh, nevermind i see
kofno has joined #ruby
LongLiveBacon has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
wreckimnaked has joined #ruby
carlsednaoui has joined #ruby
benlieb has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
iamvery has joined #ruby
lethjakm1 has quit [Ping timeout: 276 seconds]
busybox42 has joined #ruby
wreckimnaked has quit [Ping timeout: 252 seconds]
<pilojo>
MrZYX: there's an odd error with that regex... ":pilojo!~pilojo@unaffiliated/pilojo66 PRIVMSG ##pilojo :~kick pilojo asdfa".sub(/.+:~(\w+)\s?.+(\s|$).*/, "\\1") ends up giving me asdfa