apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p385: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
bean is now known as beanm
beanm is now known as bean
uris has quit [Ping timeout: 252 seconds]
bean has quit [Read error: Connection reset by peer]
chrisnicola has quit [Client Quit]
<Hanmac_> jkeith 1.9.3 FileUtils works for me if i use the line i posted to you
vlad_starkov has joined #ruby
<jkeith> FileUtils.mkdir(sources, :mode=>1777) => d-wxrwS--t 2 jkeith jkeith 4.0K Feb 14 17:58 sources for me
lethjakman has quit [Ping timeout: 255 seconds]
<jkeith> ooh
Vulix has joined #ruby
<jkeith> hold on, missed the octal identifier
anonymuse has quit [Quit: Leaving...]
<jkeith> Hanmac, works for me too
<jkeith> thanks Hanmac !
miskander has quit [Read error: Connection reset by peer]
miskander has joined #ruby
<Vulix> Question: Pretty new to Ruby, I know lower level languages and wanted to adopt a higher level one for some quick hacks when I need them. Is there any particular reason Ruby is better than Python (they seem fairly the same, save syntax), and is this an open source project or is it completely run by Matz?
<jkeith> Vulix, what language are you coming from?
danieldocki has quit [Quit: Leaving...]
QKO_ has joined #ruby
<Vulix> Java and C++
yshh has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
dave_of_clan_gua has joined #ruby
<jkeith> Vulix, I come from C and Java and personally hate python
end_guy has joined #ruby
Evixion has joined #ruby
<jkeith> Vulix, it's not that it's a bad language, just with my background I hate it
fir_ed has joined #ruby
dave_of_clan_gua has left #ruby [#ruby]
<jkeith> Vulix, ruby made more sense to me, but I got into ruby a LONG time ago
<jkeith> Vulix, although it still makes more sense to me
<shevy> Vulix did you read matz old interview?
<Vulix> Nope
QKO has quit [Ping timeout: 276 seconds]
<shevy> Vulix it is here, http://www.artima.com/intv/rubyP.html I read it back in 2005 and I gave ruby a try before python
chrishunt has quit [Quit: zZzZzZ...]
AntiTyping has joined #ruby
AntiTyping has quit [Client Quit]
monkegjinni has quit [Remote host closed the connection]
<Vulix> I feel Python has better libraries overall than Ruby, it's just really I hate writing it because I feel like I'm typing an essay and not programming
miskander has quit [Quit: miskander]
Kuifje has quit [Ping timeout: 256 seconds]
<shevy> typing an essay where?
<jkeith> Vulix, then it sounds like you should give ruby a try and decide for yourself
ngoldman has joined #ruby
fteem has quit [Ping timeout: 240 seconds]
<shevy> the main difference between ruby and python is the philosophy, matz explains it in that interview
<jkeith> shevy, I don't know about that. Ruby EVERYTHING is an object. Python, everything is an object except when it isn't
<jkeith> I don't know about 3.x though
tommyvyo has quit [Read error: Connection reset by peer]
<tjbiddle> shevy: Nil is an object as well.
<Vulix> the other issue with Python is that 3.x adoption seems to be taking way too long
<tjbiddle> Just an object that represents nothing.
vlad_starkov has quit [Ping timeout: 248 seconds]
<Vulix> there still isn't a stable Django release that supports 3.x
chico_chicote has joined #ruby
<Vulix> afaik
uris has joined #ruby
tommyvyo has joined #ruby
<jkeith> Vulix, so instead of learning a whole new language, you could help the porting effort
jlast has quit [Remote host closed the connection]
martin_work has quit [Ping timeout: 248 seconds]
martin_work has joined #ruby
<Vulix> not really interested in contributing that way unfortunately. I will be writing my own data mining libraries and open sourcing them though
<Vulix> similar to WEKA for Java
Criztian has quit [Remote host closed the connection]
<Matip> do you have list comprehension in ruby? I think it's another big difference
<Matip> but not sure, at least I never seen them
carlyle has joined #ruby
chrishough_ has joined #ruby
<shevy> jkeith matz explains it on this page :D
ewokchewy has quit [Ping timeout: 245 seconds]
<banisterfiend> Matip: no we dont
chrishough has quit [Ping timeout: 252 seconds]
chrishough_ is now known as chrishough
BadLarry has joined #ruby
<banisterfiend> Matip: our interators are very powerful though, so we dont really need them
<shevy> ruby and python have a somewhat similar syntax, and they fill a very similar, overlapping niche in the ecosystem, but the philosophy is really the biggest difference in everything, it's little things like foo.bla() vs. foo:bla
DrCode has quit [Remote host closed the connection]
<shevy> oops
<shevy> foo.bla
<julian-delphiki> you can do list comprehensions, you just have to write it yourself
TheFuzzball has quit [Quit: Computer has gone to sleep.]
carlyle has quit [Remote host closed the connection]
<Vulix> whats this about Ruby being slower than Python? Negligble/
<Vulix> ?
<julian-delphiki> both are interpreted
<julian-delphiki> so
<julian-delphiki> i'd say negligible
<julian-delphiki> well, i guess python compiles to bytecode
<julian-delphiki> so that might make it a bit faster.
<banisterfiend> julian-delphiki: ruby does too
Virunga_ has joined #ruby
wr has quit [Quit: Leaving]
<julian-delphiki> oh right.
Joel__ has joined #ruby
<Matip> what!? I didn't know that
<Matip> so you can precompile it?
Virunga has quit [Read error: Connection reset by peer]
<julian-delphiki> YARVno, but it YARV became the default interpreter in 1.9
<julian-delphiki> wow, i cant type
<julian-delphiki> YARV became default interpreter in 1.9
SegFaultAX has quit [Ping timeout: 256 seconds]
swills has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Joel has quit [Ping timeout: 256 seconds]
miskander has joined #ruby
nari has quit [Ping timeout: 256 seconds]
Joel__ is now known as Joel
ewokchewy has joined #ruby
billiam has quit [Quit: Leaving]
mengu has quit [Read error: Connection reset by peer]
Joel is now known as Guest31439
Bosma has quit [Ping timeout: 276 seconds]
dustint has joined #ruby
mengu has joined #ruby
SegFaultAX has joined #ruby
<Matip> rbx?
<Matip> it's not official it seems
Bosma has joined #ruby
tomzx_mac has joined #ruby
danieldocki has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
BadLarry has quit [Ping timeout: 256 seconds]
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
DrCode has joined #ruby
predator217 has joined #ruby
cyro has joined #ruby
palyboy has joined #ruby
robbyoconnor has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
<steven___> i have an array and i want to iterate over the first K elements of it, or over the entire thing if there are less than K elements, how should i do this?
ilyam has joined #ruby
predator117 has quit [Ping timeout: 248 seconds]
lancepantz is now known as lancepantz_
BadLarry has joined #ruby
steven___ has quit [Quit: Lost terminal]
lancepantz_ is now known as lancepantz
khimera has joined #ruby
dku has quit [Quit: dku]
heftig has quit [Quit: leaving]
d2dchat has quit [Remote host closed the connection]
<cyro> steven___: I would do something like: array[0..k].each do |item| end
<cyro> sorry k-1
EvanR has quit [Ping timeout: 248 seconds]
<cyro> or 0...k
khimera has quit [Client Quit]
Konboi has joined #ruby
danielpcox has quit [Ping timeout: 256 seconds]
<julian-delphiki> cyro, he quit a few mins back
jimeh has quit [Quit: Computer has gone to sleep.]
otters has quit [Ping timeout: 240 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
jlast has joined #ruby
heftig has joined #ruby
heyitsdave has joined #ruby
<cyro> julian-delphiki: oops
maxmanders has joined #ruby
rupee has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
ndboost has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Virunga_ has quit [Remote host closed the connection]
cyro has quit [Quit: Leaving.]
BRMatt has quit [Quit: Leaving]
maxmanders has quit [Ping timeout: 248 seconds]
jlast_ has joined #ruby
jlast has quit [Read error: Connection reset by peer]
etcetera has joined #ruby
tjbiddle has quit [Ping timeout: 276 seconds]
Yakko has joined #ruby
icole has quit [Remote host closed the connection]
toekutr has quit [Remote host closed the connection]
TheRealPygo has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
yshh has joined #ruby
chrisnicola has joined #ruby
segv- has quit [Quit: segv-]
mengu has quit [Quit: Leaving]
freakazoid0223 has quit [Quit: Leaving]
emmanuelux has quit [Quit: emmanuelux]
love_color_text has quit [Remote host closed the connection]
TheRealPygo is now known as pygospa
danielpcox has joined #ruby
elaptics is now known as elaptics`away
QKO has joined #ruby
QKO_ has quit [Ping timeout: 255 seconds]
solidoodlesuppor has quit [Remote host closed the connection]
Gate has quit [Read error: Operation timed out]
Gate has joined #ruby
SCommette has joined #ruby
chrisnicola has quit [Client Quit]
jgarvey has quit [Quit: Leaving]
caleb_io has joined #ruby
danielpcox has quit [Ping timeout: 252 seconds]
chrisnicola has joined #ruby
stormetrooper has quit [Quit: Leaving]
ngoldman has quit [Remote host closed the connection]
embs_ is now known as embs
F1skr has quit [Quit: WeeChat 0.4.0]
marr has quit [Ping timeout: 240 seconds]
chrisnicola has quit [Client Quit]
chrisnicola has joined #ruby
dustint has quit [Remote host closed the connection]
cousine has joined #ruby
kenneth has quit [Ping timeout: 260 seconds]
cousine has quit [Remote host closed the connection]
kenneth has joined #ruby
taoru has joined #ruby
moos3 has joined #ruby
chrishunt has joined #ruby
<IcyDragon> does anyone here have a ruby uleb128 encoding thrown down anywhere..?
<IcyDragon> I'm trying to get variable length values
miskander has quit [Quit: miskander]
Konboi_ has joined #ruby
Gate has quit [Remote host closed the connection]
poikon_ has joined #ruby
poikon__ has joined #ruby
poikon_ has quit [Read error: Connection reset by peer]
moos3 has quit [Quit: Computer has gone to sleep.]
Konboi has quit [Ping timeout: 255 seconds]
aantix has quit [Ping timeout: 248 seconds]
mcatch has joined #ruby
pygospa has quit [Disconnected by services]
jarjar_prime has quit [Quit: Sleep time.]
pygospa has joined #ruby
greenarrow has quit [Ping timeout: 252 seconds]
nari has joined #ruby
Konboi_ has quit [Read error: Connection reset by peer]
greenarrow has joined #ruby
lancepantz is now known as lancepantz_
Konboi has joined #ruby
Nuck has quit [Ping timeout: 245 seconds]
Gate has joined #ruby
Gate has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
lancepantz_ is now known as lancepantz
mcatch has quit [Quit: Leaving]
Nuck has joined #ruby
lethjakman has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
skattyadz has quit [Quit: skattyadz]
inokenty has quit [Quit: Leaving.]
chrisnicola has quit [Quit: This computer has gone to sleep]
ndboost has quit [Remote host closed the connection]
billiam has joined #ruby
chrisnicola has joined #ruby
etcetera has quit []
adeponte has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
etcetera has joined #ruby
meoblast001 has joined #ruby
miskander has joined #ruby
pasties has quit [Ping timeout: 255 seconds]
pskosinski has quit [Quit: Red Eclipse - Game where being from Pakistan is bad: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
d2dchat has joined #ruby
nilobject has quit [Quit: nilobject]
yacks has joined #ruby
joofsh has joined #ruby
artOfWar has quit [Remote host closed the connection]
pdamer has joined #ruby
freakazoid0223 has joined #ruby
slainer68 has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
subbyyy has joined #ruby
banjara1 has quit [Quit: Leaving.]
hmarr has quit [Quit: Textual IRC Client: www.textualapp.com]
ner0x has joined #ruby
etcetera has quit []
poikon__ has quit [Remote host closed the connection]
lagging_troll has joined #ruby
etcetera has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
bradhe has quit [Ping timeout: 260 seconds]
heyitsdave has quit [Ping timeout: 260 seconds]
miskander has quit [Quit: miskander]
etcetera has quit []
arya_ has quit [Ping timeout: 244 seconds]
_nitti has joined #ruby
bttf has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
QKO_ has joined #ruby
etcetera has joined #ruby
lancepantz is now known as lancepantz_
v0n has joined #ruby
QKO has quit [Ping timeout: 245 seconds]
_nitti has quit [Remote host closed the connection]
lancepantz_ is now known as lancepantz
bubblehead has joined #ruby
apok has quit [Quit: apok]
etcetera has quit [Client Quit]
arya_ has joined #ruby
ChikuLinu__ has joined #ruby
kenneth_ has joined #ruby
mlr has quit [Ping timeout: 255 seconds]
kenneth has quit [Ping timeout: 256 seconds]
kenneth_ is now known as kenneth
Chiku|dc has quit [Ping timeout: 244 seconds]
twoism has quit [Remote host closed the connection]
chrishunt has quit [Quit: zZzZzZ...]
Voodoofish430 has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
arya_ has quit [Ping timeout: 276 seconds]
inao has joined #ruby
sduckett has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
caleb_io has quit [Quit: caleb_io]
mensvaga has joined #ruby
chrishough has quit [Quit: chrishough]
<mensvaga> What's the correct way to open something with NONBLOCK ?
chico_chicote has quit [Remote host closed the connection]
<mensvaga> I can't see anywhere in the docs how to specify file mode open stuff like this:
a_a_g has joined #ruby
<mensvaga> WRONLY | NONBLOCK
<mensvaga> but I come from a "c" sort of background.
arya_ has joined #ruby
Qwak has joined #ruby
jromine has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
<mensvaga> The docs say "after O_NONBLOCK is set for the underlying file descriptor"
<mensvaga> how do I do that?!
mikepack has joined #ruby
kofno has quit [Remote host closed the connection]
josh_keith has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
jkeith has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
BrownieElf has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 248 seconds]
gosshedd has quit [Ping timeout: 252 seconds]
dayepa_ has quit [Read error: Connection reset by peer]
dayepa_ has joined #ruby
BrownieElf has quit []
robbyoconnor has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
lancepantz is now known as lancepantz_
chrishough has joined #ruby
tcstar has joined #ruby
fir_ed has quit [Ping timeout: 256 seconds]
danneu has quit [Ping timeout: 255 seconds]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
sn0wb1rd has joined #ruby
josh_keith has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
jkeith has joined #ruby
nomenkun has joined #ruby
bradleyprice has joined #ruby
slainer68 has quit [Remote host closed the connection]
parzorep has joined #ruby
vierja has quit [Ping timeout: 244 seconds]
<parzorep> I have a very basic question here. I have a text file I am trying to read in the format of "value1 value2" but I am unsure how to assign each value to a variable
vierja has joined #ruby
<parzorep> I tried something like File.open("sales.dat", "r") do |file|
<parzorep> file.gets.split( ).each { |k, v| puts "#{k} equals #{v}"}
nomenkun has quit [Ping timeout: 248 seconds]
Marco has joined #ruby
chrisnicola has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
tommyvyo has joined #ruby
etcetera has joined #ruby
superawesomedan has joined #ruby
adeponte has joined #ruby
agarie has joined #ruby
Norrin has joined #ruby
CreativeEmbassy has joined #ruby
a_a_g has quit [Quit: Leaving.]
beilabs has quit [Quit: Leaving]
adkron_ has joined #ruby
adkron has joined #ruby
superawesomedan has quit [Ping timeout: 240 seconds]
QKO has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
adeponte has quit [Ping timeout: 252 seconds]
QKO_ has quit [Ping timeout: 256 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
<Vulix> If I am looking to do heavy string manipulation and some mmath stuff, is it appropriate to choose Ruby over Py
v0n has quit [Ping timeout: 260 seconds]
v0n has joined #ruby
heftig has quit [Ping timeout: 245 seconds]
emocakes has quit [Quit: emocakes]
ilyam has left #ruby [#ruby]
bradhe has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
v0n has quit [Ping timeout: 264 seconds]
nat_home has joined #ruby
chrisnicola has joined #ruby
jpfuentes2 has joined #ruby
dallasm has joined #ruby
Marco has quit [Ping timeout: 240 seconds]
toekutr has joined #ruby
oh2lre has quit [Ping timeout: 245 seconds]
a_a_g1 has joined #ruby
ddd has quit [Ping timeout: 276 seconds]
bradhe has quit [Ping timeout: 244 seconds]
etcetera has quit []
<Gate> Vulix: Do you know about mutable vs. immutable strings?
<Gate> Ruby has mutable strings, which can be directly manipulated. Python has immutable strings. Doing string manipulation tasks in python will therefore mean significant churn in RAM. (if you add two strings together, you get a third string in memory)
<Gate> You can get past that issue with a little planning and forethought, however.
brianpWins has quit [Quit: brianpWins]
mercwith1mouth has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
ahokaomaeha has quit [Ping timeout: 264 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
oh2lre has joined #ruby
nga4 has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
Norrin has left #ruby [#ruby]
Qwak has quit [Ping timeout: 256 seconds]
sayan has joined #ruby
v0n has joined #ruby
nshbrown has joined #ruby
nshbrown has quit [Changing host]
nshbrown has joined #ruby
nshbrown has quit [Client Quit]
joofsh has quit [Remote host closed the connection]
tjbiddle has joined #ruby
cobragoat has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
ner0x has joined #ruby
bricker has quit [Ping timeout: 252 seconds]
twoism has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Remote host closed the connection]
anderson has quit [Ping timeout: 260 seconds]
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
sayan has quit [Read error: Connection reset by peer]
anderson has joined #ruby
lethjakman has quit [Ping timeout: 256 seconds]
mensvaga has quit [Quit: Leaving.]
danneu has joined #ruby
banisterfiend has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby
cparen has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
chrisnicola has joined #ruby
mercwith1mouth has quit [Ping timeout: 255 seconds]
huoxito has quit [Read error: Connection reset by peer]
Ohga has joined #ruby
pkircher has joined #ruby
<Ohga> hi. is there a good answer to the question of why the core and std-lib documentations are separated at ruby-doc.org?
huoxito has joined #ruby
miskander has joined #ruby
martin_work has quit [Quit: martin_work]
tjbiddle has quit [Quit: tjbiddle]
arya_ has quit [Ping timeout: 256 seconds]
mockra has quit [Remote host closed the connection]
arya_ has joined #ruby
a_a_g1 has quit [Quit: Leaving.]
miskander has quit [Client Quit]
<Ohga> anyway, I'm having problem finding documentation of what formats the string for Time.parse can have..
miskander has joined #ruby
chendo_ has quit [Ping timeout: 252 seconds]
stormetrooper has joined #ruby
stormetrooper has quit [Client Quit]
chendo_ has joined #ruby
inao_ has joined #ruby
recycle has joined #ruby
<nat_home> is it possible to define more than just data to add text bloc like in http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__ ?
IcyDragon has quit [Quit: Space~~~]
<nat_home> I'd like to define multiple file in there
cyong has joined #ruby
inao has quit [Ping timeout: 256 seconds]
chimmy has joined #ruby
QKO_ has joined #ruby
ebobby has quit [Quit: Lost terminal]
miskander has quit [Quit: miskander]
QKO has quit [Ping timeout: 252 seconds]
chendo_ has quit [Ping timeout: 252 seconds]
mmitchell has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
bigkm has joined #ruby
chendo_ has joined #ruby
bubblehead has quit [Remote host closed the connection]
<Vulix> is matz the only guy dev'ing for ruby or does it have an active open source dev community?
d2dchat has quit [Remote host closed the connection]
biff_tannen has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
forced_request has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
PanPan has joined #ruby
joofsh has joined #ruby
mmitchell has quit [Read error: Connection reset by peer]
miskander has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
BaxZzZz has quit [Read error: Connection reset by peer]
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
otherj has joined #ruby
mmitchell has joined #ruby
ewokchewy has quit [Ping timeout: 252 seconds]
cobragoat has joined #ruby
divout has joined #ruby
miskander has quit [Client Quit]
neurotech has joined #ruby
Michael__ has joined #ruby
cHarNe2 has joined #ruby
lancepantz_ is now known as lancepantz
arya_ has quit []
arya_ has joined #ruby
lancepantz is now known as lancepantz_
Spooner has quit [Remote host closed the connection]
chimmy has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
toekutr has joined #ruby
<Vulix> is matz the only guy dev'ing for ruby or does it have an active open source dev community?
rakaar has joined #ruby
bigkm has joined #ruby
lancepantz_ is now known as lancepantz
chrisnicola has quit [Quit: This computer has gone to sleep]
lancepantz is now known as lancepantz_
<cHarNe2> Vulix: http://karrisaarinen.com/rubyc/ google gave me this
<Vulix> Ty
<Vulix> also, how is the encoding support for multi-lingual applications?
pkrnj has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<cHarNe2> guys i need some help, im parsing a file, that uses string.match for regexp. but it throws an exeption when it get a bad utf-8 char. (EN DASH)
adkron has quit [Ping timeout: 240 seconds]
<cHarNe2> Vulix: it works most of the time i think, im having some trouble with that just now :P
adkron_ has quit [Ping timeout: 240 seconds]
io_syl has joined #ruby
parzorep_ has joined #ruby
Phibs has joined #ruby
<Phibs> is rubygem-fastthread only really needed in ruby 1.8.x ?
freakazoid0223 has quit [Ping timeout: 248 seconds]
parzorep has quit [Ping timeout: 248 seconds]
parzorep_ is now known as parzorep
chrisnicola has joined #ruby
<Vulix> er damn
<Vulix> i do a lot of multi-lingual text stuff
adkron has joined #ruby
himsin has quit [Ping timeout: 248 seconds]
xemu has quit [Read error: Connection reset by peer]
adkron_ has joined #ruby
biff_tannen has quit [Ping timeout: 248 seconds]
xemu has joined #ruby
<Phibs> anyone on the fastthread gem question ?
Dwarf has quit [Ping timeout: 256 seconds]
Michael__ has quit [Remote host closed the connection]
ilyam has joined #ruby
jpfuentes2 has joined #ruby
ryanf has quit [Quit: leaving]
Norrin has joined #ruby
Norrin has quit [Changing host]
Norrin has joined #ruby
biff_tannen has joined #ruby
miskander has joined #ruby
QKO has joined #ruby
oh2lre has quit [Ping timeout: 245 seconds]
oh2lre has joined #ruby
Hien has joined #ruby
QKO_ has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
bigkm has quit [Quit: Computer has gone to sleep.]
bean has joined #ruby
joofsh has quit [Remote host closed the connection]
shorts has quit [Quit: shorts]
ilyam has quit [Quit: ilyam]
otters has joined #ruby
kofno has quit [Remote host closed the connection]
16WAAFXW9 has joined #ruby
mercwithamouth has joined #ruby
shorts has joined #ruby
kofno has joined #ruby
ilyam has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquirikou has joined #ruby
mockra has joined #ruby
mockra has quit [Ping timeout: 244 seconds]
tealmage has joined #ruby
arya_ has quit [Ping timeout: 255 seconds]
chrisnicola has quit [Quit: This computer has gone to sleep]
danieldocki has quit [Quit: Leaving...]
<Phibs> is rubygem-fastthread only really needed in ruby 1.8.x ?
pdamer has quit [Quit: pdamer]
otters has quit [Quit: WeeChat 0.3.9.2]
otters has joined #ruby
skattyadz has joined #ruby
tomzx_mac has quit [Ping timeout: 260 seconds]
arya_ has joined #ruby
jonahR has joined #ruby
beilabs has joined #ruby
biff_tannen has quit [Ping timeout: 244 seconds]
sandGorgon has joined #ruby
Vert has quit [Remote host closed the connection]
_veer has joined #ruby
heftig has joined #ruby
miskander has quit [Quit: miskander]
arya_ has quit [Read error: Connection reset by peer]
Ohga has left #ruby [#ruby]
arya_ has joined #ruby
biff_tannen has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
bttf has quit [Quit: Lost terminal]
PanPan has quit [Read error: Connection reset by peer]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
PanPan has joined #ruby
Norrin has quit [Ping timeout: 264 seconds]
toekutr has quit [Remote host closed the connection]
biff_tannen has quit [Ping timeout: 245 seconds]
ahokaomaeha has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
adkron has quit [Ping timeout: 255 seconds]
adkron has joined #ruby
adkron_ has joined #ruby
miskander has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
parzorep has quit [Quit: parzorep]
chrisnicola has joined #ruby
bigmac has quit [Quit: Leaving]
arya_ has quit [Ping timeout: 248 seconds]
parzorep has joined #ruby
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
Norrin has joined #ruby
arya has joined #ruby
<Vulix> how do you increase stack limit size? what is ulimit? I cant really find a clear explanation
Norrin has quit [Changing host]
Norrin has joined #ruby
<Vulix> is it the same as -Xmx in Java
arya has quit [Ping timeout: 248 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
<Phibs> ulimit and /etc/security/limits.conf
<Phibs> not really restricted by ruby itself that I Know of
skattyadz has quit [Quit: skattyadz]
<Vulix> ty
<Vulix> Im interested in trying out ruby for some text mining work
<Vulix> wondering how it will turn out
QKO_ has joined #ruby
one has joined #ruby
bradleyprice has quit [Remote host closed the connection]
<shevy> what is this error
dhruvasagar has quit [Ping timeout: 252 seconds]
ahokaomaeha has quit [Ping timeout: 245 seconds]
<shevy> require.rb:36:in `gem_original_require': no such file to load -- spec (LoadError)
chrisnicola has quit [Quit: This computer has gone to sleep]
mattbl has joined #ruby
QKO has quit [Ping timeout: 264 seconds]
sandGorgon has quit [Read error: Connection reset by peer]
sandGorgon has joined #ruby
dhruvasagar has joined #ruby
Orcris has joined #ruby
chrisnicola has joined #ruby
v0n has quit [Read error: Operation timed out]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
miskander has quit [Quit: miskander]
decoponio has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
L1 has joined #ruby
Orcris has quit [Remote host closed the connection]
L1 has quit [Remote host closed the connection]
arya has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
browndawg has joined #ruby
neurotech has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Billiam_ has joined #ruby
rakaar has quit [Ping timeout: 244 seconds]
mlr has joined #ruby
arya has quit [Read error: Connection reset by peer]
arya has joined #ruby
billiam has quit [Ping timeout: 248 seconds]
ahokaomaeha has joined #ruby
Michael__ has joined #ruby
Dwarf has joined #ruby
shorts has quit [Quit: shorts]
Mon_Ouie has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
banisterfiend has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
banisterfiend has joined #ruby
Michael__ has quit [Ping timeout: 248 seconds]
caleb_io has joined #ruby
bigmac has joined #ruby
yacks has quit [Quit: Leaving]
v0n has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
techlife has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
a_a_g has joined #ruby
LouisRoR has quit [Ping timeout: 248 seconds]
techlife has joined #ruby
ilyam has quit [Quit: ilyam]
jlast_ has quit [Remote host closed the connection]
mattbl has quit [Quit: This computer has gone to sleep]
tealmage has quit [Remote host closed the connection]
Targen has joined #ruby
Chintan has joined #ruby
havenwood has joined #ruby
fuzai has joined #ruby
<fuzai> is there a way to convert a boolean into a string?
etcetera has quit []
arya has quit [Ping timeout: 252 seconds]
<nat_home> fuzai: true.to_s => "true"
<fuzai> hmmmm
forlong has joined #ruby
<nat_home> true.to_s.class => String
[[johnonymous]] has joined #ruby
arya has joined #ruby
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
a_a_g has quit [Ping timeout: 252 seconds]
<epitron> String.to_s.class => String
<epitron> it's a fixed point!
arya has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
naquad has quit [Quit: ZNC - http://znc.in]
meoblast001 has quit [Remote host closed the connection]
vierja has quit [Ping timeout: 252 seconds]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
arya has joined #ruby
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
vierja has joined #ruby
vierja has quit [Max SendQ exceeded]
toekutr has joined #ruby
vierja has joined #ruby
QKO has joined #ruby
chendo_ has quit [Read error: Operation timed out]
hbpoison has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
thone has quit [Read error: Operation timed out]
Yakko has quit [Remote host closed the connection]
QKO_ has quit [Ping timeout: 248 seconds]
chendo_ has joined #ruby
aedornm has joined #ruby
chrisnicola has quit [Quit: This computer has gone to sleep]
thone has joined #ruby
JMcAfreak has quit [Remote host closed the connection]
JMcAfreak has joined #ruby
jonahR has quit [Quit: jonahR]
BrianJ has quit [Quit: Computer has gone to sleep.]
ilyam has joined #ruby
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
jlast has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
kenneth has quit [Quit: kenneth]
dayepa has quit [Quit: dayepa]
dayepa_ has quit [Quit: 전 이만 갑니다.]
chrisnicola has joined #ruby
etcetera has joined #ruby
rakaar has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
mmitchell has quit [Ping timeout: 248 seconds]
Chintan has quit [Quit: Chintan]
etcetera has quit [Client Quit]
aspiers has quit [Read error: Operation timed out]
crank_ has joined #ruby
huoxito has quit [Quit: Leaving]
justsee has quit [Quit: Leaving...]
dayepa has joined #ruby
crank_ has left #ruby [#ruby]
chrisnicola has quit [Quit: This computer has gone to sleep]
dayepa1 has joined #ruby
radq has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
cyong has quit [Quit: Leaving.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
br1an has quit [Ping timeout: 252 seconds]
earthquake has quit [Quit: earthquake]
shock_one has joined #ruby
yacks has joined #ruby
caleb_io has quit [Quit: caleb_io]
larissa has quit [Quit: Leaving]
carraroj has joined #ruby
goganchic has joined #ruby
a_a_g has joined #ruby
rippa has joined #ruby
aantix has joined #ruby
pigggie has joined #ruby
aantix has quit [Remote host closed the connection]
aspiers has joined #ruby
shorts has joined #ruby
radq has quit [Remote host closed the connection]
rakaar has quit [Ping timeout: 244 seconds]
Inoperable is now known as zz_Inoperable
zz_Inoperable is now known as Inoperable
a_a_g1 has joined #ruby
pigggie has left #ruby [#ruby]
goganchic has quit [Quit: Computer has gone to sleep.]
Tarential has quit [Excess Flood]
Tarential has joined #ruby
a_a_g has quit [Ping timeout: 252 seconds]
Norrin has left #ruby [#ruby]
Morkel has joined #ruby
radq has joined #ruby
inao has joined #ruby
backjlack has joined #ruby
a_a_g1 has quit [Ping timeout: 252 seconds]
braoru has joined #ruby
aces1up has quit []
inao has quit [Remote host closed the connection]
inao has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
inao_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
marco_ has joined #ruby
a_a_g has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
marco_ has quit [Client Quit]
TomRone has quit [Ping timeout: 248 seconds]
atyz has joined #ruby
TomRone has joined #ruby
rakaar has joined #ruby
a_a_g has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
chendo_ is now known as chendo
QKO_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
gosshedd has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
ilyam has quit [Quit: ilyam]
arya has quit [Ping timeout: 248 seconds]
QKO has quit [Ping timeout: 255 seconds]
nimred has joined #ruby
arya has joined #ruby
tagrudev has joined #ruby
PanPan has quit [Read error: Connection reset by peer]
PanPan_ has joined #ruby
plu has left #ruby [#ruby]
bricker has joined #ruby
sayan has joined #ruby
forlong has quit [Quit: Going offline, see ya! (www.adiirc.com)]
puppeh has joined #ruby
arya has quit [Ping timeout: 248 seconds]
danneu has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
Billiam_ has quit [Quit: Leaving]
b1rkh0ff has quit [Ping timeout: 256 seconds]
arya has joined #ruby
Mohan has quit [Read error: Connection reset by peer]
emergion has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
Bosma has quit [Quit: leaving]
SolidResolve has quit [Ping timeout: 245 seconds]
thufir_ has joined #ruby
jlast has joined #ruby
browndawg has quit [Quit: Leaving.]
b1rkh0ff has joined #ruby
codecop has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
browndawg has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
tjbiddle has joined #ruby
adman65 has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
banjara has joined #ruby
tjbiddle has quit [Client Quit]
benlieb has quit [Remote host closed the connection]
Elhu has joined #ruby
benlieb has joined #ruby
adeponte has joined #ruby
Loaft has joined #ruby
cableray has quit [Quit: cableray]
JumpMast3r has joined #ruby
otherj has quit []
jlast has quit [Ping timeout: 256 seconds]
dv_ has quit [Remote host closed the connection]
araujo has quit [Quit: Leaving]
Morkel_ has joined #ruby
Morkel has quit [Read error: Operation timed out]
Morkel_ is now known as Morkel
shock_one has quit [Ping timeout: 252 seconds]
JohnBat26 has joined #ruby
one has quit []
ChikuLinu__ has quit [Quit: Quitte]
arya has quit [Ping timeout: 248 seconds]
d2dchat has joined #ruby
Takehiro has joined #ruby
spaceships has quit [Quit: leaving]
<nat_home> I have a string containing ruby code that I'd like to execute… any idea on how to do that ? http://pastie.org/6172359
cobragoat has quit [Remote host closed the connection]
arya has joined #ruby
cobragoat has joined #ruby
<nat_home> I guess eval can do the trick...
QKO has joined #ruby
d2dchat has quit [Remote host closed the connection]
<Hanmac_> nat_home you need to be very care full about eval, twice when it comes from the outside
angusiguess has quit [Ping timeout: 256 seconds]
QKO_ has quit [Ping timeout: 255 seconds]
clocKwize has joined #ruby
andikr has joined #ruby
tjbiddle has joined #ruby
<nat_home> Hanmac_: I agree, do you know if there is a safe eval ? that wont break on eval('exit()') and other funny jokes
Elhu has quit [Quit: Computer has gone to sleep.]
filipe has joined #ruby
_br_ has quit [Excess Flood]
cobragoat has quit [Ping timeout: 248 seconds]
_br_ has joined #ruby
<Hanmac_> i dont think so
<nanothief> nat_home: the best I've ever found is using $SAFE=3 in a new thread, eg def safe_run(str); t = Thread.new { begin; $SAFE = 3; eval(str); rescue Exception; end }; t.value; end
<nanothief> however, I haven't proved that safe, and it is still possible to crash the program by using too much memory/time
rakaar has quit [Ping timeout: 257 seconds]
_br_ has quit [Excess Flood]
danneu has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
<nanothief> That is what I used when creating the second version of tryruby.org, but I was never confortable with it
<nanothief> I would like to know what the new version uses (since it is a lot more polished than our version, but it doesn't appear to be open source
agarie has quit [Remote host closed the connection]
aganov has joined #ruby
dayepa1 has quit [Ping timeout: 248 seconds]
dayepa1 has joined #ruby
d_roge- has joined #ruby
yacks has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
babinho has joined #ruby
sayan has quit [Read error: Connection reset by peer]
_br_ has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
<nanothief> finally, whytheluckystiff had a sandbox ruby feature described at http://markmail.org/thread/qlycafuhzjbvlt4q . However he has since disappeared, and I never did get it working
razibog has joined #ruby
dr_bob has joined #ruby
<nanothief> perhaps you should look at a different solution :P
* Hanmac_ had experimence with sandboxes ... most of them can be broken
ephemerian has joined #ruby
h8R has quit [Ping timeout: 246 seconds]
dmonjo has joined #ruby
shorts has quit [Quit: shorts]
shorts has joined #ruby
shorts has quit [Client Quit]
h8R has joined #ruby
_bart has quit [Quit: _bart]
d_roge- is now known as d_roge
Hanmac_ has quit [Ping timeout: 245 seconds]
TheFuzzball has joined #ruby
jlast has quit [Ping timeout: 256 seconds]
eldariof has joined #ruby
jkeith has quit [Read error: Operation timed out]
mafolz has joined #ruby
inao_ has joined #ruby
piotr_ has joined #ruby
derp has joined #ruby
josh_keith has quit [Ping timeout: 252 seconds]
zigomir has joined #ruby
angusiguess has joined #ruby
inao_ has quit [Client Quit]
rakaar has joined #ruby
derp has quit [Client Quit]
derp has joined #ruby
derp has left #ruby [#ruby]
heimark has joined #ruby
timonv has joined #ruby
brianpWins has joined #ruby
inao has quit [Ping timeout: 248 seconds]
one has joined #ruby
dr_bob has quit [Quit: Leaving.]
emergion has quit [Quit: Computer has gone to sleep.]
atyz has quit [Quit: Leaving...]
tjbiddle_ has joined #ruby
atyz has joined #ruby
stkowski has quit [Quit: stkowski]
angusiguess has quit [Ping timeout: 256 seconds]
Vulix has left #ruby [#ruby]
tjbiddle has quit [Ping timeout: 264 seconds]
tjbiddle_ is now known as tjbiddle
kenneth has joined #ruby
_br_ has quit [Excess Flood]
sayan has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
jkeith has joined #ruby
skcin7 has quit []
josh_keith has joined #ruby
ilyam has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
Hypn has joined #ruby
_br_ has joined #ruby
_br_ has quit [Excess Flood]
bean has quit [Quit: Computer has gone to sleep.]
PanPan_ has quit [Ping timeout: 264 seconds]
PanPan has joined #ruby
_br_ has joined #ruby
shorts has joined #ruby
pyrac has joined #ruby
dr_bob has joined #ruby
jlast has joined #ruby
nari has quit [Ping timeout: 245 seconds]
QKO has quit [Read error: Operation timed out]
shorts has quit [Quit: shorts]
blaxter has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
QKO has joined #ruby
erlingur has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
havenwood has quit [Ping timeout: 264 seconds]
benlieb has quit [Quit: benlieb]
jaygen has quit [Remote host closed the connection]
jaygen has joined #ruby
Evixion has quit [Ping timeout: 244 seconds]
sayan has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
Bry8Star has quit [Remote host closed the connection]
thufir_ has quit [Quit: Leaving.]
Criztian has joined #ruby
adeponte has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
Bry8Star has joined #ruby
lkba has joined #ruby
dallasm has quit [Remote host closed the connection]
arya_ has joined #ruby
francisfish has joined #ruby
bartj3 has joined #ruby
jwmann has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Qwak has joined #ruby
TheFuzzball has quit [Quit: Computer has gone to sleep.]
sirecote_ has joined #ruby
jwmann has left #ruby [#ruby]
k610 has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
sirecote has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
mengu has joined #ruby
clocKwize has quit [Quit: clocKwize]
Elhu has joined #ruby
jimeh has joined #ruby
elkclone has joined #ruby
nomenkun has joined #ruby
16WAAFXW9 has quit [Read error: Operation timed out]
mercwithamouth has quit [Ping timeout: 256 seconds]
_bart has joined #ruby
clocKwize has joined #ruby
theoros has quit [Ping timeout: 248 seconds]
sirecote has joined #ruby
adambeynon has joined #ruby
matthewrobbins has joined #ruby
matthewrobbins has quit [Client Quit]
dallasm has joined #ruby
ner0x has quit [Quit: Leaving]
maxmanders has joined #ruby
Xeago has joined #ruby
segv- has joined #ruby
rdark has joined #ruby
hemanth has joined #ruby
marr has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
zerba has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
browndawg has joined #ruby
Hanmac has joined #ruby
jlast has joined #ruby
vlad_starkov has joined #ruby
eka has joined #ruby
zerba has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
chichou has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
bartj3 has quit []
zerba has joined #ruby
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Read error: Connection reset by peer]
main has joined #ruby
Hanmac has quit [Quit: Page closed]
vlad_starkov has joined #ruby
Criztian has joined #ruby
angusiguess has joined #ruby
ejnahc has quit [Max SendQ exceeded]
octoberry has joined #ruby
ejnahc has joined #ruby
sirecote has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
vlad_sta_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 248 seconds]
rakaar has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
dr_bob has quit [Quit: Leaving.]
svandiepen has quit [Remote host closed the connection]
D4T has joined #ruby
samphippen has joined #ruby
blueOxigen has joined #ruby
clooth has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
megha has joined #ruby
vierja has quit [Quit: Computer has gone to sleep.]
octoberry has quit [Ping timeout: 248 seconds]
jgrevich has quit [Remote host closed the connection]
one has quit [Ping timeout: 240 seconds]
browndawg has quit [Quit: Leaving.]
browndawg has joined #ruby
Vainoharhainen has joined #ruby
vierja has joined #ruby
QKO_ has joined #ruby
vierja has quit [Client Quit]
thibauts has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
dv_ has joined #ruby
QKO has quit [Ping timeout: 245 seconds]
Xeago has quit [Remote host closed the connection]
cdt has joined #ruby
nXqd has joined #ruby
octoberry has joined #ruby
banjara has quit [Read error: Connection reset by peer]
banjara has joined #ruby
anderse has joined #ruby
svandiepen has joined #ruby
robert__ has joined #ruby
robert__ has quit [Changing host]
robert__ has joined #ruby
sayan has joined #ruby
robert_ has quit [Ping timeout: 276 seconds]
toekutr has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
robert__ has quit [Ping timeout: 256 seconds]
sirecote has joined #ruby
thibauts has joined #ruby
kevinfagan has joined #ruby
Pufferfood has quit [Read error: Connection reset by peer]
PanPan has quit [Ping timeout: 252 seconds]
PanPan has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Pufferfood has joined #ruby
Xeago has joined #ruby
elaptics`away is now known as elaptics
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
Hanmac has joined #ruby
jlast has joined #ruby
dr_bob has joined #ruby
octoberry has quit [Ping timeout: 248 seconds]
dallasm has quit [Remote host closed the connection]
dr_bob has quit [Read error: Connection reset by peer]
inao has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
<dmonjo> hi, i am trying to understand the block invocation for this i wrote this small code: http://pastebin.com/zJ758MkY
<dmonjo> i am not ble to get x= 10 printed
svandiepen has quit [Quit: Leaving.]
<dmonjo> shouldnt smalltest be called, i=10 returned entered into the block recevied as x ?
skanev has joined #ruby
<dmonjo> the block is not getting executed
<Xeago> dmonjo: there is nothing calling the block
<dmonjo> the code between the { }
<Xeago> indeed
atyz has quit [Quit: Leaving...]
lkba has quit [Ping timeout: 252 seconds]
<tobiasvl> the code between the braces is the definition of the block
<tobiasvl> but it is never called
__Grabarz__ has joined #ruby
<Hanmac> nothing calls the block, so the block is ignored
<Xeago> the method smalltest doesn't call yield or call on the block
TheFuzzball has joined #ruby
<dmonjo> other than ield how can i call that block?
<dmonjo> yield*
<Xeago> accept the blog in the arguments, and call #call on it
<Xeago> block*
jlast has quit [Ping timeout: 256 seconds]
kristofers has joined #ruby
__Grabarz__ has quit [Read error: Connection reset by peer]
__Grabarz__ has joined #ruby
__Grabarz__ has quit [Client Quit]
heimark has quit [Quit: Computer has gone to sleep.]
adeponte has joined #ruby
cparen has quit [Quit: cparen]
berserkr has joined #ruby
h8R has quit [Ping timeout: 248 seconds]
h8R has joined #ruby
<dmonjo> still not working http://pastebin.com/NkH9B0sB
timmow has joined #ruby
atyz has joined #ruby
radq has quit [Read error: Connection reset by peer]
theoros has joined #ruby
radq has joined #ruby
<tobiasvl> don't you want `yield numb` though?
<tobiasvl> you want to pass numb as x
<dmonjo> i thought yield will take all the returned values automatically
adeponte has quit [Ping timeout: 260 seconds]
<tobiasvl> what returned values?
elkclone has quit [Quit: It's never too late to unplug and run.]
<tobiasvl> you don't have any returned values
<dmonjo> numb
<tobiasvl> where do you return it?
Al___ has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
brianpWins has quit [Quit: brianpWins]
Xeago has quit [Remote host closed the connection]
<dmonjo> in the method when i call numb on the line doesnt it return numb?
statarb3 has quit [Quit: Leaving]
Hanmac has quit [Ping timeout: 245 seconds]
emocakes has joined #ruby
monkegjinni has joined #ruby
clooth has quit [Quit: clooth]
dkannan has joined #ruby
clooth has joined #ruby
slainer68 has joined #ruby
Axsuul has quit [Ping timeout: 264 seconds]
atyz has quit [Quit: Leaving...]
angusiguess has joined #ruby
atyz has joined #ruby
hackeron has quit [Remote host closed the connection]
sandGorgon has quit [Ping timeout: 276 seconds]
radq has quit [Read error: Connection reset by peer]
<epta> How can I build simple ADT in ruby? Like some value that could be only X value or Y value
Matip has quit [Read error: Connection reset by peer]
_md has joined #ruby
AxonetBE has joined #ruby
Mattx has joined #ruby
<AxonetBE> I need to store a timetable for profiles but don't want to add 42 fields just to store this. What would be a good solution? https://gist.github.com/DriesS/4648903
hackeron has joined #ruby
svandiepen has joined #ruby
radq has joined #ruby
jlast has joined #ruby
QKO has joined #ruby
<dmonjo> wverytime a .to_s is called a new string is created
beiter has joined #ruby
QKO_ has quit [Ping timeout: 276 seconds]
daig0ro has joined #ruby
daig0ro has quit [Client Quit]
angusiguess has quit [Ping timeout: 245 seconds]
hbpoison has joined #ruby
<tobiasvl> dmonjo: what do you mean by "return"??
<tobiasvl> dmonjo: in the method when you "call" numb (you can't really call anything but a method/block/proc) that statement evaluates to numb
<tobiasvl> but nothing else really happens
<tobiasvl> and the next statement (yield) doesn't know what was evaluated on the previous line
<tobiasvl> what did you expect to happen?
jlast has quit [Ping timeout: 248 seconds]
dkannan_ has joined #ruby
<epta> How can I get current time in rfc2822 format?
arturas_ has joined #ruby
wyhaines has quit [Read error: Connection reset by peer]
AxonetBE1 has joined #ruby
AxonetBE has quit [Ping timeout: 252 seconds]
wyhaines has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
niklasb has quit [Ping timeout: 240 seconds]
arya_ has quit [Ping timeout: 248 seconds]
dkannan has quit [Ping timeout: 264 seconds]
dkannan_ is now known as dkannan
<tobiasvl> epta: Time#rfc2822 ;)
ozgura has quit [Remote host closed the connection]
lkba has joined #ruby
sandGorgon has joined #ruby
PanPan has quit [Read error: Connection reset by peer]
PanPan has joined #ruby
Loaft has quit []
tchebb has quit [Ping timeout: 272 seconds]
nari has joined #ruby
araujo has joined #ruby
TheRealPygo is now known as pygospa
Hanmac has joined #ruby
tchebb has joined #ruby
<epta> tobiasvl: err, and how can I retrieve a string?
Adys has quit [Ping timeout: 245 seconds]
TomRone has quit [Quit: Peace Out]
nkr has joined #ruby
haxrbyte_ has joined #ruby
adzuci has quit [Ping timeout: 264 seconds]
<tobiasvl> epta: what?
niklasb has joined #ruby
Myconix has quit [Read error: Connection reset by peer]
adzuci has joined #ruby
<tobiasvl> oh yeah
<epta> 1.9.3p194 :004 > Time#rfc2822 => Time
Myconix has joined #ruby
<tobiasvl> strftime?
beiter has quit [Quit: beiter]
sayan has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
Qwak has quit []
banisterfiend has joined #ruby
mkultras has joined #ruby
haxrbyte has quit [Ping timeout: 276 seconds]
AlSquirrel has joined #ruby
AlSquirikou has quit [Read error: Connection reset by peer]
<epta> tobiasvl: what?
arya has joined #ruby
<tobiasvl> i suggested the method `strftime`
<tobiasvl> but nevermind that, just do this:
<tobiasvl> >> Time.now#rfc2822
<eval-in> tobiasvl: Output: "" (http://eval.in/9920)
<tobiasvl> >> p Time.now#rfc2822
<eval-in> tobiasvl: Output: "2013-02-15 11:55:21 +0100\n" (http://eval.in/9921)
<tobiasvl> there
samphippen has joined #ruby
whitedawg has joined #ruby
ichilton has joined #ruby
mlr has quit [Ping timeout: 240 seconds]
nat_home has quit [Quit: Leaving.]
<ichilton> Trying to parse a file which has things like <0x2019> in (unicode char for ' ??) - is there an easy way in ruby to replace those out or is it easier to have a function which just does a string replace to swap them out?
arya has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
arya has joined #ruby
hbpoison has joined #ruby
renanoronfle has joined #ruby
<joonty> ichilton: do you want to remove unicode characters?
<joonty> or replace with ascii versions?
erlingur has left #ruby ["http://erlingur.is"]
hbpoison has quit [Ping timeout: 256 seconds]
ozgura has joined #ruby
<dmonjo> what is the difference between -10..0 and -10...0 in arrays?
<Hanmac> >> p (-10..0).to_a
<eval-in> Hanmac: Output: "[-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0]\n" (http://eval.in/9934)
<Hanmac> >> p (-10...0).to_a
<eval-in> Hanmac: Output: "[-10, -9, -8, -7, -6, -5, -4, -3, -2, -1]\n" (http://eval.in/9935)
<Hanmac> dmonjo did you seee the diff?
jlast has quit [Ping timeout: 256 seconds]
<dmonjo> yes thanks
<dmonjo> >> p "test"
<eval-in> dmonjo: Output: "\"test\"\n" (http://eval.in/9939)
<dmonjo> nice
mkultras has quit [Changing host]
mkultras has joined #ruby
pyrac has quit [Quit: pyrac]
mkultras has left #ruby [#ruby]
khismetix has joined #ruby
sayan has joined #ruby
icole has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
_bart has quit [Quit: _bart]
<Hanmac> ichilton did you found a solution yet?
xclite has quit [Ping timeout: 255 seconds]
yacks has quit [Ping timeout: 248 seconds]
QKO has quit [Read error: Operation timed out]
xclite has joined #ruby
QKO has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
nidhimj22 has joined #ruby
nidhimj22 has quit [Client Quit]
<Hanmac> >> p "A<0x2019>B".gsub(/<(0x\d+)>/){ [Integer($1)].pack("U")}
<eval-in> Hanmac: Output: "\"A\u2019B\"\n" (http://eval.in/9943)
Untouchab1e has joined #ruby
embs has quit [Quit: Leaving]
noop has joined #ruby
<Untouchab1e> hi.. after updating to rails 3.3.12 Im getting lots of issues starting my unicorn server
ddv has quit [Changing host]
ddv has joined #ruby
<Untouchab1e> "Could not find gem 'mysql (~> 2.8.1) ruby' in the gems available
<Hanmac> >> p "A<0x2019>B".gsub(/<(0x\d+)>/){ [Integer($1)].pack("U")}.encode("UTF-8")
<eval-in> Hanmac: Output: "\"A\u2019B\"\n" (http://eval.in/9947)
<Untouchab1e> even though mysql is, and has been for ages, isntalled.. version 2.9.0
<Untouchab1e> installed*
clooth has quit [Quit: clooth]
<Hanmac> Untouchable: #rubyonrails
<Untouchab1e> ah ok.. thanks
Michael__ has joined #ruby
<Hanmac> we are more advanced, we not use rails, we fly :P
<Untouchab1e> hehe
noop has quit [Remote host closed the connection]
noop has joined #ruby
angusiguess has joined #ruby
clooth has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
icole_ has joined #ruby
kevinfagan has quit [Ping timeout: 248 seconds]
icole has quit [Ping timeout: 248 seconds]
wf2f has quit []
noop_ has joined #ruby
sthulbourn has left #ruby [#ruby]
angusiguess has quit [Ping timeout: 252 seconds]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
fermion has joined #ruby
noop has quit [Ping timeout: 252 seconds]
Untouchab1e has quit [Quit: Page closed]
<atmosx> epta: using this syntax -> print “The variable is ” + (var == 10 ? “10″ : “Not 10″)
test_ has joined #ruby
<test_> what would be the regex to match a string in squeare brackets?
<test_> [ ..]
<test_> *square
arya has quit [Ping timeout: 248 seconds]
chichou has quit [Remote host closed the connection]
<epta> atmosx: how can I use this syntax for passing or not argument to the function?
pyrac has joined #ruby
dr_bob has joined #ruby
<atmosx> epta: you should look only for the 2nd part -> var ? “10″ : “Not 10″
jlast has joined #ruby
<atmosx> if var is 10 prints 10 else prints not 10
<atmosx> it's just another way to write if/else
<epta> And?
<epta> `condition : f(1,2) ? f (1)' is maximum that I can achieve?
<epta> Could I use :? inside function call?
carloslopes has joined #ruby
<whitequark> info = dbas_info host, asset, (opts[:output] if opts[:output_given])
<whitequark> epta: ^
<whitequark> also: don't use then with multiline
<whitequark> *multiline if
<whitequark> this isn't pascal
<epta> whitequark: nice
Virunga has joined #ruby
<Hanmac> test_ you need to mask the [] ... so /\[(\w+)\]/
niklasb has quit [Ping timeout: 256 seconds]
khismetix has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
tenmilestereo has joined #ruby
noxoc has joined #ruby
mikecmpbll has joined #ruby
Konboi has quit [Remote host closed the connection]
<dmonjo> myarray = [/[0...100]/] -< how can i use regular explression to create the array with elements from 0 to 100 inclusive?
ahokaomaeha has quit [Ping timeout: 255 seconds]
Konboi has joined #ruby
Konboi has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 264 seconds]
Michael__ has quit [Remote host closed the connection]
<dmonjo> should i use a string and then .to.a ?
<dmonjo> and use regular expression o nthe string?
<dmonjo> can i use the regex on arrays directly?
Kuifje has joined #ruby
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
dkannan_ has joined #ruby
monkegjinni has joined #ruby
renanoronfle has quit [Quit: This computer has gone to sleep]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
samphippen has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
dkannan has quit [Ping timeout: 244 seconds]
dkannan_ is now known as dkannan
monkegji_ has quit [Read error: Connection reset by peer]
<atmosx> dmonjo: You can search for items, but entire items. If you need to search "inside" these items for patterns you need to iterate.
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<atmosx> dmonjo: ther'e no to.a, it's to_a (to convert to array)
__BigO__ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<dmonjo> if i want to create an array with tems from 100 to 200 my_ids = (100..200).to_a ?
monkegji_ has joined #ruby
<banisterfiend> dmonjo: yeah
monkegji_ has quit [Read error: Connection reset by peer]
monkegjinni has quit [Ping timeout: 248 seconds]
ddd has joined #ruby
ddd has left #ruby [#ruby]
<dmonjo> banisterfiend: so i cant creating something like a direct array with ranges? i should create a range os trings and then convert?
<epta> syntax error, unexpected kNOT video_asset = not(opts[:image_given])
monkegjinni has joined #ruby
<epta> What is wrong with it?
<epta> Ruby 1.8
monkegjinni has quit [Read error: Connection reset by peer]
<banisterfiend> dmonjo: no idea what u're talking about
ddd has joined #ruby
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
khismetix has joined #ruby
<dmonjo> i want to create an array with elements predefined these elements are composed by a range (100.200) to create this array i first created a string mystr=(100..200) and converted to array to_a, my question is can you create that array directly without converting from string to array? something like myarary = [100..200]
dayepa_ has joined #ruby
monkegji_ has joined #ruby
renanoronfle has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<banisterfiend> dmonjo: (100..200) is not a string, wtf
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
samphippen has joined #ruby
monkegji_ has joined #ruby
arya has joined #ruby
monkegjinni has joined #ruby
dayepa has quit [Ping timeout: 248 seconds]
monkegji_ has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
monkegji_ has joined #ruby
monkegji_ has quit [Read error: No route to host]
dayepa1 has quit [Ping timeout: 248 seconds]
monkegji_ has joined #ruby
dayepa has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
chussenot has quit [Quit: chussenot]
skattyadz has joined #ruby
monkegjinni has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
dr_bob has quit [Quit: Leaving.]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
hbpoison has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
dr_bob has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
icole_ has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
monkegjinni has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 244 seconds]
k611 has joined #ruby
kofno has joined #ruby
monkegjinni has joined #ruby
alup has quit [Read error: Connection reset by peer]
puppeh has quit [Read error: Connection reset by peer]
jasond has quit [Ping timeout: 264 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
alup has joined #ruby
monkegjinni has joined #ruby
puppeh has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
monkegjinni has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
jlast has joined #ruby
QKO_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
k610 has quit [Ping timeout: 248 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
ananthakumaran1 has joined #ruby
monkegjinni has joined #ruby
yacks has joined #ruby
QKO has quit [Ping timeout: 240 seconds]
_bart has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
noxoc has quit [Ping timeout: 248 seconds]
dhruvasagar has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
test_ has quit [Quit: Page closed]
nfk has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
noxoc has joined #ruby
PanPan has quit [Ping timeout: 248 seconds]
jlast has quit [Ping timeout: 264 seconds]
PanPan has joined #ruby
angusiguess has joined #ruby
dkannan has quit [Quit: dkannan]
yshh has joined #ruby
hybris has joined #ruby
arya has quit [Ping timeout: 248 seconds]
yshh has quit [Ping timeout: 255 seconds]
appamatto has quit [Ping timeout: 255 seconds]
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
yshh has joined #ruby
arya has joined #ruby
yshh_ has joined #ruby
chussenot has joined #ruby
ananthakumaran1 has quit [Ping timeout: 260 seconds]
kevinfagan has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<Hanmac> banisterfiend do you like the keyword arguments?
yshh has quit [Ping timeout: 248 seconds]
appamatto has joined #ruby
geekbri has joined #ruby
dayepa is now known as dayepa2
dayepa2 is now known as dayepa1
ananthakumaran has joined #ruby
_md has quit [Quit: Leaving...]
noop_ has quit [Remote host closed the connection]
<aspiers> is it just me or does gem check -a spew a load of warnings with 1.9.3-p385?
atyz has quit [Quit: Leaving...]
divout has quit [Quit: Leaving.]
khismetix has quit [Quit: Computer has gone to sleep.]
vedlin has joined #ruby
wf2f has quit []
geekbri has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
jlast has joined #ruby
arya has quit [Ping timeout: 248 seconds]
zigomir has quit [Ping timeout: 252 seconds]
kraljev has joined #ruby
angusiguess has quit [Ping timeout: 255 seconds]
yshh_ has quit [Remote host closed the connection]
<kraljev> Why is rack giving so bad error messages?
<kraljev> !! Unexpected error while processing request: undefined method `encoding' for #<Array:0x00000000be9a60>
<kraljev> Anyone knows the solution
danieldocki has joined #ruby
<Hanmac> aspiers: you mean the deprecated warnings ?
<tobiasvl> kraljev: you don't get a stack trace?
<kraljev> no
vedlin has left #ruby ["Leaving..."]
<aspiers> hanmac: yes
<kraljev> not even line number
<kraljev> so this can be a blind game of guessing
samphippen has quit [Quit: Computer has gone to sleep.]
<Hanmac> aspeirs that is normal ... it is fixed in newer ruby
<banisterfiend> kraljev: try sticking pry-rescue in there, or even better_errors
<banisterfiend> it'll drop u into exception context so u can look around
BrindleFly has joined #ruby
arya has joined #ruby
<kraljev> the script does not terminate after error
pskosinski has joined #ruby
dr_bob has joined #ruby
F1skr has joined #ruby
Michael__ has joined #ruby
__BigO__ has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 256 seconds]
<Hanmac> hm i dont like gem check -a ... because it does whine about Extra files on C(++)-Ext Gems
chendo has quit [Read error: Operation timed out]
Michael__ has quit [Ping timeout: 240 seconds]
gosshedd has quit [Ping timeout: 240 seconds]
chendo_ has joined #ruby
roger_padactor has joined #ruby
QKO has joined #ruby
KevinSjoberg has joined #ruby
parzorep has quit [Quit: parzorep]
<banisterfiend> Hanmac: do u like them
QKO_ has quit [Ping timeout: 255 seconds]
danieldocki has quit [Quit: Linkinus - http://linkinus.com]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
<Hanmac> banisterfiend yes i like C-Ext gems
<banisterfiend> Hanmac: i mean do u like keyword args in 2.0
roger_padactor has left #ruby [#ruby]
samuel02 has joined #ruby
mark_locklear has joined #ruby
AlSquirrel has quit [Ping timeout: 244 seconds]
robustus has quit [Ping timeout: 248 seconds]
<Hanmac> i think they are funny ... bad that i cant use them (in the C-API)
robustus has joined #ruby
PanPan has quit [Ping timeout: 256 seconds]
PanPan has joined #ruby
atyz has joined #ruby
AlSquirrel has joined #ruby
mikecmpbll has joined #ruby
kraljev has quit [Ping timeout: 252 seconds]
icole has joined #ruby
otherj has joined #ruby
unix has joined #ruby
pavilionXP has joined #ruby
megha has quit [Read error: Operation timed out]
arya_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
icole has quit [Ping timeout: 255 seconds]
atyz has quit [Ping timeout: 256 seconds]
subbyyy has joined #ruby
Jackneill has joined #ruby
pyrac has quit [Quit: pyrac]
atyz has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
__BigO__ has joined #ruby
__BigO__ has quit [Remote host closed the connection]
kraljev has joined #ruby
jfl0wers has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
enroxorz-work has joined #ruby
x0F has quit [Disconnected by services]
AlSquirrel has joined #ruby
x0F_ has joined #ruby
jfl0wers has quit [Remote host closed the connection]
<mr-rich> Ok, I'm testing some code, but I need to temporaraly skip over some other code ... just to test code at the end of the script and I don't want to wait for the other stuff to run ...
x0F_ is now known as x0F
arya has joined #ruby
pyrac has joined #ruby
dustint has joined #ruby
spanx___ has quit []
AlSquirikou has joined #ruby
spanx has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
jetblack has quit [Quit: leaving]
danieldocki has joined #ruby
berserkr has quit [Quit: Leaving.]
willob has joined #ruby
AlSquirrel has joined #ruby
jlast has quit [Ping timeout: 252 seconds]
AlSquirikou has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
taoru has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
AlSquire has joined #ruby
joofsh has joined #ruby
joofsh has quit [Remote host closed the connection]
Lubinski has joined #ruby
Lubinski has quit [Changing host]
Lubinski has joined #ruby
kraljev has left #ruby [#ruby]
adkron_ has quit [Ping timeout: 240 seconds]
adkron has quit [Ping timeout: 244 seconds]
AlSquire has quit [Remote host closed the connection]
moos3 has joined #ruby
joofsh has joined #ruby
tommyvyo has joined #ruby
radq has quit [Remote host closed the connection]
hashmal has joined #ruby
angusiguess has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
ahokaomaeha has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
samphippen has joined #ruby
sayan has quit [Ping timeout: 248 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
kevinfagan has quit [Ping timeout: 248 seconds]
codecop has quit [Remote host closed the connection]
fuzai has quit [Quit: fuzai]
_md has joined #ruby
yshh has joined #ruby
xaq has joined #ruby
bigkevmcd has quit [Ping timeout: 260 seconds]
samphippen has quit [Ping timeout: 260 seconds]
dustint has quit [Remote host closed the connection]
radq has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
radq has quit [Remote host closed the connection]
m3pow has quit [Read error: Connection reset by peer]
Lubinski has left #ruby ["Leaving"]
fasta_ is now known as fasta
dustint has joined #ruby
postmodern has quit [Quit: Leaving]
jlast has joined #ruby
Pufferfood has quit [Read error: Connection reset by peer]
QKO_ has joined #ruby
inokenty has joined #ruby
aquaranto has joined #ruby
spyderman4g63 has joined #ruby
marr has quit [Ping timeout: 248 seconds]
Pufferfood has joined #ruby
chrisja has joined #ruby
danbell has quit [Quit: danbell]
QKO has quit [Ping timeout: 248 seconds]
Spooner has joined #ruby
sullenel has joined #ruby
SeanLazer has quit [Quit: SeanLazer]
rmartin has joined #ruby
sailias has joined #ruby
sayan has joined #ruby
xaq has quit [Remote host closed the connection]
pdamer has joined #ruby
xemu has joined #ruby
<dmonjo> when can i find some good exercices to train myself on ruby (beginner level to intermediate)
jlast has quit [Ping timeout: 252 seconds]
<dmonjo> some good chunks of code
LiohAu has joined #ruby
workmad3 has joined #ruby
jkeith has quit [Ping timeout: 248 seconds]
josh_keith has quit [Ping timeout: 256 seconds]
banisterfiend has quit [Remote host closed the connection]
SeanLazer has joined #ruby
tomzx_mac has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby
jerius has joined #ruby
<spyderman4g63> On tuesdays
<Hanmac> dmonjo did you read the stuff in the method descriptions on ruby-doc?
Elhu has quit [Ping timeout: 248 seconds]
bean has joined #ruby
<dmonjo> yea reading a lot needs handson
<LiohAu> can anybody help me with the ruby syntax ? is this pastie valid : https://gist.github.com/LiohAu/4e9dd9185278f1d3ca8c
CreativeEmbassy has joined #ruby
renanoronfle has quit [Ping timeout: 256 seconds]
<Spooner> LiohAu, Looks valid, but not necessarily good ;)
nXqd has quit [Remote host closed the connection]
<Hanmac> LiohAu it may not be good style but it is valid
<LiohAu> is it the correct syntax for a "do .. while" structure at least?
Elhu has joined #ruby
<tobiasvl> sure
julian-delphiki has quit [Ping timeout: 245 seconds]
<LiohAu> and will this "texts[selectedRow] == str" comparaison works to compare a string, with an array of strings ? (selectedRow should be numeric > 0 )
sandGorgon has quit [Read error: Connection reset by peer]
niklasb has joined #ruby
<Spooner> LiohAu, You don't need the {} on #4 - I'd probably use a loop do...end and break. I hate begin-end-until ;)
tomzx_mac has quit [Ping timeout: 245 seconds]
techlife has quit [Ping timeout: 255 seconds]
<Spooner> LiohAu, You may mean texts[selectedRow].include? str
<LiohAu> .include is a the basic string compare in ruby?
kevinfagan has joined #ruby
<Spooner> No, == will compare strings, but you said a string with an array of strings, so I assumed you meant to check if the string was in the array.
sandGorgon has joined #ruby
<LiohAu> hm yes texts is an array of strings, and i want to check if the item in texts at the index "selectedRow", is equal to the content of the str variable
jpfuentes2 has joined #ruby
<tobiasvl> then it's fine
octoberry has joined #ruby
<tobiasvl> get rid of the camelCase please :)
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
banisterfiend has quit [Remote host closed the connection]
<Spooner> Yeah, that is fine. Thought you meant that texts was an array of arrays of strings ;)
<LiohAu> manipulating obj-c through ruby xD
banisterfiend has joined #ruby
techlife has joined #ruby
<LiohAu> Spooner: no one dimension is hard enough already xD
techlife has quit [Max SendQ exceeded]
EPIK has quit [Ping timeout: 244 seconds]
<LiohAu> ok, so my code is ok, but it does not do what i want, how can i debug ? or at least print something somewhere ? "puts" ?
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
samphippen has joined #ruby
<Spooner> LiohAu, Puts is fine, but p is often better output for debugging. Use pp or ap (pretty print or awesome print) gems for even better output.
<LiohAu> ok thanks i'll try that
breakingthings has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
casheew has quit [Read error: Connection reset by peer]
jkeith has joined #ruby
<Spooner> LiohAu, Actually, pp is in the standard library. Silly me ;)
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
casheew has joined #ruby
k611 has quit [Ping timeout: 255 seconds]
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
sepp2k has joined #ruby
josh_keith has joined #ruby
<Spooner> LiohAu, Breaking out into a pry session is another really good debugging option.
CraHan has joined #ruby
<LiohAu> you mean prAy ?
huoxito has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<Spooner> No, pry gem ;)
<CraHan> quick question, what's the correct way to convert a character in a string to an int (not its corresponding ascii code)
mikecmpbll has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
k611 has joined #ruby
<CraHan> so for example: "1.2.3"[0].to_int gives me the ascii value of 1 as far as I can see
<Spooner> CraHan, "11".to_i #=> 11
<LiohAu> ah, i thought a "pray session", because now that i saw that the tool i'm using hide the "p", "pp", and "puts" output, i'm gonna pray xD
v0n has joined #ruby
carlyle has joined #ruby
<Spooner> CraHan, It gives the ascii in 1.8.7 - it is the "number" in 1.9.3.
techlife has joined #ruby
yfeldblum has joined #ruby
techlife has quit [Max SendQ exceeded]
<CraHan> Spooner: that's what I've noticed. Do you inow how to get the number in 1.8.7?
<Spooner> CraHan, You want: "1.2.3"[0, 1].to_i ([0, 1] gives a one character substring).
_nitti has joined #ruby
k612 has joined #ruby
techlife has joined #ruby
_nitti has quit [Remote host closed the connection]
<Spooner> CraHan, That works in both 1.8 and 1.9.
<CraHan> Spooner: well I need to compare that first int to another int value.
LiohAu has quit [Quit: LiohAu]
<CraHan> Spooner: I'm trying to see if a version string is older or newer than a specific value
<CraHan> if for example 3.6.2 is > 3 or not
<Spooner> There is a method to compare version strings.
ananthakumaran has quit [Quit: Leaving.]
samphippen has quit [Read error: Connection reset by peer]
<Spooner> Gem::Version.new('0.3.2') < Gem::Version.new('0.10.1')
<CraHan> Spooner: interesting I'll look into that
<Spooner> Assuming you use rubygems (and who doesn't?) that is the easiest way.
<CraHan> this is a vagrant box
<CraHan> I'll have to see what it contains
Lubinski_ has joined #ruby
<CraHan> using chef to setup the machine, I'll have to investigate what's available
sullenel has quit [Quit: sullenel]
k611 has quit [Ping timeout: 264 seconds]
Choobie has quit [Remote host closed the connection]
julian-delphiki has joined #ruby
<dominikh> string comparison (#> and #<) works for a.b.c version strings
jgarvey has joined #ruby
<Spooner> "0.3.2".split(".").map(&:to_i) < '0.10.1'.split(".")map(&:to_i) works too, but only if you have the same number of version parts.
dev__ has joined #ruby
<CraHan> dominikh: that's good to know!
casheew has quit [Read error: Connection reset by peer]
<Spooner> dominikh, That doesn't work where any version number could be > 9
Choobie has joined #ruby
Choobie has quit [Changing host]
Choobie has joined #ruby
casheew has joined #ruby
<CraHan> ah ok
__BigO__ has joined #ruby
<dominikh> Spooner: got an example that breaks?
<Spooner> dominikh, "0.10.0" > "0.2.0" #=> false
<dominikh> that's a bummer
pyrac has quit [Quit: pyrac]
samphippen has joined #ruby
dmiller has joined #ruby
<Spooner> Oh, my split/map doesn't work. Not awake today :D
ffranz has joined #ruby
jlast has joined #ruby
<julian-delphiki> >> "0.10.0" > "0.2.0"
<eval-in> julian-delphiki: Output: "" (http://eval.in/10016)
<dev__> Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (SyntaxError) file:/home/akash/Downloads/logstash-1.1.9-monolithic.jar!/logstash/inputs/base.rb:150: syntax error, unexpected kWHEN when "json_event"
<julian-delphiki> >> p "0.10.0" > "0.2.0"
<eval-in> julian-delphiki: Output: "false\n" (http://eval.in/10017)
<mr-rich> I want to convert all elemements of an array to string (.to_s). Do I have to do to walk through the entire array and do .to_s?
pyrac has joined #ruby
bean has quit [Ping timeout: 248 seconds]
<dev__> I am getting the following error with the above codepad link ruby code
<dev__> could someone please help me with this syntax
<Spooner> mr-rich, array.map(&:to_i)
<julian-delphiki> >> p [1, 2, 3, 4].map(&:to_s)
<eval-in> julian-delphiki: Output: "[\"1\", \"2\", \"3\", \"4\"]\n" (http://eval.in/10025)
otherj has quit []
<mr-rich> Spooner: to_i?
bigkevmcd has joined #ruby
<julian-delphiki> mr-rich, see mine,
<mr-rich> nm
<Spooner> Yeah, mistyped. Sorry. to_s ;)
<julian-delphiki> its &:to_s
<Spooner> I was still in the mind-frame of the last question.
tcstar has quit [Ping timeout: 252 seconds]
<Spooner> dev__, Either logstash gem isn't installed or you are using ruby 1.8.7 (where you need to manually require 'rubygems' first).
<Spooner> Or logstash is a directory and you are using 1.9 where you need to use require_relative for relative includes (rather than 1.8 where it assumes it).
inao has quit [Quit: Linkinus - http://linkinus.com]
solidoodlesuppor has joined #ruby
unix has quit [Read error: Operation timed out]
<CraHan> Spooner: Gem::Version.new seems to work. Thanks for the help!
Lubinski_ has left #ruby ["Leaving"]
<Spooner> I got something right today then, CraHan ;)
radq has joined #ruby
tensil_ has joined #ruby
zigomir has joined #ruby
dallasm has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
codecop has joined #ruby
tensil has quit [Ping timeout: 248 seconds]
tensil_ is now known as tensil
radq has quit [Read error: Connection reset by peer]
m3pow has joined #ruby
jpfuentes2 has joined #ruby
<dev__> Spooner: I am getting the following error
danielpcox has joined #ruby
unix has joined #ruby
jeffreybaird has joined #ruby
<dev__> Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (SyntaxError) file:/home/akash/Downloads/logstash-1.1.9-monolithic.jar!/logstash/inputs/base.rb:150: syntax error, unexpected kWHEN when "json_event"
<dev__> It seems to me that I am making a mistake in the when syntax
techlife has quit [Ping timeout: 260 seconds]
whitedawg has quit [Ping timeout: 252 seconds]
<tobiasvl> do you have a gist
ndboost has joined #ruby
<tobiasvl> or codepad
nari has quit [Ping timeout: 276 seconds]
puppeh has quit [Read error: Connection reset by peer]
radq has joined #ruby
puppeh has joined #ruby
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
PanPan has quit [Remote host closed the connection]
phantasm66 has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
phantasm66 has quit [Client Quit]
techlife has joined #ruby
br4ndon has joined #ruby
<shevy> or gun
aquaranto has left #ruby [#ruby]
elux has joined #ruby
angusiguess has joined #ruby
jrajav has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
miskander has joined #ruby
unix has quit [Ping timeout: 255 seconds]
frem has joined #ruby
radq_ has joined #ruby
Catbuntu has joined #ruby
radq has quit [Ping timeout: 252 seconds]
kaen has quit [Ping timeout: 246 seconds]
Choobie has quit [Remote host closed the connection]
LiohAu has joined #ruby
nanothief has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 264 seconds]
peregrine81 has joined #ruby
sirecote_ has quit []
sirecote is now known as sirecote
unix has joined #ruby
skattyadz has quit [Quit: skattyadz]
unix is now known as megha
<Spooner> dev__, 1.8 gem being run on 1.9 I suspect.
radq_ has quit [Remote host closed the connection]
<Spooner> The when syntax changed. But yeah, we need a paste really ;)
<LiohAu> is there any cucumber/calabash user here?
failshell has joined #ruby
QKO_ has quit [Read error: Operation timed out]
stopbit has joined #ruby
QKO has joined #ruby
ner0x has joined #ruby
radq has joined #ruby
Elhu has quit [Ping timeout: 252 seconds]
predator217 is now known as predator117
LiohAu has quit [Read error: Connection reset by peer]
LiohAu has joined #ruby
_br_ has quit [Excess Flood]
khimera has joined #ruby
miskander has quit [Quit: miskander]
samphippen has quit [Quit: Computer has gone to sleep.]
radq has quit [Remote host closed the connection]
atno has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
iambic has joined #ruby
_br_ has joined #ruby
blaxter has quit [Quit: foo]
_br_ has quit [Excess Flood]
PanPan has joined #ruby
pavilionXP has quit [Read error: Connection reset by peer]
Elhu has joined #ruby
interactionjaxsn has joined #ruby
_br_ has joined #ruby
geekbri has joined #ruby
huoxito has quit [Ping timeout: 256 seconds]
pothibo has quit [Quit: pothibo]
bean has joined #ruby
PragCypher has joined #ruby
aaronmcadam has joined #ruby
theRoUS has joined #ruby
geekbri_ has joined #ruby
xaq has joined #ruby
br4ndon has quit [Ping timeout: 244 seconds]
evenix_ has joined #ruby
evenix has quit [Read error: Connection reset by peer]
geekbri has quit [Ping timeout: 248 seconds]
Guest31439 is now known as joel
joel has quit [Changing host]
joel has joined #ruby
zerba has quit [K-Lined]
<shevy> should I get into rails or should I not
samphippen has joined #ruby
clocKwize has quit [Quit: clocKwize]
<chiel> i'm writing an app which actually is split up into three apps, i'd like to write a script to easily be able to start/stop them all at the same time, any tips?
EvanR has joined #ruby
philcrissman has joined #ruby
EvanR is now known as Guest52216
<chiel> i was thinking of maybe using rake or capistrano or so, since i'd also like to be able to deploy
PanPan has quit [Remote host closed the connection]
<LiohAu> Spooner: spooner
<LiohAu> while selectedRow > 0 do
<LiohAu> move_wheel(:query => "pickerView", :dir => :down)
<LiohAu> selectedRow = query("pickerView", [{:selectedRowInComponent=>0}])end
<LiohAu>
tagrudev has quit [Remote host closed the connection]
<LiohAu> hm, i wanted to make something < to 3 lines xD
<LiohAu> well anyway, i'm getting the following error : "undefined method `>' for [6]:Array (NoMethodError)"
<LiohAu> i assume that it is the "while selectedRow > 0 do"
mikepack has joined #ruby
<LiohAu> but i don't understand what is invalid in that
arya has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
Catbuntu has quit [Quit: Auf wiedersehen]
nomenkun has quit [Ping timeout: 256 seconds]
<tobiasvl> what is selectedRow set to before the loop?
Xeago has joined #ruby
banisterfiend has joined #ruby
dallasm has quit [Remote host closed the connection]
<LiohAu> selectedRow = query("pickerView", [{:selectedRowInComponent=>0}])
<LiohAu> and just after with "$stderr.write(selectedRow)" i obtain "6"
<tobiasvl> okay, what is its VALUE
<tobiasvl> ok
arya has joined #ruby
SCommette has joined #ruby
bluenemo has quit [Ping timeout: 252 seconds]
tcstar has joined #ruby
radq has joined #ruby
chrisnicola has joined #ruby
<tobiasvl> because it looks like it's set to [6]
imami|afk is now known as banseljaj
monkegji_ has joined #ruby
octoberry has quit [Ping timeout: 248 seconds]
<tobiasvl> LiohAu: the error message says that [6], which is an Array, doesn't have the method >
<tobiasvl> so
bluenemo has joined #ruby
<LiohAu> is there something like a return value type in ruby for functions?
<tobiasvl> no
<LiohAu> because actually i don't know what is this call : "query("pickerView", [{:selectedRowInComponent=>0}])" returning
br1an has joined #ruby
yekta has joined #ruby
<tobiasvl> ruby is dynamically typed
<LiohAu> ok a [0] is missing after the query call
pavilionXP has joined #ruby
s122 has joined #ruby
<tobiasvl> that'd work
mengu has quit [Read error: Connection reset by peer]
mengu_ has joined #ruby
s122 has quit [Read error: Connection reset by peer]
<LiohAu> this cucumber thing is awesome, but it's a little bit hard to start ruby ^^
s122 has joined #ruby
AndChat| has joined #ruby
s122 has quit [Read error: Connection reset by peer]
s122 has joined #ruby
jasond has joined #ruby
s122 has quit [Read error: Connection reset by peer]
s122 has joined #ruby
br1an has quit [Ping timeout: 252 seconds]
nari has joined #ruby
Mon_Ouie has joined #ruby
hybris has quit [Read error: Connection reset by peer]
pyrac has quit [Quit: pyrac]
br1an has joined #ruby
yalue has joined #ruby
hibariya has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 248 seconds]
carlyle has quit [Remote host closed the connection]
aaronmcadam has quit [Quit: aaronmcadam]
hybris has joined #ruby
dmonjo has quit [Quit: Leaving]
s122 has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
casheew has joined #ruby
mlr has joined #ruby
rippa has joined #ruby
nari has quit [Ping timeout: 255 seconds]
pyrac has joined #ruby
speakingcode-wor has joined #ruby
dr_bob has quit [Quit: Leaving.]
<speakingcode-wor> in javascript it is common to have a param to a function that is an object, for 'options' etc. then within the fucntion, various fields of the object (object literal, like a hash) can be checked if they are defined.. is there a similar practice with ruby with hashses, or a more preferred way?
axl_ has joined #ruby
Xeago has joined #ruby
casheew has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby
BrindleFly has quit [Quit: BrindleFly]
marr has joined #ruby
casheew has joined #ruby
angusiguess has joined #ruby
<banisterfiend> speakingcode-wor: not that common, we just pass a hash instead
<banisterfiend> explicit hash literal
<speakingcode-wor> and how would you check for optional fields? w/ defined?
casheew has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
mafolz has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
philcrissman has quit [Remote host closed the connection]
toto_ has joined #ruby
mercwith1mouth has joined #ruby
mercwithamouth has joined #ruby
Targen has joined #ruby
monkegji_ has quit [Remote host closed the connection]
casheew has joined #ruby
<Mon_Ouie> No, you just use Hash#has_key? (or even check Hash#[] unless the parameter can be nil)
angusiguess has quit [Ping timeout: 248 seconds]
radq has quit [Remote host closed the connection]
philcrissman has joined #ruby
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<banisterfiend> Mon_Ouie: working on any cool projects these days?
<Mon_Ouie> Nope
daniel_- has joined #ruby
<banisterfiend> Mon_Ouie: busy with school or found a new hobby? :)
monkegji_ has joined #ruby
<Mon_Ouie> former
QKO_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<banisterfiend> Mon_Ouie: actually learning anything in programming classes yet or it's still the basics?
Hypn has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
sandGorgon has quit [Ping timeout: 248 seconds]
PanPan has joined #ruby
<Mon_Ouie> We don't have programming classes this semester
<Mon_Ouie> We have chemistry instead :(
monkegji_ has joined #ruby
straind` has quit []
monkegji_ has quit [Read error: Connection reset by peer]
<banisterfiend> Mon_Ouie: really weird you guys are forced to do so many things, at my university we could already specialize in the first year
alex__c2022 has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
QKO has quit [Ping timeout: 255 seconds]
monkegji_ has joined #ruby
<banisterfiend> Mon_Ouie: but i guess it's the reason europeans are generally a lot less ignorant than anglo-saxons :)
<Mon_Ouie> We specialize in the second semester of the second year
dmerrick has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
Es0teric has quit [Quit: Computer has gone to sleep.]
mmitchell has joined #ruby
monkegji_ has joined #ruby
Beoran_ has joined #ruby
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
<speakingcode-wor> 1ironically i'm pretty sure europeans are anglo saxons
monkegji_ has quit [Read error: Connection reset by peer]
<LiohAu> Mon_Ouie french ?
<speakingcode-wor> one of us is wrong, which only proves your point
<Mon_Ouie> LiohAu: Close, Belgian
monkegji_ has joined #ruby
<LiohAu> come in france, your school is bad :P
<banisterfiend> speakingcode-wor: mostly they're not
mephux has quit [Excess Flood]
monkegji_ has quit [Read error: Connection reset by peer]
gestahlt has joined #ruby
<gestahlt> Hi
<banisterfiend> speakingcode-wor: anglo saxons are the british and americans
monkegji_ has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
<speakingcode-wor> hmm. o
monkegji_ has joined #ruby
<speakingcode-wor> i think americans are too mixed in general to say americans are anglo saxon, though many are
monkegji_ has quit [Read error: Connection reset by peer]
monkegji_ has joined #ruby
<gestahlt> Ich bin koenig Arthur und habe den Sachsen das Angeln beigebracht, jetzt sind es Angelsachsen!
<speakingcode-wor> but, meh. this isn't geography and demographics :-p
monkegji_ has quit [Read error: Connection reset by peer]
Beoran__ has quit [Ping timeout: 260 seconds]
generalissimo has joined #ruby
mephux has joined #ruby
<banisterfiend> Mon_Ouie: what's your CSS like?
adeponte has joined #ruby
monkegji_ has joined #ruby
<banisterfiend> im having a horrible time
<speakingcode-wor> css is the devil
<Mon_Ouie> It's about as good as my Google-fu
skattyadz has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
pavilionXP has quit [Quit: Forget progress by proxy. Land on your own moon.]
casheew has quit [Read error: Connection reset by peer]
<gestahlt> IE is the devil
monkegji_ has joined #ruby
<gestahlt> CSS okay
chrisnicola has quit [Quit: This computer has gone to sleep]
<gestahlt> as long as no IE is involved
monkegji_ has quit [Read error: Connection reset by peer]
bubblehead has joined #ruby
casheew has joined #ruby
<gestahlt> Im also having CSS troubles, that dumbass IE.. no version behaves consistently.
monkegji_ has joined #ruby
PanPan has quit [Ping timeout: 255 seconds]
<gestahlt> even with CSS3Pie IE is barfing its innards all around
<speakingcode-wor> yeah agreed. its too bad MS doesn't have forced-upgrades implemented in IE
<gestahlt> Its eating far too much glue
monkegji_ has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
monkegji_ has joined #ruby
theRoUS has quit [Ping timeout: 276 seconds]
monkegji_ has quit [Read error: Connection reset by peer]
<gestahlt> Yesterday i implemented CSS3Pie in my rails project, rewrote all the border radi and provided them through mixins.. IE7.. Nice, at least close what it should look, IE9, ah just looks like it should look, IE8.. F"$! U! I DONT WANNA!
monkegji_ has joined #ruby
woolite64 has quit [Ping timeout: 255 seconds]
kammouflage has joined #ruby
<speakingcode-wor> where i work, we serve up a lot of web stuff for various clients, mapping related things.. we just had a big contract issue cause one of our clients, which is a large division of a cell-phone mfr, was restricted to IE6 company-wide
ahokaomaeha has quit [Ping timeout: 248 seconds]
<gestahlt> Ha, Today i came to an agreement with my client that we no longer support IE7. We will provide information how to perform an update to IE8 and how to install other browsers on the main page
Uranio has joined #ruby
<speakingcode-wor> yeah, that's the way to go.
toto_ has quit [Quit: Leaving...]
<gestahlt> I told him that we cannot provide equal quality and user experience across every browser. I told him that is like watching Blue Ray movies on his beloved Siemens S42 mobile.
casheew has quit [Read error: Connection reset by peer]
<gestahlt> "What? I cannot watch movies at all with this mobile!" "Exactly"
jlast has quit [Remote host closed the connection]
<gestahlt> Too old
<gestahlt> I should have excluded IE8 too...
chrishunt has joined #ruby
<gestahlt> Have you guys hear by any chance of the "MindWave" Headset?
mando has joined #ruby
skanev has quit [Read error: Connection reset by peer]
swex has joined #ruby
eldariof has quit [Read error: Operation timed out]
<speakingcode-wor> nope
woolite64 has joined #ruby
dallasm has joined #ruby
<gestahlt> Hm i wonder if there is a Ruby API or if i have to do one myself
casheew has joined #ruby
zigomir_ has joined #ruby
<gestahlt> Thats that crazy stuff that reads your brainwaves and you can controll stuff with it
dallasm has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
swex_ has quit [Read error: Operation timed out]
<speakingcode-wor> cool sounds kinda like my hands
<speakingcode-wor> reads my brainwaves and i control stuff with them
kammouflage has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kammouflage has joined #ruby
mattbl has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
benlieb has joined #ruby
<gestahlt> Yeah exactly!
<gestahlt> Just you dont need your hands
Mchl has quit [Ping timeout: 240 seconds]
lethjakman has joined #ruby
spaceships has joined #ruby
<gestahlt> I want to see if i can do mouse movement and keyboard control with it. Just play around with it
radosch has joined #ruby
zigomir has quit [Ping timeout: 264 seconds]
zigomir_ is now known as zigomir
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dayepa1 has quit [Quit: dayepa1]
razibog has quit [Ping timeout: 276 seconds]
<speakingcode-wor> gestahlt: is it on the market now?
nat_home has joined #ruby
dayepa_ has quit [Quit: 전 이만 갑니다.]
skattyadz has quit [Ping timeout: 245 seconds]
<gestahlt> Yeah, its around 99 Bucks
pskosinski has quit [Quit: Red Eclipse - Game where admins and dev hate people from Pakistan: http://pawelk.pl/racist-red-eclipse-quin-zeroknight-gingerbear/]
dev__ has quit [Quit: Page closed]
<gestahlt> I just bought it 2 days ago. I read about a game for this Headset on indiegames and i was rather interested in the set instead of the game
<gestahlt> So i went and bought it
<gestahlt> I also have one of the first consumer 3D helmets catching dust in my garage
<gestahlt> So i thought would it would add nicely to the collection
CraHan is now known as CraHan|out
<gestahlt> It had a max res of 320x200! I played decent and doom and duke3d on it
erlingur has joined #ruby
<gestahlt> and watched video via composite (VHS) Wohooo!
ukwiz has joined #ruby
<gestahlt> anyway, im really excited how data is measured and what data is exactly measured
<gestahlt> marketing bla does not really impress me
<radosch> Hey,… can someone help me with rspec stub / mock, I really struggle to come into it: http://pastie.org/6178086
dayepa1 has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<radosch> I can easly implement the problem,… but with testing… I just struggle to come along and turn my thought process
jgrevich has joined #ruby
<radosch> no rspec heroes here? :)
bradhe has joined #ruby
philcrissman has quit [Remote host closed the connection]
sam113101 has joined #ruby
philcrissman has joined #ruby
aganov has quit [Remote host closed the connection]
erlingur has left #ruby ["http://erlingur.is"]
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
TomJ has quit [Read error: Connection reset by peer]
TomJ_ is now known as TomJ
mlr has quit [Ping timeout: 256 seconds]
piotr_ has quit [Ping timeout: 248 seconds]
chrisnicola has joined #ruby
Umren has joined #ruby
carloslopes has quit [Remote host closed the connection]
<speakingcode-wor> gestahlt: sounds interesting, i will check it out
tjbiddle has joined #ruby
shock_one has joined #ruby
derpderp has joined #ruby
bricker_ has joined #ruby
tjbiddle has quit [Client Quit]
braoru has quit [Quit: Leaving]
fermion has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
bricker has quit [Ping timeout: 255 seconds]
fedza has joined #ruby
anderse has quit [Quit: anderse]
carlyle has joined #ruby
fermion has joined #ruby
derpderp has quit [Client Quit]
chrishunt has quit [Quit: zZzZzZ...]
dayepa has joined #ruby
baroquebobcat has joined #ruby
tenmilestereo has quit [Quit: Leaving]
brain_shim has quit [Ping timeout: 248 seconds]
<gestahlt> Btw, is there a way to simulate key presses in ruby?
<gestahlt> Like im running a shell command which needs confirmation
<banisterfiend> gestahlt: use a StringIO in your tests
<gestahlt> and press "y" when the question comes?
nga4 has quit [Ping timeout: 256 seconds]
<gestahlt> Banisterfiend: Can you give me a rough example?
mlr has joined #ruby
dayepa has quit [Quit: 전 이만 갑니다.]
dayepa1 has quit [Quit: dayepa1]
arietis has joined #ruby
dayepa1 has joined #ruby
hbpoison has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
woolite64_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
nanothief has joined #ruby
AxonetBE1 has quit [Quit: Leaving.]
pyrac has quit [Read error: Operation timed out]
dayepa1 has quit [Client Quit]
woolite64 has quit [Ping timeout: 276 seconds]
joofsh has quit [Remote host closed the connection]
mattbl has quit [Quit: This computer has gone to sleep]
QKO has joined #ruby
interact_ has joined #ruby
nanothief has quit [Ping timeout: 245 seconds]
QKO_ has quit [Ping timeout: 256 seconds]
Yakko has joined #ruby
the_drow has joined #ruby
angusiguess has joined #ruby
jlast has joined #ruby
<the_drow> how do I check if a variable is one of a list of values?
interactionjaxsn has quit [Ping timeout: 248 seconds]
benwoody has left #ruby [#ruby]
dayepa1 has joined #ruby
dayepa has joined #ruby
<jrajav> ['red', 'yellow', 'green'].include? 'red'
<jrajav> => true
<jrajav> the_drow ^
inokenty has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
<the_drow> jrajav: thank you :)
rippa has quit [Ping timeout: 240 seconds]
octoberry has joined #ruby
inokenty has joined #ruby
zastern has joined #ruby
Xeago has quit [Remote host closed the connection]
danielpcox has quit [Read error: Connection reset by peer]
mattbl has joined #ruby
LiohAu has quit [Quit: LiohAu]
danneu has joined #ruby
interact_ has quit [Ping timeout: 256 seconds]
Mchl has joined #ruby
carloslopes has joined #ruby
RonScagz has joined #ruby
MattLinux has joined #ruby
Guedes has quit [Quit: Saindo]
adeponte has joined #ruby
skattyadz has joined #ruby
graft has quit [Ping timeout: 248 seconds]
etcetera has joined #ruby
gestahlt has quit [Remote host closed the connection]
stetho has quit [Quit: stetho]
havenwood has joined #ruby
benwoody has joined #ruby
nidhimj22 has joined #ruby
radq has joined #ruby
carloslopes has quit [Ping timeout: 248 seconds]
nidhimj22 has left #ruby [#ruby]
mockra has joined #ruby
br1an has left #ruby [#ruby]
carlyle_ has joined #ruby
carlyle has quit [Ping timeout: 245 seconds]
dmiller has quit [Ping timeout: 248 seconds]
radq has quit [Remote host closed the connection]
billwanjohi has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
radq has joined #ruby
radq_ has joined #ruby
_md has quit [Quit: Leaving...]
yacks has quit [Quit: Leaving]
carloslopes has joined #ruby
danielpcox has joined #ruby
nga4 has joined #ruby
bricker_ is now known as bricker`LA
LeonardoRO has joined #ruby
Voodoofish430 has joined #ruby
radq has quit [Ping timeout: 252 seconds]
ozgura has quit [Read error: Connection reset by peer]
_br_ has quit [Excess Flood]
ozgura has joined #ruby
benwoody has left #ruby [#ruby]
JumpMast3r has quit [Remote host closed the connection]
maletor has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
tjbiddle has joined #ruby
pskosinski has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
the_drow has quit [Ping timeout: 245 seconds]
_br_ has joined #ruby
filipe has quit [Read error: Connection reset by peer]
axl_ has quit [Ping timeout: 260 seconds]
_md has joined #ruby
LeonardoRO has left #ruby [#ruby]
shock_one has quit [Read error: Operation timed out]
_br_ has quit [Excess Flood]
axl_ has joined #ruby
sqrel has joined #ruby
dustint has quit [Remote host closed the connection]
_br_ has joined #ruby
joofsh has joined #ruby
SqREL_ has joined #ruby
chrishough has quit [Quit: chrishough]
huoxito has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
brain_shim has joined #ruby
brianpWins has joined #ruby
brianpWins has quit [Client Quit]
dmiller has joined #ruby
d2dchat has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
punkrawkR^Home has joined #ruby
emocakes has quit [Quit: emocakes]
<sqrel> Hi. In my rails lib, in method i have stuff like this ```User.find_by_email(email).oauth_providers.find_by_provider(:twitter)```. How can i test it by using only FactoryGirl
kiwnix has joined #ruby
dustint has joined #ruby
lagging_troll has quit [Remote host closed the connection]
lagging_troll has joined #ruby
breakingthings has quit []
hakunin has quit [Ping timeout: 272 seconds]
emocakes has joined #ruby
LeonardoRO has joined #ruby
autumn has joined #ruby
hakunin has joined #ruby
kiwnix has quit [Client Quit]
kiwnix has joined #ruby
creationix has joined #ruby
<creationix> howdy ruby peeps
zz_chrismcg is now known as chrismcg
ckrailo has joined #ruby
<creationix> It's been years since I've used ruby, could I ask some questions about the language itself?
<havenwood> creationix: for sure
tommyvyo has joined #ruby
<creationix> Specifically I'm trying to re-understand procs, blocks and things like that
blaxter has joined #ruby
<creationix> a block seems to look a lot like a javascript callback, except it's not a parameter, but a magical "yield" value
<creationix> but what happens if you try to return from a block?
skattyadz has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
nilobject has joined #ruby
<creationix> 10.times do |i| return end
tommyvyo has quit [Client Quit]
<creationix> assuming I call 10.times inside a method body
noxoc has quit [Quit: noxoc]
rdark has quit [Quit: leaving]
skattyadz has joined #ruby
<havenwood> creationix: blocks let you pass one and only one anonymous function to a method
<creationix> right, which is really nice
<chiel> anyone know a good place to read up on rake?
<creationix> in node we just have a convention of last-arg-is-callback
<creationix> but I like block syntax better
sayan has quit [Read error: Connection reset by peer]
<havenwood> banister wrote a nice concise explanation on reddit other day: http://www.reddit.com/r/ruby/comments/17pzpj/what_is_the_benefit_of_blocks_procs_lambdas_over/
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
<creationix> havenwood, thanks, so there are blocks, procs, and lambdas?
xaq has quit [Remote host closed the connection]
<havenwood> creationix: basically blocks are by far the most often used, if you want to assign your anonymous function to a variable, use lambdas unless you need the non-local return or the no-care about arity.
<creationix> so suppose I want to implement a special "if" function
<speakingcode-wor> `isn'g a bloc just a proc with no name
<creationix> could I pass it a block and return out of the parent method if the block is called?
<speakingcode-wor> isn't*
<creationix> speakingcode-wor, it appears so
Catbuntu has joined #ruby
daniel_hinojosa has joined #ruby
chrishunt has joined #ruby
<creationix> I'm just very confused on "return" behavior
<creationix> it seems you can return from a method from inside a block
<creationix> which goes against all my understanding of how callback functions work
<creationix> (and blocks appear like unnamed callbacks)
_md has quit [Quit: Leaving...]
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
alvaro_o has joined #ruby
radq_ has quit [Remote host closed the connection]
k612 has quit [Ping timeout: 245 seconds]
slainer68 has quit [Remote host closed the connection]
<creationix> I think using "next" from inside a block acts like "return" from inside a callback. Is this right?
<havenwood> creationix: Blocks, procs and lambdas are all anonymous functions and closures. Blocks and lambdas both return locally with "return".
<creationix> havenwood, what do you mean "return locally"
<Mattx> what's the problem with this code? I want to call a lambda with a block or, if it's possible, a block passing another block to it http://pastebin.com/ajXLR9KW
<havenwood> creationix: Procs return outside the method, not just outside the proc.
Xeago has joined #ruby
mlr_ has joined #ruby
<Mon_Ouie> Except blocks return as in procs, not as in lambdas
mlr has quit [Disconnected by services]
<havenwood> creationix: Hrmm, Katz did a good talk on how Ruby differs from Python, but I think it is applicable to this as well. Sec, I'll search.
razibog has joined #ruby
mlr_ is now known as mlr
<havenwood> Mon_Ouie: Oh, oops!
carlyle_ has quit [Ping timeout: 245 seconds]
<creationix> heh, I did python before I did ruby. But my brain is now all JavaScript :P
artOfWar has joined #ruby
carlyle has joined #ruby
slainer68 has joined #ruby
<creationix> I really don't like how in javascript you can't can only return "locally" in callbacks
mahmoudimus has joined #ruby
<creationix> [1,2,3,4].forEach(function (i) { if (i === 2) return; })
jrajav has quit [Quit: I tend to be neutral about apples]
<creationix> ^^ all 4 items will be iterated on and there is no way to abort the loop
femen has joined #ruby
etcetera has quit [Ping timeout: 256 seconds]
zigomir has quit [Quit: zigomir]
<Mon_Ouie> On the other hand, the meaning of the 'break' and 'continue' keywords becomes much less obvious in Ruby
interactionjaxsn has quit [Remote host closed the connection]
<creationix> it appears that "continue" aborts that iteration of the block, "break" Aborts the code that called yield, and return "breaks" out of the current lexical method
rippa has joined #ruby
clooth has quit [Quit: clooth]
dkannan has joined #ruby
slainer68 has quit [Remote host closed the connection]
<Mon_Ouie> current lexical method or lambda, yes
QKO_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<creationix> right, lambda is more like what js calls a function when not used as a callback
alvaro_o has quit [Quit: Ex-Chat]
kold has joined #ruby
caleb_io has joined #ruby
QKO has quit [Ping timeout: 248 seconds]
<havenwood> Mattx: Yeah, you can use a block for that: https://gist.github.com/havenwood/4962068
tommyvyo has joined #ruby
Criztian has quit [Remote host closed the connection]
alvaro_o has joined #ruby
forrest has joined #ruby
<Mattx> havenwood, sure, but the idea was to have that block in a variable (gen)
<Mon_Ouie> creationix: Yep
<havenwood> Mattx: Ahh, gotcha
<Mattx> let me show you something closer to the real code, one sec
graft is now known as Guest63239
<creationix> :) I always enjoy Yehuda's talks
AxonetBE has joined #ruby
SqREL_ has quit [Quit: Leaving]
sqrel has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
<havenwood> ^ lambda version
QKO_ has quit [Read error: Operation timed out]
<creationix> btw, the reason I'm asking is I'm designing a new language
<creationix> I'm not happy with JavaScript's function/block semantics
<Mattx> havenwood, ^
<creationix> js blocks can only be used by built-in language syntax
evenix_ has quit [Ping timeout: 264 seconds]
<creationix> ruby blocks can be used by any function
Guest63239 has quit [Ping timeout: 245 seconds]
xaq has joined #ruby
<Mon_Ouie> Mattx: Foo.new do |&block| … end
monkegji_ has quit [Remote host closed the connection]
toto_ has joined #ruby
woolite64__ has joined #ruby
<Hanmac1> " [from BASIC to Ruby] so, what's the proper way to replace funcionality of GOTO ? " :D
<Mattx> ok, it should work with .call .... what about using yield? Mon_Ouie
pkircher has quit [Read error: Connection reset by peer]
<Mon_Ouie> You can't. If the scope of yield changed in the block passed to Foo.new, it would have to change in the block passed to Integer#times too, to be consistent
F1skr has quit [Quit: WeeChat 0.4.0]
<Mattx> I'm trying to figure out why when you call an initializer in this way the block can't receive another block
pyrac has joined #ruby
chrismcg is now known as zz_chrismcg
<Mattx> ah, I see
Vainoharhainen has quit [Quit: Leaving...]
rupee has joined #ruby
<Mon_Ouie> It can, it's just that yield always calls the block passed to the current *method*
<tobiasvl> Hanmac1: oh my god
cHarNe2 has left #ruby [#ruby]
toto- has joined #ruby
<femen> hi
<femen> which country is this server?
Hanmac1 is now known as Hanmac
woolite64_ has quit [Ping timeout: 255 seconds]
PanPan has joined #ruby
<Mon_Ouie> creationix: I'd also suggest you check some functional languages about that. Higher order functions are even more ubiquitous there.
kevinfagan has quit [Quit: Leaving...]
<creationix> oh, I've got lots of experience with higher order functions
maxmanders has quit [Quit: Computer has gone to sleep.]
<creationix> it's just the return/break/continue semantics that are new
<creationix> in traditional functions you can only return
<Mattx> JS has return, break and continue
monkegji_ has joined #ruby
<creationix> indeed it does, but js blocks can't be passed around
<creationix> and you can't break or continue out of a function
<Mattx> example required ^
<creationix> only return
francisfish has quit [Remote host closed the connection]
<creationix> Mattx, example of what?
<chiel> in rake, how would i execute a shell command in another directory?
<Mon_Ouie> Aha. Yes, functional programming languages avoiding state altogether don't need continue/break/explicit returns
<Mattx> of what you mean it can be done
sayan has joined #ruby
toto_ has quit [Ping timeout: 264 seconds]
arturas_ has quit [Ping timeout: 252 seconds]
<Mattx> err, cant*
<creationix> Mon_Ouie, right
<creationix> Mattx, a "block" in javascript is something like the body of a while loop
pyrac has quit [Ping timeout: 252 seconds]
<creationix> var i = 0; while (i++ < 5) { if (i === 3) { continue } console.log(i) }
<creationix> so there are two blocks there, the one that's the while body and the one that's the if body
<creationix> but I can't pass blocks to user defined functions
nat_home has quit [Quit: Leaving.]
<Mattx> you can use lambdas
<creationix> yes, but I can't use break or continue from them
<creationix> and returns within a lambda/function body only returns from the function
<creationix> much like continue in ruby blocks
PanPan has quit [Ping timeout: 244 seconds]
<Mattx> hm, I see what you mean
cparen has joined #ruby
noxoc has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
cupakromer has joined #ruby
<creationix> so what does ruby do then when I return from a block? What happens to my state in the iterator that called yield?
<creationix> does it just never return
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
danielpcox has quit [Quit: leaving]
cobragoat has joined #ruby
<creationix> Yehuda said ruby blocks come from lisp. Is there any more information on that?
<creationix> (he was just quoting matz)
<Mon_Ouie> It rewinds the stack as with exceptions and uses the object passed to break as the return value
Takehiro has quit [Read error: Connection reset by peer]
banjara has quit [Quit: Leaving.]
<creationix> alright, so continue unwinds 1 step, break unwinds 2 steps, and return unwinds n-steps to get to the current lexical method/lambda?
banjara has joined #ruby
<sam113101> can someone tell me what's the difference? http://bpaste.net/show/cHUeMVxg6Xp438Ab6oi2/
<sam113101> if ensure gets executed all the time, why would I even use it?
Takehiro has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
etcetera has joined #ruby
<banisterfiend> Mon_Ouie: why did u delete this? :( http://mon-ouie.github.com/about.html
<creationix> also, what if I return from a proc after the function that created the proc has already returned?
twoism has joined #ruby
kenneth has quit [Quit: kenneth]
<creationix> that stack doesn't even exist anymore
<Mon_Ouie> banisterfiend: Hah, I didn't — it's a joke :P
skattyadz has quit [Quit: skattyadz]
octoberry has quit [Ping timeout: 248 seconds]
chrishunt has quit [Quit: zZzZzZ...]
monkegji_ has quit [Remote host closed the connection]
<banisterfiend> Mon_Ouie: i remember in one of the first versions of your site it had content though, or do i imagine thing?
philcrissman has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 256 seconds]
<Mon_Ouie> creationix: It's not necessarily two steps. e.g. def foo; [1, 2, 3].each { |i| yield i }; end
<Mon_Ouie> banisterfiend: I don't think so. I definitely didn't remove anything.
<Mon_Ouie> (Recently, at least)
<creationix> Mon_Ouie, so "yield" in that case is the block passed to "foo"?
ebobby has joined #ruby
bricker`LA has quit [Ping timeout: 255 seconds]
moshee has quit [Ping timeout: 276 seconds]
philcrissman has joined #ruby
<Mon_Ouie> Yes. If you break in that block, you’d have to rewind back to the block in each, then to foo, then to foo's caller
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
interactionjaxsn has joined #ruby
timmow has quit [Remote host closed the connection]
monkegji_ has joined #ruby
_bart has quit [Ping timeout: 248 seconds]
* creationix is confused now
<creationix> time to write code and test
benlieb has quit [Quit: benlieb]
internet_user has joined #ruby
rdhdroid has joined #ruby
internet_user has quit [Remote host closed the connection]
mehwork has quit [Quit: leaving]
Roa has quit [Ping timeout: 245 seconds]
k3rn3lito has quit [Ping timeout: 264 seconds]
sayan has quit [Ping timeout: 248 seconds]
<chiel> hmm.. how do i execute a shell command in another directory in rake? would i just do something like.... system('cd client && command && cd -') or so?
<rdhdroid> I just built ruby-1.9.3 on ubuntu precise, when I run ruby '<internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)'
<rdhdroid> YES i did `make install`
brianpWins has joined #ruby
kold has quit [Remote host closed the connection]
Roa has joined #ruby
k3rn3lito has joined #ruby
mrsolo has joined #ruby
<sam113101> did it come with rubygems?
benwoody has joined #ruby
cdt has quit [Remote host closed the connection]
<sam113101> it might not be in your load path
<sam113101> why'd you build it yourself, anyway?
ananthakumaran has quit [Quit: Leaving.]
<havenwood> rdhdroid: Might double check you've got all requirements installed? https://github.com/postmodern/chruby/wiki/MRI
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<havenwood> rdhdroid: If you're building Rubies youself, chruby is a really nice tool to automatically set ENV and PATH appropriately and not do any other crazy stuff. :) https://github.com/postmodern/chruby
carlyle_ has joined #ruby
<creationix> "The second difference is that lambdas have diminutive returns"
<creationix> I've never heard of "diminutive" returns
carlyle has quit [Ping timeout: 245 seconds]
<creationix> so "diminutive" returns is what all javascript functions have
<creationix> and that's my issue
<creationix> I want what ruby blocks can do
wr has joined #ruby
benlieb has joined #ruby
<havenwood> Mon_Ouie: Haven't played with Ray before, seems really cool! Native ext builds on 2.0.0, yay!
Mon_Ouie has quit [Read error: Operation timed out]
bradhe has joined #ruby
philcrissman_ has joined #ruby
skattyadz has joined #ruby
wallerdev has joined #ruby
dallasm has joined #ruby
MattLinux has quit [Quit: leaving]
xaq has quit [Read error: Connection reset by peer]
xaq has joined #ruby
jarjar_prime has joined #ruby
ebobby has quit [Ping timeout: 248 seconds]
dmiller has joined #ruby
QKO has joined #ruby
philcrissman has quit [Ping timeout: 248 seconds]
predator117 has left #ruby [#ruby]
adamjleonard has joined #ruby
<creationix> has anyone ever wanted to combine lambdas and procs?
andrew__ has joined #ruby
<creationix> isn't it confusing to have two types?
<creationix> or is it not a problem for most ruby developers?
andrew__ is now known as orcris
chichou has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
<rdhdroid> make install gave me no 'gem' binary (except in the BULIDDIR/bin/gem )
nat_home has joined #ruby
<rdhdroid> i suspect my make install....
<havenwood> creationix: It is necessary to maintain Tennet's Correspondence Principle. It isn't a problem for most developers. The rule of thumb is use a lambda unless you actually have a reason to use a proc
SCommette has quit [Quit: SCommette]
<havenwood> creationix: Wycatz talk around 40-min mark.
<bluenemo> hi guys, i was wondering if it is possible in the Gemfile to specify a port for ssh to connect to, as in gem "foobar", ">= 0.2.11", :git => "git@abcde.org:foobar", :port => 1234
philcrissman_ is now known as philcrissman
<creationix> havenwood, thanks
<havenwood> Although Wycatz says "nobody really needs to use lambda"
chrishunt has joined #ruby
<havenwood> Okay, so some people say use proc unless you have a reason to use lambda. >.>
theRoUS has joined #ruby
toto- has quit [Ping timeout: 248 seconds]
Yakko has quit [Read error: Connection reset by peer]
<havenwood> bluenemo: wait, wouldn't the port go in the git:? "git@abcde.org:1234"
pavilionXP has joined #ruby
<bluenemo> ah that works? i dont know, found nothing on google
Al___ has quit [Quit: Al___]
kenneth has joined #ruby
<havenwood> bluenemo: I *think* that works: git@domain:port
rh1n0 has joined #ruby
<havenwood> bluenemo: I *think* that works: git@domain:port/folder
banjara has quit [Quit: Leaving.]
chrishunt has quit [Client Quit]
<bluenemo> ah ok, i'll check that one second
rh1n0 has quit [Client Quit]
mensvaga has joined #ruby
koderde has quit [Quit: Leaving]
squidBits has joined #ruby
Virunga has quit [Remote host closed the connection]
<mensvaga> How do I do something similar to: while (! STDIN.eof()) { $line = STDIN.readline } ?
tehdekan has joined #ruby
<bluenemo> Fetching git@0abcde.org:2222:foobar ERROR:gitosis.serve.main:Arguments to command look dangerous fatal: The remote end hung up unexpectedly
<bluenemo> :/
cableray has joined #ruby
<havenwood> bluenemo: what is foobar?
__class__ has quit [Ping timeout: 260 seconds]
<bluenemo> the name of the gem (replaced it as i'm working for a company)
philcrissman_ has joined #ruby
k612 has joined #ruby
bigkm has joined #ruby
clooth has joined #ruby
bigkm has quit [Client Quit]
<havenwood> bluenemo: Still fail in this style? git@0abcde.org:2222/foobar/foobar.it
<havenwood> s/.it/.git
<bluenemo> why 2222/foobar/foobar.git?
<bluenemo> why not 2222/foobar.git?
orcris has quit [Quit: Konversation terminated!]
ebobby has joined #ruby
<havenwood> bluenemo: oh, that might be fine, I usually point to, e.g., repo_owner/repo.git
dmonjo has joined #ruby
<havenwood> bluenemo: I think the important thing is separate the port and repo by a slash not a colon. Dunno.
<bluenemo> both doesnt work
<havenwood> bluenemo: hrmm, kk
<havenwood> bluenemo: I'm just not sure... They'd know in #bundler but responses might take a while.
<bluenemo> only thing that i know is ssh_config, but thats not possible
<bluenemo> ah good idea, i'll take it there :)
noxoc has quit [Ping timeout: 256 seconds]
philcrissman has quit [Ping timeout: 256 seconds]
<creationix> lol "JavaScript is a very string violator of the Tennet's Correspondence Principle"
samphippen has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Ping timeout: 248 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
niklasb has quit [Ping timeout: 255 seconds]
QKO has quit [Ping timeout: 276 seconds]
noxoc has joined #ruby
browndawg has left #ruby [#ruby]
pyrac has joined #ruby
<Spooner> mensvaga, STDIN.each_line {|line| ... }
QKO has joined #ruby
nat_home has quit [Quit: Leaving.]
<mensvaga> Yeah. I found while str = STDIN.gets
esreskkesketske has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
<esreskkesketske> For how long a soap from a jew will last, if i only use it to clean my anus?
mattbl is now known as MattRB
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
ahokaomaeha has joined #ruby
benlieb has joined #ruby
ewokchewy has joined #ruby
sn0wb1rd has joined #ruby
benlieb has quit [Client Quit]
sn0wb1rd has quit [Remote host closed the connection]
esreskkesketske has quit [K-Lined]
nanothief has joined #ruby
philcrissman has joined #ruby
ewokchewy has quit [Client Quit]
Rizzle has quit [Read error: Connection reset by peer]
chrishunt has joined #ruby
sn0wb1rd has joined #ruby
hybris has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
timonv has joined #ruby
rdark has joined #ruby
razibog has quit [Ping timeout: 264 seconds]
bricker`1ork is now known as bricker
yshh_ has joined #ruby
Catbuntu has quit [Quit: Auf wiedersehen]
timonv_ has quit [Read error: Connection reset by peer]
himsin has joined #ruby
RonScagz has joined #ruby
carlyle_ has quit [Remote host closed the connection]
cparen has quit [Quit: cparen]
banjara has joined #ruby
philcrissman_ has quit [Ping timeout: 248 seconds]
chussenot has quit [Quit: chussenot]
nanothief has quit [Ping timeout: 252 seconds]
nat_home has joined #ruby
yshh has quit [Ping timeout: 245 seconds]
Virunga has joined #ruby
Catbuntu has joined #ruby
yshh_ has quit [Read error: Connection reset by peer]
yshh has joined #ruby
k612 has quit [Quit: Leaving]
caleb_io has quit [Quit: caleb_io]
a_a_g has joined #ruby
ukwiz has quit [Quit: Leaving]
martin_work has joined #ruby
QKO has quit [Ping timeout: 276 seconds]
chrisja has quit [Quit: leaving]
Dreamer3 has joined #ruby
QKO has joined #ruby
xardas has joined #ruby
<maddog_> Hey
<maddog_> Can anyone help me solve this problem: https://gist.github.com/danielbecker/4962508#file-testmail-rb
bricker_ has joined #ruby
bawigga has joined #ruby
<maddog_> I get the error message in the comment at some seemingly random point iteration of the loop
<maddog_> -point
d2dchat has joined #ruby
<maddog_> Oh, I'm using ruby 1.9.3 p385
chrishough_ has joined #ruby
c0rn has joined #ruby
arturaz has joined #ruby
PanPan has joined #ruby
etcetera_ has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
etcetera has quit [Read error: Connection reset by peer]
etcetera_ is now known as etcetera
generalissimo has quit [Remote host closed the connection]
chrishough has quit [Ping timeout: 256 seconds]
chrishough_ is now known as chrishough
maycon has quit [Quit: Saindo]
PanPan has quit [Ping timeout: 256 seconds]
interactionjaxsn has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
<creationix> ok, so basically procs/blocks can't be used asyncronously with returns https://gist.github.com/creationix/1a053e1cd8d2bee4ff8d
decoponio has quit [Quit: Leaving...]
kenneth has quit [Read error: Connection reset by peer]
mando has joined #ruby
breakingthings has joined #ruby
kenneth has joined #ruby
interactionjaxsn has joined #ruby
adamjleonard has quit [Quit: Leaving...]
interact_ has joined #ruby
<gf3> creationix: No, it's that it doesn't make sense
interact_ has quit [Remote host closed the connection]
<creationix> right, you can't return from a function that already returned
tobor_one has joined #ruby
<creationix> what would that even mean
<oz> creationix: the return in the proc tries to return from the enclosing lambda, which has already returned :)
stkowski has joined #ruby
vierja has joined #ruby
<creationix> right, so if I change both to be lambdas or remove both returns it works fine
Targen has quit [Ping timeout: 256 seconds]
<creationix> change both to be lambdas is JavaScript style semantics
<oz> it does
<gf3> creationix: Also I assume you're running that inside a repl
<creationix> no, a real file
<creationix> haven't installed irb yet
QKO has quit [Ping timeout: 252 seconds]
<creationix> (not that it's hard)
<gf3> creationix: Well, sorry, a top-level namespace
<creationix> right
<gf3> creationix: If that was inside a method
<gf3> It would work as you planned it
apok has joined #ruby
<gf3> creationix: However, the easiest thing to do is simply remove the returns
<creationix> gf3, it wouldn't try to return from the lambda?
<dmonjo> can someone highlight what is the problem is my code: http://pastebin.com/bY3JWTrc
<gf3> creationix: The proc would return from the method
kenneth has quit [Client Quit]
interactionjaxsn has quit [Ping timeout: 248 seconds]
<dmonjo> i am not able to call the random_lot method getting an exception undefined local variable or method `random_lot'
QKO has joined #ruby
<creationix> gf3, I don't think it can return from the outer method
<creationix> if I nest it in another layer of lambda it still has the same error
martin_work has quit [Quit: martin_work]
<creationix> gf3, and I'm putting "return" in there to simulate early exits
<creationix> I know I don't need them in this simple case
geekbri_ has quit [Remote host closed the connection]
Phibs has quit [Remote host closed the connection]
adamjleonard has joined #ruby
<gf3> creationix: Try `next`
ddd has quit [Ping timeout: 245 seconds]
<gf3> creationix: Instead of `return`
<creationix> yep, that works
<creationix> next from a Proc is a lot like return from a lambda
<gf3> creationix: Indeed
peregrine81 has quit [Quit: Computer sleeping.]
<creationix> I'm just trying to merge the two ideas for a language I'm developing
Uranio has quit [Quit: while you reading this, a kitty dies]
<creationix> thanks everyone for the ruby refresher!
<creationix> it's been years
ferdev has joined #ruby
<gf3> creationix: This is what I meant by putting it in a method → http://cloud.gf3.ca/MvFh
enebo_ has joined #ruby
peregrine81 has joined #ruby
monkegji_ has quit [Remote host closed the connection]
enebo has quit [Read error: Connection reset by peer]
enebo_ is now known as enebo
<creationix> so lambdas and methods don't work the same?
chichou has quit [Remote host closed the connection]
RonScagz has quit [Quit: Linkinus - http://linkinus.com]
<creationix> oh, but you called b from inside the method
<creationix> I can see how that makes a difference
<gf3> creationix: Better example → http://cloud.gf3.ca/MvHY
<creationix> in my case, both the outer lambdas already returned
Rizzle has joined #ruby
chichou has joined #ruby
<creationix> right, I see what's going on now
<creationix> return searches for the nearest lambda/method that hasn't returned yet and returns from that one
<creationix> and if there is none, it throws an error
PragCypher has quit [Read error: Connection reset by peer]
generalissimo has joined #ruby
<maddog_> Sometimes the script runs w/o errors..weird behaviour
mklappstuhl has quit [Read error: Connection reset by peer]
tylersmith has joined #ruby
Virunga has quit [Remote host closed the connection]
<gf3> creationix: Right
jjbohn is now known as jjbohn|afk
<Mattx> what's the difference between this two codes? http://paste.kde.org/672470/
<gf3> Mattx: Nothing
<IceDragon> cosmetics.
chrishunt has quit [Quit: Farewell]
<gf3> Mattx: Except it's uncommon to see brace-blocks on multiple lines
<Mattx> there must be a difference because the one with {} doesn't work with the rest of the code I have
<Mattx> let me show you the rest then
evenix has joined #ruby
<gf3> Mattx: worker.call(task) { |task, result|
xaq has quit [Read error: Connection reset by peer]
<Mattx> ah, let me try
<havenwood> ^ parens not optional with {
xaq has joined #ruby
<Mattx> yeah, that was the problem
<Mattx> thanks
<Mattx> I guess you suggest using do end there
<creationix> ok, so I understand "return" from blocks/procs and return from methods/lambdas, but can you "continue" or "break" from a lambda/method?
nomenkun has joined #ruby
<creationix> if not, why would you ever use lambdas? "continue" from a lambda is the same as "return" from a block afaik
skattyadz has quit [Quit: skattyadz]
<havenwood> Mattx: A common way is to use {} for one-liners and do/end for multi-line. A minority of Rubyists vary {} vs do/end depending on whether the return value is used or just side-effect.
ner0x has quit [Quit: Leaving]
<havenwood> Mattx: I think the majority pattern is {}-one-liner and do/end-multi-liner.
<maddog_> Can anyone help me solve this problem: https://gist.github.com/danielbecker/4962508#file-testmail-rb ?
<maddog_> I get the error in the comment at some random iteration, sometimes no error
miskander has joined #ruby
a_a_g has quit [Quit: Leaving.]
<gf3> creationix: Hmm?
AxonetBE has quit [Quit: Leaving.]
w400z has joined #ruby
QKO has quit [Ping timeout: 255 seconds]
Mattx has quit [Quit: Leaving]
Mattix has joined #ruby
alvaro_o has quit [Ping timeout: 240 seconds]
QKO has joined #ruby
bluOxigen has joined #ruby
AxonetBE has joined #ruby
<mr-rich> if I do var => ["text"], it should treat it as an array, correct?
fermion has quit [Quit: Textual IRC Client: www.textualapp.com]
fschuindt has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
<mr-rich> ie: hash[key] = {var => ["text"]} ... should treat ["text"] as an array ... corrrect?
<dmonjo> can i use string.times(X) ?
<rdhdroid> compiled ruby again this time with --enable-shared and still all it gives me after install is <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
Bry8Star has quit [Read error: Connection reset by peer]
shevy has quit [Ping timeout: 256 seconds]
<rdhdroid> where should rubygems.rb be ?
bean has joined #ruby
blf has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<Spooner> dmonjo, Depends what you want string.times(X) to do.
mklappstuhl has joined #ruby
<Spooner> mr-rich, Yeah, that would be an array.
carlyle has joined #ruby
<blf> Does Ruby have any sort of Event object, or is event-based programming done using callbacks and blocks?
nat_home has quit [Quit: Leaving.]
<Spooner> blf, Yeah, usually with blocks.
philcrissman has quit [Remote host closed the connection]
<blf> I'm thinking about having an object which can queue a bunch of requests, process them on different threads, and then notify the caller once completed.
<blf> Spooner: okay, thanks :)
<mr-rich> Spooner: well, when I use YAML to write to a file, I get ! '\"text\"' ... strange
monkegji_ has joined #ruby
<havenwood> blf: Celluloid is a nice abstraction for multithreading. Celluloid::IO adds evented-io into the mix. http://celluloid.io
jrajav has joined #ruby
carlyle has quit [Remote host closed the connection]
<blf> havenwood: thanks, I'll look into that as well!
<Spooner> mr-rich: Should get "---\n12:\n- text\n" (assuming var is 12).
<mr-rich> Spooner: in some cases, I even get '[]' ...
Bry8Star has joined #ruby
<Spooner> mr-rich, "In some cases" implies that you are not using exactly that code, which could be causing the problem.
<rdhdroid> anyone here ever compile ruby before?
<dmonjo> Spooner i want to print that string 100 times using string.times(100)
sandGorgon has joined #ruby
<Spooner> dmonjo, You can do puts (string * 100) to make a really long string or 100.times {|s| puts s }
QKO_ has joined #ruby
<dmonjo> Spooner: thanks
Targen has joined #ruby
<dmonjo> where can i check which methods are defined for a specific class like String for example
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
* mr-rich bonks head ... DOH!
<Spooner> I recommend using pry (gem).
<havenwood> maddog_: Same problem if you put `smtp.use_ssl = true` between lines 22 and 23?
<havenwood> +1 Pry!
Mon_Ouie has joined #ruby
<Spooner> dmonjo, Or just google "ruby array" for the online docs.
QKO has quit [Ping timeout: 244 seconds]
kirun has joined #ruby
Catbuntu has quit [Quit: Auf wiedersehen]
Morkel_ has joined #ruby
razibog has joined #ruby
xaq_ has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
Morkel_ is now known as Morkel
peregrine81 has quit [Quit: Computer sleeping.]
xaq has quit [Read error: Connection reset by peer]
xaq_ has quit [Read error: Connection reset by peer]
xaq has joined #ruby
xaq has quit [Read error: Connection reset by peer]
xaq has joined #ruby
philcrissman has joined #ruby
shevy has joined #ruby
IrishGringo has joined #ruby
adeponte has quit [Remote host closed the connection]
<v0n> what is the difference between "bundle" and "bundle install"
cableray has quit [Quit: cableray]
<mr-rich> Spooner: I think it was an errant .to_s ...
<Hanmac> v0n ask the others at #bundler
adeponte has joined #ruby
peregrine81 has joined #ruby
<havenwood> v0n: Nothing.
tenmilestereo has joined #ruby
<Mattix> is there any way to use a variable inside a thread but to share it with its parent and all other sibling threads?
Nisstyre-laptop has joined #ruby
<havenwood> v0n: bundle *is* bundle install - but *not* bundle update
<mr-rich> Spooner: I know Ruby doesn't have a GOTO and frankly, I don't want one, but it there a way to skip over code (for testing parts of the script) besides commenting out?
<havenwood> Mattix: Threads share state.
<havenwood> mr-rich: If you compile Ruby with __jokes__ flag (something like that?) you get __GOTO__ :P
<v0n> havenwood: thanks :)
aedorn has quit [Quit: Leaving]
<Mon_Ouie> Yeah, #define SUPPORT_JOKE 1
nicoulaj has joined #ruby
<havenwood> ^ Haha, yeah that :P
adeponte has quit [Remote host closed the connection]
josh_keith has quit [Read error: Connection reset by peer]
jkeith has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
<mr-rich> havenwood: I read that ... funny ... don't want and actual goto, just a way to skip code for testing ...
havenwood has joined #ruby
tsd_usa has joined #ruby
<mr-rich> Spooner: it was an errant .to_s ... DOH!
cableray has joined #ruby
QKO_ has quit [Read error: Connection reset by peer]
<enroxorz-work> man, i just visited VB.NET land and boy am I dumber!
<enroxorz-work> MSDN Docs make no sense. I <3 Ruby Docs
Catbuntu has joined #ruby
<rdhdroid> I tried RVM, as per your advice havenwood ,but ... http://pastebin.com/i0wx4ecy
albakry has joined #ruby
albakry has quit [Changing host]
albakry has joined #ruby
QKO has joined #ruby
tsd_usa has quit [Client Quit]
albakry has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
etcetera has quit []
tsdeng has joined #ruby
monkegji_ has quit [Remote host closed the connection]
<rdhdroid> its the same error I get installing from src...
<maddog_> havenwood: I switched from using plain smtp to the mail gem, that seems to work...and I disabled the ssl stuff
<maddog_> havenwood: *explicitly
havenwood has quit [Ping timeout: 260 seconds]
artOfWar has quit [Remote host closed the connection]
<tjbiddle> Anyone have experience with using an install.rb file in the root of a project you're packaging as a gem?
<tjbiddle> Was wondering if there's a way to tell if the install is .. un-monitored
Axsuul has joined #ruby
<tjbiddle> er, not monitored.
tsdeng has quit [Client Quit]
sn0wb1rd_ has joined #ruby
tsdeng has joined #ruby
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
the_mentat has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has quit [Ping timeout: 244 seconds]
sn0wb1rd_ is now known as sn0wb1rd
PanPan has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
jjbohn|afk is now known as jjbohn
maletor has quit [Quit: Computer has gone to sleep.]
arietis has quit [Quit: Computer has gone to sleep.]
tsdeng has quit [Client Quit]
<Drewch> I can override something printed to stderr by overriding IO class method write(string), right?
naquad has joined #ruby
<dmonjo> String.instance_methods does not work?
bubblehead has quit [Remote host closed the connection]
chrisnicola has quit [Quit: This computer has gone to sleep]
banisterfiend has joined #ruby
dallasm has quit [Remote host closed the connection]
maetthew has quit [Quit: bye]
dku has joined #ruby
<dku> Anyone know of an alternative to memprof for 1.9.x? I'm leaking memory pretty badly.
<dmonjo> i want to check all available methods to the String Object
maetthew has joined #ruby
chrisnicola has joined #ruby
<banisterfiend> dmonjo: ls -M String (in pry)
PanPan has quit [Ping timeout: 248 seconds]
sandGorgon has quit [Ping timeout: 252 seconds]
QKO has quit [Read error: Operation timed out]
<dmonjo> i dont think i have pry installed what is that? i use irb
workmad3 has joined #ruby
vlad_starkov has joined #ruby
<Drewch> dmonjo have you ever used python?
<dmonjo> nop
<Drewch> well it has this function called dir variable
<rdhdroid> anyone have any experience with RVM ?
<Drewch> and it prints instance messages
<Spooner> dmonjo, gem install pry then just "pry" instead of irb.
<dmonjo> will do
<Drewch> instance functions, I wrote a one liner to put that functionality in ruby, i use it all the time to do what you want
<Drewch> put this in your irb.rc:
<Drewch> def dir obj
<Drewch> (obj.methods - Object.instance_methods).sort
<Drewch> end
icole has joined #ruby
<Spooner> Drewch, That works, but is pretty crappy compared to the pry method.
jonathanwallace has joined #ruby
<Drewch> Spooner i'll try pry sometime
<Drewch> thanks
banseljaj is now known as imami|afk
c0rn has quit [Quit: Computer has gone to sleep.]
<Spooner> In pry, you'd "ls String" (or whatever), which gives a list of constants, methods, etc. Then you can show-doc String#reverse to get the docs.
QKO has joined #ruby
<rdhdroid> the error file said env: /usr/local/rvm/rubies/ruby-1.9.3-p385/bin/ruby: No such file or directory
the_mentat has joined #ruby
<Drewch> cool
<Drewch> anyone know if it's possible to set $stderr to my own subclass of IO? I'm having trouble getting it to work
<dmonjo> they state the instance_method
<dmonjo> does not exist in 1.9 ?
<Spooner> Drewch, Just $stderr = StringIO.new should do you fine (require 'stringio' of course).
etcetera has joined #ruby
seich- has quit [Quit: See you guys later]
<Hanmac> you may like $stderr.reopen more :P
<Drewch> I want to actually print out to a Logger instance
<Spooner> Hanmac, Yeah, probably.
<Drewch> so I was going to make my subclass take in logger in it's constructor
<Spooner> Drewch, Logger manages that for you.
<Drewch> but then I also want to send an SNS (Aws notification) when an error happens
seich- has joined #ruby
<Drewch> so I need to be able to add some code to where it prints the error
chichou has quit [Remote host closed the connection]
<Drewch> his second answer where you make a logger instance fisrt then set $stderr to it
aedorn has joined #ruby
<Drewch> How does logger manage printing stderr for me though? I can't find anything on it
<Spooner> Drewch Logger.new($stderr, 'weekly')
<Spooner> Though that may be something entirely different than you are asking for...
<Drewch> right now I have @logger = Logger.new "sports.log", MAX_FILES, FILE_SIZE
<Drewch> I want $stderr to go to sports.log
<Drewch> as well as my own log prints
<Spooner> dmonjo, No idea what you are talking about.
<Spooner> Oh, right, that way around.
gouthamvel has joined #ruby
<dmonjo> in 1.,8?
<dmonjo> 1.8*
<Drewch> I could make the file first, and then give logger a file descriptor… but I feel like there should be a better way
<Spooner> Drewch, Reopen stderr to the file, then pass $stderr into the logger.
freakazoid0223 has joined #ruby
<Drewch> Spooner okay I'll try that, but the I still want to do my own custom code when there is an error
bubblehead has joined #ruby
aapzak has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
<Spooner> dmonjo, Yes, some things didn't exist in 1.8. No reason to use it any more though, unless you are working on a legacy project.
aapzak has joined #ruby
dmonjo has quit [Quit: Leaving]
dku has quit [Quit: dku]
adeponte has joined #ruby
rdark has quit [Quit: leaving]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<Spooner> Drewch, You mean to format the log or to deal with it? If the latter, I'd wrap the logger object in something that does the error handling and just passes the message in to the logger itlse.
<Spooner> *itself
<Drewch> Not to format the log, basically anytime there is a ruby error that I couldn't catch in the code, I want to send myself an email
<Drewch> so if my script just dies for example
sam113101 has quit []
<Drewch> as well as outputting the error, I would like to email myself
AxonetBE has quit [Quit: Leaving.]
kevinfagan has joined #ruby
Michae___ has joined #ruby
<Spooner> Just stick the whole thing in a rescue block and do it in the rescue => ex branch?
<Drewch> ah yeah
<Drewch> good point
<Spooner> Not sure how that has anything to do with logging though.
<Drewch> thanks, that's a really good point lol
<Drewch> not sure why i didn't just think of that
miskander has quit [Quit: miskander]
<Mattix> ah, I know what the problem with the thread was... it seems you can't call enum.next from two different threads (the second one get blocked). am I right?
<Spooner> Mattix, #next would race between the two threads like any unmutexed access.
<Spooner> Behaviour would be undefined ;)
stormetrooper has joined #ruby
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
unsay has joined #ruby
<rdhdroid> looks like the rvm script is picking up some previous buggy file, but since there is no make uninstall, i'm not sure where from...
Jackneill has quit [Ping timeout: 244 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
<Mattix> it systematically work in the same way: http://paste.kde.org/672548/
ozgura has quit [Remote host closed the connection]
unsay has quit [Client Quit]
Elhu has joined #ruby
<Mattix> (the second one to reach the .next is blocked)
dmonjo has joined #ruby
<dmonjo> @names.respond_to?("join") is slower than @names.respond_to? :join when it comes to interpreter time right?
Pandaen has joined #ruby
miskander has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 260 seconds]
bricker_ is now known as bricker
c0rn has joined #ruby
gouthamvel has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 248 seconds]
AndChat| has quit [Ping timeout: 248 seconds]
statarb3 has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
naquad has quit [Remote host closed the connection]
naquad has joined #ruby
miskander has quit [Quit: miskander]
francisfish has joined #ruby
aaroncm has joined #ruby
vlad_starkov has joined #ruby
Bonkers has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
Catbuntu has quit [Quit: Auf wiedersehen]
dyeske has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Virunga has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
thufir_ has joined #ruby
ferdev is now known as ferdev|away
seich- has quit [Quit: See you guys later]
seich- has joined #ruby
miskander has joined #ruby
_md has joined #ruby
francisfish has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
<blf> quit "Time for class. Back in a while!"
the_mentat has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
blf has quit [Quit: Page closed]
Maple__ has joined #ruby
rmartin has quit [Remote host closed the connection]
nanothief has joined #ruby
<Mattix> look, it's definitely not a race condition: http://paste.kde.org/672572/
timonv has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
cableray has quit [Quit: cableray]
chrishough has quit [Quit: chrishough]
parzorep has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<Mattix> any idea?
axl_ has quit [Quit: axl_]
<Spooner> dmonjo, In theory, yes, but practically not really. Just better to use symbols where appropriate.
ferdev|away is now known as ferdev
Maple__ has left #ruby [#ruby]
<Spooner> Mattix, Right, you didn't describe the actual error.
<Mattix> well, it should have printed FIRST 0 and SECOND 1
khimera_ has joined #ruby
axl_ has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
<Mattix> there's no error other than the fact that the second thread is blocked, for some strange reason
nanothief has quit [Ping timeout: 264 seconds]
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tcstar has quit [Quit: Leaving]
<Mattix> (I first tried with semaphores but it was the same..)
tcstar has joined #ruby
kpshek has joined #ruby
<Spooner> Running it I get: in `next': fiber called across threads (FiberError)
<Spooner> Enumerators are implemented with Fiber.
<Mattix> I don't get that error :S
<Spooner> I do (1.9.3 on Ubuntu).
<Mattix> % ruby -v
<Mattix> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
<Mattix> weird
kiwnix has quit [Quit: Leaving]
kiwnix has joined #ruby
timonv has joined #ruby
<Spooner> ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
<Mattix> so fiber doesn't allow to be called inside therads?
JarJar has joined #ruby
arietis has joined #ruby
khimera has quit [Ping timeout: 256 seconds]
khimera_ is now known as khimera
fschuindt has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
<Spooner> Not across threads no. They are sort of like threads themselves (in that they store context info).
<Mattix> I wanted it to generate stuff for threads to process
<Mattix> any other way to do so?
Proshot has joined #ruby
<Spooner> Use a Queue object between the enumerator adn the threads?
theRoUS has joined #ruby
shock_one has joined #ruby
<Mattix> well, yeah. provided I can stop the enumerator when the queue is full I guess it would work
kpshek has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
_md has quit [Quit: Linkinus - http://linkinus.com]
maletor has joined #ruby
the_drow has joined #ruby
<Spooner> Yeah, just sleep in the enumerator thread until the queue has < 10 items in it (say) and it should be fine.
PanPan has joined #ruby
<rdhdroid> rvm worked. once leftovers of the src build were cleaned up
<Spooner> Mattix, Or use something like Parallel to do it instead. Parallel.each(enum) {|x| }
brianpWins has quit [Quit: brianpWins]
spider-mario has joined #ruby
ozgura has joined #ruby
kammouflage has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
banister_ has joined #ruby
artOfWar has joined #ruby
PanPan has quit [Ping timeout: 276 seconds]
joshsmith has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
Michae___ has quit [Remote host closed the connection]
mengu_ has quit [Ping timeout: 248 seconds]
chussenot has joined #ruby
mensvaga has quit [Quit: Leaving.]
razibog has quit [Ping timeout: 244 seconds]
agarie has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
mercwith1mouth has quit [Ping timeout: 244 seconds]
mercwithamouth has quit [Ping timeout: 244 seconds]
jpfuentes2 has joined #ruby
nosleep77 has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
the_drow has left #ruby [#ruby]
baba has joined #ruby
nosleep77 has left #ruby [#ruby]
megha has quit [Ping timeout: 248 seconds]
Mon_Ouie has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
jlast has quit [Ping timeout: 244 seconds]
artOfWar has quit [Ping timeout: 255 seconds]
jlast has joined #ruby
nosleep77 has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
workmad3 has quit [Ping timeout: 252 seconds]
MattRB has quit [Quit: This computer has gone to sleep]
shock_one has quit [Ping timeout: 255 seconds]
artOfWar has joined #ruby
joofsh has quit [Remote host closed the connection]
slainer68 has joined #ruby
dmonjo has quit [Remote host closed the connection]
joofsh has joined #ruby
danbell has joined #ruby
Takehiro has quit [Remote host closed the connection]
w400z has quit []
arya_ has quit []
colonolGron has joined #ruby
n3m has joined #ruby
twoism has quit [Remote host closed the connection]
dmerrick has quit [Quit: dmerrick]
mengu has joined #ruby
mattbl has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
buibex has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
idkazuma has joined #ruby
yalue has quit [Quit: Leaving]
femen has quit [Ping timeout: 264 seconds]
ebobby has quit [Ping timeout: 252 seconds]
stevechiagozie has joined #ruby
dkannan has quit [Ping timeout: 260 seconds]
gosshedd has joined #ruby
cparen has joined #ruby
nopolitica has joined #ruby
dkannan has joined #ruby
arturaz has quit [Remote host closed the connection]
w400z has joined #ruby
dku has joined #ruby
ebobby has joined #ruby
spanner_ has quit [Read error: Connection reset by peer]
<dku> How would one go about debugging a leak of (dead) Fibers? I've tracked down the line of code that's creating the leaking fibers, but I have no idea why they aren't being destroyed (I've confirmed that each is reaching the last line of the Fiber block, so I don't know why they aren't being removed).
phinfonet has joined #ruby
spanner has joined #ruby
<dku> i.e. Fiber.new { something; puts "at the end of fiber #{Fiber.current.object_id}" } prints what you'd expect but ObjectSpace.each_object(Fiber) still lists the fiber
mark_locklear has quit [Ping timeout: 248 seconds]
<Hanmac> dku maybe the GC is not called yet
<dku> Hanmac: nah, this is long term - leaks hundreds of fibers over an hour
budmang has joined #ruby
jjbohn is now known as jjbohn|afk
joofsh has quit [Remote host closed the connection]
<budmang> gem install bundler... but it keep telling me over and over that i need to run it first(but I run it without issue/error). what am I missing?
<Mattix> what? so you can't even use mutex to stop the execution of a thread for a while? I'm getting I'm trying to unlock a mutex that has been locked by another thread (which is obvious, how would I unlock myself!?)
<Hanmac> budmang #bundler
h0rr has joined #ruby
joofsh has joined #ruby
<budmang> hanmac thanks.
<h0rr> Does ActiveSupport part of rails? Or an outer lib?
jjbohn|afk is now known as jjbohn
workmad3 has joined #ruby
griffindy has joined #ruby
schone has joined #ruby
<schone> hello
<schone> how do I convert * to \* with gsub?.... seems like the combination of these two characters is just lethal....
<Hanmac> h0rr activesupport is not part of rails directly but its better to ask in #rubyonrails about it
andikr has quit [Read error: Connection reset by peer]
<h0rr> Hanmac ok but it was assembled for Rails?
<Hanmac> h0rr i think yeah somekind
samuel02 has quit [Remote host closed the connection]
<h0rr> okie
<Hanmac> shone: "A*B".gsub("*",'\*')
mcqueenorama has joined #ruby
ferdev is now known as ferdev|away
macmartine has joined #ruby
griffindy has quit [Client Quit]
<schone> gives me a double slash....
<schone> Hanmac: double slash...
<schone> which in the end cancels itself out
PanPan has joined #ruby
ferdev|away is now known as ferdev
<schone> i need to escape in some string content the * so markdown (rdiscount) won't italicise it... im open for other suggestions
slainer68 has quit [Remote host closed the connection]
pdamer has quit [Quit: pdamer]
<Hanmac> >> puts "A*B".gsub("*",'\*')
<eval-in> Hanmac: Output: "A\\*B\n" (http://eval.in/10184)
<Hanmac> >> p "A*B".gsub("*",'\*')
<eval-in> Hanmac: Output: "\"A\\\\*B\"\n" (http://eval.in/10185)
<schone> Hanmac: thats not good for me...
<schone> Hanmac: i need the resulting string to be equal to A\*B
pdamer has joined #ruby
__BigO__ has quit [Remote host closed the connection]
timhaines has joined #ruby
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
pdamer has quit [Client Quit]
_carloslopes has joined #ruby
<Hanmac> schone have you tryed my function? because your idea does not work
pyrac has quit [Quit: pyrac]
PanPan has quit [Ping timeout: 252 seconds]
<schone> I dont understand your question?.... have I tried it in the interpreter locally? yes. And I get the same output as 'eval-in' gave...
<schone> and its not the result im looking for since it doesn't solve my problem with rdiscount
twoism has joined #ruby
mattbl is now known as MattRB
colonolGron has quit [Quit: Lost terminal]
<Hanmac> i get "A\*B" from my first line
octoberry has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
<Hanmac> schone did you use p or irb for printing the result in your interpreter?? because it uses inspect
<schone> yes i did
Lubinski_ has joined #ruby
Lubinski_ has joined #ruby
Lubinski_ has quit [Changing host]
<Hanmac> schone you need puts or print, not p
<schone> ok you're right
freakazoid0223 has quit [Read error: Connection reset by peer]
<schone> it works
<schone> thank you very much!
mall3n has joined #ruby
* Hanmac is getting "Right" points
capsule_toy has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
<schone> lol
<schone> yes u are
<schone> okay now im gonna move on w/ life
<schone> take care, thanks much
zigomir has joined #ruby
slainer68 has joined #ruby
miskander has quit [Quit: miskander]
moos3 has joined #ruby
QKO has quit [Read error: Operation timed out]
yfeldblum has quit [Ping timeout: 256 seconds]
mall3n has quit [Quit: mall3n]
moos3 has quit [Client Quit]
brianpWins has joined #ruby
aaroncm has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
moos3 has joined #ruby
_carloslopes has quit [Remote host closed the connection]
Proshot has quit [Quit: Leaving]
kofno has quit [Remote host closed the connection]
<Mattix> <Spooner> Yeah, just sleep in the enumerator thread until the queue has < 10 items in it (say) and it should be fine.
<Mattix> are you sure it's possible?
<schone> i have another question
georgi has quit [Ping timeout: 255 seconds]
QKO has joined #ruby
<Mattix> I found you can't unlock/lock semaphores that other threads are using
<schone> i have this app on heroku that is tracked with newrelic.... i have the most simple method that echos a text "OK" (we're talking about rails)
<Mattix> in that case, I don't see how we're supposed to use mutex
<schone> every now and then that request (the newrelic pinger) takes alot longer than it did it in the preview hour or more...
Mattix has quit [Read error: Connection reset by peer]
<Hanmac> schone then you can talk with the guys at #rubyonrails
moos3 has quit [Client Quit]
fedza has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
<schone> ok thx
<Mattix> I lost the connection for a moment, just in case: <Mattix> I don't see how we're supposed to use mutex
jekotia has joined #ruby
fedza has joined #ruby
v0n has quit [Ping timeout: 252 seconds]
adeponte has quit [Remote host closed the connection]
huoxito has quit [Ping timeout: 248 seconds]
miskander has joined #ruby
Michae___ has joined #ruby
philcrissman has joined #ruby
buibex has quit [Remote host closed the connection]
miskander has quit [Client Quit]
georgi has joined #ruby
fermion has joined #ruby
Lubinski_ has left #ruby ["Leaving"]
xclite has quit [Remote host closed the connection]
SeanLazer has quit [Quit: SeanLazer]
biff_tannen has joined #ruby
capsule_toy has quit []
aces1up has joined #ruby
Michae___ has quit [Ping timeout: 256 seconds]
<aces1up> i'm trying to create a custom exception, by subclassing standard error, i want to have my own initialize method in my exception, i'm trying to super(msg), but when I call backtrace i just get nil, how is the backtrace set in the standard exception?
huoxito has joined #ruby
joofsh has quit [Remote host closed the connection]
hashmal has joined #ruby
Morkel has quit [Quit: Morkel]
alex__c2022 has quit [Quit: alex__c2022]
philcrissman has quit [Remote host closed the connection]
emmanuelux has joined #ruby
joofsh has joined #ruby
nopolitica has quit [Remote host closed the connection]
lancepantz_ is now known as lancepantz
Roa has quit [Ping timeout: 252 seconds]
k3rn3lito has quit [Ping timeout: 276 seconds]
dku has quit [Quit: dku]
wr has quit [Quit: Leaving]
mephux has quit [Excess Flood]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
monkegjinni has joined #ruby
k3rn3lito has joined #ruby
Es0teric has joined #ruby
mephux has joined #ruby
gtc has quit [Ping timeout: 252 seconds]
pdamer has joined #ruby
danneu has quit [Ping timeout: 248 seconds]
nicoulaj has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
danneu has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
sirecote_ has joined #ruby
emmanuelux has quit [Ping timeout: 248 seconds]
segv- has quit [Quit: segv-]
joofsh has quit [Remote host closed the connection]
aces1up has quit []
elux has quit [Quit: Bye!]
pdamer has quit [Quit: pdamer]
ryanf has quit [Read error: Connection reset by peer]
kevinfagan has quit [Quit: Leaving...]
ryanf has joined #ruby
c0rn has joined #ruby
aedornm has quit [Ping timeout: 260 seconds]
aedorn has quit [Ping timeout: 248 seconds]
jwest has joined #ruby
mockra has joined #ruby
EPIK has joined #ruby
jonathanwallace has joined #ruby
Akuma has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
lagging_troll has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
CreativeEmbassy has joined #ruby
havenwood has joined #ruby
sirecote has quit [Remote host closed the connection]
sirecote_ is now known as sirecote
etcetera has quit []
failshell has quit [Remote host closed the connection]
codekoala has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
forrest has quit [Quit: Leaving]
fedza has quit [Ping timeout: 260 seconds]
fir_ed has joined #ruby
jonathanwallace has quit [Ping timeout: 260 seconds]
v0n has joined #ruby
joofsh has joined #ruby
Astral_ has joined #ruby
<Spooner> Mattix, You shouldn't need to mutex, since the Queue provided by Thread is mutexed for you.
c0rn has quit [Quit: Computer has gone to sleep.]
huismon is now known as nate_h
etcetera has joined #ruby
CreativeEmbassy has quit [Quit: Computer has gone to sleep.]
v0n has quit [Read error: Connection reset by peer]
uris has quit [Quit: Leaving]
Astralum has quit [Ping timeout: 252 seconds]
CreativeEmbassy has joined #ruby
c0rn has joined #ruby
rupee has quit [Quit: Leaving]
Vert has joined #ruby
emmanuelux has joined #ruby
mame1 has quit [Quit: Tiarra 0.1+svn-36726: SIGINT received; exit]
otherj has joined #ruby
danbell has left #ruby [#ruby]
mame0 has joined #ruby
w400z has quit []
generalissimo has quit [Remote host closed the connection]
breakingthings has quit []
alanp_ has joined #ruby
cableray has joined #ruby
CreativeEmbassy has quit [Ping timeout: 248 seconds]
naquad has quit [Remote host closed the connection]
ndboost has quit [Remote host closed the connection]
woolite64_ has joined #ruby
yekta has quit [Quit: yekta]
naquad has joined #ruby
jjbohn has quit [Quit: Leaving...]
v0n has joined #ruby
PanPan has joined #ruby
mame0 has quit [Client Quit]
iambic has quit [Quit: leaving]
mame0 has joined #ruby
alanp has quit [Ping timeout: 255 seconds]
etcetera has quit [Read error: Operation timed out]
woolite64__ has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Remote host closed the connection]
tobor_one has quit [Quit: tobor_one]
stevechiagozie has quit [Quit: Computer has gone to sleep.]
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
lagging_troll has joined #ruby
jlast has quit [Remote host closed the connection]
yekta has joined #ruby
PanPan has quit [Ping timeout: 248 seconds]
thufir_ has quit [Quit: Leaving.]
etcetera has joined #ruby
schone has quit [Remote host closed the connection]
stormetrooper has quit [Ping timeout: 248 seconds]
solidoodlesuppor has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0.2/20130201065344]]
LeonardoRO has quit [Remote host closed the connection]
mando has quit [Remote host closed the connection]
jarjar_prime has quit [Quit: Sleep time.]
adamjleonard has quit [Quit: Leaving...]
chussenot has quit [Quit: chussenot]
jarjar_prime has joined #ruby
Guest52216 has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby
cparen has quit [Quit: cparen]
moted has quit [Remote host closed the connection]
gosshedd has quit [Ping timeout: 260 seconds]
MattRB has quit [Quit: This computer has gone to sleep]
moted has joined #ruby
yekta has quit [Quit: yekta]
mercwith1mouth has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
pavilionXP has quit [Ping timeout: 252 seconds]
joofsh has quit [Remote host closed the connection]
cupakromer has quit []
spyderman4g63 has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
w400z has joined #ruby
joofsh has joined #ruby
codecop has quit [Remote host closed the connection]
cobragoat has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
xaq has quit [Remote host closed the connection]
Targen has quit [Ping timeout: 248 seconds]
eregon_ is now known as eregon
mercwithamouth has joined #ruby
mercwith1mouth has joined #ruby
adeponte has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
bubblehead has quit [Remote host closed the connection]
Lubinski has joined #ruby
Lubinski has joined #ruby
Lubinski has quit [Changing host]
generalissimo has joined #ruby
<mr-rich> Given this: myhash[key] = {:arg1 => "ooga", :arg2 => "booga"} ... wouldn't that make myhash[key].class.name = Hash?
zzing has joined #ruby
Bonkers has quit [Quit: Leaving]
adamjleonard has joined #ruby
yfeldblum has joined #ruby
<Hanmac> mr.rish the class.name is "Hash"
jerius has quit [Ping timeout: 252 seconds]
tomzx_mac has joined #ruby
stopbit has quit [Quit: Leaving]
baroquebobcat has quit [Quit: baroquebobcat]
graft_ has quit [Ping timeout: 240 seconds]
<mr-rich> Hanmac: ok ... what about if I do myhash.each do |key| ... what would key.class.name =?
baroquebobcat has joined #ruby
biff_tannen has quit [Quit: Lost terminal]
Lubinski has quit [Ping timeout: 248 seconds]
<Hanmac> mr-rich "Array" because |key| is not the real key, its a key-value pair
dku has joined #ruby
anonymuse has joined #ruby
graft_ has joined #ruby
<mr-rich> Hanmac: I'm trying to build a hash of hashes ...
<mr-rich> Hanmac: That's what I was getting ... "Array" ...
frem has quit [Quit: Computer has gone to sleep.]
jlast has joined #ruby
<Hanmac> myhash.each do |key,value|
<Morrolan> mr-rich - If you'll do a hash.each do |key, value| yo might get a result which you expect.
<Morrolan> Heh.
mrsolo has quit [Quit: Leaving]
dku has left #ruby [#ruby]
<havenwood> Any suggestions on better way to implement these methods? (Hash#map_key, etc): https://gist.github.com/havenwood/4964517
QKO has joined #ruby
QKO has quit [Changing host]
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
chussenot has joined #ruby
Ontolog has joined #ruby
srid has joined #ruby
<srid> does anyone know why this simple EM code leaks fibers (thus memory)? https://gist.github.com/srid/4964530
theRoUS has quit [Read error: Operation timed out]
<havenwood> srid: Because its EventMachine! :P Just kidding, but it is worth checking out Celluloid::IO if you haven't already: https://github.com/celluloid/celluloid-io
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> srid: Adds evented-io via nio4r sockets on top of an Erlang-style actor model.
willob has quit [Quit: Leaving.]
<srid> sure — personally i prefer Go :D — but our project already uses EM.
<havenwood> heftig: Ooh, wow, that is muuuch nicer. Thanks a ton!
<mr-rich> Morrolan: thanks ... that worked ...
<heftig> havenwood: sorry, made an error. fixed.
kofno has joined #ruby
stevechiagozie has joined #ruby
octoberry has quit [Ping timeout: 248 seconds]
asobrasil has left #ruby [#ruby]
zzing has quit [Quit: Computer has gone to sleep.]
pavilionXP has joined #ruby
Umren has quit [Read error: Connection reset by peer]
QKO_ has joined #ruby
QKO has quit [Ping timeout: 252 seconds]
QKO_ has quit [Changing host]
QKO_ has joined #ruby
stevechiagozie has quit [Quit: Computer has gone to sleep.]
miskander has joined #ruby
artOfWar has quit [Remote host closed the connection]
anderson has quit [Remote host closed the connection]
clooth has quit [Ping timeout: 248 seconds]
<havenwood> srid: There is a Go-style concurrency in Ruby that is really interesting: https://github.com/igrigorik/agent
jarjar_prime has quit [Quit: Sleep time.]
<havenwood> s/concurrency/concurrency library
<havenwood> srid: Nice!
jonathanwallace has joined #ruby
<srid> havenwood: thanks, will take a look.
<srid> we use ruby for most part, but i slipped in Go in a couple of mini projects here.
jarjar_prime has joined #ruby
tehdekan has quit [Remote host closed the connection]
<havenwood> srid: Maybe soon we'll be able to run mruby embedded in goroutines! :O
<srid> heh