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