adeponte has quit [Remote host closed the connection]
brianpWins has joined #ruby
rakl has quit [Quit: sleeping]
jxf has joined #ruby
axl_ has quit [Ping timeout: 268 seconds]
jenrzzz has joined #ruby
dpatel has quit [Quit: dpatel]
chrisramon has joined #ruby
queequeg1 has quit [Ping timeout: 252 seconds]
syamajala has joined #ruby
glyytchy has quit [Quit: glyytchy]
sarmiena_ has quit [Quit: sarmiena_]
tbrock has quit [Ping timeout: 252 seconds]
etcetera has joined #ruby
Tania has joined #ruby
axl_ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
voodoofish430 has quit [Quit: Leaving.]
hemanth has quit [Ping timeout: 276 seconds]
jlwestsr has joined #ruby
hemanth has joined #ruby
areil has joined #ruby
linoj has quit [Quit: linoj]
eniolopes has joined #ruby
SCommette has quit [Quit: SCommette]
chrisramon has quit [Quit: chrisramon]
banjara has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
TandemAdam has left #ruby ["Leaving"]
Cultofmetatron has quit [Remote host closed the connection]
tbrock has joined #ruby
bakis has joined #ruby
<bakis>
does anyone have readline working properly on fedora?
u89 has quit [Remote host closed the connection]
viktor_ has joined #ruby
alexim has quit [Quit: sleep]
chrislgibson has joined #ruby
PetePorty has quit [Remote host closed the connection]
eniolopes has quit [Remote host closed the connection]
skcin7 has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
pipopopo has quit [Ping timeout: 276 seconds]
syamajala has quit [Remote host closed the connection]
u89 has joined #ruby
linoj has joined #ruby
peregrine81 has quit [Ping timeout: 255 seconds]
Cultofmetatron has joined #ruby
iosctr has quit [Quit: ...]
hemanth has quit [Read error: Connection reset by peer]
chrislgibson has quit [Ping timeout: 256 seconds]
joeycarmello has quit [Remote host closed the connection]
hemanth has joined #ruby
koshii has quit [Ping timeout: 252 seconds]
koshii has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
etcetera has quit [Ping timeout: 268 seconds]
shiin has quit [Quit: Computer has gone to sleep.]
Tania has quit [Quit: :p]
peregrine81 has joined #ruby
n_blownapart has joined #ruby
tjbiddle_ has joined #ruby
gbchaosmaster has quit [Ping timeout: 248 seconds]
TinmanII has joined #ruby
TinmanII has left #ruby [#ruby]
tjbiddle has quit [Ping timeout: 246 seconds]
peregrine81 has quit [Ping timeout: 240 seconds]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
greenarrow has joined #ruby
gridaphobe has joined #ruby
peregrine81 has joined #ruby
swarley has joined #ruby
banjara has quit [Quit: Leaving.]
axl_ has quit [Quit: axl_]
tomsthumb has joined #ruby
tomsthumb1 has quit [Read error: Connection reset by peer]
savage- has joined #ruby
dmiller has quit [Remote host closed the connection]
axl_ has joined #ruby
SCommette has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
idzuna has quit [Ping timeout: 246 seconds]
yuike has joined #ruby
stephenjudkins has joined #ruby
tbrock has quit [Read error: Connection reset by peer]
u89 has quit [Remote host closed the connection]
mascool has quit [Ping timeout: 252 seconds]
skaczor has quit [Remote host closed the connection]
jds has joined #ruby
ossareh has quit [Ping timeout: 252 seconds]
seanyo has quit [Ping timeout: 252 seconds]
savage- has quit [Quit: savage-]
yuike has quit [Quit: Computer has gone to sleep.]
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
jrist-dogwalk is now known as jrist
jds has quit [Ping timeout: 255 seconds]
chrisbolton has joined #ruby
hemanth has quit [Ping timeout: 246 seconds]
J-_-L has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
nomenkun_ has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
synthetix has joined #ruby
hemanth has joined #ruby
codeFiend has quit [Quit: codeFiend]
niklasb has quit [Ping timeout: 240 seconds]
mvangala_ has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
gabrielrotbart has quit [Remote host closed the connection]
yuike has joined #ruby
prezioso has joined #ruby
chrislgibson has joined #ruby
Monie has joined #ruby
ksinkar has joined #ruby
Bosox20051 has joined #ruby
gabrielrotbart has joined #ruby
dagnachew has quit [Quit: Leaving]
chrislgibson has quit [Ping timeout: 246 seconds]
ksinkar has quit [Ping timeout: 265 seconds]
banjara has joined #ruby
banjara has quit [Read error: Connection reset by peer]
banjara has joined #ruby
crodas has quit [Remote host closed the connection]
crodas has joined #ruby
Ontolog has joined #ruby
jonan_ has joined #ruby
jonan has quit [Ping timeout: 248 seconds]
jonan_ is now known as jonan
tbrock has joined #ruby
lukeholder has joined #ruby
<joofsh>
is there a way to use a range going downward?
<joofsh>
for i in (0..10) works fine. but for i in (10..0) fails?
forced_request has quit [Read error: Connection reset by peer]
yuike has quit [Quit: Computer has gone to sleep.]
joeycarmello has joined #ruby
<joofsh>
ah .downto()
prezioso has quit [Ping timeout: 252 seconds]
pyx has quit [Quit: WeeChat 0.3.9.1]
mahmoudimus has joined #ruby
cardoni has quit [Quit: cardoni]
yuike has joined #ruby
chrisramon has joined #ruby
ffranz has quit [Quit: Leaving]
lukeholder has quit [Quit: Computer has gone to sleep.]
tbrock has quit [Quit: Computer has gone to sleep.]
x82_nicole has joined #ruby
jxriddle has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.1]
sambio has quit []
F1skr has joined #ruby
skcin7 has quit [Ping timeout: 252 seconds]
Trioke has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
lenovodroid has joined #ruby
idzuna has joined #ruby
jxriddle has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: I will be right back]
davidcelis has joined #ruby
maletor has joined #ruby
swarley has quit [Ping timeout: 252 seconds]
tommyvyo has joined #ruby
Trioke has quit [Ping timeout: 252 seconds]
joeycarmello has quit [Remote host closed the connection]
yuike has quit [Quit: Computer has gone to sleep.]
queequeg1 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
moshee has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
_bart_ has joined #ruby
Dreamer3 has joined #ruby
skcin7 has joined #ruby
skcin7 has quit [Max SendQ exceeded]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
skcin7 has joined #ruby
skcin7 has quit [Max SendQ exceeded]
ksinkar has joined #ruby
skcin7 has joined #ruby
skcin7 has quit [Max SendQ exceeded]
skcin7 has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
kil0byte has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
dmiller has quit [Ping timeout: 246 seconds]
Rayyo has joined #ruby
<tsou>
joofsh: you should avoid "for i in (0..10)", it's not working as you'd expect anymore
beilabs has quit [Remote host closed the connection]
_bart has quit [Ping timeout: 276 seconds]
_bart_ is now known as _bart
Cultofmetatron has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
ksinkar_ has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
hemanth has quit [Ping timeout: 246 seconds]
chrislgibson has joined #ruby
yuike has joined #ruby
ksinkar has quit [Ping timeout: 246 seconds]
codeFiend has joined #ruby
Cork has quit [Remote host closed the connection]
rohit_ has joined #ruby
Cork has joined #ruby
savage- has joined #ruby
hemanth has joined #ruby
charliesome has joined #ruby
sepp2k has joined #ruby
chrislgibson has quit [Ping timeout: 246 seconds]
milesforrest has joined #ruby
linoj has quit [Quit: linoj]
Bosox20051 has quit [Quit: Leaving]
<n_blownapart>
hi this pastie has an example from mon*Ouie of a proc including the return keyword. apparently the find method on line so I don't see what is going on with that, or with line 16. thank you: http://pastie.org/5375706
milesforrest is now known as milesforrest|afk
<n_blownapart>
*the find method on line 20 is ruby core* ^^
apok_ has quit [Read error: Connection reset by peer]
apok has quit [Ping timeout: 255 seconds]
<n_blownapart>
hi this pastie has an example from mon*Ouie of a proc including the return keyword. apparently the find method on line 20 is ruby core, and I don't see what is going on with that, or with line 16. thank you: http://pastie.org/5375706
khakimov has joined #ruby
_alejandro has joined #ruby
jrist is now known as jrist-afk
F1skr has quit [Quit: WeeChat 0.3.9.1]
cardoni has joined #ruby
queequeg1 has quit [Ping timeout: 260 seconds]
brianpWins has quit [Quit: brianpWins]
queequeg1 has joined #ruby
medik has quit [Quit: medik has no reason]
rohit_ has quit [Ping timeout: 246 seconds]
jekotia has quit [Quit: *stabs NeverDT in the face*]
BoomCow has joined #ruby
Rayyo has quit [Quit: Rayyo]
JohnBat26 has joined #ruby
chrisramon has quit [Quit: chrisramon]
areil has quit [Remote host closed the connection]
kiyoura has quit [Quit: Leaving]
ryanf has joined #ruby
xaq has quit [Remote host closed the connection]
dmiller has joined #ruby
slainer68 has joined #ruby
quest88_ has joined #ruby
etcetera has joined #ruby
n_blownapart has quit [Remote host closed the connection]
ksinkar_ has quit [Read error: Connection reset by peer]
enderx86 has joined #ruby
viktor_ has quit [Quit: This computer has gone to sleep]
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
gabrielrotbart has quit [Remote host closed the connection]
viktor_ has joined #ruby
joofsh has quit [Remote host closed the connection]
mikepack has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
mikepack has quit [Remote host closed the connection]
nat2610 has joined #ruby
rohit_ has joined #ruby
hadees has joined #ruby
synthetix has quit [Ping timeout: 246 seconds]
ryanlecompte has joined #ruby
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
nat2610 has left #ruby [#ruby]
mahmoudimus has joined #ruby
chrislgibson has joined #ruby
axl_ has left #ruby [#ruby]
joeycarmello has joined #ruby
Guest92676 has joined #ruby
Nisstyre_ has joined #ruby
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
chrislgibson has quit [Ping timeout: 264 seconds]
Nisstyre has quit [Read error: Operation timed out]
jgrevich_ has joined #ruby
Nisstyre_ has quit [Read error: Connection reset by peer]
joeycarmello has quit [Ping timeout: 255 seconds]
manizzle has quit [Read error: No route to host]
Nisstyre has joined #ruby
jgrevich has quit [Ping timeout: 276 seconds]
jgrevich_ is now known as jgrevich
BigO has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
Kyril has quit [Quit: Quitte]
yuike has quit [Quit: Computer has gone to sleep.]
yuike has quit [Quit: Computer has gone to sleep.]
Hanmac1 is now known as Hanmac
hamed_r has joined #ruby
cntoby has joined #ruby
dmiller has joined #ruby
ryanf has quit [Quit: leaving]
J-_-L has quit [Ping timeout: 246 seconds]
alexim has joined #ruby
Ontolog has quit [Quit: Ontolog]
thillux has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 268 seconds]
tjbiddle has joined #ruby
qwerxy has joined #ruby
arturaz has joined #ruby
jds has joined #ruby
cntoby has quit []
manizzle has quit [Ping timeout: 260 seconds]
xsbeats has quit [Read error: Connection reset by peer]
xsbeats has joined #ruby
<reactormonk>
how do you remember which way round alias in ruby is?
punkrawkR has joined #ruby
hoelzro|away is now known as hoelzro
Rydefalk_ has joined #ruby
ephemerian has joined #ruby
Peter-W has joined #ruby
topek has quit [Quit: Leaving.]
Rydefalk has quit [Ping timeout: 268 seconds]
Peter-W has quit [Client Quit]
Peter-W has joined #ruby
<havenn>
I pretend it is bash and disappear the cruft: alias rb='ruby' so alias cap capitalize
topek has joined #ruby
<havenn>
And never use alias_method cause then I can't remember which one takes a comma between >.>
timmow has joined #ruby
ChampS666 has quit []
<havenn>
I'm drawing a blank, but I imagine there must be a better way to define methods after initialize argument strings?: https://gist.github.com/4077299
jake_ has quit [Read error: Connection reset by peer]
jake__ has joined #ruby
luoluoluo has joined #ruby
krazyj has quit [Ping timeout: 252 seconds]
Morkel has joined #ruby
manizzle has joined #ruby
tommyvyo has joined #ruby
timmow_ has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
zigomir has joined #ruby
nwertman has quit [Ping timeout: 240 seconds]
timmow__ has joined #ruby
Kainore has joined #ruby
keymone_ has joined #ruby
keymone has quit [Ping timeout: 246 seconds]
keymone_ is now known as keymone
jonan_ has joined #ruby
KnowTheLedge has quit []
timmow_ has quit [Ping timeout: 252 seconds]
jonan has quit [Ping timeout: 240 seconds]
jonan_ is now known as jonan
timmow has quit [Ping timeout: 252 seconds]
timmow__ is now known as timmow
slainer68 has joined #ruby
jgrevich has quit [Quit: jgrevich]
filipe has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Rym has joined #ruby
chrislgibson has joined #ruby
jxriddle has joined #ruby
ltsstar has joined #ruby
robbyoconnor has joined #ruby
workmad3 has joined #ruby
k610 has joined #ruby
slainer68 has quit [Ping timeout: 246 seconds]
nwertman has joined #ruby
pavilionXP has quit [Ping timeout: 252 seconds]
chrislgibson has quit [Ping timeout: 246 seconds]
alexim has quit [Quit: sleep]
jxriddle has quit [Ping timeout: 255 seconds]
Monie has quit [Read error: Connection reset by peer]
andrewhl has quit [Remote host closed the connection]
slainer68 has joined #ruby
apeiros_ has joined #ruby
richardjapenga has joined #ruby
Rym has quit [Quit: Rym]
adeponte has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
banjara has quit [Quit: Leaving.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
qwerxy has quit [Quit: offski]
mahmoudimus has joined #ruby
Plumm3R has joined #ruby
Elhu has joined #ruby
CodeDroid__ has joined #ruby
timonv has joined #ruby
xkx has joined #ruby
timonv has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
BoomCow has quit [Quit: Leaving]
timonv has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
CodeDroid__ has quit [Ping timeout: 265 seconds]
chussenot has joined #ruby
brianpWins has quit [Quit: brianpWins]
nilg has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
CodeDroid__ has joined #ruby
CodeDroid__ has left #ruby [#ruby]
keyvan has quit [Remote host closed the connection]
<Hanmac>
vectorshelve: depending how present works ... if prensent? returns false what is the value of self.value.to_i ?
margle has joined #ruby
fixl has joined #ruby
dr_bob has joined #ruby
<vectorshelve>
Hanmac: if value.to_i < 10
bluOxigen has joined #ruby
<Hanmac>
this could work too, depending if you defined an local variable named value before
qwerxy has quit [Quit: offski]
xorigin has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
Dave has joined #ruby
arietis has joined #ruby
Dave is now known as Guest40244
matthewrobbins has joined #ruby
dangerousdave has quit [Ping timeout: 265 seconds]
KevinSjoberg has joined #ruby
rdark has joined #ruby
xpen has joined #ruby
chussenot has quit [Quit: chussenot]
chussenot has joined #ruby
blacktulip has joined #ruby
colinbm has joined #ruby
livininasia has joined #ruby
Guest40244 has quit [Quit: Leaving...]
livininasia has left #ruby [#ruby]
banjara has quit [Quit: Leaving.]
staafl has joined #ruby
chrislgibson has joined #ruby
staafl_alt has joined #ruby
elaptics`away is now known as elaptics
pyx has quit [Quit: WeeChat 0.3.9.1]
chrislgibson has quit [Ping timeout: 246 seconds]
staafl has quit [Ping timeout: 246 seconds]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
robotmay has joined #ruby
<Plumm3R>
Hi all, when I run a .rb file using the load command is there a way to log the output?
<Kainore>
depends on the output
Juul has joined #ruby
<Kainore>
you can make a log system that the loaded .rb can access and do it that way if you are doing simple debug why not just use puts
fyolnish has quit [Remote host closed the connection]
<Plumm3R>
Kainore: Well the file itself is a Selenium test suite, so it just runs the tests. I just wondered whether there's a way of retrieving the results as they aren't outputted directly. I'm running them through jenkins.
GeekOnCoffee has quit [Read error: Connection reset by peer]
<Kainore>
return the val ? or make a variable it can write the infomation to
Iszak has joined #ruby
<Plumm3R>
Kainore: Okay, is there no way to do it quickly from the CLI then such as a flag?
fantazo has quit [Remote host closed the connection]
<Kainore>
are you running the .rb from console or from a program/script in the console ?
wargasm has quit [Read error: Connection reset by peer]
<Plumm3R>
I'm just using the load command on the .rb in the console which runs the test suite
noxoc has joined #ruby
<Kainore>
what is the reason for the infomation ?
GeekOnCoffee has joined #ruby
jds has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<Plumm3R>
I want to log it in a file to display the results with a graph etc on jenkins. Currently the only way to view the results is to go into the console output of each test run.
<Kainore>
if the infomation dosent have an use beside informing the user off the .rb just use a puts function in your .rb code if you need the caller to do some stuff with the info you might need some sort of return or variable to read and write the data/info
<Kainore>
so it is the diffrence you are trying to log ?
cezar-b has joined #ruby
<Plumm3R>
Just the result result really, nothing needs to be done with it aside from showing whether the each test passes or fails.
<Kainore>
in that case
<Kainore>
just use puts
<Kainore>
you can allways debug your own program by using simpel output and see if it works or not
kalleth has joined #ruby
LouisGB has joined #ruby
<Kainore>
if you want it in a file just write it to a file
<Plumm3R>
Okay thanks for the help :)
<Kainore>
ah no problem xD
<JonnieCache>
/reconnect
mahmoudimus has joined #ruby
xpen has quit [Read error: Connection timed out]
xpen has joined #ruby
slamice has quit [Quit: slamice]
FredLe has joined #ruby
PragCypher has joined #ruby
ssspiff has joined #ruby
wallerdev has quit [Quit: wallerdev]
elkclone has joined #ruby
ZubKonst has quit [Read error: Connection reset by peer]
PragCypher has quit [Remote host closed the connection]
Averna1 has joined #ruby
PragCypher has joined #ruby
luoluoluo has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
tomsthumb has quit [Quit: Leaving.]
Juul has quit [Ping timeout: 260 seconds]
JonnieCache has quit [Quit: Reconnecting]
luoluoluo has joined #ruby
JonnieCache has joined #ruby
u89 has joined #ruby
good_afternoon has joined #ruby
ZubKonst has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
nkts has quit []
u89 has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 276 seconds]
Rydefalk_ has quit []
Rydefalk has joined #ruby
cek2 has joined #ruby
dmiller has quit [Ping timeout: 246 seconds]
<cek2>
why is mkmf generating prefix = $(DESTDIR)/usr/local/rvm/rubies/ruby-1.9.3-p327 ?
<cek2>
what is DESTDIR, where it came from?
qwerxy has joined #ruby
TheNumb has joined #ruby
xpen has quit [Read error: Connection timed out]
luoluoluo has quit [Ping timeout: 260 seconds]
<cek2>
how do I find libruby.so path from current ruby?
Xeago has joined #ruby
luoluoluo has joined #ruby
xpen has joined #ruby
punkrawkR^Home has quit [Ping timeout: 260 seconds]
Shrink has quit [Ping timeout: 260 seconds]
Vainoharhainen has joined #ruby
hotovson has joined #ruby
<cek2>
hello?
<hoelzro>
cek2: DESTDIR is a Makefile variable that package builders can set to more easily make packages
<cek2>
yeah, why the heck is it being set with mkmf in prefix?
<hoelzro>
in make, all undefined variables default to ''
<cek2>
it clashes with rpmbuild's DESTDIR and I can't compile the lib
<hoelzro>
why are you building an RPM against an RVM?
<cek2>
because that's what I need
<hoelzro>
ok, maybe you should start from the beginning =)
<hoelzro>
what is it that you're trying to do?
chussenot has quit [Quit: chussenot]
Slivka has joined #ruby
<cek2>
i'm trying to make mkmf not insert DESTDIR into $prefix
jamesaxl has quit [Ping timeout: 252 seconds]
luoluoluo has quit [Quit: 离开]
dakine has quit [Quit: Leaving]
<cek2>
it will probably link against libruby.so and not the hardcoded path, so it's not much relevant whether it's coming from rvm
<cek2>
and interfaces won't change in near feature
chussenot has joined #ruby
punkrawkR^Home has joined #ruby
timmow has joined #ruby
<hoelzro>
but why are you trying to make mkmf not insert DESTDIR?
<hoelzro>
what kind of RPM are you building?
_bart has quit [Quit: _bart]
<cek2>
nginx with passenger
<cek2>
how do I tell it to pass custom LDFLAGS?
<cek2>
it doesn't read them from env
<cek2>
how do I make "make" more verbose so I see what's happening?
<cek2>
i've got extconf.rb
<hoelzro>
tell what? rpmbuild or mkmf?
<cek2>
mkmf
baphled has joined #ruby
daniel_- has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
<cek2>
overall, mkmf is very poorly documented from what i see
Shrink has joined #ruby
dr_bob has quit [Quit: Leaving.]
cardoni has quit [Quit: cardoni]
<hoelzro>
seems that way to me, too =(
<hoelzro>
I'm guessing that you just set LDFLAGS when you run make, though
<hoelzro>
considering mkmf just generates the Makefile
SoonerBourne has quit [Read error: Connection reset by peer]
lushious has quit [Ping timeout: 252 seconds]
SoonerBourne has joined #ruby
dr_bob has joined #ruby
<cek2>
how do i set that?
chrislgibson has joined #ruby
love_col_ has joined #ruby
<cek2>
how do I find the location of libruby.so in current ruby?
<hoelzro>
make LDFLAGS=$value
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<hoelzro>
shouldn't it just be in /usr/lib?
adambeynon has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
u89 has joined #ruby
chrislgibson has quit [Ping timeout: 246 seconds]
lkba has quit [Ping timeout: 276 seconds]
<cek2>
piece of crap. why am i not suprpised
<hoelzro>
?
tonini has quit [Remote host closed the connection]
<JonnieCache>
attn osx users: its dangerous to go alone! take this: `alias cwd="pwd | tr -d '\n' | pbcopy"`
cousine has joined #ruby
Banistergalaxy has joined #ruby
epitron has quit [Remote host closed the connection]
ttt_ has quit [Remote host closed the connection]
jxriddle has joined #ruby
fyolnish has joined #ruby
<cek2>
well fuck me running, its RbConfig::CONFIG['libdir']
hamed_r has quit [Remote host closed the connection]
epitron has joined #ruby
epitron has quit [Changing host]
epitron has joined #ruby
epitron has quit [Read error: Connection reset by peer]
xpen_ has joined #ruby
epitron has joined #ruby
epitron has quit [Changing host]
epitron has joined #ruby
tvw has joined #ruby
epitron has quit [Remote host closed the connection]
jxriddle has quit [Ping timeout: 252 seconds]
chussenot_ has joined #ruby
pcarrier has joined #ruby
_bart has joined #ruby
epitron has joined #ruby
epitron has quit [Changing host]
epitron has joined #ruby
xpen has quit [Ping timeout: 276 seconds]
berserkr has joined #ruby
ndrei has joined #ruby
apeiros_ has joined #ruby
chussenot has quit [Ping timeout: 248 seconds]
chussenot_ is now known as chussenot
cdt has quit [Quit: Ex-Chat]
cdt has joined #ruby
keymone has quit [Quit: keymone]
jamesaxl has joined #ruby
oposomme has joined #ruby
<Cork>
is there any documentation for the new has syntax?
<Cork>
(can it be used with string keys?)
<apeiros_>
do you mean the {key: "value"} syntax?
<Cork>
yes
<Hanmac>
cork it only works with symbol keys
<apeiros_>
k… new is relative I guess… :-p
<apeiros_>
and what Hanmac just said
<Cork>
k, thx
<Cork>
suspected it, but wasn't sure :)
* Hanmac
gets "he has right" bonus
<apeiros_>
level up
<apeiros_>
you're promoted to Hanmac++, thus your new nick is Hanmad
<Cork>
XD
Banistergalaxy has quit [Ping timeout: 245 seconds]
ABK has joined #ruby
<apeiros_>
Hanmac: btw., if I can get you to flicker-test the current game-code… :)
Banistergalaxy has joined #ruby
<JonnieCache>
Cork: you generally shouldnt use strings as keys
<JonnieCache>
unless you have a very good reason to do so
<apeiros_>
JonnieCache: huh?
<apeiros_>
strings as keys are fine
<apeiros_>
any object as key is fine
_bart has quit [Quit: _bart]
<apeiros_>
but thinking about why you use what as key is always mandatory
<Cork>
JonnieCache: { "data-target": url }
<Cork>
as far as i know i can't have that as a symbol :)
rakl has quit [Quit: sleeping]
<Cork>
JonnieCache: or rather { "data-target" => url }
<JonnieCache>
apeiros_: arent they slow to compare? and therefore unsuitable as keys?
reinaldob has joined #ruby
<Hanmac>
apeiros_ the flickering is gone, but you should clear the sceene one time before you start the game
<JonnieCache>
cork { :"data-target" => url}
<apeiros_>
JonnieCache: they are slower to compare than symbols, yes
<Cork>
O_o
<apeiros_>
but ruling them out for that reason is premature optimization
<Hanmac>
PS: its funny that the arrow keys seems to work, but not as they should
<Cork>
JonnieCache: is there any pros to that?
<apeiros_>
Hanmac: I think I do? will check. thanks :)
<apeiros_>
and cool that the flickering is gone
<JonnieCache>
cork its a symbol. thats how you write a symbol with - in it
<Cork>
JonnieCache: i know, but the question was, whats the pro for that compared to a normal string?
jds has joined #ruby
<apeiros_>
the pro's would be a) less memory, b) faster
<Cork>
you still can't do { "data-target": url }
<JonnieCache>
also these days in rails/haml/etc you can do {:data => {:target => url, :foo => bar}}
<JonnieCache>
and it automatically sorts it out for you
<apeiros_>
rule of thumb: if it is an identifier, use a symbol
<apeiros_>
if it is user-input, use strings
<Cork>
O_o
jackiechan0 has joined #ruby
<Cork>
seriusly!?!
<Cork>
thx that would be lovely!
<apeiros_>
(remember that there are users which aren't people - machine-to-machine communication is also user-input)
adambeynon has quit [Ping timeout: 255 seconds]
thehodge has joined #ruby
good_afternoon has quit [Quit: This computer has gone to sleep]
<Hanmac>
Cork when you need to call to_sym, think again if you do something wrong
jds has quit [Ping timeout: 245 seconds]
nemo1 has joined #ruby
schaary has joined #ruby
<Cork>
Hanmac: i don't :)
mikecmpbll has joined #ruby
<Cork>
(need to)
chussenot has quit [Remote host closed the connection]
nemo1 has left #ruby [#ruby]
PragCypher has quit [Remote host closed the connection]
dmiller has joined #ruby
chussenot has joined #ruby
<Cork>
but ya, if i would have to to make it work that would be another matter
filipe has quit [Ping timeout: 248 seconds]
<apeiros_>
Hanmac: and if you think you need something like HWIA, you do something wrong by default ;-p
sspiff has joined #ruby
PragCypher has joined #ruby
b6 has joined #ruby
ssspiff has quit [Ping timeout: 264 seconds]
adambeynon has joined #ruby
<Hanmac>
apeiros_ i get an TypeError in your rpg :D (sorry for my bug-finding-skills :P)
dmiller has quit [Ping timeout: 246 seconds]
<apeiros_>
Hanmac: oh, that's well possible. there are a couple of rough edges.
<apeiros_>
it also crashes when you killed all enemies in the dungeon :)
<b6>
can i put something in .gemrc to cause gem to store all its stuff in some directory? even if gemhome is set, junk keeps showing up in ~/.gem.
<Hanmac>
apeiros_ do you mean this: "scenes/battle.rb:85:in `dup': can't dup NilClass (TypeError)" ?
<apeiros_>
Hanmac: yupp
<apeiros_>
no enemy there anymore to spawn
<apeiros_>
spawning currently is done by dup'ping the template enemy
<apeiros_>
(will be changed soon)
cakehero has joined #ruby
PragCypher has quit [Quit: Leaving]
<apeiros_>
I think the pushed version also does not yet have loot (experience/gold/items) and level system
<Hanmac>
xD that was excaclty that i wanted to ask you now :D
mpereira has joined #ruby
<apeiros_>
if you want to contribute, you're more than welcome :D
lushious has joined #ruby
twinturbo has quit [Quit: twinturbo]
<apeiros_>
I'll push a couple of changes tonight. most likely it will include: randomized attributes on enemies, loot, basic experience system, item shop, inn
<apeiros_>
maybe I can even get to scrollable maps
xpen_ has quit [Remote host closed the connection]
matthewrobbins has quit [Quit: matthewrobbins]
<JonnieCache>
nah fuck scrolling
<JonnieCache>
do it like zelda on the gamebody where it whizzes across when you hit the edge
cakehero has quit [Read error: Connection reset by peer]
jrist-afk has joined #ruby
<JonnieCache>
never really got into chrono trigger
<JonnieCache>
it wasnt released in the eu so i didnt play it until later
Juul has joined #ruby
fermion has quit [Quit: P]
lushious has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has quit [Quit: Leaving]
callenb has joined #ruby
cakehero has joined #ruby
`brendan has quit [Ping timeout: 268 seconds]
oposomme has quit [Quit: Leaving...]
nari has joined #ruby
twinturbo has joined #ruby
Emmanuel_Chanel has joined #ruby
cakehero has quit [Read error: Connection reset by peer]
polymar has joined #ruby
twinturbo has quit [Ping timeout: 240 seconds]
u89 has quit [Remote host closed the connection]
Averna1 has quit [Quit: Leaving.]
ttt has joined #ruby
lushious has joined #ruby
Dreamer3 has joined #ruby
Virunga has joined #ruby
oposomme has joined #ruby
Guest28846 has joined #ruby
bier has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
Guest28846 is now known as dpk
ttt has quit [Ping timeout: 245 seconds]
cmarques has joined #ruby
elliot98 has joined #ruby
* elliot98
slips in
bluenemo has joined #ruby
<elliot98>
with sending an "INSERT" command with mysql2, I get a "nil" response even if the query was succesful. How does one determine if the query was or was not succesful?
Virunga has quit [Remote host closed the connection]
binarypl1 has joined #ruby
binarypl1 has quit [Client Quit]
volta has joined #ruby
dmiller has joined #ruby
bier has joined #ruby
kpshek has joined #ruby
keanehsiao has joined #ruby
bluenemo has quit [Quit: Verlassend]
dmiller has quit [Ping timeout: 245 seconds]
<chrisbolton>
Can someone help me get ruby/rvm installed on my local machine?
<Xeago>
consider alternatives, follow a tutorial, come back
rdark has quit [Quit: leaving]
kpshek has quit [Ping timeout: 260 seconds]
<chrisbolton>
Xeago: I've followed a tutorial, been on stack overflow and feel like I'm on the final steps but I'm getting an error message.
rdark has joined #ruby
<Xeago>
then enlighten us with the error message
<Xeago>
did you consider alternatives?
matthewrobbins has quit [Quit: matthewrobbins]
<chrisbolton>
Xeago: I've used rvm in the past and am comfortable with it. If possible I'd like to stick with it.
<chrisbolton>
Xeago: RVM is not a function, selecting rubies with 'rvm use ...' will not work.
oposomme has quit [Quit: Leaving...]
<chrisbolton>
Xeago: You need to change your terminal emulator preferences to allow login shell.
<chrisbolton>
Sometimes it is required to use `/bin/bash --login` as the command.
<chrisbolton>
I've pulled my .bashrc, .bash_profile and .zshrc. They all have the same line ...
<chrisbolton>
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
<Xeago>
what shell are you using?
matthewrobbins has joined #ruby
<chrisbolton>
iTerm2
<Xeago>
shell, not terminal
<Xeago>
anyways, I doubt I can help, #rvm
<chrisbolton>
zsh
cek2 has quit [Quit: cek2]
<Xeago>
"RVM is not a function, selecting rubies with 'rvm use ...' will not work." is the error?
<chrisbolton>
Yes.
chrislgibson has quit [Ping timeout: 248 seconds]
<chrisbolton>
I'm in the rvm room, waiting for everyone to be awake.
<ddd>
iTerm2 has to be set to use a login shell as well. Ensure that it is set to either Command: /bin/bash -l OR Login Shell. Then ensure that you have your .bash_profile set up with the script line
Mkman has joined #ruby
<ddd>
I run both RVM and iTerm myself, and I was one of the RVM developers so I know all that works. The only times we have had it fail to load is A) incorrect permissions on the profile (just as an assinine chmod whch occasionally happens when Time Machine blows up a recovery), or B) someone is NOT setting the terminal app (Terminal.app or iTerm/iTerm2) to launch the shell *as* a login shell
<Xeago>
ChrisBolton: for you that would be -zsh or zsh -l
<ddd>
yes, applies equally to zsh
codezombie has quit [Read error: Connection reset by peer]
codezombie has joined #ruby
pavilionXP has joined #ruby
zaki[] has quit [Ping timeout: 255 seconds]
pavilionXP has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
<chrisbolton>
Setting Term to launch shell as a login shell?
<chrisbolton>
ddd: Mind helping me do that?
<ddd>
i just did.
<Xeago>
ChrisBolton: you can use chsh
<Xeago>
or preferences
<ddd>
Open iTerm, Preferences Profiles, Terminal
<ddd>
middle of the dialog
<ddd>
err Preferences then Profiles, then Terminal
<chrisbolton>
K I'm there.
<ddd>
sorry sorry. General
<ddd>
not Terminal
<ddd>
middle of the dialog
<chrisbolton>
Command...
<chrisbolton>
Login Shell is selected
<ddd>
change it, then close that dialog, then launch a *new* tab
<ddd>
ok, then force the issue by selecting command, then entering the path to your chosen shell and add the param for your shell to force a login
<ddd>
like /usr/local/bin/bash -l
<ddd>
under bash -l is the same as —login which forces bash to act as if someone were logging in. which causes the profile and rc file to be sourced
<ddd>
mine is /usr/local/bin/bash because my default shell is /bin/bash but thats v3.2 and Homebrew's is v4.x
<ddd>
so I use Homebrew's
twinturbo has joined #ruby
<ddd>
(bad bad bad idea to add /usr/local/bin/bash to /etc/shells and then chsh to change it because any upgrade of bash in Homebrew removes it from /etc/shells and doesn't put it back so you blow up your config)
hoelzro is now known as hoelzro|away
<Xeago>
why does homebrew remove sstuff from /etc/shells?
<ddd>
idk if its homebrew or the fact that the first version is removed and the new one written out causing the OS to remove it. one of the two do
<ddd>
i would think its the OS, because Homebrew shouldn't have write access on /etc/shells
<Xeago>
as far as I know only the symlink gets overwritten in /usr/local/bin
<Xeago>
tried making /etc/shells readonly in osx?
kaiyin has joined #ruby
<ddd>
why would I alter the OS other than through sanctioned interfaces?
<Xeago>
which interface allows you to update your shell and keep it in /etc/shells?
<kaiyin>
chould anyone plz have a look at this? http://sprunge.us/CBiF mail_title cannot be printed, very weird.
<chrisbolton>
ddd: Thanks for your help I appreciate it.
lxsameer has joined #ruby
<lxsameer>
is there anything like python's __dict__ or dir in ruby?
<ddd>
sudo vim /etc/shells is the correct way to add a shell to that file, and its *supposed* to be modifiable. The OS itself is supposed to be able to do that as well. Changing the permissions can lock the system out from making changes (Apple update, whatever)
<ddd>
this is correct system administration
<ddd>
you then chsh the user to change their shell
<ddd>
either *as* root, or as the user themselves
<ddd>
just because you *can* do something a different way, doesn't make it Right Way™ :-)
kalleth is now known as kalleth__
kalleth_ has joined #ruby
<Xeago>
marking it as readonly still allows sudo vim /etc/shells
chrisbolton has quit [Quit: ChrisBolton]
kalleth_ is now known as kalleth
<shevy>
you must use vim for that?
<ddd>
its incorrect permission sets. That file is non-user modifiable. I'll admin within the standards. You, of course, are free to modify however you wish
_bart has joined #ruby
zaki[] has joined #ruby
<ddd>
shevy: no, you can change the user's shell to a non-stsandard *as root* but a user can only change to a shell listed in the file directly.
kalleth__ has quit [Quit: kalleth__]
pavilionXP has joined #ruby
<ddd>
and yes, chsh doesn't add a shell to the file, you have to either echo "blah' >> /etc/shells or vi/vim it
<shevy>
I am fine with that, just wondering since you used vim in the example, and I had hoped I could remove vim without problem :-)
<ddd>
*not* adding the shell to the file can cause other issues, but no, you do not have to directly use vim. echo works. so long as you can append to that file. any way to get it in there
pavilionXP has quit [Max SendQ exceeded]
<ddd>
but thats only if you want a *user* to be able to modify their setup using chsh, otherwise you can do it for them as root
<ddd>
and not have it *have* to be listed
pavilionXP has joined #ruby
jxriddle has joined #ruby
<ddd>
but as i said that can cause other problems for the user if its not (some programs do look to see if users are using a legal shell and they query that file for 'lawful' shells)
pavilionXP has quit [Max SendQ exceeded]
pavilionXP has joined #ruby
pavilionXP has quit [Max SendQ exceeded]
pavilionXP has joined #ruby
jeff_sebring has quit [Quit: Leaving]
<ddd>
lxsameer: I don't know python. so what does dir do? Do you mean an actual directory command? like ri Dir ?
pavilionXP has quit [Max SendQ exceeded]
twinturbo has quit [Quit: twinturbo]
<lxsameer>
ddd: no, dir give you all the attibutes and methods of an object
<shevy>
I think dir() is like pp object
<shevy>
ah
<shevy>
so it does more
<ddd>
oh .inspect or pp
<shevy>
pp object and pp object.methods perhaps
pavilionXP has joined #ruby
jxriddle has quit [Ping timeout: 260 seconds]
<shevy>
we could need a ppp to also give back the methods :)
<ddd>
yeah
<lxsameer>
shevy: what's pp ?
<Xeago>
pretty print
blacktulip has quit [Remote host closed the connection]
<shevy>
pp - pretty print, like p, but shows more and with a nicer layout
<ddd>
iirc, you can also call obj.instance_methods if you just want to see the methods that instances can call
<ddd>
iirc calling .methods will also show class level as well
<shevy>
unfortunately, you must use require 'pp', whereas with p alone you can use that without extra-require ...
oposomme has joined #ruby
blacktulip has joined #ruby
troessner has joined #ruby
<ddd>
funny thing is I rarely call .methods or .intance_methods. For some reason I got into the habit of just checking using respond_to?
<shevy>
I wonder why pp is not the default output for when using p
mrbubbles has joined #ruby
<ddd>
shevy: i've wondered that myself. :shrug:
<ddd>
hell if i can come up with a good answer
<lxsameer>
shevy: where can i find pp ?
<ddd>
ri pp
<ddd>
part of Kernel iirc
thehodge has quit [Remote host closed the connection]
<shevy>
you can somehow modify pp's default behaviour... I never really needed to do that. but you can get colourized output with pp too, in irb, via the wirble gem. gem install wirble
u89 has joined #ruby
<shevy>
there is also awesome_print, ap, with even more colours, but I found this one too annoying, so I went back to pp again
<shevy>
wirble is nice however
<shevy>
mrbubbles: that works?
<shevy>
never saw the splat *cmd in the middle before
samphippen has quit [Quit: Computer has gone to sleep.]
<mrbubbles>
shevy: what?
<ddd>
yeah thats rare that i see it anywhere but by itself or at the end
blacktulip has quit [Remote host closed the connection]
<shevy>
mrbubbles: Does the code you showed there work for you?
jlwestsr has joined #ruby
<mrbubbles>
shevy: if I remove the redirection, yeah, the second one
<mrbubbles>
Process.exec({ 'TEST_PID' => Process.pid.to_s }, *cmd) <- that works
blacktulip has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
<JonnieCache>
from the rails channel: t4nkd: Dude just walked into our office, totally random, came in with who we assume is his girlfriend and says to our boss, "Hey I'm here about the ad you guys posted"(We didn't post an ad)
Mon_Ouie has joined #ruby
areil has joined #ruby
<JonnieCache>
fuck hes changed it. used to be a LOT more eyewatering
kpshek has quit [Ping timeout: 268 seconds]
<ddd>
walking Crank Yankers? ;)
<ddd>
(the ad comment)
<JonnieCache>
click "site options" in the top right and you will understand how amazing this site is
<JonnieCache>
YEAH. enable the "classic theme" and it looks like it used to
reinaldob has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
horsey has joined #ruby
jrist-afk is now known as jrist
tk__ has joined #ruby
_bart has joined #ruby
chussenot has joined #ruby
ltsstar has quit [Ping timeout: 256 seconds]
yuike has quit [Quit: Computer has gone to sleep.]
_bart_ has joined #ruby
iamjarvo has joined #ruby
_bart has quit [Ping timeout: 240 seconds]
_bart_ is now known as _bart
eniolopes has joined #ruby
alee_ has quit [Ping timeout: 276 seconds]
<troessner>
JonnieCache, wow, thanks for sharing
<troessner>
at first i thought this was a real life satire
<troessner>
but apparently that dude is serious
alee_ has joined #ruby
<troessner>
:/
sambio has joined #ruby
<troessner>
" I started out like any other web designer or web developer, copying and pasting cutting out whatever didn't seem to work to get the most direct working pieces of code."
spacebug_ has joined #ruby
<troessner>
:D
<kalleth>
erm
<kalleth>
okay, dude
spacebug has quit [Read error: Connection reset by peer]
joofsh has joined #ruby
joofsh has quit [Client Quit]
<JonnieCache>
no hes definitely for real
u89 has joined #ruby
u89 has quit [Remote host closed the connection]
joofsh has joined #ruby
<shevy>
why does shell scripting suck so much
<JonnieCache>
troessner: did you set it to the classic theme?
tommyvyo has joined #ruby
<troessner>
JonnieCache, playing around with right now..:)
<hoelzro>
shevy: nothing's stopping you from adding Ruby support to irssi =)
<shevy>
0.48%
<shevy>
ewww
<shevy>
hmm
<hoelzro>
irssi isn't written in Perl; it merely embeds it for scripting
<shevy>
irssi is in C?
<hoelzro>
yes
<shevy>
aha
<shevy>
perhaps I confused it with some other client
<shevy>
well that changes things
<shevy>
ruby has no chance against C
<shevy>
TOO SLOW
<kalleth>
'better'
<kalleth>
;/
ethicalhack3r has joined #ruby
<hoelzro>
C and Ruby are for different purposes
<ethicalhack3r>
Hi. Is there a way to use 'CGI::Cookie::new' with a string? I would have thought 'CGI::Cookie::parse' would have been able to be passed to the Cookie instance but it can't.
<Hanmac>
shevy thats one of the reasons i do bindings ...
<shevy>
Hanmac: but it's ok, I work my way through things slowly step by step
<shevy>
right now I write a ruby script that shall analyze config.log files and offer solutions to problems
J-_-L has quit [Ping timeout: 265 seconds]
d2dchat has joined #ruby
<shevy>
odd stuff like ... "ld: warning: libdl.so.2, needed by libgmodule-2.0.so, not found (try using -rpath or -rpath-link)"
jeffreybaird has joined #ruby
<shevy>
haven't used cookies in years. only eaten them
fyolnish has quit [Remote host closed the connection]
shiin has joined #ruby
<shevy>
I hate the autotools-environment
mercwithamouth has joined #ruby
<hoelzro>
shevy: everyone does.
<shevy>
it tells me "glib is not properly installed", but it is a lie... I add stuff like LIBS="-ldl" and then it compiles fine suddenly...
<hoelzro>
shevy: you add -ldl to fix "glib is not installed"?
csaunders has joined #ruby
<shevy>
hoelzro: oh, no, the ld linker can not find some .so files, but the message that is reported, that glib does not properly work, is the bogus one
<hoelzro>
oh, that's a big WTF
<shevy>
glib works fine
<hoelzro>
well
<hoelzro>
it *could* be that configure was trying to compile a glib program to check for glib
<shevy>
for some reason, my ld isn't finding stuff unless I include some of these libraries via -l
<shevy>
yeah
<hoelzro>
but it forgot to add certain libs
<shevy>
yeah :)
<hoelzro>
well, libdl isn't included by ld by default
<shevy>
true, it is in /lib ... but /lib is in /etc/ld.so.conf
<shevy>
I think the error reporting is quite awful from the autotools
jxriddle has joined #ruby
<shevy>
you really have to scan through verbose stuff like config.log just to find the explicit error(s) in question
<shevy>
cmake isn't a huge improvement either :(
<hoelzro>
shevy: but /lib is just the search path
<shevy>
hmm
<hoelzro>
it doesn't include every library under /lib
<shevy>
it does not automatically pick these .so files up?
<hoelzro>
nope
<shevy>
aha
<shevy>
well, that makes more sense then
<hoelzro>
try this:
<hoelzro>
touch test.c && gcc test.c -Wl,-verbose
<hoelzro>
it shows you GCC's internal linker script
<hoelzro>
which kinda shows what's going on
kpshek has quit []
<hoelzro>
although it's a bit hairy
enderx86 has joined #ruby
jxriddle has quit [Ping timeout: 248 seconds]
Stalebread has joined #ruby
tk__ has quit [Quit: ばいばい]
fyolnish has joined #ruby
fyolnish has quit [Remote host closed the connection]
jxf has joined #ruby
ethicalhack3r has quit [Quit: Leaving]
cousine has quit [Remote host closed the connection]
nyuszika7h has quit [Quit: Here we are, going far to save all that we love - If we give all we've got, we will make it through - Here we are, like a star shining bright on your world - Today, make evil go away!]
thisirs has joined #ruby
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 240 seconds]
yshh has quit [Remote host closed the connection]
Stalebread has quit [Quit: Leaving]
Juul has quit [Quit: Leaving]
cousine has joined #ruby
nyuszika7h has joined #ruby
nyuszika7h has quit [Disconnected by services]
BigO has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.9.1]
nyuszika7h has joined #ruby
<_axx>
any eventmachine experts here? :)
oposomme has quit [Ping timeout: 252 seconds]
kiddy56842 has quit [Ping timeout: 246 seconds]
F1skr has joined #ruby
SCommette has quit [Quit: SCommette]
kiddy56842 has joined #ruby
margle has quit [Quit: Computer has gone to sleep.]
haxrbyte_ has quit [Read error: Connection reset by peer]
paolooo has joined #ruby
yshh has joined #ruby
haxrbyte has joined #ruby
macabre has joined #ruby
freeayu has quit [Remote host closed the connection]
keanehsiao has quit [Quit: keanehsiao]
<robotmay>
When using state_machine, will the callbacks fire if I change the state directly? i.e. self.state = "complete"
Banistergalaxy has quit [Quit: Bye]
Banistergalaxy has joined #ruby
cdt has quit [Ping timeout: 246 seconds]
dmiller has quit [Ping timeout: 255 seconds]
casheew has quit [Read error: Connection reset by peer]
polymar has quit [Remote host closed the connection]
polymar has joined #ruby
clj_newb has joined #ruby
noxoc has quit [Quit: noxoc]
J-_-L has joined #ruby
<JonnieCache>
robotmay: i think so
<JonnieCache>
robotmay: best to check
catphish has left #ruby ["Leaving"]
cdt has joined #ruby
<robotmay>
JonnieCache: Aye, rigging up a test now. I thought it would but I was being lazy :D
_alejandro has quit [Remote host closed the connection]
casheew has joined #ruby
x82_nicole has joined #ruby
cousine has quit [Remote host closed the connection]
<robotmay>
Hmm, I don't think it does actually :\
mikecmpbll has quit [Ping timeout: 252 seconds]
joshman_ has joined #ruby
cdt_ has joined #ruby
mikecmpbll has joined #ruby
<JonnieCache>
bummer
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
philcrissman has joined #ruby
fgro has joined #ruby
nitti has joined #ruby
SCommette has joined #ruby
cdt has quit [Ping timeout: 246 seconds]
Slivka has joined #ruby
stopbit has joined #ruby
akemrir has quit [Quit: WeeChat 0.3.9.1]
<fgro>
i've defined a class B within a module A for namespacing. say: module A/ class B; end/ end . Now I'm wondering, where/how should i defined modules that I want to include in B? Does my question make sense?
Rym has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
<Hanmac>
fgro everywhere you want
asteve has joined #ruby
ryanlecompte has joined #ruby
<fgro>
hmmm. so i could do module A\ module C; end class B; include A::C end end end ?
<fgro>
see what i mean?
AndChat| has joined #ruby
eldariof has quit []
brah has joined #ruby
<brah>
Any way I can use times inside print?
<brah>
print gets.to_i.times { something} instead of gets.to_i.times {print something}
nyn has joined #ruby
peregrine81 has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
<brah>
New to ruby, trying to understand why I can use while and not times inside print :)
<hoelzro>
brah: what do you expect times to return?
<brah>
hoelzro: I want to print something Y times, where Y comes from stdin
blazes816 has joined #ruby
<hoelzro>
ok
<hoelzro>
so what's wrong with gets.to_i.times { print something }?
zaki[] has quit [Read error: Operation timed out]
codecaster has quit [Read error: Connection reset by peer]
<apeiros_>
brah: `print expression` prints the return value of expression
v0n has joined #ruby
<apeiros_>
you can have anything in the place of expression, while, times, whatever - but it may not make much sense as the return value of that matters
<brah>
I want to watch the world burn.
<apeiros_>
and I doubt that `print while …` does what you want…
<apeiros_>
print something*gets.to_i
g0bl1n has joined #ruby
jblack has joined #ruby
codecaster has joined #ruby
<brah>
apeiros_: Something might be a function, not a string, that returns a different value on each call.
<brah>
Hold on, let me code an example
<apeiros_>
brah: we don't have functions in ruby, only methods ;-p
<brah>
def foo is a method to main, right?
<hoelzro>
it's a private method on Object
mengu has joined #ruby
blazes816 has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
synthetix has joined #ruby
k610 has joined #ruby
zommi has quit [Quit: Leaving.]
theRoUS has quit [Ping timeout: 245 seconds]
<brah>
Trying to code an example, I only gather more doubts. Oh well.
<apeiros_>
brah: it's as I said…
<hoelzro>
brah: well, what is it that you're trying to do?
<apeiros_>
the return value of `expression` matters
<apeiros_>
that's what print will print
<apeiros_>
and what expression itself is, is relatively irrelevant (other than it's return value, of course)
tagrudev has quit [Quit: Me = Awesome]
nateberkopec has joined #ruby
elsifaka has quit [Quit: Veloma e!]
moshee has quit [Ping timeout: 268 seconds]
moshee has joined #ruby
zz_chrismcg is now known as chrismcg
carlzulauf has quit [Ping timeout: 245 seconds]
eniolopes has quit [Remote host closed the connection]
ddd has quit [Quit: Leaving.]
carlzulauf has joined #ruby
g0bl1n has quit [Ping timeout: 260 seconds]
zaki has joined #ruby
bka has quit [Quit: Verlassend]
<brah>
Alright, keep in mind I want to watch the world burn.
<brah>
print while gets will print until EOF
macabre has quit [Remote host closed the connection]
<brah>
If I want to print 3 lines I figure I could do something like print 3.times { gets }
<apeiros_>
yeah, that's an in-line while
<apeiros_>
`action while condition` is `while condition; action; end`
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
eldariof has joined #ruby
<apeiros_>
didn't think of that. I assumed you had a full while (while … end)
nilg has quit [Read error: Connection reset by peer]
cousine has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
_alejandro has joined #ruby
ABK has joined #ruby
<brah>
apeiros_: Not quite, it seems as it does "while (i = condition): action(i); end"
<apeiros_>
brah: aaaand the difference of that to what I said is…?
<apeiros_>
brah: you realize that ; is like newline in ruby?
Schmidt has quit [Ping timeout: 245 seconds]
SqREL has quit [Quit: Leaving]
<brah>
The return value from condition is passed to action.
<apeiros_>
(which is why we use it in irc to shorten stuff to a single line)
<apeiros_>
ah
krawchyk has joined #ruby
<shevy>
while loops are evil
<apeiros_>
brah: um, no, it does not
horrror has joined #ruby
<brah>
apeiros_: print while gets calls print(gets) as long as while gets is not false.
Slivka has quit [Read error: Connection reset by peer]
<apeiros_>
brah: no
<brah>
Sorry, as long as gets is not false.
RedBunny has joined #ruby
<apeiros_>
that works as you think it does because print and gets default to working with $_
<apeiros_>
$_ = "hello\n"; print; # prints hello
<shevy>
evil!
samphippen has quit [Quit: Computer has gone to sleep.]
jrajav has joined #ruby
<apeiros_>
i.e., gets assigns $_, print defaults to printing $_ (if no arg is passed)
<apeiros_>
if it worked as you think it does, it'd print 1,2,3,4,5
nyn has quit [Quit: Leaving]
ABK has quit [Read error: Connection reset by peer]
<brah>
This is terrible.
<apeiros_>
this is perl heritage
<apeiros_>
it only applies to Kernel#gets / #print
ABK has joined #ruby
<apeiros_>
if you're explicit and use $stdout.print and $stdin.gets, it'll not be that way.
<apeiros_>
oh, or maybe it will :-(
<apeiros_>
ok, that is terrible :)
<shevy>
:)
<apeiros_>
so all IO#gets and IO#print work that way
seanyo has quit [Ping timeout: 246 seconds]
daniel_- has quit [Read error: Operation timed out]
h4mz1d has joined #ruby
jackiechan0 has joined #ruby
ABK has quit [Read error: Connection reset by peer]
polymar_ has joined #ruby
RedBunny has left #ruby [#ruby]
LouisGB has quit [Ping timeout: 260 seconds]
ABK has joined #ruby
array has quit [Ping timeout: 246 seconds]
seanyo has joined #ruby
samphippen has joined #ruby
topek has quit [Quit: Leaving.]
csaunders has quit [Quit: Computer has gone to sleep.]
dmerrick has joined #ruby
jamjam has joined #ruby
ddd has joined #ruby
mahmoudimus has joined #ruby
fgro has quit [Ping timeout: 268 seconds]
polymar has quit [Ping timeout: 252 seconds]
kaiyin has quit [Quit: Page closed]
DrShoggoth has joined #ruby
andrewhl has joined #ruby
fgro has joined #ruby
tomsthumb has joined #ruby
billiam has joined #ruby
array has joined #ruby
ryanlecompte has joined #ruby
array is now known as Guest21979
maesbn has quit [Remote host closed the connection]
u89 has joined #ruby
<brah>
So if I `def nothing`, nothing is a method to Object? and `nothing` calls that method and it automatically refers to Object, but I can't `Object.nothing`
andrewhl has quit [Ping timeout: 248 seconds]
<JonnieCache>
AAARGH. false.present? == false
<JonnieCache>
fuck!
<drPoggs>
lol
<apeiros_>
brah: you could do Object.send :nothing - but top level methods-- anyway
<apeiros_>
you should not use them unless you write like a 10 line shells cript
<apeiros_>
*shell script
brendan` is now known as brendan-
linoj has quit [Read error: Connection reset by peer]
<brah>
Might as well not even use def
linoj has joined #ruby
d2dchat has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
<mr-rich>
Hello. I have a hash being returned with the key in the form of :hash_key and I need to change it to be "hash_key" instead (with quotes)
<mr-rich>
any ideas?
rh1n0 has joined #ruby
<hoelzro>
mr-rich: why do you need to translate it from a Symbol to a String?
<JonnieCache>
i dont want to do self.new.respond_to? that sucks
<JonnieCache>
so what do i do?
<mklappstuhl>
I'm writing a parser to basically unzip a file and parse some stuff of the xml which is inside... Now I want to write some tests for that... I'm familiar with testing regular functions that don't have files as input but what would be the "best practices" on that
<troessner>
mr-rich, well, either you write your own stringify_keys! method or you install a gem like activesupport, require it and then use it like above
<JonnieCache>
apeiros_: any bright ideas?
BadLarry has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
Virunga has joined #ruby
<apeiros_>
JonnieCache: didn't read - ideas on what?
Virunga has quit [Remote host closed the connection]
<JonnieCache>
so, im in the class context, and i need to know if an instance of the class will respond to a method name
<mr-rich>
troessner: thanks
<JonnieCache>
i dont want to do self.new.respond_to? that sucks
pkrnj has quit [Remote host closed the connection]
troessner has quit [Remote host closed the connection]
BigO has quit [Remote host closed the connection]
BigO has joined #ruby
ascarpino has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
BigO has quit [Remote host closed the connection]
BigO has joined #ruby
BigO has quit [Read error: Connection reset by peer]
<jrajav>
Who the glob doesn't like smalltalk?
BigO has joined #ruby
mityaz has joined #ruby
statarb3 has quit [Ping timeout: 246 seconds]
ryanlecompte has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined.]
richardjapenga has quit [Quit: Leaving]
blazes816 has joined #ruby
<brah>
Anyway, if this is a fixnum, why can't I do this.to_s!?
<brah>
Anyway, if this is a fixnum, why can't I do `this.to_s!`?
<apeiros_>
because that method does not exist
tomsthumb has joined #ruby
vlad_starkov has joined #ruby
<apeiros_>
and if you mean "why can't I change this to become a String without reassigning" then: because a) ruby is strongly typed (an object can't change its class) and b) you can only change the object a variable references by assigning
<apeiros_>
the latter is an excellent thing. the former can be argued, but I like how it is.
blazes816 has quit [Ping timeout: 252 seconds]
<brah>
Yeah, b.
xaq has joined #ruby
ltsstar has joined #ruby
Fraeon has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
pfeilstorch has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
mahmoudimus has joined #ruby
Mkman has joined #ruby
GeekOnCoffee has quit [Ping timeout: 244 seconds]
jackiechan0 has quit [Quit: Sto andando via]
pfeilstorch has left #ruby [#ruby]
cardoni has joined #ruby
GeekOnCoffee has joined #ruby
mytec has left #ruby ["Leaving"]
viktor has joined #ruby
viktor is now known as Guest44292
elfenars has joined #ruby
<NeedSomeHelp>
Hello, Im using CodeIgniter+Compass(SASS). When googling for issues, it sais I should edit my config.rb file. But where is that file located? Searching my hdd, I have 18 files calles config.rb
yuike has joined #ruby
jamesaxl has quit [Read error: Operation timed out]
lkba has joined #ruby
jamesaxl has joined #ruby
tjbiddle has joined #ruby
mark_locklear has quit [Quit: Leaving]
hoelzro is now known as hoelzro|away
chussenot has quit [Quit: chussenot]
jenrzzz has joined #ruby
tjbiddle has quit [Client Quit]
Squarepy has joined #ruby
u89 has quit [Remote host closed the connection]
philcrissman has quit [Remote host closed the connection]
jenrzzz has quit [Read error: Connection reset by peer]
colinbm has quit [Quit: colinbm]
yuike has quit [Quit: Computer has gone to sleep.]
fgro has quit [Ping timeout: 252 seconds]
matrixise has quit [Ping timeout: 246 seconds]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
samphippen has joined #ruby
cousine has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Agis__ has joined #ruby
kaleido has left #ruby [#ruby]
Agis__ is now known as erkkk
<mklappstuhl>
I want to write tests for a zipped xml based file format (epub) but I don't really know how to write general test cases as they always refer to a specific file...
<mklappstuhl>
any hints how this is usually done?
sheerun has quit [Ping timeout: 246 seconds]
dpk has quit [Ping timeout: 252 seconds]
<erkkk>
what's correct to say: "…uses an .erb extension" or "…uses a .erb extension" ("an" vs. "a") ?
haxrbyte has quit [Ping timeout: 260 seconds]
<Xeago>
depends on how you pronounce it
xorigin has quit [Quit: leaving]
k610 has quit [Ping timeout: 240 seconds]
<Xeago>
e.g. dot-e-r-b extension
<erkkk>
so it doesn't matter if it's written
<Xeago>
or e-r-b extension
<erkkk>
oh right
<Xeago>
author's preference imo
<erkkk>
:)
<erkkk>
thx
ryanlecompte has joined #ruby
<Xeago>
I would go for a .erb extension
<Xeago>
because I would read .erb
<Xeago>
but say erb
ryanlecompte has quit [Remote host closed the connection]
<Xeago>
I think the reading part is more important
<erkkk>
yes
<erkkk>
makes sense
<Xeago>
as everyone reads the dot
quest88_ has quit [Quit: quest88_]
ryanlecompte has joined #ruby
dpk has joined #ruby
dpk is now known as Guest34678
Fraeon has joined #ruby
Morkel has quit [Quit: Morkel]
h4mz1d has quit [Ping timeout: 246 seconds]
Guest34678 is now known as dpk
brianpWins has joined #ruby
solidoodlesuppor has joined #ruby
nemesit has quit [Ping timeout: 240 seconds]
jgrevich has joined #ruby
filipe has quit [Remote host closed the connection]
dpatel has joined #ruby
stkowski has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
<NeedSomeHelp>
Anyone know compass/sass? Where is the configuration file located? I need to change the folder from stylesheets/ to css/
pavilionXP has quit [Ping timeout: 246 seconds]
cpruitt has quit [Client Quit]
cpruitt has joined #ruby
<rking>
NeedSomeHelp: I think that'd be config.sass.load_paths << File.expand_path('../../lib/assets/css') in your config/application.rb
cpruitt has quit [Client Quit]
<rking>
NeedSomeHelp: But I'd probably just rename the dir to 'stylesheets', or at least symlink it.
cpruitt has joined #ruby
etcetera has quit []
tvw has quit [Remote host closed the connection]
etcetera has joined #ruby
geggam has quit [Ping timeout: 255 seconds]
<brah>
Ugh.
<brah>
That line I posted works for a while.
<brah>
But at a certain number, 96888, it gives 1.rb:9:in `power': #<Class:0x909f958> can't be coerced into BigDecimal (TypeError)
robustus has quit [Ping timeout: 255 seconds]
BoomCow has quit [Quit: Leaving]
iaj_ has quit [Ping timeout: 255 seconds]
caleb_io has joined #ruby
robustus has joined #ruby
<brah>
BigDecimal.new(string).power(1/3.0)
kil0byte has quit [Ping timeout: 252 seconds]
alexim has joined #ruby
mahmoudimus has joined #ruby
iamvery has joined #ruby
apok has joined #ruby
BadProphet has joined #ruby
<iamvery>
I know I've seen this recently, but I can't remember the resource. What happens to the original method if you reopen a class and redefine it?
g0bl1n has quit [Ping timeout: 268 seconds]
<NeedSomeHelp>
rking: I have no files calles application.rb
caleb_io has quit [Client Quit]
<wallmani>
<3 ruby
jaygen has joined #ruby
iaj has joined #ruby
Rym__ has joined #ruby
gbchaosmaster has quit [Ping timeout: 260 seconds]
dr_bob has quit [Quit: Leaving.]
wallerdev has joined #ruby
phantasm66_ has joined #ruby
Rym has quit [Ping timeout: 246 seconds]
Rym__ is now known as Rym
<apeiros_>
iamvery: it's gone
chussenot has quit [Quit: chussenot]
minijupe has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
<iamvery>
apeiros_: gotcha, so the best practice is alias_method i guess
<iamvery>
if I still need it that is
osvico has quit [Ping timeout: 255 seconds]
statarb3 has quit [Ping timeout: 276 seconds]
chussenot has joined #ruby
Faris has joined #ruby
cdt_ has quit [Quit: Ex-Chat]
areil has quit [Remote host closed the connection]
Coolhand|brb is now known as Coolhand
g-ram has quit [Quit: Computer has gone to sleep.]
ascarpino has quit [Quit: Konversation terminated!]
<shevy>
I need to stop rewriting things
<shevy>
even if they work only 80%
asdfqwer has joined #ruby
<shevy>
it is much better than spending many hours into making the rewrite work at 95%
dankest has joined #ruby
Muz has quit [Ping timeout: 264 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<Trioke>
shevy: Well... you know what they say, the first 80% takes 20% of the effort, and the last 20% takes 80% of the effort ;).
asteve has joined #ruby
saneshark has joined #ruby
Faris has quit [Ping timeout: 240 seconds]
mascool has joined #ruby
<saneshark>
How would one write a test for a protected method of a superclass which sets instance variables? I know that you can use .send() to call the protected method, but then how would you assert_equal on the instance variables set by the method?
Nykolla has joined #ruby
forced_request has quit [Read error: Connection reset by peer]
<saneshark>
class BaseMailer < ActionMailer::Base for example has protected method setup_email
dnstbr has quit [Quit: Computer has gone to sleep.]
BrianJ has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
<saneshark>
i tried doing class Klass < BaseMailer... but that issues since it becomes BaseMailerTest::Klass
<apeiros_>
saneshark: if you really want to do whitebox testing - via instance_variable_get
enderx86 has quit [Remote host closed the connection]
<apeiros_>
but IMO that's not needed. just test the behavior. don't mind how it works internally.
arya_ has joined #ruby
arya has quit [Ping timeout: 240 seconds]
heftig has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
bbttxu has quit [Read error: Operation timed out]
Muz has joined #ruby
cmarques has joined #ruby
alfism has quit [Quit: alfism]
aquaranto has joined #ruby
voodoofish430 has joined #ruby
freakazoid0223 has joined #ruby
phantasm66_ has quit [Quit: XoX]
<saneshark>
apeiros: in other words you're saying i'll be testing the behavior when i write tests for the subclasses that inherit from it anyway, so don't bother writing tests for that specific behavior -- makes sense
<apeiros_>
I say "it sets an ivar" is not behavior
<apeiros_>
it's not externally observable
bricker has joined #ruby
<apeiros_>
when you implement a Clock class, why'd you bother whether it stores it in seconds since 00:00, or in hour,min,sec
<saneshark>
hmmm maybe not externally observable, but part of a model
<saneshark>
but you're right, i think i'm getting a little trigger happy using rcov
<arturaz>
anybody has tried scala here?
DrShoggoth has quit [Quit: Leaving]
twinturbo has joined #ruby
Xeago has quit [Ping timeout: 268 seconds]
u89 has joined #ruby
Drewch has quit [Ping timeout: 255 seconds]
Hien has quit [Ping timeout: 260 seconds]
Tuxist has joined #ruby
Slivka has joined #ruby
Drewch has joined #ruby
LouisGB has joined #ruby
banjara has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
carlyle has joined #ruby
<Sou|cutter>
saneshark: in fact I recently changed an implementation of a money class to use a completely different internal storage mechanism without changing tests. It was awesome
BigO has quit [Remote host closed the connection]
BigO has joined #ruby
<iamvery>
Am I correct that `something = 'whatever'` ALWAYS defines a local variable? i.e. never an accessor in the context of an instance method?
codecaster has joined #ruby
<iamvery>
So if there were some instance method like `def whatever; something = 'value'; end`, there would be no way for me to monkey patch that class so `something` is no longer simply a local variable
<apeiros_>
iamvery: yes
<apeiros_>
methods with = always require an explicit receiver
ngoldman has quit [Remote host closed the connection]
<iamvery>
apeiros_: I see. So if my only option in this case would be to reimplement method using an instance variable or `self.` in a monkey patch
haxrbyte has joined #ruby
elaptics is now known as elaptics`away
workmad3 has quit [Ping timeout: 240 seconds]
Hien has joined #ruby
nat2610 has quit [Quit: Leaving.]
<iamvery>
apeiros_: Hah, that last message didn't come out quite right from me, but thanks for the help :)
<mr-rich>
Hi. I'm trying to pass a string as an array of characters, but it's coming out as a binary file on the other end ... Need to convert a string to an array of characters. Any ideas?
osvico has quit [Ping timeout: 252 seconds]
<mr-rich>
aray of bytes maybe?
minijupe has quit [Quit: minijupe]
etcetera has quit [Read error: Operation timed out]
<apeiros_>
a string is an array of bytes
nat2610 has joined #ruby
nat2610 has quit [Client Quit]
mklappstuhl has quit [Ping timeout: 276 seconds]
<iamvery>
mr-rich: What was you passing it to?
<mr-rich>
apeiros_: passing it to an F5 device with soap ...
havenn has joined #ruby
ngoldman has joined #ruby
<iamvery>
wow, what is wrong with my english today?
nat2610 has joined #ruby
c0rn has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
xclite has quit [Remote host closed the connection]
codecaster has quit [Read error: Connection reset by peer]
<mr-rich>
iamvery: passing it to an F5 device with soap ...
<mr-rich>
sorry
<apeiros_>
soap is xml
<apeiros_>
I fail to see how you'd have "an array of bytes" there
d2dchat has joined #ruby
<iamvery>
mr-rich: I interpret your original question as `"abc".split('') # => ['a','b','c']` but I dont think thats what you're asking
<apeiros_>
but then again, it's not like you gave any reasonable explanation…
<mr-rich>
iamvery: let me claqrify: passing it to an F5 device with soap with an API using savon ...
codecaster has joined #ruby
etcetera has joined #ruby
<mr-rich>
iamvery: It's coming out on the other side in binary format ...
x82_nicole has joined #ruby
arya_ has quit [Ping timeout: 268 seconds]
pcarrier has quit []
robotmay has quit [Remote host closed the connection]
xclite has joined #ruby
<iamvery>
mr-rich: I don't really understand what you're asking. Probably because I don't know the tech you're referencing. Can you not convert the binary back to a string? Is that not your concern?
Russell^^ has joined #ruby
<cjk101010>
re.
<mr-rich>
iamvery: I think I need to send an array of bytes ... gonna try string.bytes ...
daniel_- has joined #ruby
<iamvery>
mr-rich: alright, good luck
g0bl1n has quit [Ping timeout: 260 seconds]
daniel_- has quit [Client Quit]
musa has left #ruby ["Ex-Chat"]
asdfqwer has quit [Ping timeout: 264 seconds]
arturaz has quit [Ping timeout: 245 seconds]
<lectrick>
class Object; def blank?; empty? rescue zero? rescue !self; end; end #hey apeiros_ , is this too ugly or too pretty or just a mutant implementation? :)
<Beoran>
Ther'es no reason why you coul't red and write images in Ruby
<Beoran>
just that it will be a bit slow
jonathanwallace has joined #ruby
<Beoran>
but no C extensions and no crashes
<lectrick>
Beoran: nice! pure ruby is good even if it's slow :)
codeFiend has joined #ruby
nwertman has joined #ruby
<shevy>
Beoran: yeah... my current system here is broken, gimp doesnt work imagemagick doesnt work
<shevy>
speed I dont care, I could even have it as a background job and come back in 10 minutes... :P
mark_locklear has joined #ruby
jxriddle has joined #ruby
<Beoran>
hmm looks like no pure jpeg yet
xaq has joined #ruby
binaryplease has quit [Read error: Operation timed out]
J-_-L has quit [Ping timeout: 255 seconds]
<lectrick>
Beoran: Yeah I was JUST looking for that
jackdanger has quit [Quit: Leaving.]
<lectrick>
There are EXIF/IPTC metadata parsers though
thinkclay has joined #ruby
<Jdubs>
How can I print to the screen without moving the screen?
<Jdubs>
So it doesn't scroll, just updas
<Jdubs>
updates*
thinkclay has quit [Client Quit]
<shevy>
what
thinkclay has joined #ruby
<Beoran>
well, it's quiet a projct though.. a pure ruby image library
<Beoran>
quite a project
thinkclay has quit [Client Quit]
<shevy>
STDOUT.flush
<lectrick>
might be a worthy endeavour though. it could be a metaproject where things like chunky_png are subprojects
jxriddle has quit [Ping timeout: 255 seconds]
margle has joined #ruby
<shevy>
and also this Jdubs print "\r"
<shevy>
that way you can use an ASCII counter
<Beoran>
lectrick, chunky_png has some imitations, expecially with indexedimages
<lectrick>
imagemagick is long in the tooth and fugly
g-ram has joined #ruby
<shevy>
imagemagick is getting quite large
<Beoran>
it does not correctly maintain the order of the palette, for example
<lectrick>
Beoran: I also noticed it's limited to 8 bit color depth, which seems a bit harsh
<Beoran>
yup
<Jdubs>
Hmmm
xaq has quit [Remote host closed the connection]
<shevy>
and gimp is on the wave "let's annoy the user" run together with the gnome devs
<Beoran>
although still, nowadays most images are just 8 bits depth
<Jdubs>
and how can i print pixels instead of characters?
Monie has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
haxrbyte_ has joined #ruby
<lectrick>
24 bit seems to be something that I would say should be high on the priority list
<Beoran>
Jdubs, what yoyu mean
<shevy>
Jdubs: in a terminal like xterm? I dont think you can. you can perhaps print unicode stuff though
<shevy>
at least on the mac osx terminal you can have strange characters appear
<Jdubs>
shevy: what would i want to do if i wanted to write a simple graphical physics engine?
Aiur has quit [Quit: Computer has gone to sleep.]
<lectrick>
i'm crazy because I am still a fan of Jpeg2000
<shevy>
no idea
kirun has joined #ruby
<shevy>
you probably want to be an expert in maths
<Beoran>
Jdubs, gey Gosu
ChampS666 has joined #ruby
<Beoran>
get Gosu
<Beoran>
it's a ruby game lib
<shevy>
hey Gosu, go Gosu ... gey Gosu:)
<Beoran>
or rubygame although it's not deeloped anymore
<shevy>
the developer left rubygame!!!
otters has joined #ruby
bbttxu has joined #ruby
<Beoran>
or write in C and use mruby like Ido :)
<shevy>
but that is because it was too much work to make games with it
<shevy>
games are way way way way way too much work
<Beoran>
sure
<Beoran>
I'm writng a game now
<shevy>
I think you need a little team that has different tasks
<Beoran>
already for 1 year it it's latest iteration
<shevy>
and a limited timeframe for all involved, like 1 month
<Beoran>
nowhere nere done, and I can't seem to find any team members
<shevy>
Beoran: finished? :)
<Beoran>
It's my dream game, a huge RPG
<Beoran>
so no
JarJar has joined #ruby
<shevy>
yeah, finding (contributing) team members is hard, most people jump off after a while, a project needs to be prepared for that
manizzle has quit [Ping timeout: 255 seconds]
<Jdubs>
Beoran: what is mruby? also, are you writing your own engine or using pre-made library?
ThePicard has joined #ruby
arturaz has joined #ruby
<Beoran>
I started work on it about 7 years ago, but I always kept changing technologies. Now I will stick to plain C and yse mruby for the scripting.
<Beoran>
Why, becauset heplain C can be resued if I ever decide to change languag again :p
g-ram has quit [Ping timeout: 255 seconds]
haxrbyte has quit [Ping timeout: 264 seconds]
akemrir has joined #ruby
<apeiros_>
Beoran: heh
<Beoran>
I tried to use rubygame or Ruby/SDL before, but unfortunately the overhead of rby is too uch on oler systems. My game was going too slow.
<apeiros_>
I wonder if I'll stick up with it for a year
<apeiros_>
your rpg is 3d? or why would it be too slow?
<Beoran>
so I'm doing it the other way around now (in the last year), write in c and scrit in mruby (first I would use lua, but mruby came out just at the right time)
<Beoran>
I have a minilaptop with an itel graphics card and an atm CPU. On that, ruby is too slow, shile C is OK.
samphippen has quit [Quit: Computer has gone to sleep.]
<Beoran>
Since the demo I've started to integrate chipmunk and mruby, and removed lua.
ckrailo has joined #ruby
<apeiros_>
klöning
Mkman has joined #ruby
codecaster has quit [Quit: Leaving.]
<Beoran>
with my new job, I have about 1 hour on the train and 1 to 2 hours in the evening to work on this so progress is very slow
sarmiena_ has joined #ruby
samphippen has joined #ruby
binaryplease has joined #ruby
<Beoran>
you'll need the following libs: allegro 5.0.x, mruby from git, libxml2 and ... I think that's it
SCommette has joined #ruby
<apeiros_>
installable via brew?
<apeiros_>
nope :(
<Beoran>
eh?
<Beoran>
I don't even know brew ... :p
CharlieSu has joined #ruby
<apeiros_>
homebrew
prezioso has joined #ruby
jackiechan0 has joined #ruby
<apeiros_>
the defacto way to install stuff on osx
<CharlieSu>
Anyone know if there is any libs for Ruby that allow it to do ARP table lookups?
u89 has quit [Remote host closed the connection]
<Beoran>
ah, ... no, and how would I make that happen?
jenrzzz has quit [Ping timeout: 260 seconds]
jackiechan0 has quit [Read error: Connection reset by peer]
sarmiena_ has quit [Client Quit]
<apeiros_>
Beoran: homebrew is afaik ruby code "recipes"
<apeiros_>
no idea beyond that
<apeiros_>
I wouldn't invest too much time on that if I were you
<apeiros_>
focus on the game working for you :)
emmanuelux has joined #ruby
clj_newb has quit [Ping timeout: 268 seconds]
volta has quit [Remote host closed the connection]
<Beoran>
sure, and nbesied ,this is C code with only a bit of mruby for scripting as of yet (more mruby is for later)
havenn has quit [Remote host closed the connection]
<apeiros_>
Beoran: I started helping Jdubs with learning ruby and with that, started (once again) with writing a game in ruby. I focus on getting the game mechanics first, though.
<apeiros_>
so graphics is abysmal (ASCII only)
<Beoran>
I still have to convert some lua scripts even
<apeiros_>
I intend to switch to gosu once the game itself is halfway mature
<Beoran>
apeiros_, ah, then it's a roguelike :)
ChronocityLC has joined #ruby
sheerun has joined #ruby
<Beoran>
apeiros_, hmm; I prefer to do the difficult stuff first
<apeiros_>
I don't think the graphics is the difficult stuff :)
g-ram has joined #ruby
<apeiros_>
just the stuff that I can't do (the drawing part of the graphics)
xaq has joined #ruby
<Beoran>
I do think that's the hardest part, the graphics
x82_nicole has quit [Quit: Computer has gone to sleep.]
<Beoran>
but what kind of game are you making?
<horsey_>
Beoran: are you still maintaining chipmunk?
osvico has quit [Ping timeout: 260 seconds]
<Beoran>
if it's also an RPG, then , well, you could probably use the engine I'm making if you keep it's deliberate limitations into mind.
Squarepy has quit [Quit: Leaving]
<Beoran>
horsey_, sorry, I'd like to, but now I switched to using mainly C and mruby, I don't havea reason to maintain the bindings anymore
<Beoran>
so if anyone 'd like to take over I'll gladly help
xorigin has joined #ruby
<horsey_>
Beoran: oh did you write spinel ?
undersc0re97 has quit [Remote host closed the connection]
<Beoran>
horsey_, eeven if it's blatantly obvious, I'd rather not say.
<Beoran>
Im in y 30ies, I want o make a game for adults, no holds barred. Except with 2d pixeled graphics.
tenmilestereo has quit [Quit: Leaving]
tchebb has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<shevy>
cool
<horsey_>
Beoran: adults only want to play solitaire
<Beoran>
qlos, the difference between my game and spinel is that I'm using pure c, no C++. For ease of making bindings, and to keep the madness of C++ out.
Araxia_ has joined #ruby
<Beoran>
horsey_, I'm different
<apeiros_>
Beoran: we're not adults
<apeiros_>
age doesn't matter
<apeiros_>
:)
cezar-b has joined #ruby
<Beoran>
ehehe :)
<apeiros_>
(neither civil status nor having children)
Araxia_ has quit [Client Quit]
vlad_starkov has joined #ruby
wargasm has joined #ruby
<Beoran>
I'm old enough to be an adult, and as xcd comicsays, I can decide myself what that means
pipopopo has joined #ruby
<apeiros_>
^^
dnstbr has joined #ruby
dnstbr has quit [Max SendQ exceeded]
rippa has quit [Ping timeout: 240 seconds]
<horsey_>
apeiros_: what videogames do you play
<horsey_>
apeiros_: skyrim et al?
jrun is now known as sybase_jaguar
dnstbr has joined #ruby
twinturbo has quit [Quit: twinturbo]
Grieg has quit [Quit: laterz! :D]
<apeiros_>
horsey_: skyrim would be my kind of game, but don't have anything to play it on
twinturbo has joined #ruby
<Beoran>
I played that it's actually disappointing
<apeiros_>
horsey_: mostly SC2 & D3 these days
<horsey_>
apeiros_: does SC2 work ok on mba ?
<Beoran>
it's very wide , but it lack depth
NeedSomeHelp has quit [Ping timeout: 272 seconds]
<apeiros_>
other than that I play on Wii - Xenoblade (excellent game!), all Zeldas, the Mario game series
<blazes816>
skyrim was the biggest let down ever
<Beoran>
well, I wasn't let down, just as I said ,itthey went for breadth
twinturbo has quit [Client Quit]
F1skr has quit [Quit: WeeChat 0.3.9.1]
<Beoran>
and forgot to ad depth as well
<horsey_>
Beoran: what's your fave modern game?
<Beoran>
hmmm...
<Beoran>
my favourite moderns series is the Atelier series on PS2/PS3
gbchaosmaster has quit [Ping timeout: 268 seconds]
<Beoran>
it's more a slice-of-life game, but the characters have a lot of depth to them
<wallerdev>
im getting a wii u this sunday :D
<Beoran>
even though thestories are somewhat simple
<horsey_>
Beoran: cool! did you ever play psychonauts?
<horsey_>
that's pretty k00 too
xaq has quit [Remote host closed the connection]
<Beoran>
no
<reactormonk>
how do I define my rendering to html for my own objects that parse some elements of a string?
stephenjudkins has joined #ruby
<reactormonk>
go with #to_html?
<Beoran>
oh, I also like Persona 4, but that's already last)gen
pyx has joined #ruby
cHarNe2 has joined #ruby
richardjortega has joined #ruby
cHarNe2 has left #ruby [#ruby]
<Beoran>
reactormonk, there's plenty of ways to render xml, maybe just format a string and yes, return it in a to_html method
<Beoran>
ah yes, also a favourire modern game: Katawa Shoujo
zastern has joined #ruby
<Beoran>
now THAT is a game for adults with a deep story. 5 deeps tories ,actually.
maletor has quit [Quit: Computer has gone to sleep.]
<horsey_>
Beoran: check out "metal gear solid" too
<horsey_>
those games are pretty deep IMO
<Beoran>
ah yes, I always skipped that
cmarques has quit [Ping timeout: 260 seconds]
<horsey_>
def. check it out
<Beoran>
since I'm more into RPG's, it's more of a shooti,g game right?
<horsey_>
Beoran: also if you want a mystic experience, play shadow of collosus
<Beoran>
Well if I find it 2nd hand,
<Beoran>
yeah maybe I should trie those 2
tylerc has joined #ruby
qwerxy has quit [Quit: offski]
<Beoran>
I have also playedt he capcom gam, what was it...
prezioso has quit [Read error: Operation timed out]
<horsey_>
Beoran: devil may cry?
<Beoran>
very recent, a 3d rpg style game with many huge monsters to fight. I played it a lot , and thn I got bored.
<Beoran>
what was the name again?
BigO has quit [Remote host closed the connection]
tchebb has quit [Quit: Leaving.]
<Beoran>
soemthing with a dragon that steals your heart
clj_newb has joined #ruby
<Beoran>
ah yes, thanks google "Dragon's dogma".
<horsey_>
Beoran: yeah, nig, japanese games are deep IMO
<Beoran>
Anyway, I liked the active battles , you fight these huge monsters. But there isn't much variation, and the story is pretty shallow. And the characters lack depth.
<Beoran>
Katawa Shoujo is a western freeware game though
<Beoran>
aklthough heavily japanese inspired
<reactormonk>
how do I test for html equivalence?
<Beoran>
html is just text
<Beoran>
== or a regex would do
<reactormonk>
Beoran, urgh regex
<Beoran>
just for unit testing
<reactormonk>
Beoran, well, <foo><bar/>\n</foo> is html equivalent to <foo><bar/></foo>
<Beoran>
if you want to test the web app itself you'l need capybara or something else that lest you script the web browser
tchebb has joined #ruby
<Beoran>
ah, then you need an xml parser I'm afraid
<Beoran>
onet hat can normalize your xml
<reactormonk>
yes, I know, that's what I'm asking about
<Beoran>
ah well what do we have? REXML, nokogiri, .. ?
ABK has quit [Read error: Connection reset by peer]
Banistergalaxy has joined #ruby
ABK has joined #ruby
<Beoran>
reactormonk, ou could but it seems like overkill
<Beoran>
if it's just to update the syntax of hashes
cakehero has joined #ruby
vlad_starkov has joined #ruby
<Beoran>
I forget how to do it but you can run mri ruby from the command line in a search-and-replace mode, and then you cxould ue that RE to changet o new hash style.
ndrei has joined #ruby
<Beoran>
BUT
d2dchat has quit [Remote host closed the connection]
<Beoran>
I wouldn't make such a change in my code, since I think the old hash style is also OK. :)
etcetera has quit [Quit: Computer has gone to sleep.]
gogiel has joined #ruby
cakehero has quit [Client Quit]
<Beoran>
while ruby 1.8 is slowly becoming obsolete, it's not yet so, so I wouldn't use the new hashes in open source projects just to make sure people who are forcd to use 1.8 can still use the code
vlad_sta_ has joined #ruby
aajjbb has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 260 seconds]
Beoran has quit [Read error: Connection reset by peer]
Beoran has joined #ruby
elentras has quit [Ping timeout: 252 seconds]
<ddd>
yeah you have until June 2013. iirc its last day of June its EOLd
Shamgar has quit [Ping timeout: 260 seconds]
apfm has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<Beoran>
ddd even then, on, say Redhat it will still be used
Shamgar has joined #ruby
jaygen has quit [Read error: Operation timed out]
apfm has joined #ruby
jaygen has joined #ruby
chussenot has quit [Quit: chussenot]
<Beoran>
alright, anyone has anymore questions, case I gotta clean the kitchen :p
stephenjudkins has quit [Quit: stephenjudkins]
<blazes816>
favorite color?
<Beoran>
yellow :)
jaygen_ has joined #ruby
<blazes816>
well then i'm good to go, thanks
peregrine81 has quit [Quit: Computer sleeping.]
<Beoran>
hehehe :)
cakehero has joined #ruby
peregrine81 has joined #ruby
chussenot has joined #ruby
chussenot has quit [Client Quit]
<ddd>
Beoran: one last one.. What does Purple taste like?
<dstywho>
grape?
jaygen has quit [Read error: Operation timed out]
itchyouch_ has joined #ruby
seanyo_ has joined #ruby
<ddd>
hah
apeiros has joined #ruby
ABK has quit [Read error: Connection reset by peer]
jblack_ has joined #ruby
ABK has joined #ruby
yuike has quit [Quit: Computer has gone to sleep.]
synthetix has quit [Remote host closed the connection]
yuike has joined #ruby
seanyo has quit [Ping timeout: 246 seconds]
itchyouch has quit [Ping timeout: 268 seconds]
itchyouch_ is now known as itchyouch
yuike has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Ping timeout: 260 seconds]
<Beoran>
ddd, I don't know, since I said I like yellwo :)
seanyo_ has quit [Ping timeout: 246 seconds]
<Beoran>
and yellow of course tates like yello
Vainoharhainen has joined #ruby
yuike has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby
Cadwallion has joined #ruby
Juul has joined #ruby
<Cadwallion>
o/
pcarrier has quit []
mikepack has joined #ruby
Iszak has joined #ruby
<horsey_>
Beoran: you should buy 'blur' (it's like a grown up's mario kart) and we can play toghter over the internets
Mon_Ouie has quit [Ping timeout: 246 seconds]
hotovson_ has quit [Remote host closed the connection]
Slivka has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 245 seconds]
ThePicard has quit [Quit: WeeChat 0.3.8]
ABK has quit [Read error: Connection reset by peer]
arturaz has quit [Remote host closed the connection]
Tuxist has quit [Read error: Connection reset by peer]
swex has quit [Remote host closed the connection]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
swex has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
KratosZero has joined #ruby
clj_newb has quit [Ping timeout: 260 seconds]
ij has quit [Read error: Connection reset by peer]
<Beoran>
horsey_, I don't have too much tieme for gaming these days, I really want to keep pushing my project forward. And I prefer single player games , no offense intenedn. But thansks for the offer. :)
sarmiena_ has quit [Quit: sarmiena_]
<Cadwallion>
Beoran: checking out your project, thanks for the email. :)
sailias has quit [Quit: Leaving.]
<horsey_>
Beoran: play with me or i call the cops
ij has joined #ruby
thinkdevcode has joined #ruby
<Beoran>
horsey_, what??? >:->
<Beoran>
Cadwallion, ah you're here too
Aiur has joined #ruby
<Cadwallion>
apparently in my last irssi relocation I forgot to put this back in my autojoin
havenn has joined #ruby
goraxe has quit [Ping timeout: 268 seconds]
h8R has joined #ruby
timonv_ has joined #ruby
asobrasil has left #ruby [#ruby]
katherinem13 has quit [Quit: katherinem13]
vlad_sta_ has quit [Remote host closed the connection]
cdt has joined #ruby
timonv has quit [Ping timeout: 248 seconds]
pcarrier has joined #ruby
senj has joined #ruby
pcarrier has quit [Max SendQ exceeded]
pcarrier has joined #ruby
pcarrier has quit [Max SendQ exceeded]
aquaranto has quit [Remote host closed the connection]
katherinem13 has joined #ruby
manizzle has joined #ruby
pcarrier has joined #ruby
katherinem13 has quit [Client Quit]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
katherinem13 has joined #ruby
ngoldman has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 246 seconds]
etcetera has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
qwerxy has joined #ruby
nilg has joined #ruby
<hadees>
so I know this code is horrible, http://pastie.org/private/wyor7iolzm0juj8plsd97g it's just a rough first implementation but i'm looking for suggestions on how to pretty much write two classes that return the same data and a switch in a third class to figure out which one to use.
cdt has quit [Ping timeout: 246 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
monkegjinni has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
[Neurotic] has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
x82_nicole has joined #ruby
sarmiena_ has joined #ruby
rcvalle has joined #ruby
havenn has joined #ruby
mrsolo has joined #ruby
futilegames has joined #ruby
iamvery has quit [Remote host closed the connection]
cousine has joined #ruby
horsey_ is now known as banisterfiend
answer_42 has quit [Ping timeout: 276 seconds]
banisterfiend is now known as horsey
bigkevmcd has joined #ruby
jxf has quit [Read error: Connection reset by peer]
matrixise has joined #ruby
jxf has joined #ruby
methods1 has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
caleb_io has joined #ruby
methods has quit [Read error: Connection reset by peer]
cdt has joined #ruby
cdt has quit [Read error: Connection reset by peer]
mrj has quit [Ping timeout: 260 seconds]
binaryplease has quit [Quit: WeeChat 0.3.9.1]
binaryplease has joined #ruby
schaary has quit [Quit: Leaving.]
paolooo has quit [Quit: Page closed]
Guest92676 has quit [Quit: Guest92676]
ngoldman has joined #ruby
xclite has quit [Remote host closed the connection]
<shevy>
hadees: does not look that bad
yxhuvud has quit [Ping timeout: 246 seconds]
BigO has quit [Remote host closed the connection]
<shevy>
it's a bit long though
<shevy>
@data.author_url = author_tag.get_attribute('href') if author_tag.has_attribute?('href')
xclite has joined #ruby
dstywho has left #ruby ["Leaving"]
stephenjudkins has joined #ruby
BigO has joined #ruby
beilabs has joined #ruby
arya_ has quit [Ping timeout: 268 seconds]
nateberkopec has quit [Quit: Leaving...]
<hadees>
shevy: i think i'm going to rework it so those classes have the appropriate accessors instead of using set_title etc
<shevy>
why? accessor do nothing else but the same
Owiec has joined #ruby
<hadees>
shevy: i guess i think it just looks cleaner
<Owiec>
Is it better to install ruby and rails on ubuntu use apt-get install or rbenv? What are you using?
g0bl1n has quit [Ping timeout: 260 seconds]
<shevy>
hadees: it is shorter, but only if you do not need to do any sanity checking on the given input
<hadees>
shevy: yeah but instead of building the hash in Data i'd build it in parser
Stalebread has joined #ruby
arya_ has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
joeycarmello has quit [Remote host closed the connection]
<hadees>
the part i really need to figure out though is how to do an elegant fallback if a field isn't set
<shevy>
dunno. define the default states to be nil
banjara has quit [Read error: Connection reset by peer]
<shevy>
and if they are nil, they weren't set properly
banjara has joined #ruby
<Cadwallion>
Owiec: rbenv / rvm is a better bet due to apt not liking rubygems
Virunga has joined #ruby
jekotia has joined #ruby
<Cadwallion>
I'm using RVM because I run too many rubies and too many gemsets daily
<hadees>
shevy: yeah that is what I was thinking but then I have to loop through all the fields, i was trying to see if I could do it in Data
slash_nick has joined #ruby
<Owiec>
Cadwallion: i am using vagrant with ubuntu and apt-get install and all the time i have problems... with versions. Its a little magic. Vagrant make addition complication for that.
haxrbyte has joined #ruby
<Owiec>
Somebody use vagrant with ruby and rails?
qwerxy has quit [Quit: offski]
<hadees>
i guess just if foobar.nil? super
<slash_nick>
Will 'next' work as I expect here? (i.e. don't set an attribute if `value_for_attribute(attr)` doesn't return a value) ---> gist.github.com/4081430
Guest46106 has quit [Ping timeout: 255 seconds]
staafl_alt has quit [Ping timeout: 252 seconds]
monkegjinni has quit [Remote host closed the connection]
<Stalebread>
I have 2 Ruby versions installed. After setting one of them to 'default' under RVM, it has renamed it from 'ruby-1.8.7' to 'ext-ORIGINAL'. Now when I try running python in the terminal I get this error: http://pastebin.com/S13VfD0Z -> I don't understand why RVM is doing anything with Python?
etcetera has quit [Quit: Computer has gone to sleep.]
g0bl1n has joined #ruby
gmci has joined #ruby
manizzle has quit [Ping timeout: 245 seconds]
gmci is now known as Guest59059
<ddd>
that has NOTHING to do with RVM
etcetera has joined #ruby
jrist is now known as jrist-afk
jds has joined #ruby
<ddd>
absolutely positively not a damned thing
<ddd>
and rvm does not 'rename' anything when you name a default. rvm —default use 1.8.7 just adds an alias to the environment and alias file to define what to switch to when you run rvm use default see rvm aliases list
Schmidt has quit [Ping timeout: 264 seconds]
caleb_io has quit [Quit: caleb_io]
<ddd>
but your post, has crapall to do with rvm
alex__c2022 has quit [Quit: alex__c2022]
clj_newb has joined #ruby
<ddd>
sorry. rvm alias list
<ddd>
∴ rvm alias list
<ddd>
default => ruby-1.9.3-p327@me
<ddd>
exactly what you'll see
<ddd>
well your version might be different but that format is what you'll see
<ddd>
--
<Stalebread>
Ah ok. I see it. But as someone completely new to Ruby and rvm, I'm confused over the .rvm directory in the previous error message, and why 'ext-original' is mentioned.
<ddd>
not a clue. ext-original has absolutely crap-all to do with us
<ddd>
you got some funkiness going on in your shell. but its not rvm or ruby doing it
<Stalebread>
Oh.
qwerxy has joined #ruby
Schmidt has joined #ruby
qwerxy has quit [Client Quit]
<Stalebread>
Right ok. I thought ext-original was related to rvm but in that case I'll search elsewhere. I knew that sounded too strange. Thanks anyway
<ddd>
np
<ddd>
and off i trot to do some stuff
Iszak has quit []
Stalebread has quit [Quit: Leaving]
akemrir has quit [Quit: WeeChat 0.3.9.1]
nemesit has quit [Quit: Leaving...]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
rockets has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
zastern has quit [Ping timeout: 246 seconds]
ChronocityLC has quit [Ping timeout: 252 seconds]
g0bl1n has quit [Ping timeout: 260 seconds]
elfenars has quit [Quit: elfenars]
jlwestsr has quit [Ping timeout: 246 seconds]
qwerxy has joined #ruby
workmad3 has joined #ruby
Russell^^ has quit [Quit: Russell^^]
manizzle has joined #ruby
xaq has joined #ruby
jlwestsr has joined #ruby
dnstbr has quit [Quit: Computer has gone to sleep.]
margle has quit [Quit: Computer has gone to sleep.]
<Cool_Fire>
Does anyone know if ruby locks variables when they're accessed? So multiple threads cannot access/modify stuff at the same time
<apeiros>
Cool_Fire: ruby does *nothing*
cousine has quit [Remote host closed the connection]
<Cool_Fire>
Right.
<apeiros>
if you have threading, you are completely responsible for thread safety
g0bl1n has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
<apeiros>
only classes which effectively state to be thread safe can be considered thread safe. everything else by default is not.
stkowski has quit [Read error: Connection reset by peer]
stkowski has joined #ruby
<workmad3>
apeiros: hmm... do you know if variable access is atomic in ruby or not?
<apeiros>
workmad3: implementation specific
<workmad3>
makes sense
<apeiros>
I think in MRI/KRI it is
<apeiros>
but don't assume it to be as any other interpreter may not have it atomic
qwerxy has quit [Client Quit]
<strtok>
you probably don't want it to be atomic by default
<workmad3>
I guess it's the statement of 'it is not required to be atomic' :)
skaczor has quit [Ping timeout: 246 seconds]
<apeiros>
yeah, or "not guaranteed"
jxf has quit [Ping timeout: 246 seconds]
theRoUS has quit [Ping timeout: 248 seconds]
nitti_ has joined #ruby
asteve has quit [Quit: Computer has gone to sleep.]
mark_locklear has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
nitti has quit [Ping timeout: 240 seconds]
geekbri has quit [Remote host closed the connection]
<Cadwallion>
I get where you're coming from, having dealt with it on Unrealrb
<Eiam>
coffeescript should do the same. so i can debug coffeescript and read & write coffeescript.
saneshark has quit [Ping timeout: 245 seconds]
<workmad3>
Eiam: right... and what I was just saying is that I'm pretty sure the debugging tools now do that
jlwestsr has quit [Ping timeout: 246 seconds]
<Eiam>
workmad3: Safari won't show me coffeescript
<Eiam>
its gonna show me javascript
chussenot has joined #ruby
<workmad3>
(I've not bothered looking into it, I can debug the JS fine and I don't worry about it)
<Eiam>
and i highly doubt that will ever change
clop has quit [Ping timeout: 260 seconds]
<Eiam>
workmad3: right but then you have to maintain how coffeescript does key checks and how javascript does it, and how CS translate that into soething JS understands
csaunders has joined #ruby
<Eiam>
also when something is a CS bug vs a JS bug
<workmad3>
Eiam: nothing I've had a problem with yet
<Eiam>
*shrug* i guess as someone who regularly moves between too many fucking langauges, abstractions piss me off =)
<Cadwallion>
cornihilio: you're missing a dependency on the system
<workmad3>
Eiam: and when it becomes an actual problem for me (rather than a theoretical one) then I'll work out a way to solve it :P
<workmad3>
Eiam: but I'm not going to let worrying about potential problems put me off learning actually interesting stuff
<Eiam>
workmad3: *shrug* given the choice between learning coffee script and haskell (another language on my list) i'd rather learn something thats fundamentally different enough to teach me something
<Eiam>
(like haskell) instead of learning a wrapper to make JS less retarded
<Cadwallion>
As someone who writes ruby and debugs via opcodes, I've dealt with the context switching
iamjarvo has quit [Quit: Computer has gone to sleep.]
nat2610 has quit [Quit: Leaving.]
csaunders has quit [Client Quit]
Cultofmetatron has quit [Ping timeout: 246 seconds]
gridaphobe has joined #ruby
<Cadwallion>
Eiam: whereas I'll pick the one that actually helps me instead of teaching me something new, but that's just a difference in priority :)
<cornihilio>
Cadwallion: I guessed that... but which one?
<Eiam>
Cadwallion: I guess i'd argue that I do think haskell will teach me something new thats useful
<Eiam>
instead of just being 'new'
<cornihilio>
the xslt/xml2 errors I had I could figure out; with this one I'm clueless
<workmad3>
Eiam: on top of which, I find a lot less to complain about when using CS, so the minor niggles about translating stuff compared to the ease with writing it initially are just that... niggles :)
<Eiam>
which is why i chose haskell over erlang for example.
nateberkopec has joined #ruby
<workmad3>
Eiam: and I'm not the one in here ranting about JS ;)
<Eiam>
workmad3: probably the only thing that might convince me to poke cs over the holidays
<Cadwallion>
Eiam: well if I'm writing a lot of JavaScript, then learning CoffeeScript will help me more than Haskell, because they're different usecases
<Eiam>
workmad3: =p
nat2610 has joined #ruby
<v0n>
When Ruby 2.0 will be out? :-)
<Cadwallion>
I'm not going to use Haskell to solve a JS problem
<Cadwallion>
v0n: early 2013
<v0n>
cool
tommyvyo has joined #ruby
<Cadwallion>
cornihilio: take a look at the gem_make.out to see
<Eiam>
Cadwallion: I meant with design & approach to problem solving ;)
<Cadwallion>
i'm guessing something to do with kyotocabinet.h
banseljaj is now known as imami|afk
<Eiam>
workmad3: point taken ;p
<v0n>
looking forward to seeing some news in the Ruby world :-)
Nisstyre has quit [Quit: Leaving]
schaary has joined #ruby
<Cadwallion>
v0n: there's always news in the Ruby world :)
<workmad3>
Eiam: and I can tell you... I've written a shit-load of JS at times that made me scream, and a shit-load of CS recently that didn't ;)
<Eiam>
=p
<Eiam>
so yeah, 1) learn pry 2) learn CS 3) figure out how to integrate cs with rails 4) learn haskell oh and 0) sell my wife & children off so I have more time
kirun has quit [Quit: Client exiting]
<Eiam>
;p
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<workmad3>
integrating CS with rails is piss-easy
<Eiam>
workmad3: i figure it would be
<Eiam>
doesn't mean i magically know how
<workmad3>
you have coffee-rails in your Gemfile (which is defalut)
<v0n>
Cadwallion, what are the last hottest ones? :-D
<workmad3>
and then you write .js.coffee files in the asset pipeline
<Cadwallion>
v0n: subscribe to Ruby Weekly :D
<workmad3>
there we go, coffeescript integrated with rails :)
erkkk has quit [Quit: erkkk]
<v0n>
:-(
<slash_nick>
win 4
<cornihilio>
Cadwallion: thank you so much! I ripping my hair out looking for it in the printed out error :)
<Cadwallion>
cornihilio: np
xAndy is now known as xandy
<Eiam>
workmad3: since you are being so kind I'm going to go give it a whirl right now
mrsolo has joined #ruby
<workmad3>
Eiam: so, you can cross number 3 off your list now, so you can get to learning haskell quicker ;)
xandy is now known as xAndy
<Cadwallion>
I still would recommend #0 though
<Cadwallion>
I'm working on a good sale price for mine
<workmad3>
yeah... and go through a good dealer because then you could get not only time but enough $$$ to fund some time off :)
<workmad3>
Cadwallion: it's when you sit at home, eating old pizza, drinking stale coffee, coding on stuff you actually want to rather than stuff you have to
blacktulip has quit [Remote host closed the connection]
<cornihilio>
is that an error in the kyotocabinet-devel or with the gem?
methods1 has quit [Quit: Leaving.]
futilegames has quit [Quit: futilegames]
tommyvyo has quit [Ping timeout: 240 seconds]
xorigin has quit [Quit: leaving]
<Cadwallion>
workmad3: I work from home, drink coffee fast enough that it's never stale, and write code I want to for work
<Cadwallion>
which may explain why I work 12-15 hour days...
<Eiam>
workmad3: in rails 3.0.9 there isn't an app/assets
moted has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
<workmad3>
Eiam: bah, you didn't say you were on obsolete tech :P
<Cadwallion>
lol
<Cadwallion>
'obsolete'
<Eiam>
workmad3: =)
<workmad3>
:)
Virunga has joined #ruby
<Eiam>
sounds like ill have to use barista
Vert has joined #ruby
<Cadwallion>
cornihilio: it's a problem with the gem compiling it's C extension against kyotocabinet
clop has joined #ruby
moted has joined #ruby
Virunga has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
Virunga has joined #ruby
<Cadwallion>
Eiam: was just going to suggest barista :)
Xeago has quit [Remote host closed the connection]
_alejandro has quit [Remote host closed the connection]
jlwestsr has joined #ruby
jaygen has joined #ruby
jenrzzz has joined #ruby
ngoldman has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
<wargasm>
sup dudes. if there's anyone who owns a popular site or piece of software, we might have a proposal for you. we've been developing a cross browser ad serving platform for the past 8 months and we're about ready to take on new partners. We're projecting between $1 and $5 per month for NA/AU/EU (tier 1) users pm me if you're interested and I can give you a tour of the panel.
<Spaceghostc2c>
I don't even know what you're offering, really.
swarley has joined #ruby
<Cadwallion>
an ad serving platform, it seems.
<Spaceghostc2c>
'new parters' as in new users who pay you to serve their ads?
<wargasm>
i want to keep it vague when i talk about it in public but it's a solution to monetize your users
<Spaceghostc2c>
Cadwallion: Not sure what 'new partners' means.
<wargasm>
new partners, as in people who want to apply our system to their users
<Spaceghostc2c>
So, users.
<Cadwallion>
^
<horsey>
wargasm: all_irc_channels.each { |channel| puts "sup dudes. if there's anyone who owns a popular site or piece of software, we might have a proposal for you. we've been developing a cro..." }
<Spaceghostc2c>
Your users have users. :D
<wargasm>
i'm not going to write a script to spam irc, lol
<Spaceghostc2c>
wargasm: No thanks, but nifty. I liked the one that was ads for nerds and other technical types. That was awesome. :D
cakehero has joined #ruby
<Cadwallion>
our sites already have ad platforms that serve ad platforms
<Cadwallion>
which means my company would probably be interested :P
<wargasm>
our system gives you a lot of flexability and does things no other company is doing right now
<wargasm>
you get access to your own panel and you're able to market directly to your own users through a number of channels
slamice has joined #ruby
<wargasm>
meaning, if you sell hosting, you can literally market your site on any search engine or website
<wargasm>
by keyword or domain
<wargasm>
so your ad on hostgator.com
<wargasm>
etc
otters has joined #ruby
<wargasm>
if you want a tour of the panel, hit me up on skype: wargasm.sucka
jslowe has quit [Read error: Connection reset by peer]
csaunders has joined #ruby
dpatel has quit [Ping timeout: 246 seconds]
qwerxy has quit [Quit: offski]
csaunders has quit [Client Quit]
Monie has joined #ruby
theoros is now known as thrs
binaryplease has quit [Quit: WeeChat 0.3.9.1]
gridaphobe has quit [Remote host closed the connection]
slainer6_ has joined #ruby
binaryplease has joined #ruby
binaryplease has quit [Client Quit]
etcetera has quit [Ping timeout: 245 seconds]
slainer68 has quit [Ping timeout: 246 seconds]
binaryplease has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
slash_nick has quit [Ping timeout: 248 seconds]
arya__ has joined #ruby
arya_ has quit [Ping timeout: 268 seconds]
dangerousdave has quit [Quit: Leaving...]
qwerxy has joined #ruby
clj_newb has quit [Ping timeout: 256 seconds]
otters has quit [Ping timeout: 252 seconds]
jds has quit [Remote host closed the connection]
csaunders has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9.1]
stephenjudkins has joined #ruby
csaunders has quit [Client Quit]
Aiur has joined #ruby
arya__ is now known as arya_
mahmoudimus has joined #ruby
arietis has joined #ruby
Guest44292 has quit [Quit: This computer has gone to sleep]
sdk has joined #ruby
sdk has quit [Remote host closed the connection]
bluehavana has quit [Quit: Connection closed for inactivity]
jimeh has quit [Quit: Computer has gone to sleep.]
sdk has joined #ruby
qwerxy has quit [Quit: offski]
jaygen has quit [Ping timeout: 252 seconds]
cornihilio has quit [Ping timeout: 265 seconds]
BigO has quit [Remote host closed the connection]
qwerxy has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
arya_ has joined #ruby
medik has joined #ruby
medik has quit [Excess Flood]
gridaphobe has joined #ruby
medik has joined #ruby
BoomCow has joined #ruby
nitti has joined #ruby
cmarques has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
jimeh has joined #ruby
<shevy>
anyone has a script
<shevy>
where you can write something on commandline