apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p392: http://ruby-lang.org (ruby-2.0.0-rc2) || Paste >3 lines of text on http://gist.github.com
pakchoi2 has quit [Read error: Connection reset by peer]
coolj1 has joined #ruby
pakchoi2 has joined #ruby
iamjarvo has quit [Quit: Leaving.]
aspiers has joined #ruby
allaire has quit []
tbilik has joined #ruby
<tbilik> I have ruby 1.9.2. Anyone say that I should move to version 2?
zoonfafer has joined #ruby
awarner has joined #ruby
dunric has left #ruby ["WeeChat 0.4.0"]
<tbilik> I have ruby 1.9.2. Anyone say that I should move to version 2???(please write back) :)
newUser1234 has quit [Remote host closed the connection]
dunric has joined #ruby
baroquebobcat has joined #ruby
newUser1234 has joined #ruby
Mattix has quit [Quit: Leaving]
newUser1234 has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Client Quit]
newUser1234 has joined #ruby
chrishough has joined #ruby
baroquebobcat has joined #ruby
<tbilik> Any think I shoud change ruby version 1.9.2 to 2.0.0?
tish has joined #ruby
godzirra has left #ruby [#ruby]
chrishough has quit [Client Quit]
awarner has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
gosshedd has joined #ruby
dEPy has quit []
BRMatt has quit [Quit: Leaving]
tbilik has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
artOfWar has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
daniel_- has joined #ruby
zodiak has quit [Ping timeout: 252 seconds]
dunric has left #ruby ["WeeChat 0.4.0"]
newUser1234 has quit [Remote host closed the connection]
tbilik has joined #ruby
newUser1234 has joined #ruby
tbilik has quit [Read error: Connection reset by peer]
etcetera has joined #ruby
CraHan is now known as CraHan|out
Mattix has joined #ruby
<heliumsocket> hi guys - trying to install RVM on OSX 10.7, i keep getting a curl(2) failed to initialize error from curl, any workarounds for this?
hiall has quit [Quit: hiall]
zodiak has joined #ruby
newUser1234 has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
twshelton has joined #ruby
tealmage has joined #ruby
zodiak has quit [Max SendQ exceeded]
v0n has joined #ruby
elkclone has quit [Quit: It's never too late to unplug and run.]
artOfWar has quit [Remote host closed the connection]
zodiak has joined #ruby
artOfWar has joined #ruby
subbyyy has joined #ruby
Slivka has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
tealmage_ has joined #ruby
kofno has quit [Read error: Connection reset by peer]
tealmage has quit [Ping timeout: 252 seconds]
kirun_ has quit [Quit: Client exiting]
SCommette has joined #ruby
ferdev is now known as ferdev|away
stkowski has joined #ruby
Emmanuel_Chanel_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
monkegjinni has quit [Remote host closed the connection]
himsin has quit [Ping timeout: 260 seconds]
Vert has quit [Remote host closed the connection]
newUser1234 has joined #ruby
Vainoharhainen has joined #ruby
slainer68 has joined #ruby
zodiak has quit [Ping timeout: 260 seconds]
etcetera has quit []
tish has quit [Quit: Leaving.]
havenwood has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
chrishough has joined #ruby
chrishough has quit [Client Quit]
chrishough has joined #ruby
Xeago has joined #ruby
predator117 has joined #ruby
techhelp has joined #ruby
v0n has quit [Ping timeout: 255 seconds]
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
techhelp has quit [Client Quit]
predator217 has quit [Ping timeout: 264 seconds]
etcetera has joined #ruby
angusiguess has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
newUser1234 has quit [Ping timeout: 252 seconds]
gosshedd has quit [Ping timeout: 244 seconds]
Vainoharhainen has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
artOfWar has quit [Ping timeout: 255 seconds]
Robeel has joined #ruby
mlr has joined #ruby
Robeel has left #ruby [#ruby]
Myconix has quit [Ping timeout: 244 seconds]
babykosh has joined #ruby
zenergi has joined #ruby
coolj1 has left #ruby [#ruby]
<sam113101> what's "->"?
DrShoggoth has joined #ruby
blf has joined #ruby
<sam113101> how is it different than a normal lambda
pandawarrior1 has joined #ruby
digital-ghost has quit [Quit: http://www.gronski.org]
emergion has joined #ruby
eklarskov has joined #ruby
rupee has joined #ruby
<havenwood> sam113101: The stabby lambda is just syntactic sugar. Same as lambda. Like Proc.new and proc are the same.
rupee has quit [Client Quit]
<sam113101> havenwood: thanks
Stilo has joined #ruby
v0n has joined #ruby
<havenwood> ->(sugar){ "Matz uses #{sugar} to encourage using that way over less sweet alternatives!" }.call('stabby lambdas')
marr has quit [Ping timeout: 248 seconds]
xor_mind- has joined #ruby
eklarskov has quit [Ping timeout: 252 seconds]
chichou has joined #ruby
joeycarmello has quit [Remote host closed the connection]
ixx has quit [Ping timeout: 252 seconds]
<Xeago> apeiros_: you still awake?
<apeiros_> somewhat, yes
<Xeago> shame on you!
stkowski has quit [Quit: stkowski]
ixx has joined #ruby
<apeiros_> O_O
<Xeago> starcraft? :#
<apeiros_> heh
earthquake has joined #ruby
<Xeago> fell asleep at 9:30 xD
stkowski has joined #ruby
<apeiros_> no, I'm in bed
thufir_ has quit [Ping timeout: 246 seconds]
<Xeago> clearly awake now
<Xeago> :\
ixx is now known as Guest33203
<apeiros_> and I'm almost sleeping ;-)
<Xeago> bummer :<
<apeiros_> sorry
<Xeago> I usually go sleep around 2:30/3'ish
dorei has joined #ruby
<Xeago> but not tired antymore >.<
SCommette has quit [Quit: SCommette]
Spooner has quit [Quit: Leaving]
skcin7 has quit [Quit: Computer has gone to sleep.]
dallasm has joined #ruby
Myconix has joined #ruby
richardjortega_ has joined #ruby
chichou has quit [Quit: Leaving]
samphippen has quit [Read error: Connection reset by peer]
richardjortega has quit [Read error: Connection reset by peer]
richardjortega_ is now known as richardjortega
chichou has joined #ruby
chichou has quit [Client Quit]
samphippen has joined #ruby
earthquake has quit [Quit: earthquake]
chichou has joined #ruby
earthquake has joined #ruby
chrishough has quit [Quit: chrishough]
pakchoi2 has quit [Ping timeout: 252 seconds]
chichouw has joined #ruby
<Xeago> apeiros_: take care, going to try get some sleep
<apeiros_> good luck
<apeiros_> if not, play some hots :-p
<Xeago> will consider
tenmilestereo[aw has joined #ruby
newUser1234 has joined #ruby
<Xeago> but it's also quite cold on my room
bradleyprice has joined #ruby
<Xeago> 17 deg.
pakchoi2 has joined #ruby
<apeiros_> I'd have other suggestions in that case, but I don't think they're appropriate for this channel :o)
breakingthings has quit []
richardjortega has quit [Read error: Connection reset by peer]
<Xeago> in what sense?
<Xeago> do realize I am solo at the moment, girlfriend is still in sweden till wednesday
macq has quit [Ping timeout: 246 seconds]
richardjortega has joined #ruby
joeycarmello has joined #ruby
chichou has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
macq has joined #ruby
tenmilestereo has quit [Ping timeout: 246 seconds]
mrgoodcat has joined #ruby
<apeiros_> Xeago: d'oh. well, you got right to what I meant :)
* apeiros_ tries to get some sleep too
ferdev|away is now known as ferdev
sailias has joined #ruby
kristofers has quit []
chichouw has quit [Remote host closed the connection]
bradhe has joined #ruby
havenwood has quit [Remote host closed the connection]
akhet has joined #ruby
pakchoi2 has quit [Ping timeout: 255 seconds]
cableray has quit [Quit: cableray]
banisterfiend is now known as banister`tyrion
himsin has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
kofno has joined #ruby
pac1 has joined #ruby
joofsh has quit [Remote host closed the connection]
zenergi has quit [Quit: zenergi]
kiligarikond has quit [Remote host closed the connection]
nari has quit [Ping timeout: 246 seconds]
znode has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
<kseifried> he should murder his girlfriend and climb into her carcass like a tonton?
twshelton has joined #ruby
Slivka has quit [Remote host closed the connection]
meoblast001 has joined #ruby
tenmilestereo[aw has quit [Quit: Leaving]
<Xeago> hmm, my router/wifi/wireless-nic is saturated at 3.4k packets/second with 3.4MB/sec...
razibog has quit [Ping timeout: 256 seconds]
znode has quit [Ping timeout: 256 seconds]
neurotech has joined #ruby
timonv has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
hiall has joined #ruby
newUser1234 has joined #ruby
<kseifried> Xeago: try kismet, so who/what else is camping the channel
<Xeago> I am alone at 38/40
<kseifried> huh
<Xeago> just the cheepskate linksys WRT320N
havenwood has joined #ruby
senayar has quit [Remote host closed the connection]
hiall has quit [Client Quit]
nwertman has joined #ruby
newUser1234 has quit [Ping timeout: 255 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
thone has joined #ruby
robonerd has left #ruby ["..."]
thinkclay has quit [Read error: Connection reset by peer]
newUser1234 has joined #ruby
<quazimodo> is class Foo; include Somthing::Bar; end; similar to class Foo < Something::Bar ?
daniel_- has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Remote host closed the connection]
<shevy> quazimodo in a few ways
<shevy> you can extend functionality of class Foo
newUser1234 has joined #ruby
<shevy> but your example would not work as-is
<shevy> because you can subclass only another class
<shevy> and include, only a module
<quazimodo> :/
<quazimodo> but... something::Bar is a class
thone_ has quit [Ping timeout: 252 seconds]
<quazimodo> wait no it's not
<quazimodo> EVERYONE REJOICE
<quazimodo> i knew something hokey was going on
joofsh has joined #ruby
thinkclay has joined #ruby
rismoney has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
joofsh has quit [Remote host closed the connection]
newUser1234 has quit [Ping timeout: 256 seconds]
BoomCow has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
werdnativ has quit [Quit: werdnativ]
BoomCow has quit [Read error: Connection reset by peer]
pandawarrior1 has quit [Quit: Leaving.]
BoomCow has joined #ruby
maxmanders has quit [Ping timeout: 256 seconds]
maxmanders has joined #ruby
damienbrz has joined #ruby
<mrgoodcat> anybody know when 2.0.0 is slated for release?
<banister`tyrion> mrgoodcat: tomorrow i think
klaut has quit [Remote host closed the connection]
<mrgoodcat> haha I had a feeling it was coming up
<mrgoodcat> ty
Retistic has joined #ruby
bradhe has joined #ruby
Kuifje has quit [Ping timeout: 252 seconds]
tatum_O_o has joined #ruby
Deltaoo has joined #ruby
Deltaoo is now known as FELS___
<FELS___> hi all
<FELS___> is this the place to be for ruby development QnA help, support and convincing ?
<Muz> No, this is where we discuss precious minerals.
tatum_O_o has quit [Remote host closed the connection]
Emmanuel_Chanel_ is now known as Emmanuel_Chanel
thufir_ has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
tcstar has quit [Quit: Leaving]
baroquebobcat has joined #ruby
subbyyy has quit [Read error: Connection reset by peer]
eka has joined #ruby
tcstar has joined #ruby
xardas has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 255 seconds]
abomb has joined #ruby
verysoftoiletppr has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
kofno has quit [Remote host closed the connection]
abomb has quit [Client Quit]
Wildhoney has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
wmoxam has joined #ruby
xor_mind- has quit [Ping timeout: 260 seconds]
wmoxam_ has joined #ruby
zenergi has joined #ruby
zenergi has joined #ruby
znode has joined #ruby
zenergi has quit [Client Quit]
bradhe has joined #ruby
jborica has quit [Quit: jborica]
wmoxam has quit [Quit: leaving]
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #ruby
babykosh has quit [Quit: babykosh]
znode has quit [Ping timeout: 260 seconds]
byennen has joined #ruby
akashj87 has joined #ruby
<doodah> 1/who
postmodern has joined #ruby
mlr has quit [Ping timeout: 276 seconds]
znode has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
tealmage_ has quit [Remote host closed the connection]
eka has quit [Quit: Computer has gone to sleep.]
tjbiddle has joined #ruby
zodiak has joined #ruby
mercwithamouth has joined #ruby
jbw has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
bradhe has quit [Remote host closed the connection]
znode has quit [Remote host closed the connection]
zodiak has quit [Max SendQ exceeded]
neurotech has quit [Remote host closed the connection]
bradhe has joined #ruby
znode has joined #ruby
BoomCow has quit [Ping timeout: 255 seconds]
jpfuentes2 has joined #ruby
zodiak has joined #ruby
znode_ has joined #ruby
etcetera has quit []
bradhe has quit [Ping timeout: 252 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
dallasm has quit [Remote host closed the connection]
SCommette has joined #ruby
znode has quit [Ping timeout: 276 seconds]
MrSamuel has joined #ruby
zodiak has quit [Ping timeout: 260 seconds]
ferdev is now known as ferdev|away
MrSamuel has quit [Client Quit]
Hanmac1 has joined #ruby
MrSamuel has joined #ruby
jbw has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
Hanmac has quit [Ping timeout: 260 seconds]
quazimodo has quit [Ping timeout: 252 seconds]
hakunin has quit [Remote host closed the connection]
dohdaledo has joined #ruby
takeru has joined #ruby
pavilionXP has quit [Ping timeout: 276 seconds]
angusiguess has quit [Ping timeout: 255 seconds]
doodah has quit [Quit: leaving]
tjbiddle_ has joined #ruby
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
techhelp has joined #ruby
tjbiddle has quit [Ping timeout: 255 seconds]
tjbiddle_ is now known as tjbiddle
TomJ has quit [Ping timeout: 252 seconds]
TomJ_ is now known as TomJ
blf has quit [Quit: Page closed]
dhruvasagar has joined #ruby
quazimodo has joined #ruby
hakunin has joined #ruby
fir_ed has joined #ruby
<fir_ed> Ruby 2.0
<fir_ed> is tomorrow
<fir_ed> My body is ready.
thams has joined #ruby
<danneu> fir_ed: been using rc2 all month. halves my rails boot speed
verysoftoiletppr has quit []
verysoftoiletppr has joined #ruby
<dorei> u're an early adopter :p
<fir_ed> nono danneu
<fir_ed> but the OFFICIAL comes out tomorrow
<fir_ed> not release candids
<fir_ed> :D
pyro111 has joined #ruby
nfk has quit [Quit: yawn]
dorei has quit []
tundrax_ has joined #ruby
tundrax_ is now known as tundrax
klaut has joined #ruby
jwang has joined #ruby
Retistic has quit [Quit: Retistic]
love_color_text has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
heliumsocket has joined #ruby
heliumsocket has quit [Client Quit]
Retistic has joined #ruby
joofsh has joined #ruby
etcetera has joined #ruby
dallasm has joined #ruby
mattbl has joined #ruby
klaut has quit [Ping timeout: 260 seconds]
etcetera has quit [Client Quit]
bradhe has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
chrishough has joined #ruby
mlr has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
bigmac has joined #ruby
iamjarvo has joined #ruby
rezzack has joined #ruby
takeru has quit [Remote host closed the connection]
zodiak has joined #ruby
maxmanders has quit [Ping timeout: 244 seconds]
Virunga_ has quit [Remote host closed the connection]
twshelton has joined #ruby
maxmanders has joined #ruby
SCommette has quit [Quit: SCommette]
Yakko has joined #ruby
neurotech has joined #ruby
`brendan has joined #ruby
zodiak has quit [Max SendQ exceeded]
Cyrus has joined #ruby
sean1 has joined #ruby
sean1 has quit [Client Quit]
io_syl has quit [Read error: Operation timed out]
ananthakumaran has joined #ruby
io_syl has joined #ruby
skattyadz has quit [Quit: skattyadz]
Cyrus has quit [Quit: Bwha?]
statarb3 has quit [Read error: Connection reset by peer]
statarb3 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
hbpoison has quit [Ping timeout: 255 seconds]
Cyrus has joined #ruby
drago757 has quit [Quit: drago757]
tealmage has joined #ruby
tealmage has quit [Read error: Connection reset by peer]
twshelton has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
Mortchek_ has joined #ruby
bradhe has joined #ruby
yacks has joined #ruby
ebobby has joined #ruby
Mortchek has quit [Disconnected by services]
skattyadz has joined #ruby
Retistic has quit [Quit: Retistic]
tundrax has quit [Remote host closed the connection]
Mortchek_ is now known as Mortchek
Mortchek has quit [Changing host]
Mortchek has joined #ruby
tundrax has joined #ruby
Mortchek has left #ruby [#ruby]
jborica has joined #ruby
zodiak has joined #ruby
decoponio has joined #ruby
AndChat- has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
angusiguess has joined #ruby
aapzak has quit [Read error: Operation timed out]
dohdaledo has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
odra has quit [Quit: Real life calls]
rmcafee has quit [Quit: rmcafee]
tundrax has quit [Remote host closed the connection]
chichou has joined #ruby
jborica has quit [Ping timeout: 252 seconds]
pac1 has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 252 seconds]
aapzak has joined #ruby
sandGorgon has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
MrSamuel has quit [Quit: MrSamuel]
zodiak has quit [Ping timeout: 260 seconds]
skattyadz has quit [Quit: skattyadz]
generalissimo has joined #ruby
rezzack has quit [Quit: Leaving.]
forced_request has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
iamjarvo has quit [Quit: Leaving.]
bradhe has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
rmcafee has joined #ruby
rmcafee has quit [Remote host closed the connection]
chichou has quit [Remote host closed the connection]
jborica has joined #ruby
tcstar has quit [Remote host closed the connection]
twshelton has joined #ruby
byennen_ has joined #ruby
byennen has quit [Ping timeout: 260 seconds]
freakazoid0223 has quit [Ping timeout: 264 seconds]
damienbrz has quit [Remote host closed the connection]
Retistic has joined #ruby
xemu has quit [Ping timeout: 248 seconds]
byennen_ has quit [Read error: Connection reset by peer]
skcin7 has joined #ruby
byennen has joined #ruby
zwevans has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
byennen has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
byennen has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
chrishough has quit [Quit: chrishough]
subbyyy has joined #ruby
radic has joined #ruby
thams has quit [Quit: thams]
tcstar has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Ping timeout: 252 seconds]
tcstar has quit [Remote host closed the connection]
etcetera has joined #ruby
FELS___ has quit [Ping timeout: 252 seconds]
radic_ has quit [Ping timeout: 252 seconds]
girija has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
agarie has joined #ruby
hbpoison has joined #ruby
ebobby has quit [Ping timeout: 246 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
jgrevich has joined #ruby
bradhe has joined #ruby
rakm has quit [Ping timeout: 245 seconds]
rakm has joined #ruby
bradhe has quit [Ping timeout: 276 seconds]
tealmage has quit [Remote host closed the connection]
<Yakko> hey guys, I'm setting $stdout=File.open('a.log', 'a') and writing put commands in a rake task with an infinite loop and a sleep 1, but the log file only gets written when the rake task finishes running, am I missing anything?
tcstar has joined #ruby
tcstar has quit [Remote host closed the connection]
<sam113101> maybe you should close the file handle and reopen it once in a while? I don't know
maxmanders has quit [Ping timeout: 276 seconds]
tcstar has joined #ruby
jborica has quit [Remote host closed the connection]
maxmanders has joined #ruby
<breakingthings> What's the "break" equivalent keyword in ruby? eg. to break out of a control group (stop processing an if clause)
BoomCow has joined #ruby
<sam113101> it's break
<otters> are there languages that let you break out of an if?
<otters> i've never heard of that
angusiguess has joined #ruby
<breakingthings> sam113101: does it accept multiple levels?
<breakingthings> eg break 2
<breakingthings> (I know this is hacky as shit but I'm just throwing together something. Don't judge me :d)
yshh has quit [Remote host closed the connection]
<sam113101> no
<otters> I don't think ruby has labeled break either, does it
<otters> you could use throw/catch though
yshh has joined #ruby
iamjarvo has joined #ruby
akashj87 has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
verysoftoiletppr has quit [Ping timeout: 252 seconds]
tundrax has joined #ruby
BoomCow has quit [Quit: Leaving]
Qwak has joined #ruby
mneorr has joined #ruby
verysoftoiletppr has joined #ruby
ahokaomaeha is now known as lolcathost|afk
nignaztic has joined #ruby
nignaztic has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
Qwak has quit [Ping timeout: 252 seconds]
Retistic has quit [Quit: Retistic]
Guest69401 has quit [Ping timeout: 245 seconds]
meoblast001 has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
speakingcode has joined #ruby
[rust] has joined #ruby
ddd has joined #ruby
ddd is now known as Guest94877
sandGorgon has quit [Ping timeout: 256 seconds]
sandGorgon has joined #ruby
byennen has quit [Ping timeout: 260 seconds]
byennen has joined #ruby
IceDragon has quit [Quit: Space~~~]
yshh has quit [Remote host closed the connection]
philcrissman has joined #ruby
byennen has quit [Remote host closed the connection]
byennen has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
philcrissman has quit [Remote host closed the connection]
bradhe has joined #ruby
byennen has quit [Remote host closed the connection]
lolcathost|afk has quit [Ping timeout: 252 seconds]
Matip has joined #ruby
yshh has joined #ruby
decoponio has quit [Quit: Disconnect before AFKing]
akashj87 has joined #ruby
takeru has joined #ruby
Mattix has quit [Ping timeout: 255 seconds]
cableray has joined #ruby
takeru has quit [Ping timeout: 252 seconds]
mattbl has joined #ruby
fbernier has quit [Ping timeout: 256 seconds]
agarie has quit [Remote host closed the connection]
fbernier has joined #ruby
smallcapsdude has joined #ruby
statarb3 has quit [Ping timeout: 276 seconds]
etcetera has quit [Ping timeout: 260 seconds]
girija has quit [Ping timeout: 256 seconds]
yshh has quit [Read error: Connection reset by peer]
yshh_ has joined #ruby
averiso has joined #ruby
Bry8Star has joined #ruby
sandGorgon has quit [Ping timeout: 260 seconds]
pakchoi2 has joined #ruby
breakingthings has quit []
heliumsocket has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
mlr has quit [Ping timeout: 255 seconds]
ThePicard has quit [Ping timeout: 252 seconds]
dross has quit [Ping timeout: 246 seconds]
baroquebobcat has joined #ruby
Retistic has joined #ruby
joofsh has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 264 seconds]
dross has joined #ruby
agarie has joined #ruby
ThePicard has joined #ruby
pakchoi2 has quit [Ping timeout: 260 seconds]
bradhe has quit [Ping timeout: 244 seconds]
Gwyxx has joined #ruby
pakchoi2 has joined #ruby
beiter_ has joined #ruby
sandGorgon has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
heliumsocket has joined #ruby
beiter has quit [Ping timeout: 248 seconds]
beiter_ is now known as beiter
tundrax has quit [Remote host closed the connection]
johnnyg1 has joined #ruby
mduvall has joined #ruby
TigerVIP has joined #ruby
tundrax has joined #ruby
<johnnyg1> I'm wondering what the proper way to write a ruby options hash is https://gist.github.com/anonymous/5022836
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
TigerVIP has left #ruby [#ruby]
<dallasm> line 11 is correct, line 10 will usually work in most cases
<johnnyg1> dallasm: thanks
mahmoudimus has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 244 seconds]
jrajav has quit [Quit: I tend to be neutral about apples]
Sonarcade has joined #ruby
dallasm has left #ruby [#ruby]
dallasm has joined #ruby
Retistic has quit [Quit: Retistic]
bigmac has quit [Ping timeout: 255 seconds]
Sonarcade has quit [Ping timeout: 260 seconds]
Qwak has joined #ruby
<fir_ed> How would I listen for web requests with ruby?
bubbajones has quit [Ping timeout: 252 seconds]
hbpoison has quit [Ping timeout: 246 seconds]
hbpoison has joined #ruby
agarie has quit [Remote host closed the connection]
tealmage has quit [Remote host closed the connection]
tealmage has joined #ruby
averiso has quit [Read error: Connection reset by peer]
[rust] has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 260 seconds]
averiso has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
sepp2k1 has quit [Remote host closed the connection]
maycon_ has joined #ruby
maycon has quit [Ping timeout: 260 seconds]
pakchoi2 has quit [Ping timeout: 276 seconds]
Yakko has quit [Read error: Connection reset by peer]
pakchoi2 has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
himsin has quit [Ping timeout: 244 seconds]
pakchoi2 has joined #ruby
ebobby has joined #ruby
bradhe has joined #ruby
mneorr has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 255 seconds]
eka has joined #ruby
znode_ has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 276 seconds]
werdnativ has joined #ruby
<danneu> fir_ed: got a use case? ruby's got a simple wrapper around sockets if that's whatcha want
<danneu> might be lower level than what you want
johnsalton has joined #ruby
<fir_ed> danneu, I want to redirect a web request
<fir_ed> this might come in handy if i listen on port 80 i suppose
<fir_ed> using tcpserver class
<johnsalton> Hi I'm using rbenv. I'm installed several different versions without problem, and then I went to install maglev-1.0.0, and all of a sudden something is running sudo and asking for my password. that's not right is it? what could be going on?
<johnsalton> Using ruby-build as well, i should have said
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
emergion has quit [Quit: Computer has gone to sleep.]
pakchoi2 has quit [Ping timeout: 255 seconds]
jhgaylor has joined #ruby
tundrax has quit [Remote host closed the connection]
stkowski has quit [Quit: stkowski]
mattbl has quit [Quit: This computer has gone to sleep]
bradhe has joined #ruby
Animawish has joined #ruby
<Animawish> given the array ['a', 'b', 'a'], how would I get the index of both 'a's?
<heftig> %w{a b a}.flat_map.with_index { |x,i| x == "a" ? [i] : [] }
Bry8Star has quit [Ping timeout: 276 seconds]
<heftig> i probably forgot something
pakchoi2 has joined #ruby
spaceships has quit [Ping timeout: 276 seconds]
<fir_ed> Animawish: your answer is up there
<fir_ed> I didn't check it
angusiguess has joined #ruby
Adys_ is now known as Adys
tomzx_mac has quit [Ping timeout: 260 seconds]
<Animawish> i've never seen either of those methods before
justsee has quit [Ping timeout: 252 seconds]
tundrax has joined #ruby
<fir_ed> Animawish, enumerable module
mattbl has joined #ruby
<Animawish> what about the .with_index?
skcin7 has quit [Quit: Computer has gone to sleep.]
mneorr has joined #ruby
<danneu> johnsalton: i dont use rbenv but is there some incantation you need to type to tell it to actually use one of the installed rubies by default?
emergion has joined #ruby
<danneu> johnsalton: cuz it sounds like you opened a new terminal without doing that and you're back using system ruby
morfin has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 244 seconds]
<fir_ed> Animawish, that's also in enumerable
<fir_ed> except it is called each_with_index
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
love_color_text has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 256 seconds]
<Animawish> where can I read more about %w?
mattbl has quit [Quit: This computer has gone to sleep]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
bluOxigen has joined #ruby
<johnsalton> danneu: i'll try that thanks
Umren has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
generalissimo has quit [Remote host closed the connection]
MrSamuel has joined #ruby
<johnsalton> danneu: it looks like MagLev-1.0.0 for build-build is just pretty broken, there's a few posts about it here and there, so i think i'll give up, just in case anyone is googling this irc for the same problem as me
wmoxam has quit [Ping timeout: 260 seconds]
blueOxigen has joined #ruby
<Animawish> so %w[asdf] is just a fancy idiomatic way to write some kinds of arrays?
bluOxigen has quit [Ping timeout: 252 seconds]
<fir_ed> %w[a s d w] => ["a","s","d","f"]
<fir_ed> Animawish: ^
johnsalton has quit [Quit: Page closed]
w|t has quit [Quit: Cya.]
w|t has joined #ruby
w|t has quit [Changing host]
w|t has joined #ruby
pakchoi2 has quit [Quit: 离开]
Qwak has quit [Ping timeout: 255 seconds]
takeru has joined #ruby
MrSamuel has quit [Ping timeout: 246 seconds]
generalissimo has joined #ruby
dmiller has joined #ruby
dmonjo has joined #ruby
<dmonjo> hello ruby on weekends
neverminding has joined #ruby
averiso has quit [Ping timeout: 252 seconds]
love_color_text has joined #ruby
pakchoi2 has joined #ruby
averiso has joined #ruby
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
neverminding has quit [Remote host closed the connection]
jhgaylor has quit [Quit: Leaving]
tundrax has quit [Remote host closed the connection]
verysoftoiletppr has quit []
pakchoi2 has quit [Read error: Connection reset by peer]
pakchoi2 has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
verysoftoiletppr has joined #ruby
znode has joined #ruby
tcstar has quit [Remote host closed the connection]
pakchoi2 has quit [Max SendQ exceeded]
maxmanders has quit [Ping timeout: 276 seconds]
newUser1234 has joined #ruby
bradleyprice has quit [Remote host closed the connection]
maxmanders has joined #ruby
seich- has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
verysoftoiletppr has quit [Client Quit]
znode_ has joined #ruby
seich- has joined #ruby
znode has quit [Ping timeout: 245 seconds]
dmiller has quit [Ping timeout: 252 seconds]
NobbZ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
NobbZ has joined #ruby
tundrax has joined #ruby
NobbZ has quit [Remote host closed the connection]
d3vic3 has joined #ruby
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
NobbZ has joined #ruby
pakchoi2 has joined #ruby
generalissimo has quit [Remote host closed the connection]
TomJ has quit [Ping timeout: 260 seconds]
TomJ_ is now known as TomJ
goganchic has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
<jblack> omg.
crackfu has quit [Remote host closed the connection]
angusiguess has joined #ruby
<jblack> I'm using ObjectSpace to print out a count of each type of class I'm using.
<jblack> and 77k srings, 68k hashes, 17k Time... (17k of type Time??????)
<jblack> The only way I explicitely use Time at all, is Time.now.to_i
pakchoi2 has quit [Ping timeout: 244 seconds]
chrisramon has joined #ruby
<chrisramon> hi
<chrisramon> i have a event machine web socket running
<chrisramon> how can i connect to it and send messages with ruby ?
justsee has quit [Ping timeout: 260 seconds]
johnnyg1 has quit [Quit: Leaving.]
BeLucid has quit [Ping timeout: 260 seconds]
etcetera has joined #ruby
<jblack> chrisramon: You mean you're accepting tcp requests on port somethignorother?
<jblack> Check out Mechanize
<jblack> m = Mechanize.new()
<jblack> m.get("http://localhost:4040/page")
<chrisramon> I want to send message to the web socket which I created using event machine
<chrisramon> from another script with ruby
havenwood has quit [Remote host closed the connection]
sandGorgon has quit [Ping timeout: 255 seconds]
AndChat| has quit [Ping timeout: 260 seconds]
akashj87 has joined #ruby
<dmonjo> i know 5 websites that provide some information when queried over web interface for example when searching in the search bar provided by the websites, is there a way in ruby to create like a small software that can query these search bars? something like send a get request, point to that search bar and return the data to my ruby?
<dmonjo> maybe to gather all data rom these websites and put them on my server for caching
<jblack> dmonjo: Almost tthe same question as chrisramon. =) Look at Mechanize.
<jblack> but those search bars use javascript. not sure how you'll run that, but there are javascript interpreters for ruby
<dmonjo> jblack: is that legal in some way ? coz can you exhaust the database of the websites and get all their data that way
Retistic has joined #ruby
<jblack> Good luck with that.
<chrisramon> jback
<jblack> some how I don't think you're going to get all of google's search results by hitting "a", then "b" then "c". and so on
<chrisramon> can i connect to web socket using mechanize ?
danneu has quit [Quit: WeeChat 0.3.8]
<dmonjo> jblack: but technically speaking it can be done surely if the db is not as google's size
<jblack> chrisramon: actually, youre' doing something different than I thought. check out : http://imanel.org/blog/2010/12/building-websocket-server-in-ruby/
<jblack> dmonjo: As it happens, I scrape Secretary of State websites to download business entity data.
akashj87 has quit [Ping timeout: 246 seconds]
senayar has joined #ruby
<jblack> any given database you're looking at "out there" is var larger than the soda straw that is an http form.. with or without javascript.
<jblack> you really have to know what you're looking for.
lkba has joined #ruby
tealmage has joined #ruby
<jblack> what data are you tryign to get, dmonjo?
<dmonjo> jblack: you mean since we are getthing the data via http instead of direct db access so you have all these headers getting in the way
<dmonjo> some yellowpages
<jblack> so you want to scrape business info.
<dmonjo> no
<dmonjo> i am just asking if this is legal or not
<dmonjo> since data is accessible to the public anyways
<jblack> Almost certainly not.
Retistic has quit [Ping timeout: 246 seconds]
<jblack> At least not in the US. In the US, you need permission to connect and use a resource on the internet...
pakchoi2 has joined #ruby
<dmonjo> jblack: what if you redirect the request ot their website?
<dmonjo> and not download anything
<jblack> now, nobody is ever going to get into trouble because they poke at something a little, but when you start doing it in bulk, you cross a line, and Who you're pissing off becomes important.
dallasm_ has joined #ruby
<jblack> It's all about terms of use, and what they've given you permission to do
SCommette has joined #ruby
<jblack> There's a recent tragedy involving Aaron Swartz. He made a program to download scientific journals from a company that MIT had licensed the data from
<dmonjo> do wqebsites publish term of use ? never saw that :)
<jblack> all big ones do.
<dmonjo> aha
v0n has quit [Ping timeout: 255 seconds]
love_color_text has quit [Remote host closed the connection]
<dmonjo> these scientifc journals were shared for the public ?
<jblack> First MIT tried to stop him one way, then they tried another. Then, he put a computer on their network. and he scraped all that data.
<jblack> they were shared with MIT students and alumni.
tundrax has quit [Remote host closed the connection]
<dmonjo> i see
<jblack> but the terms or service were clear. You're not allowed to just grab them all.
dallasm has quit [Ping timeout: 252 seconds]
<dmonjo> got it
<jblack> So, He violated terms of service, and MIT AND the journal company pressed charges.. at least until it became public.
<dmonjo> thanks for sharing
<jblack> It's worth knowing about .
v0n has joined #ruby
<dmonjo> sure
<jblack> In real life, it's all about how annoying you are, and who you piss off.
<jblack> 99.99% of places out there, if they care at all will just ban your ip, and that's the end of it.
<jblack> but if you try to download craploads of data that someone sell, and especially if you start to compete against them, you can bet they'll do their best to make you sad.
cableray has quit [Quit: cableray]
<jblack> You might be able to argue fair use. You might be able to argue permission was given. you might be in the right. But that may not stop them from trying to make you wish you had never tried.
<jblack> Make sense buddy?
Nisstyre-laptop has quit [Quit: Leaving]
<dmonjo> well said
tealmage has quit [Ping timeout: 264 seconds]
<jblack> Google isn't likely to sue you.. or yahoo... Monster companies don't generally beat up on the little folk unless they're really being a BIG pain in the ass...
<jblack> but your midsized companies can be real assholes, and they're often powerful enough to make your life suck if they don't like you
oneawayman has quit [Ping timeout: 276 seconds]
dmiller has joined #ruby
<jblack> They can also be really cool. My advice: Contact the people you want the data from, and ask them if they can public an api.
<dmonjo> thats the way i was thinking about
<jblack> if you tell a good story about why it's good for them, you very well might get a nice api
<jblack> open communication is all the rage these days. =)
daniel_- has joined #ruby
oneawayman has joined #ruby
charliesome has joined #ruby
Slivka has joined #ruby
<jblack> Ok, so, I'm looking at an array of objects provided by ObjectSpace ....
<jblack> My turn! How do I find out which objects hold references to another object?
marr has joined #ruby
goganchic has quit []
dhruvasagar has joined #ruby
<devyn> hm, I'm not sure you can do that
sandGorgon has joined #ruby
<jblack> e.g. let's say I have an object "in the hand"... is there a way to find out which other objects hold a reference to that object?
chrisramon has quit [Quit: chrisramon]
mduvall has quit []
<jblack> I'm trying to chase down a file handle leak because somewhere my code is opening but not closing sockets.
mneorr has joined #ruby
<jblack> I don't know what's doing it, so somehow I need to figure out what's opening socket, and then figure out what's not being GC'ed
<devyn> well, I wouldn't rely on GC to close sockets…
<devyn> just close them yourself when you're done with them
<jblack> I presume that whatever object opened the socket would close it when -it- gets GC'ed.
<jblack> I'm not directly handling sockets at all.
oneawayman has quit [Ping timeout: 276 seconds]
<jblack> I'm using things that do... Nokogiri, Mechanize, a logger class or two...
<devyn> hm, Mechanize could do it
* devyn looks into it
dmiller has quit [Ping timeout: 252 seconds]
oneawayman has joined #ruby
<devyn> jblack: you can call #shutdown on a Mechanize instance, apparently
<devyn> which closes its persistent connections
<jblack> hmmm. I would have expected it to do that on it's own...
<jblack> but perhaps lazy cleanup you think?
etcetera has quit [Remote host closed the connection]
jgrevich has quit [Remote host closed the connection]
<jblack> I've got up to 50 threads running, hitting various SoS websites.
<devyn> well you just shouldn't be relying on GC to do that
SCommette has quit [Quit: SCommette]
<jblack> I agree. it's almost always a bad sign when one talks to the GC
<devyn> Mechanize intentionally has persistent connections
<devyn> to make things faster
smallcapsdude has quit [Quit: smallcapsdude]
<jblack> lol.
<jblack> I googled for "Mechanize shutdown" and the very first result is "Sep 3, 2012 – e.g. when writing crawlers, it's easy to hit the limit of open files because of idle Net::HTTP::Persistent connections. If you agree this is useful I ..."
mneorr has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
<jblack> that sounds like me
smallcapsdude has joined #ruby
<devyn> are you using the same Mechanize instance, or creating new ones all the time?
<jblack> I'm creating new one all the time.
<devyn> actually, that shouldn't make a difference
<devyn> just use #shutdown xD
<jblack> You don't think I'll kick myself in the threads by doing that, do you?
<jblack> each thread is starting up mechanize on it's own, so as long as there's no singleton hidden in there... right ?
* devyn shrugs
<jblack> nah, they should be independent objects
dhruvasagar has quit [Remote host closed the connection]
<devyn> well, get it working, I guess, and if you find a better way, use that
<jblack> I only call "getmechanize" 9 times throughout the codebase.
<jblack> so that should be an easy fix.
<devyn> I have a feeling that whatever you're doing is not really the best design, but hey, go for it; there's time to make it better later
<devyn> :p
<jblack> I'm scraping entity data from secretary of state websites. each state is slightly different, so the code is slightly different for each one.
pakchoi2 has quit [Quit: This computer has gone to sleep]
<jblack> so I have 50 queues, 1 for each state, and a pile of worker threads that looks for states that have queues of work to do, and intermittently fires off work for each queue
oneawayman has quit [Quit: Leaving]
etcetera has joined #ruby
<jblack> e.g. instead of doing 50 requests for texas at the same time, I throttle them down to 1 request every 3 seconds. otherwise, they tend to firewall my ass for being a bad neighbor. =)
swex has joined #ruby
<devyn> alright, seems… okay
<devyn> have fun then
<devyn> :p
<jblack> oh, gawd, I hate it
<jblack> 75% of the crap out there is old asp.net
<jblack> remember that incomptent jackass you worked with 6 years ago, that wrote ugly redundant code that worked a good 35% of the time?
krz has joined #ruby
bradhe has joined #ruby
<devyn> haha
<jblack> the sort that had 26 if/then/elses instead of a swithc statement?
<devyn> I know
<jblack> Well, he has a job for idaho... or oregon
<devyn> oh boy
<devyn> yeah government websites of any kind tend to be pretty bad
daniel_- has quit [Ping timeout: 252 seconds]
<jblack> yeah. Deleware's website has BUSINESS HOURS.
<jblack> they literally shut down at like midnight, and wake up again at 8am or somesuch
nari has joined #ruby
Tony2323 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
<Tony2323> sal
Tony2323 has left #ruby [#ruby]
newUser1234 has joined #ruby
<devyn> jblack: the fuck? that's weird
justme1 has joined #ruby
<jblack> oh, it gets worse.
<jblack> you ever done scraping? Check out http://www.sos.la.gov/tabid/819/default.aspx
<jblack> their search results page doesn't reference ids... you actually have to do a frigging form post submit on a _relative_location_named_button_ in order to get any particular entity
<devyn> holy shit
<devyn> this looks like it was written by some convoluted template framework
bradhe has quit [Ping timeout: 252 seconds]
<jblack> Yeah, that's asp.net
<devyn> yeah, I fortunately never had to do asp.net
<jblack> most of it's not -that- bad... but then someone gets "smart", and ...
rickmasta has joined #ruby
<rickmasta> Hi
<jblack> like... entities might be behind a form get, which is nice, cause you toss that in the url....
<devyn> I'm willing to bet it's at least partially because they wanted it to be a button
<jblack> but then they require 2 hour session ids.
<jblack> Right. But they could hvae done that with an HREF! =)
<devyn> of course but they're dumb
<dmonjo> how can i check all the &:<Symbol> method classes eg: :&upcase
newUser1234 has quit [Ping timeout: 245 seconds]
<jblack> They could have at least added a <span> with the entity id, or a comment, or SOME SORT OF TAG that references the entity ID.. but no.
AntiTyping has quit [Quit: AntiTyping]
<devyn> dmonjo: huh? you can use any method that object supports
<jblack> you can't get the entity id for that state until you get to the entity page.
blueOxigen has quit [Ping timeout: 264 seconds]
<devyn> rickmasta: hello
zzing has quit [Quit: Computer has gone to sleep.]
<rickmasta> Anyone here familiar with Mechanize?
<jblack> rickmasta: I am veyr familiar with it. =)
krz has quit [Quit: krz]
<jblack> I was just talking about it. =)
<rickmasta> I've just began using it, but I'm not entirely sure what's going wrong.
<devyn> =) =) =)
krz has joined #ruby
<jblack> Ok, well, I can try to help.
<jblack> what's wrong?
<rickmasta> Nothing I'm doing is working, I've even copied code samples directly from the website and it hasn't worked.
<jblack> Ok, let's try to get a little more specific than "it doesn't work"
<jblack> do you know how to use irb?
<rickmasta> Sure
<jblack> ok, run that, and start off with 'require mechanize'
havenwood has joined #ruby
<jblack> pardon, require 'mechanize'
<jblack> did you get a true?
<rickmasta> Yup, I get the page loaded, even get all of the links listed.
<devyn> or you can irb -rmechanize when you start it
<devyn> shit
<carlzulauf> w00t
<jblack> rickmasta: Ok, so we are way better than "its all broken"
<jblack> what's the problem, then?
AnarchoTroll has joined #ruby
<rickmasta> http://mechanize.rubyforge.org/GUIDE_rdoc.html I follow this guide, and all works well until I try to get it to click.
hbpoison has quit [Ping timeout: 256 seconds]
<jblack> can you paste your code on codepad.org please ?
gosshedd has joined #ruby
<rickmasta> Actually, it just worked, Hrm. I might've done something wrong before.
<rickmasta> That's so weird, I tried it plenty of times.
<jblack> I'm good like that.
<rickmasta> haha Yup
<jblack> anything else? I also give good marriage counseling advice
<devyn> happens to me all the time
elkclone has joined #ruby
<devyn> “my computer isn't working” “what's wrong with it” *it's fine* “I swear it wasn't working” “okay…”
mengu_ has joined #ruby
<rickmasta> okay, now I have to figure out what's wrong with my own code.
v0n has quit [Ping timeout: 252 seconds]
<jblack> It's excellent advice. If you're fighting, if you're a boy, you apologize. if you're a girl, you give him a blow job
<finnomenon> rickmasta: missing ; ??
<rickmasta> lol
<finnomenon> :)
wallerdev has quit [Quit: wallerdev]
<jblack> Ok, lets read this...
heliumsocket has joined #ruby
<jblack> ok. lets do this..
<jblack> you need more debugging. first off, I'd grab the ofrm.
<jblack> say... myform = page.forms.first
<jblack> then, you can do a pp myform, to make sure that's right. if so....
<jblack> and you can double check those form variable names too
<jblack> ok, there's your problem
<jblack> [hidden:0xe459bc type: hidden name: act value: logon]
<jblack> [text:0xe456d8 type: text name: enterpriseID value: ]
<jblack> [field:0xe4546c type: password name: password value: ]}
sayan has quit [Read error: Connection reset by peer]
<jblack> username_field = page.field_with(:name => "user_session[username]")
<jblack> password_field = page.field_with(:name => "user_session[password]")
<jblack> I would do this....
<jblack> f = page.forms.first;
<jblack> f['enterpriseid'] = username
<jblack> f['password'] = password
<rickmasta> Well, I have already changed the user_session[username] and password one. I get an error with no such method field_with
<jblack> Add a pp and look at it yourself.
<jblack> pp a.page
<jblack> pardon, pp page
monkegjinni has joined #ruby
HecAtic has joined #ruby
danneu has joined #ruby
danneu has quit [Client Quit]
TomJ has quit [Read error: Connection reset by peer]
<rickmasta> Yeah I see the form under pp page
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<rickmasta> so jblack, what code of mine would I replace for yours?
daniel_- has joined #ruby
<jblack> sec. I'm writing it for you
<havenwood> Ruby's 20th Birthday today! (❁´◡`❁)*✲゚*
<havenwood> And Ruby 2.0.0-p0... \(^ ^)/
pakchoi2 has joined #ruby
<havenwood> Still have RubyGems 2.0.0 to look forward to later today.
<Paradox> well
<Paradox> there goes my week
<Paradox> >_<
pmros has joined #ruby
nachtwandler has joined #ruby
<pmros> hi guys! ruby 2.0 is released!
<havenwood> Party time!
pakchoi2 has quit [Max SendQ exceeded]
pakchoi2 has joined #ruby
<jblack> rickmasta: http://codepad.org/eTj4h7Xo
<Paradox> kind of glad i didnt upgrade to the last patch level
<Paradox> heh
<Paradox> well, might as well be positive bout this
<Paradox> refinements!
<pmros> I miss a compiler to bytecode, like jruby or rubinius
<Paradox> keyword arguments!
apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
<devyn> oooh, Ruby's hatachi
<Paradox> and the probably most useful in day-to-day functions
<Paradox> %i
emergion has joined #ruby
codespectator has quit [Quit: Computer has gone to sleep.]
krz has quit [Read error: Connection reset by peer]
<rickmasta> Oh nice jblack! It works thanks!
<Paradox> is ruby-build updated yet?
<jblack> rick: wait.
<jblack> I want to make it slightly better
<rickmasta> The "easy" part is out of the way, now on to the hard part. I have to figure out how I'm going to do this.
Neomex has joined #ruby
<jblack> rickmasta: http://codepad.org/IRMZayWb
<jblack> yes, figuring out what to do is often the hardest part
Neomex has quit [Client Quit]
<dmonjo> pmros: officially?
elkclone has quit [Read error: Connection reset by peer]
<Paradox> looks like i still gotta wait for ruby-build to be updated
<pmros> yes
<Paradox> :/
<jblack> btw, that code isnt' very safe. it doesn't check results, or that it's the right field, etc.
<havenwood> Paradox: nope, looks like it isn't yet
<jblack> that's an excercise for you
<rickmasta> jblack: Thank you!
<Paradox> havenwood, yeah, i just did brew update
<Paradox> heh
<havenwood> Paradox: Not in --HEAD either
seich- has quit [Ping timeout: 245 seconds]
<Paradox> well
<rickmasta> Let me explain to you guys what I have to do, maybe you guys can offer some good advice.
<Paradox> its 2:30 am
<Paradox> so
<Paradox> on a sunday
<Paradox> so im not worried
<havenwood> Paradox: I just added it to the chruby install wiki :) https://github.com/postmodern/chruby/wiki/MRI
<jblack> we can try
heliumsocket has quit [Quit: heliumsocket]
<jblack> so are we up for 6 months of "gem X doesn't work on 2" ?
<Paradox> also, can someone link me to a good white paper on what lazy loading is,
<Paradox> i'm still unclear on that
<Paradox> i know how to use it in ruby's context
<Paradox> but dont know why i would
<Paradox> memory issues?
alx- has joined #ruby
<jblack> if it's like datamapper, it means an object isn't created until it's actually used.
<jblack> or parts of the object aren't instantiated until needed.
<Paradox> thats what i was thinking
<Paradox> i assumed it was gonna be like the default in rails 4
<Paradox> but wanted to make sure
seich- has joined #ruby
<havenwood> Now it is added to ruby-build.
<pmros> I wanna precompiled ruby code for yarv!
<havenwood> On --HEAD
<havenwood> brew install ruby-build --HEAD
<Paradox> yup
<Paradox> thats what it was
<jblack> that can be a mixed blessing
<havenwood> jblack: Lots of nice stuff. Just made sure to not break with 1.9 like 1.9 did with 1.8.
hbpoison has joined #ruby
<Paradox> i still think 1.9 should have been 2.0
<Paradox> and 2.0 should be 2.1
<Paradox> semver!
<pmros> I'm agree
<jblack> it's already such a nice language. =)
<pmros> but aniversaries
<pmros> do you remember linux 3.0?
<Paradox> basically, if i'm reading this right, for most day-to-day tasks of enumeration, lazy wont be useful
<Paradox> but for things that read billions of enumerations
<havenwood> And lots of nice stuff in 2.0, stable unlike 1.9.0.
<Paradox> ie file readers and writers and whatever
<Paradox> lazy will be useful
<jblack> "We have also made documentation improvements which many rubyists have requested. We have added a huge amount of rdoc for modules and methods. 2.0.0 will be around 75% documented while 1.9.3 was about 60%. Also, we have added a description of Ruby's syntax. You can see:"
<jblack> sweet
<Paradox> ruby already has the best documentation i've ever seen
<jblack> is there a command line doc tool out there?
<rickmasta> I'm trying to scrape this webpage http://d.pr/i/pDPu ( Source: http://pastie.org/6326746 ) every day to get any updates to my schedule. The thing is, the schedule is updated every thursday and a second row is added for my next weeks' schedule, until sunday comes when the first week ends and is gone, and the second row moves to the first row. Then a second row is added next thursday and so on.
<pmros> precompiled code!!!
<devyn> Paradox: I prefer Haskell's, honestly
<Paradox> i dont
<rickmasta> You guys can see my crappy work schedule. haha
<devyn> but Ruby's is up there
dmiller has joined #ruby
<Paradox> i find haskells to focus way too much on the math, just like the language itself
<jblack> rickmasta: You're not really going to bring your whole project here, step by step, are you? :P
<Paradox> but no worries if you like it :)
d3vic3 has quit [Quit: leaving]
<pmros> keywords was a must
<rickmasta> Ohh no no, I'm not.
<devyn> sometimes you don't need that much of an explanation when the types suffice :)
<jblack> so what's your question, rick?
Jeaye has quit [Quit: zzzZZZzzz]
<jblack> soemtimes there are 2 rows, and sometimes 3?
<rickmasta> Not trying to atleast, just don't know how I can tackle this page.
<jblack> btw, firebug with the xpath addon is great for this
<jblack> well, first things first...
<jblack> that's a gif
<rickmasta> Never three, only one, sometimes two.
<Paradox> or just use chrome
<Paradox> which can copy xpath natively ;)
jhgaylor has joined #ruby
ebobby has quit [Ping timeout: 252 seconds]
arturaz has joined #ruby
<jblack> his xpath is "//img[@src]....
<jblack> thats not a table. thats a gif of a table.
<rickmasta> What's xpath?
<jblack> xpath is going to become your very best friend some day, when you have a html document that's made out of html instead of pixels. =)
<rickmasta> Well I took a screenshot of the page, and also provided the source of the actual page. lol
<jblack> oh, I missed that.
<Paradox> jblack, try parsing patents
<Paradox> shudder
<Paradox> worst shit ever
<Paradox> i have a regex longer than the constitution
<devyn> that's not parsing; that's guessing
<jblack> xpath lets you do things like....
dmiller has quit [Ping timeout: 260 seconds]
<Paradox> devyn, essentially
<Paradox> patent office
<Paradox> y u no json
<jblack> paradox: I parse business registry data from the great 50 states' SoS websites. =)
<Paradox> thats almost as bad
<Paradox> lol
<jblack> retarded from the start, with 50 different fucked up individually retarted derivations. =)
subbyyy has quit [Ping timeout: 246 seconds]
<jblack> so, rikmasta...
pakchoi2 has quit [Quit: 离开]
<jhgaylor> i'm working through a ruby tutorial and I ran into a line that read `"str".includes?`. What does the ? on the method do? Does someone have a bot that they can make link me to the best place to read about it?
<jblack> you want to learn about a gem called nokogiri
<jblack> page = Nokogiri.HTML(somehtmlfrommechanize)
browndawg has joined #ruby
<Paradox> is mechanize the new hotness?
<Paradox> im still using HTTParty
<jblack> rows = page.xpath(//tr).each { |a_row| (you now have a row) }
<jblack> I just happened to find mechanize first. it does everything I need. =)
mengu__ has joined #ruby
mengu_ has quit [Ping timeout: 260 seconds]
<jblack> mechanize has lot of flexibility in it. I think it can do anytihng to a page but javascript, and it might have that too
<TomJ> Hey all. I have a decorator function that formats datetimes for UI output. I need to check that the input time is not nil, otherwise the strftime fails. I have the code working fine, just wondering if this is the "idiomatic" way to do it? def format_time(time) ; time.blank? ? nil : time.strftime("%e %b %Y %H:%M:%S") ; end
<ryanf> TomJ: you can just use "time ?" instead of "time.blank? ?"
<ryanf> the only reason to use blank? is if you think it might be an empty string or something
<ryanf> so then it'd be "time ? time.strftime" etc
<ryanf> or you could do "time && time.strftime"
<ryanf> or you could do time.try(:strftime, "%e %b %Y etc")
<ryanf> or time.strftime(...) if time
<jblack> Paradox: that looks pretty useful for anything restful
<TomJ> oh nice, thanks ryan. silly, of course I could just do 'time'. but I didnt even think of time && - I think I like that best actually, no reason to explicitly return 'nil' in a ternary
mengu has joined #ruby
<ryanf> yeah I think I'd probably go with time && since it's nice and compact in this case
justme1 has quit [Quit: Leaving.]
<TomJ> yeah exactly. thanks a lot ryanf!
<ryanf> I'd be tempted to do "if time" at the end too
<ryanf> np
mengu__ has quit [Ping timeout: 260 seconds]
<rickmasta> I mean, as long as I have the times paired with the date, it doesn't matter where they're located, really.
emergion has quit [Quit: Computer has gone to sleep.]
sandGorgon has quit [Ping timeout: 260 seconds]
Hanmac1 is now known as Hanmac
<TomJ> actually rather than && I think like best: time and time.strftime(..) # I checked the bbatsov ruby style guide and it seems to agree, use and/or for "control of flow" and &&/|| for multiple conditions
<rickmasta> so with the code you provided me.
zzing has joined #ruby
pmros has quit [Quit: Konversation terminated!]
<rickmasta> After I've done page = login(siteInfo) then I should be able to do page = page.link_with(:text => 'Schedule').click to move onto the next page, right?
testingb0t has joined #ruby
<dmonjo> big difference between ruby 1.0 and .9 ?
<dmonjo> 2.0 and 1.9*
emergion has joined #ruby
lxsameer has joined #ruby
<Hanmac> dmonjo 2.0 has a list of interesting new features
<lxsameer> does ruby 2.0 support named argument for methods ?
bradhe has joined #ruby
<TomJ> lxsameer: yes
<apeiros_> Hanmac: didn't you have a page with the changes?
emergion has quit [Client Quit]
<dmonjo> Hanmac: i am in the provess of learning 1.9 i hope no big difference between the 2
<lxsameer> TomJ, nice, does ruby 2.0 have any backward incompatibility ?
<TomJ> lxsameer: I don't believe so, no - but you should google for the ruby 2.0 change list
<Animawish> 'bears'.something #=> %w[b e a r s] what is something?
<Hanmac> dmonjo 1.9 code works with 2.0 too
<lxsameer> TomJ, i already seen the change list, thanks man
<Hanmac> Animawish .each_char.to_a
<apeiros_> Animawish: split or chars
* apeiros_ still thinks it's bad that chars == each_char, instead of returning an array directly… :-/
<TomJ> 2.0 has a few nice things. Doesn't feel all that 'big' to me though. They're releasing it to coincide with the 20th anniversary of ruby's release - hence 2.0 - so I guess they had an artificial deadline and couldn't make it as big an upgrade as it might otherwise have been. Biggest disappointment for me is that I see nothing at all relating to performance improvements. correct me if I'm wrong, but I think 1.8 -> 1.9 was a bigger upgrade than 1.9 -> 2.0
<Hanmac> but ... chars does not return an array directly
banister`tyrion has quit [Remote host closed the connection]
<Paradox> TomJ, yeah, i still think 1.9 should have been 2 and this should have been 2.1
<TomJ> yeah
dhruvasagar has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
zzing has quit [Ping timeout: 256 seconds]
emergion has joined #ruby
kevinfagan has joined #ruby
dallasm_ has quit [Remote host closed the connection]
<jblack> It's hard to improve too much on near perfection. =)
<Hanmac> the interesting point is : ruby2 have a build flag --enable-multiarch ... that allows to install the ruby into an subdir lib ... like /usr/lib/x86_64-linux-gnu ;P ...this is interesting for the package maintrainers :P :D
<havenwood> TomJ: There are some nice performance increases in 2.0.0. Good talk on 2.0.0 internals changes at RubyConf. The new copy-on-write friendly GC is awesome too.
havenwood has quit [Remote host closed the connection]
mneorr has joined #ruby
ikst has quit [Remote host closed the connection]
browndawg has quit [Ping timeout: 260 seconds]
<TomJ> oh that's great re perf, I'll go check that talk
<TomJ> Hanmac: that's true, yeah that will be handy
anderse has joined #ruby
<TomJ> jblack: I agree - the language is near perfect, so I wouldn't spend much time on that. the performance.. there's room for improvement I think :) they did do great things in 1.9, I hope it continues
<TomJ> although to be fair 99% of my ruby experience is via rails, and I think a lot of the bad perf I personally see is more rails than ruby itself
<Hanmac> haven has talked about the something that does not want to be named ... thats why the host closes the connection :P
<jblack> Yeah, true. and better integration with host operating systems. I know more than one sysadmin that dislikes ruby due to gem management
spider-mario has joined #ruby
timonv has joined #ruby
halfdan- has joined #ruby
<halfdan-> Hi guys
<halfdan-> How to you generate a random time that is normally distributed across a 24h period?
<jblack> oh, that's easy.
<Hanmac> the intigration is not 100% perfect. .. i mean you could install the lib and the other so files into different dirs and install them simultany ... but you could still only install one "ruby" bin .. (and gem still list only 2 archs, not more)
<dmonjo> lambda vs proc?
<jblack> generate a random number between 0 and 86400. then add that to whatever time you want to start from.
mneorr has quit [Ping timeout: 252 seconds]
<halfdan-> jblack: damn, that's really easy
<TomJ> Most of my Ruby experience (until this month anyway) was in sysadminning it - rails apps. I found the best way was to set a GEM_HOME for every app. e.g. Capistrano deploy app1 to /opt/mycompany/apps/app1/, with GEM_HOME set to /opt/mycompany/gems/app1 . You use more disk space installing gems multiple times, but it's much cleaner - no interference, I can clear out all gems and start again with one rm , etc. bundler does a good job on its own but I like to
<TomJ> them separate as well. With that setup, I've never really had any gem problems at all. And it's easy to package, too - just package apps/app1 && gems/app1 (usually in separate packages)
<halfdan-> thanks!
krz has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<jblack> halfdan-: Time.now() + rand(86400)
<devyn> TomJ: bundle install --deployment is what I usually do…
dhruvasagar has quit [Ping timeout: 255 seconds]
<halfdan-> jblack: "normal distribution" != rand(), but that's ok
echosystm has joined #ruby
monkegjinni has joined #ruby
<echosystm> does anyone know of a library that makes multiprocessing easy in ruby?
Ethan is now known as undersc0re97
<jblack> I can barely tell the difference betwene the mean and the mode. what's a normal distribution?
<halfdan-> I'll use a box muller tranform for the normal distribution
<halfdan-> jblack: a gaussian distribution
Elhu has joined #ruby
<jblack> pretend I can count to ten, but not to twenty. what is a normal distribution?
<jblack> is it like a bell curve?
<halfdan-> yes
<jblack> Ok. so, make me a function that does a normal distribution from 0 to 86400, and I'll add that to Time.now() for you. =)
havenwood has joined #ruby
<halfdan-> already figured it out ;) thanks mate
pyrac has joined #ruby
mpfundstein has joined #ruby
<halfdan-> as I said, I'm already using the box-muller transform for generating random samplings
emergion has quit [Quit: Computer has gone to sleep.]
znode_ has quit [Remote host closed the connection]
<halfdan-> just didn't think of the easy way to map it to times
<jblack> ok.. you might want to let muller out of his box before he suffocates
instinkt has joined #ruby
<jblack> =)
znode has joined #ruby
takeru has quit [Remote host closed the connection]
<jblack> btw, did you want to start that as a normal distribution from Now, or a normal distribution from midnight?
<jblack> and if midnight, the one we had, or the one we shall?
browndawg has joined #ruby
* jblack goes to bed
<halfdan-> jblack: need it to be around 2/3pm
<halfdan-> already working
<halfdan-> thanks again
* jblack shuts up
ddv has left #ruby [#ruby]
znode has quit [Read error: Connection reset by peer]
instinkt has quit [Quit: Lost terminal]
monkegjinni has quit [Remote host closed the connection]
banister_ has joined #ruby
znode has joined #ruby
akashj87 has joined #ruby
werdnativ has quit [Quit: werdnativ]
anderse has quit [Quit: anderse]
burgestrand has joined #ruby
<banister_> TomJ: startup time in 2.0 has been dramatically reduced
<banister_> TomJ: and there's other patches in the works (say for 2.1) that give rails a speed boost of up to 15-20%
vabenjamin has left #ruby [#ruby]
<TomJ> banister_: oh that's awesome news, thank you
cs02rm0 has quit [Ping timeout: 264 seconds]
<apeiros_> do we have a good list of changes of 1.9->2.0 somewhere?
srikanthkurni has joined #ruby
<apeiros_> I thought somebody had pasted a link in here a few times for the rc's
tealmage has joined #ruby
yshh_ has quit [Remote host closed the connection]
colonolGron has joined #ruby
<dmonjo> what is usually better to use labda or proc? what is less complex
srikanthkurni has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 244 seconds]
<burgestrand> dmonjo: lambdas enforce their arguments, so they are more similar to a regular method than a proc (which is much more accepting when it comes to missing arguments) in that regard
<dmonjo> so better use blocks and lambdas
<dmonjo> returning from procs is tricky
icole has joined #ruby
undersc0re97 has quit [Remote host closed the connection]
tealmage has quit [Ping timeout: 252 seconds]
srikanthkurni has joined #ruby
srikanthkurni has left #ruby [#ruby]
HecAtic has quit [Quit: Àá¼ö]
dhruvasagar has joined #ruby
icole has quit [Remote host closed the connection]
icole has joined #ruby
znode has quit [Remote host closed the connection]
freeayu has joined #ruby
icole has quit [Ping timeout: 255 seconds]
echosystm has quit [Ping timeout: 260 seconds]
staafl has quit [Ping timeout: 276 seconds]
Stilo has joined #ruby
hoornet has joined #ruby
echosystm has joined #ruby
<TomJ> apeiros_: this is the one I've been looking at: http://rubysource.com/a-look-at-ruby-2-0/
<TomJ> which references the official one as : https://github.com/ruby/ruby/blob/v2_0_0_rc1/NEWS
mockra has joined #ruby
<apeiros_> TomJ: thx
cs02rm0 has joined #ruby
browndawg has quit [Read error: Operation timed out]
jimeh has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
br4ndon has joined #ruby
pakchoi2 has joined #ruby
zzing has joined #ruby
undersc0re97 has joined #ruby
newUser1234 has joined #ruby
newUser1234 has quit [Remote host closed the connection]
predator117 has quit [Ping timeout: 255 seconds]
mockra has quit [Ping timeout: 252 seconds]
colonolGron has quit [Quit: Lost terminal]
predator117 has joined #ruby
averiso_ has joined #ruby
averiso has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
yshh has joined #ruby
etcetera has quit []
Elhu has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
newUser1234 has joined #ruby
emergion has joined #ruby
mneorr has joined #ruby
zzing has quit [Ping timeout: 245 seconds]
Elhu has joined #ruby
predator117 has quit [Read error: Connection reset by peer]
Elhu has quit [Client Quit]
predator117 has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
yshh has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 252 seconds]
znode has joined #ruby
elico has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
newUser1234 has quit [Remote host closed the connection]
eka has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 264 seconds]
smallcapsdude has left #ruby [#ruby]
thillux has joined #ruby
eka has joined #ruby
niklasb has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
zmike has joined #ruby
eklarskov has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
elico has quit [Quit: elico]
hoornet has quit [Remote host closed the connection]
echosystm has quit [Ping timeout: 245 seconds]
alx- has quit [Ping timeout: 248 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
jocellyn has left #ruby [#ruby]
daniel_- has quit [Ping timeout: 252 seconds]
echosystm has joined #ruby
<Xeago> apeiros_: you got time for starcraft in about an hour or 2?
daniel_- has joined #ruby
yshh has joined #ruby
railsbros_dirk has joined #ruby
stayarrr has joined #ruby
browndawg has quit [Ping timeout: 252 seconds]
kevinfagan has quit [Quit: Leaving...]
<apeiros_> :-/
<apeiros_> yeah, but only a couple of games
thufir_ has quit [Quit: Leaving.]
kevinfagan has joined #ruby
<Xeago> why :-/ ?
* apeiros_ wants to get stuff done today
chrisramon has joined #ruby
echosystm has quit [Ping timeout: 252 seconds]
<dmonjo> are array.collect and array.each aliasees? any difference?
<chrisramon> HI !
<chrisramon> how can i connect to a web socket and emit messages?
ninjers has quit [Quit: RIP]
<arturaz> dmonjo, .collect and .map are aliases
<arturaz> >> [1,2,3].map { |i| i * 3 }
<eval-in> arturaz: Output: "" (http://eval.in/11127)
<arturaz> >> puts [1,2,3].map { |i| i * 3 }
<eval-in> arturaz: Output: "3\n6\n9\n" (http://eval.in/11128)
<arturaz> >> puts [1,2,3].map { |i| i * 3 }.inspect
<eval-in> arturaz: Output: "[3, 6, 9]\n" (http://eval.in/11129)
echosystm has joined #ruby
<arturaz> >> puts [1,2,3].each { |i| puts i * 3 }.inspect
<eval-in> arturaz: Output: "3\n6\n9\n[1, 2, 3]\n" (http://eval.in/11130)
<dmonjo> array.collect { |x| .... array.each } {|x| .... any difference?
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> arturaz: p
<apeiros_> puts obj.inspect --> p obj
im0b has quit [Ping timeout: 276 seconds]
znode has quit [Remote host closed the connection]
<arturaz> k
<arturaz> ty
rcsheets has quit [Ping timeout: 276 seconds]
rcsheets has joined #ruby
pkondzior__ has quit [Ping timeout: 276 seconds]
virtuose has quit [Ping timeout: 276 seconds]
hiall has joined #ruby
<fir_ed> So I compiled ruby 2.0
<fir_ed> How do I get it to work.
<fir_ed> ruby -v
<fir_ed> does not work
<fir_ed> Do I need to symlink it?
zyrex has joined #ruby
<shevy> fir_ed you gave not much information
<shevy> what --prefix did you use
<Xeago> fir_ed: do you have ruby20 or something like that?
Kuifje has joined #ruby
Kuifje has quit [Changing host]
Kuifje has joined #ruby
<fir_ed> Xeago, ruby2.0 -v does not work
browndawg has joined #ruby
<fir_ed> shevy, what do you mean by prefix?
<fir_ed> I did a ./configure and a make
marr has quit [Ping timeout: 252 seconds]
<Xeago> fir_ed: ruby20, without the dot
<Xeago> it was ruby19 for 1.9 iirc
<fir_ed> ruby20 does not work
<fir_ed> and now
<fir_ed> and no*
<shevy> fir_ed you compile from source, you should know the --prefix option man :(
justme1 has joined #ruby
<fir_ed> it was ruby1.9.1 for ruby 1.9
<fir_ed> oh man
<fir_ed> :\
<shevy> if you omitted it, the default will be /usr/local
<fir_ed> guess I'll reinstall
tealmage has joined #ruby
<fir_ed> what does --prefix do?
<shevy> so look at "ls /usr/local/bin/rub*"
<apeiros_> make install
<shevy> ah... he even forgot to do "make install"???
<apeiros_> he said configure & make
im0b has joined #ruby
virtuose has joined #ruby
<shevy> fir_ed!!!!!
xardas has joined #ruby
<fir_ed> LOL
<fir_ed> ./hides
<fir_ed> I'm new at compiling!!
<Xeago> apeiros_: is on tilt this morning! spotting these minorities!
<shevy> it's a tristep
<shevy> you did two steps and omitted the last
<apeiros_> well, technically that's after compiling :-p
<apeiros_> Xeago: I got 26(!!!) patches into ruby yesterday (well, zzak got them in for me, but still)
<shevy> whoa
<shevy> so many bugs...
<apeiros_> it's all the same on 26 locations, though :D
<apeiros_> shevy: na, just doc patches. still, I feel like a superhero now ^^
<Xeago> I would feel blessed if my patches got accepted into any big project
<apeiros_> and that they got in motivates me to patch all those super secret ruby knowledge things I have
<Xeago> guess I should just start doing docs too
<shevy> hehehe
<shevy> haha!
<apeiros_> like Struct.new taking a block
Elhu has joined #ruby
mneorr has joined #ruby
<Xeago> what to do about waking up frightened?
kevinfagan has quit [Quit: Leaving...]
<Xeago> woke up about 5 times this night
codecop has joined #ruby
tealmage has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
hiall has quit [Quit: cya]
<shevy> whoa ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.bz2
<shevy> is this the official, new release already? as in
<shevy> "recommended to use"
<Xeago> shevy: it is in our topic as well
<Mon_Ouie> Reminds me, there's something I noticed by grepping but never took the time to report
<Mon_Ouie> https://github.com/ruby/ruby/blob/trunk/lib/scanf.rb#L660 — there's a silly bug on that line
<Xeago> which usually is the recommended ruby
<shevy> Xeago dunno, I noticed that it often depends whether you were calm that day or not, and whether you were very tired or not before going to sleep
<apeiros_> Xeago: if you breathed heavily, check your nose. or breathing in general.
<shevy> I am more anxious when I go to sleep when I am overworked or barely had enough sleep
<apeiros_> if you don't get enough air in the night, your body reacts with fears of death when detecting the falling oxygen levels
<Xeago> I went to the gym earlier that day, second time in life/2weeks going to gym
krz has quit [Quit: krz]
pyrac has quit [Quit: pyrac]
<Xeago> I don't remember having quick breathing because of lack of oxygen
<Xeago> more heavily controlled breathing in anxiety
<Xeago> I imagined a scythe/reaper/crescent when I 'woke up' and looked at my door
mneorr has quit [Ping timeout: 244 seconds]
<Xeago> I got my depth all wrong and I would have sworn there was a scythe right in front of my face
vlad_starkov has joined #ruby
<Xeago> that was around 1:30
pskosinski has joined #ruby
<Xeago> (got on irc about 20minutes later)
<shevy> Xeago if it is just cardio + breathing, that is easier
<Xeago> shevy: I don't understand
dmiller has quit [Ping timeout: 256 seconds]
<shevy> Xeago if you lack air, you can train that
<Xeago> I don't have a record of having a lack of oxygen, am quite a good breather (big lung capacity, play[ed] breathing instruments)
<shevy> I go running up on stairs in public places (like one to a public library, it has like 50 steps, you do that 10 times a day for a week or two, then you won't have much breathing or cardio problems)
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> shevy & apeiros_ did you two guys read this? http://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/
<shevy> good, so you are physically fit
velCzupa has joined #ruby
<Xeago> I can do spinning at the gym for 40minutes straight without losing my breath?
thinkclay has quit [Quit: Leaving.]
<Xeago> and thats about 15-20 km, depending on the setting (hills/flat/etc)
<shevy> dunno, depends on the cardio and your max peak... I always go to 80 to 90 percent max, so I will end up sweating a lot. when I dont sweat, it's barely worth the time and effort
vlad_starkov has joined #ruby
<shevy> Hanmac I did not read that yet
ferdev|away is now known as ferdev
eka has joined #ruby
<Xeago> I am soaked wgenb I do that :P, but don't loose my breath
<fir_ed> shevy, okay. Make installed.
<fir_ed> nowwut, great ruby master
ninjers has joined #ruby
<Hanmac> shevy you may like: "The UTF-8 default encoding, which make many magic comments omissible"
<shevy> Xeago hmm, perhaps try a training routine where you really overwork your body a bit
<Xeago> as to 'loose my breath'
<shevy> that too
<Xeago> am 21 now, till I was 18 I biked to school for 60-90 minutes
<Xeago> then I jogged with the dog till I was 20
<shevy> I can assure you it won't get better the older you get ;)
<dmonjo> can anyone tell me whats wrong iwth my code?
<dmonjo> test4.rb:11:in `[]=': wrong number of arguments (1 for 2) (ArgumentError)
<Xeago> went to sweden, didn't do anything there
<shevy> I think I had my physical peak around 24
<Xeago> besides 1 hour of jogging every week
<Xeago> and now starting gym
dhruvasagar has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
daniel_- has quit [Ping timeout: 252 seconds]
<shevy> dmonjo what is that:
<shevy> myarray[]=[1,2,3]
<Xeago> shevy, apeiros_: thanks for the tips, I'll keep them in mind
<dmonjo> doesnt array provide []= method?
* Xeago is off to food, lovely home made soup!
<shevy> Xeago jogging is very good, we used to do that every weekend next to normal work out
<Xeago> my dog passed away, than I stopped :'(
<shevy> dmonjo the method is not special, you can define that method on any class
<shevy> class Test; def []=(input);end;end
<Xeago> not fun jogging alone :'(
* Xeago off!
<Hanmac> dmonjo ... "myarray[]=[1,2,3]" is totaly php style ...
<shevy> Xeago we were a small team of 5 or 6 people training together
<dmonjo> Hanmac: what would be the way to do it in ruby
Retistic has joined #ruby
<shevy> when one wasn't very motivated, others kicked in and brought that guy in line again, that helped a lot
ninjers has quit [Client Quit]
dross has quit [Ping timeout: 252 seconds]
<Hanmac> dmonjo: array.push [1,2,3]
<shevy> dmonjo you remember how you use [] in normal arrays?
ninjers has joined #ruby
nachtwandler has quit [Ping timeout: 244 seconds]
dross has joined #ruby
<Hanmac> or: array.push 1,2,3
<shevy> array = [0,2,3] # => [0, 2, 3]
<shevy> array[0] = 1
<shevy> array # => [1, 2, 3]
<shevy> dmonjo notice the argument to [] is 0 in this example
<shevy> dmonjo in your example you do not provide any argument to []
<dmonjo> i am dealing with PatAraay which is a subclass of Array so i need to push to PatArray.new.push[1,2,3] ?
lkba has joined #ruby
<shevy> Hey Hanmac how does this work? "Keyword arguments, which give flexibility to API design"
nachtwandler has joined #ruby
keller-ship has joined #ruby
<shevy> dmonjo, you should first fix this error: myarray[]=[1,2,3]
<keller-ship> How can I upgrade to 2.0.0-p0 from 1.9.3-194 using rvm? I tried rvm upgrade 2.0.0 1.9.3-p194 but it then asks me whether I want to upgrade from 1.9.3 to 1.9.3.
<dmonjo> this is the new code
<dmonjo> still generating errors
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
<shevy> "The UTF-8 default encoding, which make many magic comments omissible" whoa
<shevy> Hanmac, what are "magic comments"? the encoding line? # Encoding
<shevy> dmonjo pastebin is quite awful
<Hanmac> shevy yes
<shevy> no syntax highlighting :(
msch has quit [Quit: Coyote finally caught me]
<dmonjo> test4.rb:11:in `[]': wrong number of arguments (3 for 1..2) (ArgumentError)
<shevy> dmonjo Hanmac told you to use .push, not me, he will have to fix that ;)
<dmonjo> gettiont that error
<shevy> yeah, bad bad Hanmac
<Hanmac> shevy: def step(by: step, to: limit) << that how key args should work
<shevy> teaching people the wrong things
<shevy> Hanmac ok
<shevy> I will compile ruby 2, then try that
railsbros_dirk_ has joined #ruby
skcin7 has joined #ruby
<dmonjo> myarray= PatArray.new
<dmonjo> myarray.push[1,2,3]
<dmonjo> is this ok ?
<shevy> dmonjo the problem is you used .push[] and not .push
vlad_starkov has quit [Remote host closed the connection]
<shevy> of course not
<shevy> dmonjo you must remember how the ruby parser works
<Hanmac> dmonjo i NEVER show you that ...
<dmonjo> ok works fine
<dmonjo> cool
<shevy> dmonjo methods in ruby should have a ()
<dmonjo> [] replaced by ()
<shevy> but you can omit them
<apeiros_> dmonjo: [] is a method in ruby
<dmonjo> stil lgetting used to the syntax
<shevy> yes, but activate your brain man!
<apeiros_> dmonjo: ary.push[1,2,3] is ary.push.[](1,2,3)
<shevy> cat.meow vs. cat.meow()
<apeiros_> while ary.push [1,2,3] is ary.push([1,2,3])
<apeiros_> spaces sometimes matter big time
bradhe has joined #ruby
<shevy> :)
<apeiros_> and you want either: ary.push 1,2,3
<apeiros_> or: ary.concat([1,2,3])
railsbros_dirk has quit [Ping timeout: 252 seconds]
railsbros_dirk_ has quit [Ping timeout: 252 seconds]
himsin has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
m3pow has quit [Read error: Connection reset by peer]
<dmonjo> ary.push.[](1,2,3) is method name .push.[] with parameters (1,2,3) ?
bradhe has quit [Ping timeout: 245 seconds]
TheFuzzball has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
<arturaz> dmonjo, that is a syntax error.
<apeiros_> arturaz: no it's not
<arturaz> >> ary = []; ary.push.[](1,2,3)
<eval-in> arturaz: Output: "/tmp/execpad-6015f54a55a5/source-6015f54a55a5:1:in `[]': wrong number of arguments (3 for 1..2) (ArgumentError)\n\tfrom /tmp/execpad-6015f54a55a5/source-6015f54a55a5:1:in `<main>'\n" (http://eval.in/11131)
<apeiros_> dmonjo: no, it's two method calls
<apeiros_> arturaz: see, ArgumentError, not SyntaxError
<arturaz> push can have 0 args?
<apeiros_> dmonjo: obj.foo.bar <-- call foo on obj, call bar on the return value
<Hanmac> arturaz: yeap :P
<arturaz> >> p [].push
<eval-in> arturaz: Output: "[]\n" (http://eval.in/11132)
<apeiros_> arturaz: sure, why not?
<arturaz> because it doesn't do anything appearantly?
<apeiros_> so?
<apeiros_> it pushes all arguments on the array
<apeiros_> no arguments just means nothing to push
daniel_- has joined #ruby
samphippen has joined #ruby
<arturaz> nothing, I just got used to scala telling me where I'm acting stupid, that's all
<arturaz> I'd expect push to have 1 arg exactly and + for adding arrays :)
<apeiros_> consider ary.push(*something) # though, concat is to prefer here - it shouldn't raise just because the splat yields no arguments
vlad_sta_ has quit [Remote host closed the connection]
<apeiros_> arturaz: + is fundamentally different
<apeiros_> + returns a new array, push mutates
angusiguess has joined #ruby
elaptics`away is now known as elaptics
tommylommykins has joined #ruby
* tommylommykins waves
<arturaz> yeah. ok, nevermind, I was wrong. Thought that push had 1 arg. Oh well
<tommylommykins> "can't add a new key into hash during iteration"
<apeiros_> also implementationwise it's just more effort for no gain to test for 1-arg-min
<tommylommykins> not being a pro at threaded programming, I don't know what the best solution is
<apeiros_> that's unrelated to threading
<arturaz> tommylommykins, threaded?
<tommylommykins> I'm pretty confident I can just serialize access to the hash
<arturaz> tommylommykins, hash.keys.each { |k| v = hash[k]; ... }
echosystm has quit [Quit: leaving]
<tommylommykins> I've got two threads running, one processing the hash, one adding something to it if it gets told to
kristofers has joined #ruby
<arturaz> but if you're changing same hash from multiple threads you're bound for trouble
<tommylommykins> so when the thread that does the processing gets preempted by the thread that adds things
<arturaz> unless you synchronize access
<tommylommykins> runtime error
<tommylommykins> yeah
<tommylommykins> I'm pretty confident I can serialize it
<tommylommykins> I'm just wondering what the best way to do it is
<arturaz> mutex?
<tommylommykins> is there something where I can just go @h = serialize_my_oject({}) ?
pakchoi2 has quit [Ping timeout: 256 seconds]
eklarskov has quit [Ping timeout: 252 seconds]
<tommylommykins> (I want the solution to be nice and easy for me :P)
<tommylommykins> or do I have to do the mutexes manually myself?
angusiguess has quit [Ping timeout: 264 seconds]
<arturaz> @mutex = Mutex.new
<arturaz> @mutex.synchronize { @h ... }
CraHan|out is now known as CraHan
<tommylommykins> I was hoping for something along the lines of
eklarskov has joined #ruby
<tommylommykins> @h = serialize_my_object({}) # now you have to wait if you call a second method on @h while the first method is still being executed
<tommylommykins> for make benefit abstraction \o/
<arturaz> tommylommykins, check out celluloid for that
<arturaz> but its a bit different
<arturaz> and automutexes is not a great idea anyhow
<tommylommykins> ooh
* tommylommykins investigates
verysoftoiletppr has joined #ruby
anderse has joined #ruby
<tommylommykins> (what's wrong with automutexes?)
stayarrr has quit [Quit: Leaving...]
<arturaz> you'll end up deadlocked sooner than later
<arturaz> mutex concurrency is hard to manage explicitly
<arturaz> not make it implicit...
<arturaz> now*
philcrissman has joined #ruby
* Hanmac never needed mutex or threads before ...
Retistic has quit [Quit: Retistic]
senayar has quit [Remote host closed the connection]
msch has joined #ruby
coolj1 has joined #ruby
Gwyxx has quit [Read error: Connection reset by peer]
<tommylommykins> Hanmac: Butbut! What if you need to do two things at once?
<arturaz> Hanmac, some people never needed electricity
hbpoison has joined #ruby
takeru has joined #ruby
<Hanmac> because the libs i am binding are not thread-safe
<apeiros_> woot: String#chars now returns an array instead of an enumerator
<Hanmac> yeah it suprise me too
<apeiros_> and *finally*: OpenStruct#[], []=
<apeiros_> and OpenStruct#hash
<apeiros_> long overdue
* apeiros_ always patched those in
<tommylommykins> what's happening to each_char?
<apeiros_> tommylommykins: stays the same, as it should
zmike has quit [Quit: Выходжу]
Elhu has joined #ruby
<Mon_Ouie> Does String#encode have built-in transliteration tables? Now that they removed Iconv, I can't use that one :(
takeru has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
Retistic has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<Hanmac> Mon_Ouie: an sample what you need?
vlad_starkov has joined #ruby
<dmonjo> String#code is string.code() method you mean?
<Mon_Ouie> "ouïe".transliterate_to_ascii #=> "ouie"
jhgaylor has quit [Quit: Leaving]
wmoxam has joined #ruby
<apeiros_> It'd be nice if ruby finally learned collations
<apeiros_> that's one of my biggest gripes about ruby's string processing right now
<Hanmac> ... Mon i dont think there is an buildin way with encode ... but you can use tr: .tr("ï","i")
<shevy> dmonjo always, you use the # for the documentation queries
<apeiros_> Hanmac: does that work in ruby 2?
<apeiros_> iirc in 1.9, tr was still byte based
<apeiros_> ah, hm, seems I'm wrong
<apeiros_> works in 1.9
<Hanmac> ... i tested this tr in 1.9
<shevy> "In addition, albeit as an experimental feature, 2.0.0 includes Refinements, which adds a new concept to Ruby's modularity."
<shevy> Hanmac, what are Refinements?
kevinfagan has joined #ruby
<Mon_Ouie> Hanmac: Yes, you can do it manually like that: http://blog.segment7.net/2010/12/17/from-iconv-iconv-to-string-encode (I need both the change of encoding an the transliteration)
<Mon_Ouie> Iconv had Iconv.conv("ASCII//TRANSLIT", "UTF-8", str)
<Hanmac> shevy: http://yehudakatz.com/2010/11/30/ruby-2-0-refinements-in-practice/ read there about: but they are still experimental and i didnt test they yet
tealmage has joined #ruby
<shevy> ok
MartinCleaver has quit [Quit: MartinCleaver]
vlad_starkov has quit [Remote host closed the connection]
CraHan is now known as CraHan|out
razibog has joined #ruby
<apeiros_> Mon_Ouie: translit differed from platform to platform, which was annoying :(
<Hanmac> >> p "ouïe".encode("ASCII", :fallback => {"ï" => "i" })
<eval-in> Hanmac: Output: "/tmp/execpad-c98b89828b8f/source-c98b89828b8f:1: invalid multibyte char (US-ASCII)\n/tmp/execpad-c98b89828b8f/source-c98b89828b8f:1: invalid multibyte char (US-ASCII)\n" (http://eval.in/11133)
zyrex has quit [Ping timeout: 264 seconds]
terceiro has quit [Read error: Connection reset by peer]
jimeh has quit [Quit: Computer has gone to sleep.]
znode has joined #ruby
<Mon_Ouie> Yeah. I guess a more reliable transliteration system would also need to take locales in account.
terceiro has joined #ruby
anderse has quit [Quit: anderse]
<apeiros_> Mon_Ouie: yes. also there are different valid transliterations which depend on context, not just locale
<apeiros_> consider: ÖRLIKON -> OERLIKON
<shevy> I dont quite get refinements
<apeiros_> Örlikon -> Oerlikon
<apeiros_> Örlikon -> Orlikon
<apeiros_> all valid
tealmage has quit [Ping timeout: 256 seconds]
<Hanmac> same for ß :P
<apeiros_> mhm
senayar has joined #ruby
MartinCleaver has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
<apeiros_> Xeago: in ~10-15min?
znode has quit [Ping timeout: 256 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<Xeago> apeiros_: sure, if you are certain you have the time for it
keller-ship has quit [Quit: Leaving]
Stilo has joined #ruby
workmad3 has joined #ruby
ethicalhack3r has joined #ruby
ethicalhack3r has quit [Changing host]
ethicalhack3r has joined #ruby
<Retistic> how do you return an array minus the last element?
<Xeago> wow, flash-player-plugin just consumed 7316% CPU..
<Xeago> Retistic: there are some methods on array (or enumerable) that allow you to 'chunk/cut' arrays
philcrissman has quit [Remote host closed the connection]
ferdev is now known as ferdev|away
<Xeago> 0,-1 I think
<Retistic> Xeago: nothing like #drop
<ethicalhack3r> how are people preventing 'symlink following' (CWE-61) in their code? - http://cwe.mitre.org/data/definitions/61.html
<Retistic> ?
<Xeago> you can use Array#[], but there you can't use -1 :\
<Hanmac> Retistic: [1,2,3,4,5][0..-2] #=> [1, 2, 3, 4]
velCzupa has quit [Read error: Connection reset by peer]
<Xeago> ah so it does work
<Retistic> Hanmac: your would need to know or return the index of the last element
<Xeago> I thought 0..-1 was an invalid range, guess I'm wrong
mengu has quit [Changing host]
mengu has joined #ruby
<Retistic> i think the best solution is pop
<Xeago> Retistic: why?
<Xeago> -1 is always teh last element
<Xeago> -2 is the second to last element
<Hanmac> Xeago: no, its valid, because -1 is the last element, if you need to leave it out, you need .2
<Hanmac> -2
kirun has joined #ruby
<Xeago> Hanmac: I would have thought a range was always low..high
<Retistic> is that more efficient than pop?
<Hanmac> maybe but pop has side effects you may not want
Elhu has joined #ruby
<Hanmac> (oh i mean its maybe inefficent than pop)
<Retistic> Hanmac: more or less efficient?
<Retistic> what side effects?
<Hanmac> pop alters the array, [0..-2] does not
velCzupa has joined #ruby
apeiros_ has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
<Retistic> doesn't make a difference
freeayu has quit [Remote host closed the connection]
<Retistic> whichever is more efficient
apeiros_ has joined #ruby
pyrac has joined #ruby
<banister_> Retistic: array.tap(&:pop)
<Xeago> I'd go for [0..-2]
<Retistic> banister_: lol what
<Xeago> is tap in core now?
<banister_> Retistic: a.pop returns the last element, but u want the array _minus_ the last element, right?
<Hanmac> Xeago: tap was always core !?
<Xeago> :O
<apeiros_> since 1.9
* Xeago hides
<Xeago> see!
<banister_> Retistic: tap(&:pop) ensures that 1. the last element is removed 2. the array is returned, not the last element
<Xeago> apeiros_: thanks for saving me!
<Retistic> banister_: yeah but i can just do array.pop
horofox has joined #ruby
bradhe has joined #ruby
fjfish has joined #ruby
<Hanmac> BUT: it may not a good idea to use array.pop on the input of a method
<Xeago> apeiros_: 2min?
<Retistic> banister_: ah it doesn't make much of a diff
<apeiros_> Xeago: I'm running time machine, after that I'm ready
zzing has joined #ruby
<apeiros_> 2min is ok I think, might be that time machine takes more time :-/
<banister_> Retistic: it totally depends on your application, i use array.tap(&:pop) often as i want to continue processing on the same line
Virunga has joined #ruby
<Retistic> banister_: http://pastie.org/6327771
<apeiros_> dotfail
<Retistic> oops that last line is obv wront
<Retistic> =ya
<Retistic> wow my typing is shit right now
francisfish has quit [Ping timeout: 248 seconds]
<apeiros_> Xeago: d'oh! I have to download the patch first
<Xeago> why wait for timemachine to finish?
<apeiros_> because it kills performance
<Xeago> I never seen tm as a heavy load on my machine or network
hbpoison has quit [Ping timeout: 255 seconds]
bradhe has quit [Ping timeout: 252 seconds]
<Xeago> flash or skype kill my machine more..
<banister_> Xeago: when to use 'deze' vs 'dit' in dutch
<Xeago> also, I'm home >:)
tealmage has joined #ruby
<Xeago> banister_: deze: all english words
<Xeago> erhm, what else
<apeiros_> TM tends to spike here
<apeiros_> normally it's low on resource hogging, but occasionally it spikes to 100%
zzing has quit [Ping timeout: 260 seconds]
catphish has joined #ruby
<Xeago> banister_: deze for basically everything, except smallified words
<Xeago> like meisje (little girl)
fjfish has quit [Read error: Connection reset by peer]
<Xeago> for non-nouns
<Xeago> (dit for non-nouns)
yshh has quit [Remote host closed the connection]
francisfish has joined #ruby
<Xeago> banister_: why?
<tommylommykins> dutch has diminuitive particles? o_o
dmonjo has quit [Quit: Leaving]
<Xeago> tommylommykins: I have never heard that term before
<tommylommykins> I think I meant article, not particle :s
<Xeago> I meant the diminuitive part; p
<tommylommykins> diminuitive == makes in sound cuter
<apeiros_> he's insulting your penis size
<Xeago> yea totally
<tommylommykins> D:
robustus has quit [Ping timeout: 248 seconds]
* apeiros_ wonders what "Landjäger" means in english
highbeats has joined #ruby
* Xeago slaps banister_ with a fishbat!
m3pow has joined #ruby
<apeiros_> 95%
<Xeago> :O
<banister_> Xeago: cos i couldn't make sense of it
<Xeago> you realized!
<apeiros_> I what?
<banister_> Xeago: i still cant, even after your epxlanation :P
<Xeago> apeiros_: my ctcp ping
robustus has joined #ruby
* apeiros_ confused
<Xeago> apeiros_: I ctcp ping'd and then you announced 95%
Retistic has quit [Quit: Retistic]
<apeiros_> lol?
<Xeago> banister_: deze jongen => cutified => dit jongetje
postmodern has quit [Quit: Leaving]
<apeiros_> nice coincidence then
<Xeago> banister_: do you understand de/het?
<apeiros_> ctcp queries are shown in a separate log in limechat. I normally don't see them
<banister_> Xeago: wait so 'deze' is just used when u want to sound cute?
<apeiros_> TM is done too
<Xeago> other way around
<Xeago> dit is used when not-female-wprd
<Xeago> de=>deze, het=>dit
<apeiros_> ~80s remaining
<apeiros_> I have to upgrade my 25Mb/s to 75Mb/s
<Xeago> (t)je is used to cutify
<apeiros_> it's like 15 bucks per month
<apeiros_> (increase, not total)
<Xeago> how much does your up increase for that?
Elhu has quit [Quit: Computer has gone to sleep.]
<apeiros_> 3x too I think
<apeiros_> 2.5 -> 7.5
<Xeago> definitely do :P
<Xeago> I can't live with anyting below 10
<apeiros_> eeep? sc2 just crashed?
Stuif has joined #ruby
<Xeago> you show as obnline
Stuif has quit [Quit: WeeChat 0.4.0]
<Xeago> ready?
<Xeago> arf
macq has quit [Ping timeout: 260 seconds]
ferdev|away is now known as ferdev
macq has joined #ruby
horofox has quit [Quit: horofox]
maxmanders has quit [Quit: Computer has gone to sleep.]
<banister_> Xeago: why do the dutch like to cutify things so much
<banister_> Xeago: i expect cutification from small people like japanese, but 8 foot tall blonde beasts from holland, it's weird to hear them cutify things
velCzupa has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
velCzupa has joined #ruby
arya has joined #ruby
hiall has joined #ruby
<hiall> ruby 2 out today?
backjlack has joined #ruby
d3vic3 has joined #ruby
znode has joined #ruby
horofox has joined #ruby
tish has joined #ruby
pkondzior__ has joined #ruby
kofno has joined #ruby
hbpoison has joined #ruby
maycon_ has quit [Changing host]
maycon_ has joined #ruby
maycon_ is now known as maycon
xemu has joined #ruby
BizarreCake has joined #ruby
nfk has joined #ruby
wallerdev has joined #ruby
subbyyy has joined #ruby
gtuckerkellogg has joined #ruby
pakchoi2 has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
gyre007 has joined #ruby
pakchoi2 has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
pyrac has quit [Quit: pyrac]
neurotec_ has joined #ruby
Qwak has joined #ruby
dmiller has joined #ruby
Wildhoney has joined #ruby
thone has quit [Ping timeout: 252 seconds]
ozgura has quit [Remote host closed the connection]
MartinCleaver has quit [Quit: MartinCleaver]
neurotech has quit [Ping timeout: 260 seconds]
Qwak has quit [Ping timeout: 256 seconds]
dmiller has quit [Ping timeout: 252 seconds]
chrisramon has quit [Quit: chrisramon]
arya has quit [Ping timeout: 248 seconds]
twshelton has joined #ruby
<shevy> hiall yes
<shevy> it is even considered "stable"
workmad3 has joined #ruby
newUser1234 has joined #ruby
pyrac has joined #ruby
arya has joined #ruby
newUser1234 has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Elhu has joined #ruby
davetherat has joined #ruby
senayar has quit [Quit: Quitte]
neurotec_ has quit [Remote host closed the connection]
bradhe has joined #ruby
arya has quit [Ping timeout: 248 seconds]
dorei has joined #ruby
newUser1234 has joined #ruby
thone has joined #ruby
<dorei> hello
Wildhoney has quit [Ping timeout: 255 seconds]
<dorei> could someone explain me the difference between .rdoc and .ri ?
<dorei> and do i need both of them?
trevortwining has joined #ruby
<otters> when will rbenv get updated
rekado has joined #ruby
arya has joined #ruby
pakchoi2 has quit [Read error: Connection reset by peer]
<burgestrand> rbenv is updated
<burgestrand> no, sorry, wrong
<burgestrand> ^^
<burgestrand> rvm is updated
<burgestrand> \o/
bradhe has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
<otters> rats
<hiall> thanks shevy
ethicalhack3r has quit [Quit: ethicalhack3r]
<rekado> I've got a library method that expects a block that is to be run in a callback. I've got an implementation of the callback as a method.
<rekado> I want to feed the method into the library method without wrapping it in a block.
<rekado> Can this be done without the ugly plumbing?
<rekado> this works, but is ugly:
<burgestrand> rekado: method(methodname) will give you a method instance, that responds to to_proc
<burgestrand> rekado: so, for example, some_method(&object.method(:methodname))
<burgestrand> rekado: object is the object that has the method you want to pass as a proc, some_method is the one accepting the callback, and :methodname is the name of your method on object that you want to pass as a proc
<rekado> burgestrand: hmm, I've tried that but failed.
<rekado> burgestrand: I'm going to check again.
<burgestrand> rekado: :)
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<rekado> burgestrand: oh yes, I was missing the ampersand. Thanks!
sepp2k has joined #ruby
pakchoi2 has joined #ruby
<Xeago> fffs
ethicalhack3r has joined #ruby
pac1 has joined #ruby
<Xeago> stupid safari forgot all my tabs and windows
Elhu has quit [Quit: Computer has gone to sleep.]
codespectator has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
pakchoi2 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<shevy> ACK
<shevy> "syck has been removed"
<shevy> :(((
Spooner has joined #ruby
solidoodlesuppor has joined #ruby
sayan has joined #ruby
Elhu has joined #ruby
rekado has left #ruby [#ruby]
<apeiros_> damit Xeago, now I'm frustrated :(
pyrac has quit [Quit: pyrac]
pakchoi2 has quit [Ping timeout: 252 seconds]
<apeiros_> gotta kill a CPU
<shevy> ruby/2.0.0/i686-linux/openssl.so: undefined symbol: SSLv2_method - /Programs/Ruby/2.0.0p0/lib/ruby/2.0.0/i686-linux/openssl.so
<shevy> hmmm
<maetthew> Anyone know why I can't require localfiles like this "require 'lib/test"? I have to require by doing "require File.join(File.dirname(__FILE__), '/lib'/, 'test.rb')"
<maetthew> (i'm ruby noob)
<Morrolan> Tried a 'require_relative' yet? :)
takeru has joined #ruby
pakchoi2 has joined #ruby
<Morrolan> (That is, if you're on a version which supports it, 1.9.something, I believe)
<canton7> maetthew, 'require' looks for the file in your $LOAD_PATH (print it out if you're curious)
<maetthew> Morrolan: same Morrolan as #lethalzone on QuakeNet? :P
<Morrolan> Yep.
<maetthew> haha cool
<maetthew> <- booyakah :p
<Morrolan> Oh, heh. :)
<canton7> iirc you can rewuire './lib/test', or modify your LOAD_PATH, or as Morrolan said use require_relative
newUser1234 has quit [Ping timeout: 252 seconds]
<canton7> s/rewuire/require
<Xeago> apeiros_: frustrated why?
takeru has quit [Ping timeout: 256 seconds]
pyrac has joined #ruby
horofox has quit [Quit: horofox]
angusiguess has joined #ruby
himsin has quit [Ping timeout: 260 seconds]
<apeiros_> because I still have no recipe against tossball
<apeiros_> OF DEATH
<apeiros_> got to pay attention in the next pro pvz I watch
<apeiros_> maetthew: booyakah? you watch too much tv :-p
zzing has joined #ruby
<maetthew> apeiros_: what? :P
<apeiros_> I've only ever heard that word in one tv show ;-)
banister_ has quit [Ping timeout: 276 seconds]
<maetthew> apeiros_: haha what? Ali G?
<apeiros_> ok, 2 shows
<maetthew> :D
busybox42 has quit [Ping timeout: 245 seconds]
newUser1234 has joined #ruby
cantonic_ has joined #ruby
girija has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
zzing has quit [Ping timeout: 264 seconds]
horofox_ has joined #ruby
kevinfagan has quit [Quit: Leaving...]
nari has quit [Ping timeout: 246 seconds]
predator117 has quit [Ping timeout: 252 seconds]
pakchoi2 has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
fabionl has joined #ruby
pakchoi2 has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
skattyadz has joined #ruby
schaerli has joined #ruby
pakchoi2 has joined #ruby
backjlack_ has joined #ruby
pakchoi2 has quit [Max SendQ exceeded]
pakchoi2 has joined #ruby
busybox42 has joined #ruby
thams has joined #ruby
trevortwining has quit [Quit: trevortwining]
kaen has quit [Quit: Leaving]
meoblast001 has joined #ruby
backjlack has quit [Ping timeout: 255 seconds]
schaerli has quit [Ping timeout: 276 seconds]
banister`tyrion has joined #ruby
pakchoi2 has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
Elhu has joined #ruby
daniel_-_ has joined #ruby
daniel_-_ has quit [Client Quit]
pakchoi2 has joined #ruby
ethicalhack3r has left #ruby [#ruby]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
znode has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
artm has joined #ruby
cisco has joined #ruby
znode has joined #ruby
artm has quit [Client Quit]
workmad3 has quit [Read error: Operation timed out]
ozgura has joined #ruby
<Xeago> apeiros_: I don't think you should let me get the ball up, and if you do, have tier3 units ready with spines
wmoxam has quit [Quit: Lost terminal]
daniel_- has quit [Ping timeout: 252 seconds]
<Xeago> If you want to discuss the replay, I'm up for it
Stilo has joined #ruby
<Xeago> as I think I won't be playing toss in hots
backjlack_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
newUser1234 has joined #ruby
pakchoi2 has quit [Excess Flood]
pakchoi2 has joined #ruby
pavilionXP has joined #ruby
backjlack has joined #ruby
schaerli has joined #ruby
pyrac has joined #ruby
znode_ has joined #ruby
adkron has joined #ruby
moshef has joined #ruby
moshef has quit [Client Quit]
znode has quit [Ping timeout: 252 seconds]
pakchoi2 has quit [Excess Flood]
trevortwining has joined #ruby
<apeiros_> Xeago: what will you play?
pakchoi2 has joined #ruby
<Xeago> zerg or protoss
<Xeago> don't like terran
<apeiros_> terran are a bit imba in hots IMO. battle hellion drop is horrible…
pakchoi2 has quit [Max SendQ exceeded]
verysoftoiletppr has quit []
jpcamara has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
iamjarvo has joined #ruby
horofox_ has quit [Quit: horofox_]
banister`tyrion has quit [Remote host closed the connection]
akashj87 has joined #ruby
horofox_ has joined #ruby
bradhe has joined #ruby
justsee has quit [Quit: Leaving...]
gyre007 has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 255 seconds]
velCzupa has quit [Remote host closed the connection]
tish has quit [Quit: Leaving.]
adkron has joined #ruby
spaceships has joined #ruby
pakchoi2 has joined #ruby
<Hanmac> xeago : "adepta sororitas" are hot :P
bradhe has quit [Ping timeout: 244 seconds]
objectivemo has joined #ruby
generalissimo has joined #ruby
zoonfafer has quit [Ping timeout: 260 seconds]
fabionl has quit [Quit: fabionl]
kevinfagan has joined #ruby
fabionl has joined #ruby
fabionl has quit [Client Quit]
sgmac has joined #ruby
hogeo has joined #ruby
workmad3 has joined #ruby
hbpoison has quit [Ping timeout: 276 seconds]
banister`tyrion has joined #ruby
arya has quit [Ping timeout: 248 seconds]
pakchoi2 has quit [Quit: This computer has gone to sleep]
blacktulip has joined #ruby
fwaokda has joined #ruby
senayar has joined #ruby
stopbit has joined #ruby
Guest94877 is now known as ddd
angusiguess has quit [Ping timeout: 260 seconds]
Virunga has quit [Remote host closed the connection]
<Xeago> Hanmac: ?
cisco has quit [Quit: Leaving.]
<banister`tyrion> __callee__ has returned to the original behavior, and now returns the called name but not the original name in an aliased method.
<banister`tyrion> w000
adkron has quit [Ping timeout: 260 seconds]
thams has quit [Quit: thams]
newUser1234 has quit [Remote host closed the connection]
Bry8Star has joined #ruby
arya has joined #ruby
angusiguess has joined #ruby
brian___ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
poikon has joined #ruby
jaywastaken has joined #ruby
daxim has joined #ruby
<daxim> hi, I'm looking for a list of the recent uploads to <https://rubygems.org/>, basically the equivalent of <https://metacpan.org/recent>. where is it hiding?
sgmac has quit [Quit: Leaving]
znode_ has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
znode has joined #ruby
<jaywastaken> GET - /api/v1/activity/latest
<daxim> excellent, that helps
znode_ has joined #ruby
newUser1234 has joined #ruby
trevortwining has quit [Quit: trevortwining]
znode_ has quit [Remote host closed the connection]
jrajav has joined #ruby
codecop has quit [Remote host closed the connection]
tbilik has joined #ruby
znode_ has joined #ruby
znode_ has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
<tbilik> I have ruby version 1.9.2. Should I upgrade to 2.0.0?
znode_ has joined #ruby
maucat has joined #ruby
znode has quit [Ping timeout: 276 seconds]
<apeiros_> at least upgrade to 1.9.3. but given how backwards compatible 2.0.0 is, you might just as well go directly to 2.0
arturaz has quit [Ping timeout: 260 seconds]
<tbilik> ok
iamjarvo has quit [Quit: Leaving.]
<tbilik> I will install ruby 2.0.0 right now.
<fwaokda> i've installed ruby on ubuntu 12.10, but how do i open a console?
hbpoison has joined #ruby
<fwaokda> i tried "ruby console" but... no worky
<Spooner> fwaokda, What do you mean? I think "irb"
<catphish> fwaokda: irb
<tbilik> do you mean the terminal?
emmanuelux has joined #ruby
<Spooner> Though use the pry gem rather than irb. Just better ;)
<fwaokda> ahh looks like irb is what i was looking for
<fwaokda> thanks, now just have to find a good place to start ;P
kushkella has joined #ruby
coolj1 has quit [Quit: Leaving.]
<tbilik> By the way, has anyone seen any bugs in ruby 2.0.0?
newUser1234 has joined #ruby
<kushkella> Hello, wanted some advise on PDF generation.
kennyvb has quit [Quit: ZNC - http://znc.in]
drago757 has joined #ruby
<catphish> kushkella: prawn
<kushkella> What do you think of PDF generation service that allows you to design documents and then lets you merge data through API?
pkondzior__ has quit [Ping timeout: 252 seconds]
<catphish> sounds useful
kennyvb has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
jpcamara has quit [Quit: jpcamara]
Banistergalaxy has joined #ruby
<tbilik> In the terminal, how do I install ruby 2.0.0 on ubuntu?
jonahR has joined #ruby
dmiller has joined #ruby
v0n has joined #ruby
<kushkella> captish: Have you used any such service e.g docmosis, or livedocx?
jonahR has quit [Client Quit]
<catphish> no
<catphish> i write my own code :)
<kushkella> Same as I do:) but isn't that cumbersome to hand code PDF files?
trevortwining has joined #ruby
joofsh has joined #ruby
<tbilik> In the terminal, how do I install ruby 2.0.0 on ubuntu?(please write back)
nitro_ has joined #ruby
<tbilik> :)
<kushkella> captish: And how do you handle the load, when there are lots of files to generate?
tbilik has left #ruby ["going to android chat room"]
<catphish> kushkella: buy more servers
<catphish> though i've never had to generate more than a couple of hundred PDFs a day
<Xeago> kushkella: I have seen such service already tho
<Xeago> you specify $FIELD_NAME$ in your pdf,
<Xeago> send it to them, request a pdf from them with the supplied data, and done
<kushkella> xeago: Which service are you talking of?
<Xeago> this is an invoicing service
dmiller has quit [Ping timeout: 244 seconds]
<Xeago> forgot the name
<Xeago> was a side product of a product launched about 3 months ago
<Xeago> saw it on hackernews
<kushkella> Does it let you design the PDF as well, because it is cumbersome to hand code PDF files. And most of all there is nothing new to learn.
<Xeago> you make the pdf however you want
<Xeago> as long as it is a pdf with text (not a full image)
<Xeago> people who like word do it their way
newUser1234 has quit [Remote host closed the connection]
<banister`tyrion> Xeago: which city are oyu from in holland again?
<banister`tyrion> i keep forgetting
<Xeago> others use their designers to make it in html
<Xeago> simpelveld near heerlen near maastricht
<Xeago> 5min walking form german border
<banister`tyrion> oh right
<banister`tyrion> i remember
moos3 has quit [Quit: Computer has gone to sleep.]
newUser1234 has joined #ruby
<Xeago> https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Moogstraat,+Simpelveld,+The+Netherlands&aq=&sll=50.837291,5.991639&sspn=0.00828,0.01929&vpsrc=0&t=h&ie=UTF8&hq=&hnear=Moogstraat,+Simpelveld,+Limburg,+The+Netherlands&ll=50.837329,5.991476&spn=0.007982,0.01929&z=16&iwloc=A
browndawg has quit [Ping timeout: 260 seconds]
<kushkella> Ok I get it. The service would be a PDF form filler I think. Can you please take a look at LiveDocx and Docmosis and let me know what do you think of it as a developer?
pyr0commie has joined #ruby
twshelton has quit [Quit: Textual IRC Client: www.textualapp.com]
<Xeago> horrible slow site at Docmosis
Wildhoney has joined #ruby
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
<kushkella> Xeago: I know that. What about livedocx then?
<Xeago> Docmosis completely amazon based, probably not PCI compliant (e.g. can't send invoices that specify cc numbers)
girija has quit [Ping timeout: 264 seconds]
pettsson has joined #ruby
<Xeago> I consider mso a pain the ass, livedocx therefore drops for me
pyrac has quit [Quit: pyrac]
<kushkella> MSO=Microsoft right?
<Xeago> microsoft office, their office suite
<Xeago> when I make invoices, I make them in latex or html
<Xeago> tho most say livedocx looks more appealing than docmosis
newUser1234 has quit [Remote host closed the connection]
<Xeago> as a developer
<Xeago> tho livedocx sends password over http
walbert has joined #ruby
hogeo has quit [Remote host closed the connection]
<Xeago> their setfieldvalue api is fooked tho
<Xeago> adn their whole retrieve api lol
<kushkella> Actually I was working for a startup that wants to make something like this. But I was unsure whether developers want a service like livedocx with a visual designer probably, where you could design a PDF in browser and then call an API to generate the PDF with some data.
<Xeago> kushkella: make the designer aspect optional imo
<kushkella> xeago: What do you think of this?
<Xeago> the services I currently know of, have crappy api's
<Xeago> bad security practices
<Xeago> and don't export as a trillion of formats
<Xeago> do pdf right
<kushkella> So what other options do you think are good to design the template?
<kushkella> Got it.
<Xeago> I used latex, and seperately also used html
Beoran__ has joined #ruby
bradhe has joined #ruby
browndawg has joined #ruby
<Xeago> the html was a reseller product, for people that wanted to style it their way
<Xeago> they could insert their css
matchaw_ has joined #ruby
<Xeago> (we had a test screen with a syntax highlighted css, and auto updating preview)
<Xeago> the latex template is for my own game server hosting
coolj1 has joined #ruby
<Xeago> which sadly enough runs under my bed
matchaw has quit [Ping timeout: 248 seconds]
<Xeago> :<
Beoran_ has quit [Read error: Operation timed out]
<kushkella> Yeah I think HTML will be a good option to go.
<Xeago> seperating the document template creation and the api, is actually a good thing tbh
<Xeago> as long as you keep stuff nicely versioned, and don't throw errors when a field gets removed by some weird c-level dude
guns has joined #ruby
<Xeago> (and some nice extras, as give me a pdf of the last request using this, that, and those tempaltes)
<kushkella> Xeago can I please have some sort of your contact id. I will be very grateful.
<Xeago> blog.xeago.nl
<kushkella> Thanks!
<Xeago> I'm on irc almost daily, if not daily
justme1 has quit [Quit: Leaving.]
bradhe has quit [Ping timeout: 252 seconds]
<kushkella> That is good because I may need some one like you to give feedback.
coolj1 has quit [Client Quit]
takeru has joined #ruby
<jaywastaken> can anyone explain to me why it's not a bad idea to pass along a client private key when using Net::HTTP? (e.g. http.key = OpenSSL::PKey::RSA.new('...'))
subbyyy has quit [Quit: none 0.3.9.2]
d3vic3 has quit [Ping timeout: 260 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
<jaywastaken> or i guess you just always pass a public key
Virunga has joined #ruby
johnnyg1 has joined #ruby
dmiller has joined #ruby
takeru has quit [Remote host closed the connection]
takeru has joined #ruby
<catphish> jaywastaken: do you know what that key is used for?
gyre007 has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
sonda has joined #ruby
<catphish> my guess is that it's designed to take a client private ey
<catphish> *key
Xeago has quit [Ping timeout: 260 seconds]
<jaywastaken> catphish: I am actually trying to secure my own internal api using ssl certs
<catphish> sure
<fwaokda> I'm trying to get a value from an html file... there is this element "<form method="post" action="8387" id="ct">" I want the value in "action" how can i do this with nokigiri? I know how to select information based off a class but not how to do this... ;/
<catphish> well that attribute takes a client private key
maucat has quit [Read error: Connection reset by peer]
<catphish> there's no reason it should be a bad idea
takeru has quit [Ping timeout: 256 seconds]
<jaywastaken> i guess i can safely assume that the connection does not actually send the private key
<catphish> you can assume that, doing so would make no sense
<catphish> but there's no way it could verify unless you gave it the key
<kushkella> fwaokda: you can do it with xpath selectors
gyre007 has quit [Ping timeout: 256 seconds]
<catphish> jaywastaken: you will also need to pass the client cert
nitro_ has quit [Ping timeout: 255 seconds]
<kushkella> fwaokda: http://nokogiri.org/tutorials/searching_a_xml_html_document.html Probably this may help you.
<fwaokda> kushkella, ok thanks i'll read up on that
<fwaokda> perfect thanks ;D
joofsh has quit [Remote host closed the connection]
<jaywastaken> catphish: thanks. for some reason i just found it strange to actually use the private key
<jaywastaken> or even passing a private key to curl
<catphish> there'd be no point having a private key if you couldn't use it :)
nitro_ has joined #ruby
<catphish> one end always needs to use the private key
<catphish> the cert *will* get send with the request of course
<catphish> but the private key is just used locally
Elhu has joined #ruby
mlr has joined #ruby
jfontan has joined #ruby
<jaywastaken> still trying to wrap my head around the whole business of certificates, signing, etc.
justme1 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Ping timeout: 252 seconds]
<jaywastaken> i.e. generate server key and cert, generate client key and CSR, sign client CSR with server cert. server verifies clients with its own certificate. client includes its own cert and key when making a request to server
<jaywastaken> i think i'm confused as to why the client needs to send a key along with its cert when the server cert did the signing
colonolGron has joined #ruby
arthurstomp has joined #ruby
<kushkella> captish: Sorry for missing on the conversation, as I mentioned that I was working for a startup that wants to develop service for developers to design PDF templates within browser and generate PDFs through API. Do you think developers will use such service probably with a WYSIWYG designer for designing templates?
<catphish> jaywastaken: any host that wants to identify itself needs to use a private key
BizarreCake has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
<catphish> kushkella: i think some people would use it
nitro_ has quit [Ping timeout: 256 seconds]
awarner has joined #ruby
radic has quit [Disconnected by services]
skattyadz has quit [Quit: skattyadz]
radic_ has joined #ruby
<catphish> jaywastaken: the process is in 4 parts 1) you have a private key 2) you use that to generate a public certificate 3) somebody else signs that public certificate to say you're trusted 4) you can use the private key to prove that the signed public cert is yours
linusoleander has joined #ruby
mcarron has joined #ruby
nitro_ has joined #ruby
Mon_Ouie has quit [Ping timeout: 255 seconds]
justme1 has quit [Quit: Leaving.]
<kushkella> captish: Would you use it for PDF generation with a visual designer for template designing?
<catphish> jaywastaken: the client never "sends" the private key anywhere, but it needs to use it internally to prove it owns the public cert
<catphish> kushkella: i wouldn't use it, as i said i write everything myself, but i believe other people would
<Banistergalaxy> Xeago what is riblappen
thams has joined #ruby
arthurstomp has quit [Client Quit]
crackfu has joined #ruby
<kushkella> captish: Thanks for the feedback, can you point me to someone who might. I needed some feedback?
IrishGringo has joined #ruby
Yakko has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
monkegjinni has quit [Remote host closed the connection]
sk87_ has joined #ruby
drago757- has joined #ruby
elaptics is now known as elaptics`away
anderse has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
drago757 has quit [Quit: drago757]
<jaywastaken> catphish: thanks for the explanation! makes sense now
<catphish> jaywastaken: gdgd, i didnt explain it that well :)
Wildhoney has left #ruby [#ruby]
Wildhoney has joined #ruby
dangerousdave has joined #ruby
jpfuentes2 has joined #ruby
nitro_ has quit [Ping timeout: 255 seconds]
newUser1234 has joined #ruby
workmad3 has joined #ruby
nitro_ has joined #ruby
Vainoharhainen has joined #ruby
kofno has quit [Remote host closed the connection]
ananthakumaran1 has joined #ruby
mercwithamouth has joined #ruby
skattyadz has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
octoberry has joined #ruby
slainer68 has quit [Remote host closed the connection]
thams has quit [Quit: thams]
eldariof has joined #ruby
drago757- has quit [Remote host closed the connection]
drago777 has joined #ruby
tomzx_mac has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Quit: Computer has gone to sleep.]
bradleyprice has joined #ruby
imami|afk is now known as banseljaj
gianlucadv_ has joined #ruby
trevortwining has quit [Quit: trevortwining]
newUser1234 has quit [Remote host closed the connection]
thams has joined #ruby
gianlucadv has quit [Read error: Connection reset by peer]
trevortwining has joined #ruby
akashj87 has quit [Ping timeout: 276 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
drago777 has quit [Remote host closed the connection]
heliumsocket has joined #ruby
drago777 has joined #ruby
Stilo has joined #ruby
skattyadz has quit [Quit: skattyadz]
justme1 has joined #ruby
mcarron has quit [Quit: mcarron]
Kobrakao has joined #ruby
Deltaoo has joined #ruby
MrITR has joined #ruby
newUser1234 has joined #ruby
Elhu has joined #ruby
octoberry has quit [Ping timeout: 260 seconds]
tommyvyo has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
thams has quit [Quit: thams]
arya has quit [Ping timeout: 248 seconds]
gianlucadv has joined #ruby
pdamer has joined #ruby
gianlucadv_ has quit [Ping timeout: 264 seconds]
TheFuzzball has quit [Read error: Connection reset by peer]
thams has joined #ruby
bradhe has joined #ruby
thams has quit [Client Quit]
zyrex has joined #ruby
wallerdev has joined #ruby
arya has joined #ruby
TheFuzzball has joined #ruby
hbpoison has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
heliumsocket has quit [Quit: heliumsocket]
schaerli has quit [Remote host closed the connection]
Vainoharhainen has quit [Quit: Leaving...]
newUser1234 has quit [Remote host closed the connection]
verysoftoiletppr has joined #ruby
havenwood has joined #ruby
gianlucadv has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
heliumsocket has joined #ruby
gianlucadv_ has joined #ruby
nitro_ has quit [Quit: Lost terminal]
Choobie has joined #ruby
Choobie has quit [Changing host]
Choobie has joined #ruby
zyrex has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0/20130218103407]]
gosshedd has quit [Ping timeout: 260 seconds]
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
gosshedd has joined #ruby
emmanuelux has quit [Read error: Connection reset by peer]
AntiTyping has joined #ruby
thams has joined #ruby
<havenwood> I somehow had missed that __dir__ got into 2.0.0... awesome!!! :D
Elhu has quit [Quit: Computer has gone to sleep.]
<havenwood> Buh bye File.expand_path(File.dirname(__FILE__)
poga has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
tenmilestereo has joined #ruby
himsin has joined #ruby
freakazoid0223 has joined #ruby
dhruvasagar has joined #ruby
banister`tyrion has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 245 seconds]
sabooky has quit [Ping timeout: 256 seconds]
eklarskov has quit [Ping timeout: 245 seconds]
thams has quit [Quit: thams]
Matip has quit [Ping timeout: 252 seconds]
banister`tyrion has joined #ruby
Al__ has joined #ruby
Matip has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
<Spooner> havenwood, Nice. Pity no-one will accept 2.0.0 code for another 2 years :) People still can't get to 1.9 right now...
jgrevich has joined #ruby
bradleyprice has quit [Remote host closed the connection]
Slivka has quit [Remote host closed the connection]
<havenwood> Spooner: Hopefully folks realize 2.0.0 is a stable release unlike 1.9.0 and adopt it quicker! But yeah... my farewell to __FILE__ line noise is premature. :P
ferdev is now known as ferdev|away
<apeiros_> I'd love if they'd extend $LOAD_PATH with a little .unshift_relative
dhruvasagar has quit [Ping timeout: 255 seconds]
<apeiros_> so you could write: $LOAD_PATH.unshift_relative '../lib' instead of: $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
techhelp has joined #ruby
<hiall> anyone recommend any ruby books for medium developers?
pkondzior__ has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
<sam113101> hiall: The Well-Grounded Rubyist
kofno has joined #ruby
pdamer has quit [Quit: pdamer]
schaerli has joined #ruby
pyro111 has quit [Quit: Leaving]
mneorr has joined #ruby
bradhe has joined #ruby
testingb0t has quit [Quit: Leaving.]
tintin has joined #ruby
awarner has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<tintin> how can i set flags or options to debug ruby source code
kofno has quit [Remote host closed the connection]
<tintin> ./configure -- ?
pyrac has joined #ruby
rohrer has joined #ruby
joofsh has joined #ruby
<fwaokda> anyone know where i can find tutorials/docs on simplxlsxwriter ? i keep getting results for xlsx writer... ;/
Banistergalaxy has joined #ruby
Jeaye has joined #ruby
schaerli has quit [Ping timeout: 260 seconds]
tjbiddle has joined #ruby
Elhu has joined #ruby
artofraw has joined #ruby
artofraw has quit [Client Quit]
ferdev|away is now known as ferdev
pyr0commie has quit [Remote host closed the connection]
Al__ has quit [Quit: Al__]
timonv has quit [Remote host closed the connection]
tjbiddle has quit [Client Quit]
tcstar has joined #ruby
Vert has joined #ruby
bradhe has quit [Remote host closed the connection]
F1skr has joined #ruby
bradhe has joined #ruby
eklarskov has joined #ruby
awarner has joined #ruby
thone_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
schaerli has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
awarner has quit [Remote host closed the connection]
heliumsocket has joined #ruby
thone has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
sabooky has joined #ruby
heliumsocket has quit [Client Quit]
arturaz has joined #ruby
bradleyprice has joined #ruby
eklarskov has quit [Ping timeout: 252 seconds]
Al__ has joined #ruby
<otters> You know what's weird is that it works locally with the same thin and eventmachine versions
<otters> how upsetting
<otters> does unicorn use eventmachine?
tintin has left #ruby [#ruby]
sk87_ has quit [Quit: Computer has gone to sleep.]
ablemike has joined #ruby
<havenwood> otters: nope
<otters> I'll try that, then
<ablemike> Does anyone recognize this date format? 2012-01-04T10:19:00
<otters> it might be nicer to not need to restart the web server when I deploy
<havenwood> otters: +1 Unicorn
Morkel has joined #ruby
<otters> heh
<davidcelis> lmao if you're trying to build ruby 2.0 on mountain lion using rbenv
lxsameer has quit [Quit: Leaving]
<shevy> syck is dead :(
schaerli has joined #ruby
<havenwood> davidcelis: Agreed. Why would someone not be using rbenv over chruby!? :O
<shevy> Psych::SyntaxError: (/settings.yml): invalid leading UTF-8 octet at line 1 column 1
<shevy> now all my yaml files must be in UTF-8 :(((
jgrevich_ has joined #ruby
takeru has joined #ruby
<davidcelis> havenwood: i mean the build totally barfs on openssl 1.0.1e
<havenwood> davidcelis: ahhhhh
eka has joined #ruby
jgrevich has quit [Ping timeout: 256 seconds]
jgrevich_ is now known as jgrevich
newUser1234 has joined #ruby
hesco has joined #ruby
<havenwood> guess ruby-build's .configure should add a flag, --with-openssl-dir=`brew --prefix openssl`
<davidcelis> that's what i had been doing
<davidcelis> using CONFIGURE_OPTS
<davidcelis> RUBY_CONFIGURE_OPTS worked; with CONFIGURE_OPTS, it was still trying to download openssl manually and build it
maycon has quit [Ping timeout: 260 seconds]
<havenwood> davidcelis: Yeah, i just go ahead and use a ton of --with options to avoid dynamic linking hell.
maxmanders has joined #ruby
maycon has joined #ruby
<havenwood> davidcelis: Nice list of --with options: https://github.com/postmodern/chruby/wiki/MRI
ephemerian has joined #ruby
<hesco> I just used gem to install cucumber-puppet-0.3.7, which advised me that 'ri' and 'RDoc' had been installed for it. Apparently none of that documentation has been manified. How is it I access those docs?
<havenwood> davidcelis: oh, wierd!
joofsh has quit [Remote host closed the connection]
maycon has quit [Remote host closed the connection]
takeru has quit [Ping timeout: 255 seconds]
<havenwood> hesco: E.g.: ri Array
Kobrakao has quit [Ping timeout: 260 seconds]
johnnyg1 has quit [Quit: Leaving.]
decoponio has quit [Quit: Leaving...]
<havenwood> hesco: The pry gem is a fantastic repl for easy access to the docs. I'd highly recommend just installing pry and using that over irb. Then you can see docs with: ? Array#slice
<havenwood> hesco: And actual method implementation with: show-method Array#slice
tcstar has quit [Read error: Connection reset by peer]
<spider-mario> there’s also code completion as well as “edit” and “save-file”
<havenwood> hesco: Type 'help' from within Pry for list of available pry-specific commands: http://pryrepl.org
<Spooner> And you get a free cuddly toy with every copy of pry ;)
<hesco> havenwood: thanks, installing pry now
Elhu has joined #ruby
<TTilus> hesco: gem server gives you access to the docs
kodeart has left #ruby [#ruby]
sayan has quit [Quit: Leaving]
samphippen has joined #ruby
nwertman has quit [Ping timeout: 260 seconds]
schaerli has quit [Remote host closed the connection]
<hesco> I encountered this error:
<hesco> RDoc::Parser::Ruby failure around line 25 of
<hesco> lib/pry/commands/ls.rb
eklarskov has joined #ruby
thone_ has quit [Ping timeout: 246 seconds]
Virunga has quit [Remote host closed the connection]
<banister`tyrion> hesco: that's just a doc error due to a bug in rdoc, pry still installed successfully
Catbuntu has joined #ruby
Al__ has quit [Quit: Al__]
thone has joined #ruby
bradhe has joined #ruby
nwertman has joined #ruby
<hesco> banister`tyrion: thanks, will try it then
toekutr has joined #ruby
anderse has quit [Quit: anderse]
TwN has joined #ruby
<Hanmac> hm yeah banister i saw that rdoc at gem install try to make the doc out of *so files :P
anderse has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
justme1 has left #ruby [#ruby]
yacks has quit [Remote host closed the connection]
seta has quit [Remote host closed the connection]
schaerli has joined #ruby
<davidcelis> of course, io-console is still broken with 2.0
<davidcelis> so coolline can't install, so i can't use pry-coolline :(
schaerli has quit [Remote host closed the connection]
thone_ has joined #ruby
thone has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
<shevy> Hanmac do you use 2.0 already?
marr has joined #ruby
<fwaokda> when nokogiri access a page does it specify to the webpage that its a certain browser?
<Hanmac> shevy i had, but it was on a different pc
thone_ has quit [Read error: Connection reset by peer]
zzing has joined #ruby
pdamer has joined #ruby
thone has joined #ruby
elux has quit [Remote host closed the connection]
anderse has quit [Quit: anderse]
elux has joined #ruby
pyrac has quit [Quit: pyrac]
mfcabrera has joined #ruby
etcetera has joined #ruby
<TwN> apeiros_: replay analysis?
browndawg has quit [Quit: Leaving.]
Opettaja has joined #ruby
BizarreCake has joined #ruby
brum has joined #ruby
Mon_Ouie has joined #ruby
locriani_ is now known as locriani
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
<Catbuntu> What do you recommend me, indenting with tabs or with spaces?
<shevy> Catbuntu spaces
<shevy> ideally 2
<Catbuntu> Okay, thanks :)
<shevy> Catbuntu you should reason for tabs or spaces however
adkron has joined #ruby
codespectator has quit [Quit: Computer has gone to sleep.]
<shevy> Catbuntu I myself used tabs for a few years until I noticed that I wanted to use tabs to indent documentation in code as well
<shevy> to "align" larger chunks of docu
<Catbuntu> And what's the difference at all?
elux has quit [Ping timeout: 276 seconds]
mattbl has joined #ruby
sabooky has quit [Quit: leaving]
<shevy> I dunno, I could not use tabs for documentation, but I could use spaces very well, so I switched to spaces
Mon_Ouie has quit [Read error: Connection reset by peer]
mephux has quit [Excess Flood]
<shevy> I think the most common use case for \t is a table layout
<Catbuntu> I used tabs when I used Python.
<shevy> cell 1 | cell 2
<Catbuntu> Yep
<shevy> data1 \t data2
Elhu has quit [Quit: Computer has gone to sleep.]
<shevy> and some people say "you could always replace tabs with the amount of spaces you want to"
codespectator has joined #ruby
<Catbuntu> Yeah
mephux has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<Catbuntu> I haven't decided yet whether to use Python or Ruby, really :(
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
pdamer has quit [Quit: pdamer]
mneorr has quit [Remote host closed the connection]
k610 has joined #ruby
<havenwood> Catbuntu: What are your hesitations with Ruby/Python?
<shevy> Catbuntu they fill very similar niches
werdnativ has joined #ruby
heliumsocket has joined #ruby
<shevy> Catbuntu did you read the old interview from matz by 2003?
<Catbuntu> shevy, nope.
<shevy> I read that back in 2005 or something and decided for ruby because of that interview
<Catbuntu> I liked Perl's TIMTAWTDI, but Python has only one way to do it, while Ruby has more than one way to do it.
<otters> there is more than ane way to do it
voodoofish has joined #ruby
<Catbuntu> But I also like Python's "looks".
Stilo has joined #ruby
<Catbuntu> In fact my largest project which is an IRC bot was done first in PHP — then with Python.
mockra has joined #ruby
<shevy> Catbuntu in ruby I usually find the first way that works and ignore the others
<Catbuntu> Also I read that Ruby has a bad scalability, in fact Twitter stopped using it because of that.
mockra has quit [Remote host closed the connection]
<havenwood> Catbuntu: FUD. Twitter still uses Ruby.
bradhe has joined #ruby
<shevy> ok when you are as big as twitter you were pretty successful to that point, were you not ;)
<sam113101> they switched to scala for their backend though I think
<apeiros_> Catbuntu: a) twitter managed to get this big because of ruby in the first place, don't forget that
ddv has joined #ruby
<havenwood> Catbuntu: They switched to Scala or Closure or what-have-you for backend stuff, but Twitter is still a Rails app.
<apeiros_> Catbuntu: b) twitter still uses ruby
<Catbuntu> They use Scala afaik, havenwood
<shevy> Catbuntu big companies will almost always use whatever works best for them
<apeiros_> Catbuntu: c) I wouldn't call it "bad" scalability if you get up to a couple of million request per second
<havenwood> Catbuntu: They use multiple languages on the JVM. (JRuby is an awesome lang on the JVM.)
<Catbuntu> ow
johnnyg1 has joined #ruby
jaygen_ has joined #ruby
<Catbuntu> GitHub uses Ruby (on Rails) also, doesn't it?
xclite has quit [Ping timeout: 264 seconds]
jaygen has quit [Read error: Operation timed out]
<sam113101> yes
<apeiros_> appendum to c) not that many people manage to create a product which big enough to even make you switch
mattbl has quit [Quit: This computer has gone to sleep]
johnnyg1 has left #ruby [#ruby]
<havenwood> Catbuntu: Github is a Unix shop so they use CRuby (actually they use Ruby 2.0.0 cause they run Unicorn and copy-on-write friendly GC is a big savings)
<shevy> anyone knows if rails supports 2.0 already? :>
<havenwood> Catbuntu: Twitter is a JVM shop.
<apeiros_> Catbuntu: but re scalability - feel free to write everything in hand optimized assembler from start. lets see how far you get…
<havenwood> Catbuntu: Ruby is great on both.
jaygen has joined #ruby
Catbuntu has quit [Read error: Connection reset by peer]
<havenwood> shevy: Yeah, it does.
<havenwood> shevy: Rails 4.0 is 2.0-preferred, 1.9-supported, 1.8-ah-hells-no.
jaygen_ has quit [Read error: Operation timed out]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<shevy> !!! :(
<shevy> no more 1.8 ...
<shevy> I think I must switch to sublime text as my editor
jfontan has quit [Quit: Leaving.]
<havenwood> nope, banished - lets them ditch legacy code and no point since 1.8 is already patch-dead and end-of-life in June. If a Rails shop wants to Run 1.8 with no security patch support, heaven help them (and they have to do it on Rails 3-or-lower).
Jebron has joined #ruby
toekutr has quit [Remote host closed the connection]
<otters> oh man
<shevy> hehe
kushkella has quit [Ping timeout: 245 seconds]
<shevy> wow 10 years birthday
<shevy> "Rails was created in 2003 by David Heinemeier Hansson "
colonolGron has quit [Quit: leaving]
<aedornm> I love people asking why they should choose X language. Like if they don't choose the right one, the world will end. I have similar arguments with myself about what to have for lunch.
<havenwood> shevy: I'll go out with a 20-yr-old, but 10?? No thanks Rails. Will stick to Ruby. :P
arturaz has quit [Remote host closed the connection]
Catbuntu has joined #ruby
<whitequark> aedornm: excellent comparison
<havenwood> Today being Ruby's 20th birthday really does feel festive! ┌(★o☆)┘
<whitequark> I'm going to use it.
<apeiros_> aedornm: you'll end the world with your careless lunch choices!
techhelp has quit [Quit: This computer has gone to sleep]
Catbuntu is now known as Guest89564
<Guest89564> owwwwwwwww
thufir_ has joined #ruby
<Guest89564> stupid internet
pyrac has joined #ruby
<havenwood> brunch ftw
Guest89564 is now known as Catbuntu
Catbuntu has quit [Changing host]
Catbuntu has joined #ruby
<shevy> aedornm would you want to eat unhealthy food
<Catbuntu> Is today Ruby's 20th birthday?
<havenwood> Catbuntu: Yes!
<shevy> nah, ruby "Appeared in 1995" according to wikipedia
<Catbuntu> coolie
<Catbuntu> so why does Twitter use JVM?
<havenwood> shevy: Wikipedia is wrong.
<aedornm> shevy: There are days where fish, chips, and a beer are appropriate!
<shevy> havenwood hmm
<whitequark> Catbuntu: 1) Twitter still uses Ruby/Rails on the frontend AFAIK
kevinfagan has quit [Quit: Leaving...]
<Catbuntu> Isn't it using JRuby?
<whitequark> 2) using JVM and Ruby is not mutually exclusive
<whitequark> dunno, wasn't it their 1.8 fork? Kiji or so
kevinfagan has joined #ruby
poga has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
FondoDeBikini has joined #ruby
<havenwood> shevy: Matz says Ruby is 20. Quick check of Matz' twitter has DDH congrats for 20-years of Ruby. I haven't had my coffee, but I'd bet that Wikipedia is not-at-all-correct on this one. :P
<havenwood> shevy: Guess you could debate what 'birthday' means, but Feb 24, 1993 is what Matz pegs as DOB.
<shevy> hehe ok
CraHan|out is now known as CraHan
<havenwood> shevy: Actually, now it makes sense why in his talk at RubyConf Brixen mentioned Ruby turning 18, betcha he went off Wikipedia. Hehe.
icole has joined #ruby
Catbuntu has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<aedornm> Conception vs inception, probably...
jekotia has joined #ruby
<havenwood> aedornm: Or public release maybe?
<aedornm> uh .. vs. reception
<havenwood> hehe
otherj has joined #ruby
<havenwood> I like the idea of Ruby inception though, wait are we 3 Rubies deep or 4? Where is my coin!?
etcetera has quit []
burgestrand has quit [Quit: Leaving.]
<fwaokda> i have a string " this" and im doing .strip on it and it's not removing the white space... anything im missing?
d2dchat has joined #ruby
<havenwood> fwaokda: Are you modifying a variable (might need #strip!). #strip does work: " this".strip; #=> "this"
<havenwood> ! to modify the receiver
<fwaokda> hmmm idk maybe its not really a space
BizarreCake has quit [Ping timeout: 252 seconds]
jimeh has joined #ruby
<fwaokda> it outputs to console as => " College Person", but then if i try the .strip! it prints out => nil
nachtwandler has quit [Remote host closed the connection]
<havenwood> fwaokda: " this"[0].ord; #=> 32
<havenwood> fwaokda: paste a Gist of the code?
<havenwood> fwaokda: 32.chr; #=> " "
<fwaokda> that returns => 160
<havenwood> 160.chr; #=> "\xA0"
<fwaokda> what the hell is that haha
<Spooner> "Bundler is not compatible with Ruby 2.0 or Rubygems 2.0" - well, that was a waste of time :D
<havenwood> Spooner: 1.3 is, just --pre it
<Hanmac> fwaokda .strip! returns nil if the string does not change
budmang has quit [Read error: Connection reset by peer]
<Spooner> Ah right.
<Spooner> havenwood, Thanks.
<Hanmac> Spooner about Bundler: what??? why?¿
SCommette has joined #ruby
<Spooner> Hanmac, The current release doesn't work with 2.0. As havenwood said, the --pre version is.
<fwaokda> how can i have strip, strip off "\xA0" ? or do i just need to remove it somehow?
sonda has quit [Remote host closed the connection]
budmang has joined #ruby
d2dchat has quit [Read error: Connection timed out]
d2dchat has joined #ruby
io_syl_ has joined #ruby
schaerli has joined #ruby
mario___ has joined #ruby
joofsh has joined #ruby
k776 has joined #ruby
<k776> There has been articles going around that MySQL+TcMalloc (via LD_PRELOAD) == Speed Boost. But does anyone know if Postgresql or Ruby in general can benefit from LD_PRELOAD being set to TcMalloc?
horofox_ has quit [Quit: horofox_]
<whitequark> k776: try it and benchmark it.
<whitequark> theoretically it is possible and likely.
<k776> I'm hesitant to try it on a production box...
schaerli has quit [Remote host closed the connection]
<Hanmac> fwaokda: you want to tell me that your string is "\xA0College Person"?
<whitequark> k776: try it on a development box?
<whitequark> `ab' is your friend.
<k776> whitequark: I suppose...
hbpoison has quit [Remote host closed the connection]
mario___ has left #ruby [#ruby]
icole has quit [Remote host closed the connection]
hbpoison has joined #ruby
maxmanders has quit [Ping timeout: 256 seconds]
io_syl has quit [Ping timeout: 255 seconds]
io_syl_ is now known as io_syl
<fwaokda> Hanmac, i think so but in terminal the \xA0 shows up as a blank
<Spooner> Yay, I just ran my first script in 2.0 :)
trevortwining has quit [Quit: trevortwining]
maxmanders has joined #ruby
<fwaokda> i think it's a "&nbsp;" or whatever from the html file im getting the string from
<havenwood> fwaokda: You could change the \xA0's to spaces or just remove them. Here is convert to spaces: #gsub!(/[\xA0]/n, ' ')
heliumsocket has quit [Ping timeout: 252 seconds]
znode_ has quit [Remote host closed the connection]
<fwaokda> im getting... Encoding::CompatibilityError: incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
trevortwining has joined #ruby
<havenwood> I just use all utf-8. :P
trevortwining has quit [Client Quit]
icole has joined #ruby
kayloos has joined #ruby
kayloos has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
codecop has joined #ruby
kayloos has joined #ruby
<fwaokda> got em! ;D str.gsub!("\u00a0","")
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
artOfWar has joined #ruby
workmad3 has joined #ruby
cantonic_ has quit [Quit: cantonic_]
cantonic has joined #ruby
m8 has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
feedbackloop has quit [Read error: Connection reset by peer]
feedbackloop has joined #ruby
tealmage has quit [Remote host closed the connection]
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
m8 has quit [Max SendQ exceeded]
m8 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
motto has joined #ruby
heliumsocket has joined #ruby
mneorr has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
m8 has quit [Ping timeout: 252 seconds]
heliumsocket has quit [Client Quit]
k776 has left #ruby [#ruby]
tar_ has joined #ruby
tar_ has quit [Client Quit]
tar_ has joined #ruby
br4ndon has joined #ruby
arya has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
shevy has joined #ruby
mduvall has joined #ruby
newUser1234 has quit [Remote host closed the connection]
banister`tyrion is now known as banisterfiend
bradleyprice has quit [Remote host closed the connection]
mockra has joined #ruby
techhelp has joined #ruby
onlinenickid has joined #ruby
<Hanmac> shevy: http://energy.gov/articles/zombie-replicants-outperform-living << they invented the T-Virus ... we are all doomed :P
Morkel_ has joined #ruby
motto has quit [Ping timeout: 246 seconds]
tommyvyo has quit [Quit:]
workmad3 has quit [Ping timeout: 255 seconds]
mockra has quit [Ping timeout: 252 seconds]
Morkel has quit [Ping timeout: 252 seconds]
Morkel_ is now known as Morkel
znode has joined #ruby
twoism has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
arya has quit [Ping timeout: 248 seconds]
awarner has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
the_mentat has joined #ruby
MartinCleaver has joined #ruby
twshelton has joined #ruby
arya has joined #ruby
m8 has joined #ruby
takeru has joined #ruby
znode has quit [Ping timeout: 252 seconds]
MartinCleaver has quit [Quit: MartinCleaver]
elico has joined #ruby
motto has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
ananthakumaran1 has quit [Quit: Leaving.]
takeru has quit [Ping timeout: 255 seconds]
m8 has quit [Ping timeout: 276 seconds]
bradhe has quit [Remote host closed the connection]
breakingthings has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
arya has quit [Ping timeout: 248 seconds]
ner0x has joined #ruby
Cyrus has quit [Quit: Cyrus.close()]
guns has quit [Quit: guns]
etcetera has joined #ruby
verysoftoiletppr has quit []
verysoftoiletppr has joined #ruby
kayloos has quit [Quit: kayloos]
bradhe has quit [Ping timeout: 244 seconds]
arya has joined #ruby
rohrer has quit [Quit: leaving]
`p has quit [Remote host closed the connection]
kayloos has joined #ruby
feedbackloop has quit [Read error: No route to host]
kevinfagan has quit [Quit: Leaving...]
feedbackloop has joined #ruby
skattyadz has joined #ruby
linusoleander has quit [Quit: linusoleander]
kofno has joined #ruby
slyv has joined #ruby
arturaz has joined #ruby
erichmenge has quit [Quit: Arrivederci!]
davidcelis has quit [Quit: K-Lined.]
adkron has joined #ruby
twshelton has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
joofsh has quit [Remote host closed the connection]
davidcelis has joined #ruby
MartinCleaver has quit [Quit: MartinCleaver]
drago777 has quit [Quit: Im out bitches]
erichmenge has joined #ruby
drago777 has joined #ruby
etcetera has quit []
workmad3 has joined #ruby
arya has joined #ruby
Qwak has joined #ruby
heliumsocket has joined #ruby
himsin has quit [Ping timeout: 260 seconds]
himsin has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
bradleyprice has joined #ruby
bradhe has joined #ruby
drago777 has quit [Remote host closed the connection]
etcetera has joined #ruby
bradhe has quit [Remote host closed the connection]
<shevy> Hanmac that article confused me
MartinCleaver has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
bradhe has joined #ruby
kayloos has quit [Quit: kayloos]
<shevy> Hanmac if I understood correctly, the cells are dead right? nothing is moving... but a zombie can move
thams has joined #ruby
heliumsocket has quit [Client Quit]
<shevy> ok I got a ruby related problem, I think... a moment before I try a few more things, then I will have to ask for help
Deltaoo has quit [Ping timeout: 255 seconds]
v0n has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
bradleyprice has quit [Remote host closed the connection]
drago777 has joined #ruby
timonv has joined #ruby
Morkel has quit [Quit: Morkel]
Morkel has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
Morkel has quit [Client Quit]
tealmage has joined #ruby
bradhe has joined #ruby
axtran has joined #ruby
mityaz has quit [Quit: See ya!]
peteyg has joined #ruby
thams has quit [Quit: thams]
generalissimo has quit [Ping timeout: 260 seconds]
<Amnesia> question, say I execute ls using backticks, how can I redirect the output?
emmanuelux has joined #ruby
dblack_ has joined #ruby
_bart has joined #ruby
max_ has joined #ruby
akhet has quit [Remote host closed the connection]
ablemike has left #ruby [#ruby]
eldariof has quit []
<shevy> Amnesia hmm something like ls = `ls 2>&1` or like that?
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> there is also $stderr and $stdout, I think
<Amnesia> isn't there anything similar as bash's "cmd > log" ?
adkron has quit [Ping timeout: 245 seconds]
mockra has joined #ruby
joofsh has joined #ruby
Guest6320 has joined #ruby
Guest6320 has quit [Client Quit]
<Amnesia> or should I set a fd called $stdout, and write to that?
<catphish> $stdout always exists
<catphish> afaik
<Amnesia> I know
<shevy> Amnesia that creates a file right?
pyrac has quit [Quit: pyrac]
<Amnesia> it redirects stdout to log yes
<shevy> as far as I know, in plain ruby, you can only use File.open and File.new
<shevy> you can use the redirection inside ``
<catphish> $stdout.reopen perhaps?
<Amnesia> I think it's just $stdout = File.open('log', 'w') ; system('ls')
<catphish> i would use reopen rather than redefining the variable
<catphish> it ensures any other links are updated
<apeiros_> Amnesia: see Process.spawn
<catphish> like STDOUT
ner0x has quit [Quit: Leaving]
<Amnesia> hm ok ty
<apeiros_> allows you to do whatever you want with a subprocess' IOs
TheFuzzball has joined #ruby
<Amnesia> apeiros_: I'll take a look, thanks
mockra has quit [Ping timeout: 260 seconds]
joofsh has quit [Remote host closed the connection]
h4mz1d has joined #ruby
techhelp has joined #ruby
horofox has joined #ruby
TheFuzzball has quit [Client Quit]
generalissimo has joined #ruby
generalissimo has quit [Remote host closed the connection]
v0n has joined #ruby
generalissimo has joined #ruby
kop has quit [Ping timeout: 260 seconds]
joofsh has joined #ruby
<rickmasta> Is Mechanize unable to click JS links?
<rickmasta> Even if it recognizes them when you have it list the links?
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
bradleyprice has joined #ruby
TheFuzzball has joined #ruby
nat_home has joined #ruby
reppard has joined #ruby
kop has joined #ruby
swex_ has joined #ruby
m8 has joined #ruby
znode has joined #ruby
thams has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<aedornm> if the link requires javascript, then no. Mechanize does not execute JS
motto has quit [Read error: Operation timed out]
Retistic has joined #ruby
bradleyprice has quit [Remote host closed the connection]
swex has quit [Ping timeout: 260 seconds]
schaerli has joined #ruby
Wildhoney has quit [Ping timeout: 255 seconds]
znode has quit [Ping timeout: 276 seconds]
schaerli has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
mduvall has quit []
tylersmith has joined #ruby
Stilo has joined #ruby
reppard has quit [Ping timeout: 252 seconds]
Retistic has quit [Quit: Retistic]
ner0x has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Retistic has joined #ruby
mduvall has joined #ruby
twshelton has joined #ruby
testingb0t has joined #ruby
newUser1234 has joined #ruby
brum has quit [Remote host closed the connection]
slainer68 has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
generali_ has joined #ruby
reppard has joined #ruby
havenwood has joined #ruby
awarner has quit [Remote host closed the connection]
postmodern has joined #ruby
gosshedd has quit [Ping timeout: 255 seconds]
generalissimo has quit [Ping timeout: 260 seconds]
Quebert has joined #ruby
thams has quit [Quit: thams]
heliumsocket has joined #ruby
meoblast001 is now known as emoblast001
onlinenickid has quit [Quit: Nettalk6 - www.ntalk.de]
Todd has joined #ruby
reppard has quit [Ping timeout: 256 seconds]
Umren has quit [Read error: Connection reset by peer]
eklarskov has quit [Quit: leaving]
Nisstyre has quit [Quit: Leaving]
chrisnicola has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
daxim has quit [Quit: pro quo, Agent Starling]
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
thufir_ has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
epicurus has joined #ruby
elico has quit [Ping timeout: 245 seconds]
<fir_ed> gem install is failing on all gems
<fir_ed> Loading command: install (LoadError)
<fir_ed> What should I do?
<fir_ed> Ruby 2.0.0-p0
apok has joined #ruby
<epicurus> check to see if rubygems works with that old version of ruby maybe?
<havenwood> fir_ed: What do you get for?: gem -v
br4ndon has joined #ruby
jpcamara has joined #ruby
verysoftoiletppr has quit []
<fir_ed> gem -v => 2.0.0
<fir_ed> epicurus, that's the newest version of ruby.
<epicurus> oh. lol
<epicurus> never mind.
<fir_ed> Maybe I compiled it wrong?
<fir_ed> lol.
<fir_ed> noobs should not compile.
arya has quit [Ping timeout: 248 seconds]
thufir_ has joined #ruby
<epicurus> i have a question of my own. trying to send an http post request with net/http , how do i encode the body? i have a couple of params, one of them has a single string value and the other takes an array of strings
elico has joined #ruby
<epicurus> do i use to_json for that?
<havenwood> fir_ed: Handy requirements and install script examples: https://github.com/postmodern/chruby/wiki/MRI
mduvall has quit []
testingb0t has quit [Quit: Leaving.]
thillux has quit [Remote host closed the connection]
arya has joined #ruby
<fir_ed> havenwood, looking it over
<fir_ed> thanks
<dblack_> hmmm, can't compile 2.0.0-p0 without "CC=clang"
F1skr has quit [Quit: WeeChat 0.4.0]
<dblack_> apple's compiler chain isn't letting me treat it as the black box i wish it were
<havenwood> fir_ed: I'd recommend chruby as well, just to simply set your environment variables and paths for any rubies you build.
justsee has quit [Quit: Leaving...]
Rheoli has joined #ruby
emergion has joined #ruby
sjk has left #ruby [#ruby]
codecop has quit [Quit: Išeinu]
elico has quit [Remote host closed the connection]
MrITR has quit [Ping timeout: 255 seconds]
huoxito has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
lazyPower has joined #ruby
jetblack has quit [Quit: leaving]
tealmage has quit [Remote host closed the connection]
rocket has joined #ruby
etcetera has quit []
<lazyPower> Has anyone experienced any issues with building ruby 1.9.3-p392 via ruby_build from rbenv? every time i try to compile a ruby it seems to just error out on implicit conversions.
<lazyPower> st.c:520:35: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32] from st.c
elkclone has joined #ruby
<postmodern> lazyPower, what system are you compiling on?
<postmodern> lazyPower, also have you tried compiling it manually to see if it's something ruby-build is doing?
twshelton has quit [Quit: Computer has gone to sleep.]
<lazyPower> OSX 10.8 with brew/LLVM GCC via xcode cmd line tools
emergion has quit [Ping timeout: 264 seconds]
Quebert has quit [Ping timeout: 260 seconds]
nat_home has quit [Quit: Leaving.]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
krawchyk has joined #ruby
<lazyPower> Thats a good idea, Fetching the source now to try a manual compile
emoblast001 is now known as meoblast001
Nisstyre has joined #ruby
mockra has joined #ruby
timols has joined #ruby
<shevy> fir_ed I have the same error but only on 2.0.0, on 1.9.3 not
<fir_ed> shevy, great to see we have the same error
<shevy> yeah. and it told me to stop wasting my time on 2.0.0 too, I'll try the next release :P
<shevy> they also killed syck :(
chichou has joined #ruby
jborica has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
chichou has quit [Client Quit]
mengu has quit [Ping timeout: 260 seconds]
<fir_ed> didnt they replace it with
<fir_ed> psych?
mockra has quit [Ping timeout: 256 seconds]
takeru has joined #ruby
chichou has joined #ruby
null_radx has joined #ruby
HecAtic has joined #ruby
<shevy> yeah
<shevy> bastards
vlad_starkov has joined #ruby
bradhe has quit [Remote host closed the connection]
mockra has joined #ruby
bradhe has joined #ruby
apok has quit [Quit: apok]
twshelton has joined #ruby
mockra has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
Deltaoo has joined #ruby
null_radx has left #ruby [#ruby]
blacksta_ has joined #ruby
takeru has quit [Ping timeout: 276 seconds]
<whitequark> shevy: correctness > speed
dblack_ has quit [Quit: dblack_]
<shevy> whitequark it's causing me extra work, just to be able to use 2.0.0
brum has joined #ruby
gregor3005 has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
maxmanders has quit [Ping timeout: 252 seconds]
hiall has quit [Quit: hiall]
<shevy> I need to use something else than yaml
bradhe has quit [Ping timeout: 252 seconds]
razibog has quit [Ping timeout: 252 seconds]
<shevy> but I dont know what :(
etcetera has joined #ruby
baroquebobcat has joined #ruby
<otherj> got it. needed to specify listen directive
maxmanders has joined #ruby
etcetera has quit [Client Quit]
timonv has quit [Remote host closed the connection]
brum has quit [Ping timeout: 246 seconds]
stringoO has joined #ruby
Vainoharhainen has joined #ruby
jacktrick has joined #ruby
<fir_ed> shevy,
<fir_ed> I got it to work
kristofers has quit []
stringoO has quit [Client Quit]
heliumsocket has joined #ruby
<shevy> fir_ed how?
Deltaoo has quit [Ping timeout: 244 seconds]
<fir_ed> shevy, install all the reqs here -> https://github.com/postmodern/chruby/wiki/MRI
<fir_ed> I used the ubuntu/deb
<fir_ed> wget the 2.0.0 package
stringoO has joined #ruby
stringoO has quit [Client Quit]
<fir_ed> ./configure,make, make install
<fir_ed> gems now work
earthquake has quit [Quit: earthquake]
earthquake has joined #ruby
<Animawish> i don't understand this behavior https://gist.github.com/AnimaWish/5026011
<Animawish> why doesn't it return [1,2][2,2]?
<whitequark> shevy: you should've migrated from syck long ago
<whitequark> syck is not a yaml parser.
<whitequark> it is simply not compliant with spec.
<fir_ed> Animawish,
<fir_ed> because you changed it to 2,2
<workmad3> Animawish: because x and y are both pointing to the same array
FondoDeBikini has quit [Ping timeout: 252 seconds]
<fir_ed> they both point to the same array object
<workmad3> Animawish: and you modified that array
<Animawish> how do I make y a copy of x instead of pointing to the same array?
timols has quit [Read error: Connection reset by peer]
<workmad3> y = x.dup
<workmad3> that'll only do a shallow copy though
stringoO has joined #ruby
Kuifje has quit [Ping timeout: 252 seconds]
MrZYX has joined #ruby
statarb3 has quit [Quit: Leaving]
<Animawish> hm. that's not working for my needs. i may be going about the problem wrong.
horofox has quit [Quit: horofox]
timonv has joined #ruby
arturaz has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
twshelton has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
baroquebobcat has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
trevortwining has joined #ruby
atal421_ has joined #ruby
tealmage has joined #ruby
atal421_ is now known as atal421
trevortwining has quit [Read error: Connection reset by peer]
jgrevich_ has joined #ruby
<atal421> so, ruby 2.0.0 is out. on the page in the Documentation section it says: "2.0.0 will be around 75% documented while 1.9.3 was about 60%"
Virunga has joined #ruby
mengu has joined #ruby
<atal421> not like i know even 5% of ruby, by this missing 40% has me curious. how can i find out what's in there?
newUser1234 has quit [Remote host closed the connection]
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
Opettaja has quit [Remote host closed the connection]
jborica has quit [Quit: jborica]
baroquebobcat has quit [Client Quit]
Elhu has quit [Quit: Computer has gone to sleep.]
techhelp has quit [Quit: This computer has gone to sleep]
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
<atal421> anyone know how i can start digging around the undocumented parts of ruby
<v0n> atal421: pry
nwertman has quit [Ping timeout: 245 seconds]
<havenwood> +1 Pry
<havenwood> atal421: Or review the code on Githubs: https://github.com/ruby/ruby
<atal421> v0n: not sure how you mean? pry, console, irb, none of those will actually show me anything new, will they? they're just a way to goof around … i mean, within the ruby/github repo, how do i find what's undocumented?
bonhoeffer has joined #ruby
<havenwood> atal421: Pry is very powerful.
<havenwood> atal421: In Pry, type: help
<atal421> havenwood: will do!
<bonhoeffer> basic one: https://gist.github.com/tbbooher/5026092 <-- how do i run a system command on a file that results from Dir?
pettsson has quit [Remote host closed the connection]
breakingthings has left #ruby [#ruby]
Deltaoo has joined #ruby
breakingthings has joined #ruby
<havenwood> atal421: E.g., to see the C implementation: show-method Array#sort
krawchyk has quit [Remote host closed the connection]
<shevy> bonhoeffer you can use #{} inside ``
<bonhoeffer> nice!
<havenwood> atal421: Oh, install pry-doc: gem install pry-doc
<aedornm> huh, they updated the pickaxe book for 2.0
<atal421> sweet
<workmad3> aedornm: not surprising, they updated for 1.9 too (and 1.8)
<atal421> great, thanks, i'll go dig around
otherj has quit []
<aedornm> Surprising? No, but refreshing it was so quick.
<workmad3> :)
babykosh has joined #ruby
subbyyy has joined #ruby
blacktulip has quit [Remote host closed the connection]
FondoDeBikini has joined #ruby
monkegjinni has quit [Remote host closed the connection]
Jebron has quit []
Es0teric has joined #ruby
CraHan is now known as CraHan|out
newUser1234 has joined #ruby
bradhe has joined #ruby
horofox has joined #ruby
cyong has joined #ruby
staafl has joined #ruby
etcetera has joined #ruby
<breakingthings> So… XCode decided to spontaneously eradicate command line tools and it completely decimated my gems, rbenv...
<breakingthings> thanks, xcode.
<breakingthings> thxcode.
<postmodern> thanks ants
<postmodern> thants
<postmodern> breakingthings, first i have heard of that!
<whitequark> breakingthings: so, someone breaked things and you're mad at them now? that's quite hypocritical
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<whitequark> :D
<whitequark> *broke
<breakingthings> whitequark when I break things, it's predictable
averiso_ has quit [Ping timeout: 252 seconds]
AndChat| has joined #ruby
<breakingthings> I mean, I broke them myself
<breakingthings> so I know that it's broken
<breakingthings> but it's absolutely derogatory to say that others are allowed to break things
<breakingthings> how dare you
<whitequark> haha
<whitequark> excellent
<breakingthings> also, hi-five postmodern.
<breakingthings> thosmodern.
alanp_ has quit [Read error: Connection reset by peer]
banjara has joined #ruby
carloslopes has joined #ruby
averiso has joined #ruby
alanp has joined #ruby
etcetera has quit [Client Quit]
bradhe has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 260 seconds]
carloslopes has quit [Remote host closed the connection]
`brendan has quit [Ping timeout: 246 seconds]
monkegjinni has joined #ruby
newUser1234 has quit [Remote host closed the connection]
mlr has quit [Ping timeout: 256 seconds]
newUser1234 has joined #ruby
banjara has quit [Client Quit]
AltGrendel has joined #ruby
kirun has quit [Quit: Client exiting]
etcetera has joined #ruby
joofsh has quit [Remote host closed the connection]
Wildhoney has joined #ruby
zoonfafer has joined #ruby
kaen has joined #ruby
davetherat has quit [Remote host closed the connection]
BeLucid has joined #ruby
davetherat has joined #ruby
newUser1234 has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 245 seconds]
znode has joined #ruby
icole has quit [Remote host closed the connection]
catphish has quit [Quit: Leaving]
toekutr has joined #ruby
gabrielrotbart has joined #ruby
parcs has joined #ruby
vlad_starkov has joined #ruby
<breakingthings> Ok, seriously, wat.
matchaw_ has quit [Ping timeout: 260 seconds]
<breakingthings> Rbenv and ruby-build are absolutely sloshed right now.
matchaw has joined #ruby
znode has quit [Ping timeout: 260 seconds]
<breakingthings> ruby-build is failing, can't install ruby, wat.
<breakingthings> you had one job, ruby-build. one job.
marcosdsanchez has joined #ruby
Jamie1505 has joined #ruby
Jamie1505 has left #ruby [#ruby]
MartinCleaver has quit [Quit: MartinCleaver]
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
<whitequark> breakingthings: ./configure --prefix=/opt/ruby-2.0.0-p1; make; sudo make install
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
rfunky has joined #ruby
jeekl has quit [Ping timeout: 252 seconds]
kaen has quit [Ping timeout: 256 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
faoiseamh has joined #ruby
vlad_starkov has quit [Ping timeout: 244 seconds]
brum has joined #ruby
rfunky has quit [Quit: Quitte]
stringoO has quit [Quit: stringoO]
hiroyuki has quit [Ping timeout: 245 seconds]
rfunky has joined #ruby
FondoDeBikini has quit [Remote host closed the connection]
FondoDeBikini has joined #ruby
<faoiseamh> I want to encode hashes in ruby that may have values in various encodings (utf-8, ascii-8bit, etc) as well as perhaps some binary data and pass it over http to a php api where I want to decode it. Binary data aside, I'm having trouble with json because some characters can't be converted to utf-8 and php's json_decode fails as a result. Any suggestions for alternative encoding schemes?
Es0teric has quit [Read error: Connection reset by peer]
<faoiseamh> the data I've run into an issue with so far is the response from an http get of google.com
brum has quit [Ping timeout: 252 seconds]
Vainoharhainen has quit [Quit: Leaving...]
averiso has quit [Quit: Computer has gone to sleep.]
<marcosdsanchez> Can any math lover help me with this please? http://stackoverflow.com/questions/8197857/ruby-combinatorics :)
eka has quit [Quit: Computer has gone to sleep.]
rfunky has quit [Quit: Quitte]
generalissimo has joined #ruby
marr123 has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 276 seconds]
general__ has joined #ruby
znode has joined #ruby
generali_ has quit [Ping timeout: 260 seconds]
adkron has joined #ruby
nari has joined #ruby
etcetera has quit []
horofox has quit [Read error: Connection timed out]
kaen has joined #ruby
<parcs> does ruby have green threads?
hashmal has joined #ruby
m8 has quit [Quit: Sto andando via]
horofox has joined #ruby
marr has joined #ruby
kaen has quit [Max SendQ exceeded]
generalissimo has quit [Ping timeout: 260 seconds]
<breakingthings> yes.
tealmage has quit [Remote host closed the connection]
ferdev is now known as ferdev|away
kaen has joined #ruby
msuszczy has joined #ruby
<parcs> cool
<havenwood> parcs: Ruby 1.9 and 2.0 use OS-managed threads. 1.8 used green threads.
mpfundstein has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
<havenwood> afaik
MartinCleaver has quit [Quit: MartinCleaver]
tish has joined #ruby
thufir_ has quit [Quit: Leaving.]
arya has quit [Ping timeout: 260 seconds]
slyv has quit [Quit: Computer has gone to sleep.]
brian___ has quit [Quit: brian___]
Choobie has quit [Quit: End]
baroquebobcat has quit [Client Quit]
mfcabrera has left #ruby ["Leaving"]
mfcabrera has joined #ruby
havenwood has quit [Remote host closed the connection]
MartinCleaver has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
icole has joined #ruby
MrITR has joined #ruby
thams has joined #ruby
bradhe has joined #ruby
marcosdsanchez has quit [Quit: Page closed]
marcosdsanchez has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
<breakingthings> Oh, I figured it out.
thams has quit [Client Quit]
<breakingthings> XCode update removed gcc
tealmage has joined #ruby
generalissimo has joined #ruby
atal421_ has joined #ruby
kofno has quit [Remote host closed the connection]
* whitequark would just love to completely remove gcc from his debian install
atal421 has quit [Read error: Connection reset by peer]
atal421_ is now known as atal421
chichou has quit [Remote host closed the connection]
general__ has quit [Ping timeout: 245 seconds]
babykosh has quit [Quit: babykosh]
tenmilestereo has quit [Quit: Leaving]
parcs has left #ruby ["WeeChat 0.3.8"]
znode_ has joined #ruby
etcetera has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<breakingthings> ok i lied i didn't figure it out.
<breakingthings> note to self, stop jumping gun.
MartinCleaver has quit [Quit: MartinCleaver]
znode has quit [Ping timeout: 264 seconds]
etcetera has quit [Client Quit]
etcetera has joined #ruby
MartinCleaver has joined #ruby
MartinCleaver has quit [Changing host]
MartinCleaver has joined #ruby
ferdev|away is now known as ferdev
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
tylersmith has quit [Quit: tylersmith]
tcstar has joined #ruby
thams has joined #ruby
arya has joined #ruby
<autumn> breakingthings: gun the jump instead
thams has quit [Client Quit]
gregor3005 has left #ruby [#ruby]
havenwood has joined #ruby
zoonfafer has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 260 seconds]
Monie has joined #ruby
thams has joined #ruby
thams has quit [Client Quit]
znode_ has quit [Remote host closed the connection]
mduvall has joined #ruby
zul_ has joined #ruby