apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
Cultofmetatron has quit [Remote host closed the connection]
LaPetiteFromage has quit [Read error: Connection reset by peer]
chessguy has quit [Remote host closed the connection]
LaPetiteFromage has joined #ruby
tjbiddle has joined #ruby
sambao21 has joined #ruby
nkts has quit [Quit: -]
Ontolog has quit [Remote host closed the connection]
mootpointer has joined #ruby
slyv has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
FDj has joined #ruby
<BinaryMaster> Can anyone tell my why this isn't working like I think it should: source = (samovar.respond_to? :get_name ? samovar.get_name : samovar.to_s) Instead of getting either the return from get_name or the var as a string I get a boolean value
CalebMingle has joined #ruby
<slyv> Hey - So I'm trying to match a string in the format of: ".something a b c d" Where the first match is "something" and the second match is "a b c d". I was trying /.(.*) (.*)/, but that was matching everything in the first match up to the final space, leaving the second match to d. Could anyone help me find the correct regex ?
<bricker> for array = [1, 2, 3], how can I get array[20..30] to return an empty array? I know about Array(nil), wondering if there's an instance method way I can do it
codezombie has quit [Quit: Linkinus - http://linkinus.com]
<bricker> slyv: you need to escape that first dot, like /\.(.*) (.*)/
<banisterfiend> bricker: still a to_a on the end of it
Davey has joined #ruby
<bricker> banisterfiend: ah, not bad, thanks!
<BinaryMaster> slyv, ".something a b c d".sub!(/\.\w/, 'found1').sub!(/[a-Z] [a-Z] [a-Z] [a-Z]/, 'found2')
<slyv> The a b c d was just random text with spaces in it, and thanks bricked.
<slyv> *bricker
__alpaca has joined #ruby
<BinaryMaster> Can anyone tell my why this isn't working like I think it should: source = (samovar.respond_to? :get_name ? samovar.get_name : samovar.to_s) Instead of getting either the return from get_name or the var as a string I get a boolean value
<bricker> slyv: try http://rubular.org too
<slyv> Yeah, been working on it.
MrZYX is now known as MrZYX|off
DonRichie has quit [Ping timeout: 256 seconds]
DonRichie has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
<slyv> It works fine if there's only one space, but the second match only has what's past the final space, not the first.
SexyTattoos96 has quit []
cod3r has joined #ruby
Proshot has quit [Quit: Leaving]
athst has quit [Quit: athst]
baba has quit [Ping timeout: 248 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
<bricker> slyv: Isn't this what you want? http://rubular.com/r/6MqxNZojZN
<BinaryMaster> try /(\.\d)\s(.)\s(.)\s(.)\s(.)/
<BinaryMaster> try /(\.\w)\s(.)\s(.)\s(.)\s(.)/
Nahra has joined #ruby
<BinaryMaster> sorry not d
athst has joined #ruby
<slyv> Yes, exactly bricker!
robscomputer has joined #ruby
tjbiddle has quit [Ping timeout: 256 seconds]
<slyv> What is the ? doing?
arya has quit []
__alpaca has quit [Ping timeout: 252 seconds]
Hobogrammer has joined #ruby
<BinaryMaster> one or none
<BinaryMaster> ? = 1 or 0 times
<bricker> slyv: makes .* not be greedy, i.e. stop matching as soon as possible
<slyv> Ah, thanks to both of you.
<BinaryMaster> NP
freeayu has joined #ruby
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
robscomputer has quit [Ping timeout: 264 seconds]
graeme has quit [Quit: graeme]
arya has joined #ruby
slainer68 has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
pskosinski has quit [Quit: pskosinski]
banisterfiend has quit [Remote host closed the connection]
gaahrdner has joined #ruby
banisterfiend has joined #ruby
CalebMingle has quit [Quit: CalebMingle]
jamesaxl_ has joined #ruby
jamesaxl has quit [Ping timeout: 245 seconds]
Davey has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
banjara has quit [Quit: Leaving.]
GOMADWarrior has quit [Ping timeout: 264 seconds]
<jeebster> true
<BinaryMaster> false
wgosling has quit [Quit: Konversation terminated!]
sambao21 has joined #ruby
guitsaru has quit [Remote host closed the connection]
Animawish has joined #ruby
huoxito has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
philcrissman has joined #ruby
mrsolo has quit [Quit: Leaving]
_64k has joined #ruby
zeade has quit [Quit: Leaving.]
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
tommyvyo has quit [Quit:]
SCommette has quit [Quit: SCommette]
yshh has quit [Remote host closed the connection]
sepp2k has quit [Remote host closed the connection]
tundrax has joined #ruby
GOMADWarrior has joined #ruby
locriani has quit [Remote host closed the connection]
pagios_ has quit [Remote host closed the connection]
_64k has quit [Ping timeout: 248 seconds]
francisfish has quit [Remote host closed the connection]
shinobi_one1 has quit [Quit: Leaving.]
banisterfiend is now known as banister`sleep
etcetera has quit []
Nimsical has joined #ruby
gabrielrotbart has joined #ruby
guitsaru has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
xardas has quit [Ping timeout: 252 seconds]
rupee has quit [Quit: Leaving]
tds has quit [Quit: tds]
Cultofmetatron has joined #ruby
benwoody has joined #ruby
d_roge has quit [Ping timeout: 246 seconds]
nik_-_ has quit [Quit: nik_-_]
jamesaxl_ has quit [Ping timeout: 245 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
d_roge has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
jamesaxl has joined #ruby
csaunders has joined #ruby
rakl has quit [Quit: sleeping]
choobie has quit [Quit: choobie]
Ontolog has joined #ruby
kristofers has quit []
ZachBeta has joined #ruby
callmeivan_ has joined #ruby
d11wtq has joined #ruby
Hobogrammer_ has joined #ruby
callmeivan has quit [Ping timeout: 252 seconds]
callmeivan_ is now known as callmeivan
Silent__ has joined #ruby
<ShapeShifter499> hi
<ShapeShifter499> I'm new to ruby so I'm still learning
Cultofmetatron has joined #ruby
slainer68 has joined #ruby
<ShapeShifter499> I want something that would act as a api to starbucks, I found this and it happens to be written in ruby. Anyone here know how to run this ? https://github.com/jakebilbrey/emeraldsiren
Catharz has quit [Quit: Catharz]
Hobogrammer has quit [Ping timeout: 264 seconds]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
danshultz has joined #ruby
<jamesaxl> ShapeShifter499: you should install it 1st
agarie_ has quit [Remote host closed the connection]
<ShapeShifter499> jamesaxl, gem install?
pkrnj has joined #ruby
agarie has joined #ruby
<jamesaxl> ShapeShifter499: yeah
<ShapeShifter499> ah ha
<ShapeShifter499> lol
<ShapeShifter499> thanks
etcetera has joined #ruby
Michael__ has joined #ruby
marcdel has quit [Quit: marcdel]
<waxjar> they should've put that in the README. the project has a Gemfile, that means it uses Bundler to manage dependencies. You should install bundler, then run bundle install to install the app's dependency's
<waxjar> *dependencies
<lectrick> How do I give class_eval a block variable? I keep getting "wrong number of arguments (1 for 0)" when I try to do class_eval(&block)
<waxjar> you can run it with rackup
danshult_ has joined #ruby
danshultz has quit [Read error: Operation timed out]
<waxjar> lectrick, you can't with class_eval, but you can with class_exec :)
chessguy has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
<lectrick> aha
<ShapeShifter499> waxjar, jamesaxl I'm getting this error http://pastebin.com/q6QRU6mY
chessguy has quit [Remote host closed the connection]
nga4 has quit [Ping timeout: 240 seconds]
mfridh has quit [Read error: Operation timed out]
codesoda has quit [Remote host closed the connection]
<waxjar> are you on os x ShapeShifter499?
<ShapeShifter499> no Ubuntu
<ShapeShifter499> why?
marr has quit [Ping timeout: 264 seconds]
mootpointer has quit [Quit: Computer has gone to sleep.]
<ShapeShifter499> I run Ubuntu
mfridh has joined #ruby
<ShapeShifter499> waxjar, 13.10
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
<jamesaxl> ShapeShifter499: sudo aptitude install ruby1.9.1-dev
<jamesaxl> ShapeShifter499: which version of ruby are you running ?
jonathanwallace has joined #ruby
Silent__ has quit [Quit: さようなら]
dmiller has quit [Remote host closed the connection]
<waxjar> you dont have to run bundle with sudo btw
daniel_- has quit [Ping timeout: 256 seconds]
mediko has quit [Ping timeout: 245 seconds]
Hobogrammer has joined #ruby
<ShapeShifter499> jamesaxl, ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] according to ruby --version
neurone-1337 has quit [Ping timeout: 256 seconds]
mediko has joined #ruby
<jamesaxl> ShapeShifter499: try to install dev of this version
<ShapeShifter499> doing that now
GOMADWarrior has quit [Ping timeout: 256 seconds]
akhet has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
neurone-1337 has joined #ruby
etcetera has left #ruby [#ruby]
<ShapeShifter499> jamesaxl, seems to have fixed the issue, thanks
GeissT has joined #ruby
kofno has joined #ruby
chipotle_ has quit [Quit: cya]
Voodoofish430 has quit [Quit: Leaving.]
jonathanwallace has quit [Ping timeout: 248 seconds]
__alpaca_ has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
nezumi has joined #ruby
mercwithamouth has joined #ruby
_cheney2 has joined #ruby
__alpaca_ has quit [Ping timeout: 256 seconds]
xlab_ has quit [Remote host closed the connection]
TMM has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
jonathanwallace has joined #ruby
TMM has joined #ruby
TMM has joined #ruby
TMM has quit [Changing host]
mockra has quit [Remote host closed the connection]
MistuhKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
tds has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
Mattix has joined #ruby
kobain has joined #ruby
yshh has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
philcrissman has quit [Remote host closed the connection]
SCommette has joined #ruby
heliumsocket has joined #ruby
sambio has joined #ruby
dankest has quit [Quit: Leaving...]
LaPetiteFromage has joined #ruby
supergiantrobot_ has quit [Quit: supergiantrobot_]
sambio has left #ruby [#ruby]
twoism has quit [Remote host closed the connection]
dankest has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
swex has quit [Ping timeout: 258 seconds]
dankest has quit [Client Quit]
jhn has joined #ruby
wargasm has quit [Ping timeout: 258 seconds]
csaunders has quit [Quit: Computer has gone to sleep.]
adkron has quit [Ping timeout: 252 seconds]
kofno has quit [Remote host closed the connection]
jerius has quit []
cloke has joined #ruby
dustint has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
cloke has quit [Client Quit]
tvw has quit [Ping timeout: 268 seconds]
<wormwood> Hello all, anyone have Ruby 2.0 with DTrace support up on OSX? I compiled ruby 2.0 with dtrace support but its not triggering a probe. Aside from compiling with DTrace support is there anything else I'm supposed to do?
locriani has joined #ruby
mmitchell has quit [Remote host closed the connection]
tylersmith has joined #ruby
cha1tanya has joined #ruby
kofno has joined #ruby
hach has joined #ruby
cloke has joined #ruby
wargasm has joined #ruby
dmiller has joined #ruby
cloke has quit [Client Quit]
ryanclark_ has joined #ruby
hamakn has joined #ruby
Domon has joined #ruby
mmlac-bv has quit [Quit: mmlac-bv]
cha1tanya has quit [Excess Flood]
Tectonic has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
cha1tanya has joined #ruby
hamakn has joined #ruby
xlab has joined #ruby
Hanmac2 has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
gaahrdner has quit [Remote host closed the connection]
Cultofmetatron has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 264 seconds]
twoism has joined #ruby
xcv has quit [Remote host closed the connection]
robert_ has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
Davey has joined #ruby
gabrielr_ has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
davetherat has quit [Remote host closed the connection]
arya_ has joined #ruby
davetherat has joined #ruby
arya has quit [Ping timeout: 248 seconds]
terrorpup has quit [Ping timeout: 255 seconds]
jeebster has quit [Quit: Leaving.]
mootpointer has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
danshult_ has quit [Remote host closed the connection]
CalebMingle has joined #ruby
Chryson has joined #ruby
gabrielrotbart has joined #ruby
gabrielr_ has quit [Ping timeout: 245 seconds]
gaahrdner has joined #ruby
ttt has joined #ruby
_maes_ has quit [Ping timeout: 256 seconds]
icole has quit [Remote host closed the connection]
philcrissman has joined #ruby
chrishough has joined #ruby
gabrielr_ has joined #ruby
sleetdrop has joined #ruby
rburton- has joined #ruby
gabrielrotbart has quit [Read error: Connection reset by peer]
soulofpeace has joined #ruby
ehaliewicz has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
wedgex has joined #ruby
Cultofmetatron has joined #ruby
ARCADIVS has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
cod3r has quit [Ping timeout: 252 seconds]
baba has joined #ruby
subbyyy has joined #ruby
robustus has joined #ruby
baba has quit [Excess Flood]
__alpaca_ has joined #ruby
radic has quit [Disconnected by services]
radic has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
seoaqua has joined #ruby
gabriel__ has joined #ruby
gabrielr_ has quit [Ping timeout: 245 seconds]
gaahrdner has quit [Remote host closed the connection]
greenarrow has quit [Quit: IRC is just multiplayer notepad]
__alpaca_ has quit [Ping timeout: 256 seconds]
greenarrow has joined #ruby
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
Michael__ has quit [Remote host closed the connection]
shevy has quit [Read error: Operation timed out]
Michael__ has joined #ruby
chipotle_ has joined #ruby
Guedes has joined #ruby
gabriel__ is now known as gabrielrotbart
ryanclark_ has quit [Ping timeout: 248 seconds]
gabrielrotbart has left #ruby [#ruby]
peta_ has quit [Quit: peta_]
kf8a has joined #ruby
sambio has joined #ruby
brain_shim has quit [Ping timeout: 252 seconds]
sambio has quit [Excess Flood]
sambio has joined #ruby
sambio has quit [Client Quit]
ZachBeta has quit [Quit: Computer has gone to sleep.]
nga4 has joined #ruby
bean has joined #ruby
icole has joined #ruby
cod3r has joined #ruby
mercwithamouth has quit [Quit: Lost terminal]
gabrielrotbart has joined #ruby
pcarrier has quit [Ping timeout: 252 seconds]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
pcarrier has joined #ruby
Tricon has joined #ruby
shevy has joined #ruby
nezumi has quit [Ping timeout: 248 seconds]
banister`sleep has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
haxrbyte_ has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
brain_shim has joined #ruby
adkron has joined #ruby
kofno has quit [Remote host closed the connection]
tommyvyo has joined #ruby
cha1tanya has quit [Read error: Connection reset by peer]
chipotle_ has quit [Quit: cya]
chandankumar has joined #ruby
Guedes has quit [Ping timeout: 240 seconds]
twoism has quit [Ping timeout: 252 seconds]
johnnyfuchs has quit [Remote host closed the connection]
Targen has joined #ruby
sethetter has joined #ruby
johnnyfuchs has joined #ruby
tundrax has quit [Remote host closed the connection]
tundrax has joined #ruby
tundrax has quit [Remote host closed the connection]
sethetter has quit [Client Quit]
brennanMKE has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
Michael__ has quit [Remote host closed the connection]
timmow has quit [Remote host closed the connection]
Michael__ has joined #ruby
tundrax has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Read error: Connection reset by peer]
rakl has joined #ruby
ryanclark_ has joined #ruby
IrishGringo has quit [Remote host closed the connection]
arya has joined #ruby
adamjleonard has quit [Quit: Leaving...]
Vivekananda has joined #ruby
rakl has quit [Client Quit]
Vivekananda has quit [Read error: Connection reset by peer]
d2dchat has quit [Remote host closed the connection]
ariedler has joined #ruby
Vivekananda has joined #ruby
aapzak has quit [Read error: Operation timed out]
ner0x has joined #ruby
mootpointer has joined #ruby
ryanclark_ has quit [Quit: ryanclark_]
aapzak has joined #ruby
pbertain has quit [Quit: pbertain]
icy` has joined #ruby
icy` has quit [Changing host]
icy` has joined #ruby
tylersmith has quit [Quit: tylersmith]
axxT has quit [Read error: Connection reset by peer]
pbertain has joined #ruby
axxT has joined #ruby
axxT has quit [Changing host]
axxT has joined #ruby
Spooner has quit [Quit: Leaving]
ZachBeta has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
aemeredith has joined #ruby
michaelmartinez has joined #ruby
rakl has joined #ruby
unixinit has joined #ruby
Domon has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
arya has quit [Ping timeout: 248 seconds]
d11wtq_ios has joined #ruby
Matip has joined #ruby
__alpaca_ has joined #ruby
Domon has joined #ruby
johnnyfuchs has quit [Remote host closed the connection]
ckrailo has joined #ruby
cantonic has quit [Quit: cantonic]
Mattix has quit [Ping timeout: 248 seconds]
philcrissman_ has joined #ruby
adamjleonard has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
lewis has joined #ruby
__alpaca_ has quit [Ping timeout: 264 seconds]
zenergi has joined #ruby
zenergi has quit [Client Quit]
arya has joined #ruby
zenergi has joined #ruby
zenergi has quit [Changing host]
zenergi has joined #ruby
zenergi has quit [Client Quit]
SegFaultAX has quit [Ping timeout: 264 seconds]
shammancer has quit [Quit: Leaving.]
<lewis> hi
d11wtq_ios has quit [Remote host closed the connection]
Drakevr has quit [Ping timeout: 264 seconds]
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
akam-it has joined #ruby
kaiwren has quit [Quit: kaiwren]
havenn_ has quit [Remote host closed the connection]
benlieb has joined #ruby
SegFaultAX has joined #ruby
timmow has joined #ruby
bnewton has joined #ruby
bnewton has quit [Client Quit]
Chryson has quit [Ping timeout: 245 seconds]
bnewton has joined #ruby
angusiguess has quit [Ping timeout: 268 seconds]
shammancer has joined #ruby
shammancer has quit [Client Quit]
gaahrdner has joined #ruby
benlieb has quit [Client Quit]
shammancer has joined #ruby
tundrax has quit [Remote host closed the connection]
philcrissman has joined #ruby
philcrissman_ has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 245 seconds]
ner0x has quit [Quit: Leaving]
gaahrdner has quit [Ping timeout: 260 seconds]
tylersmith has joined #ruby
hach has left #ruby [#ruby]
ARCADIVS has quit [Quit: WeeChat 0.3.8]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
jovy88 has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Quit: さようなら]
end_guy has quit [Ping timeout: 276 seconds]
miso1337 has joined #ruby
Hobogrammer has joined #ruby
jovy88 has joined #ruby
seoaqua has quit [Ping timeout: 252 seconds]
jbueza has quit [Quit: Leaving.]
end_guy has joined #ruby
nezumi has joined #ruby
jhn has quit [Ping timeout: 276 seconds]
arya has joined #ruby
ntzrmtthihu777 has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
seoaqua has joined #ruby
vikhyat has joined #ruby
CalebMingle has quit [Quit: CalebMingle]
sambao21 has joined #ruby
CalebMingle has joined #ruby
hogeo has joined #ruby
ffranz has joined #ruby
ffranz has quit [Remote host closed the connection]
bradhe has joined #ruby
xcv has joined #ruby
seoaqua has quit [Ping timeout: 240 seconds]
krz has joined #ruby
angusiguess has joined #ruby
sayan has joined #ruby
tundrax has joined #ruby
ariedler has quit [Remote host closed the connection]
CalebMingle has quit [Quit: CalebMingle]
CyberMaN has joined #ruby
akhet has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
miso1337 has quit [Quit: afk]
ariedler has joined #ruby
akhet has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
mockra has joined #ruby
vikhyat has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 256 seconds]
coder_neo has joined #ruby
brennanMKE has joined #ruby
kobain has quit []
chrishough has quit [Quit: chrishough]
akhet has quit [Remote host closed the connection]
Vivekananda has quit [Remote host closed the connection]
wedgex has quit [Remote host closed the connection]
kf8a has quit [Quit: Computer has gone to sleep.]
hach has joined #ruby
happydude has joined #ruby
netto has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
brennanMKE has quit [Ping timeout: 268 seconds]
mattbl has joined #ruby
slyv has quit [Quit: Textual IRC Client: www.textualapp.com]
wgosling has joined #ruby
hogeo has quit [Remote host closed the connection]
chandankumar has quit [Remote host closed the connection]
HAKEON has joined #ruby
athst has quit [Quit: athst]
__alpaca_ has joined #ruby
sguselnikov has joined #ruby
wallerdev has quit [Quit: wallerdev]
wgosling_ has joined #ruby
julian-delphiki has joined #ruby
ariedler has quit [Remote host closed the connection]
wgosling has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit:]
__alpaca_ has quit [Ping timeout: 276 seconds]
zeade has joined #ruby
Bosox20051 has quit [Quit: Leaving]
bean has quit [Ping timeout: 245 seconds]
bean has joined #ruby
ariedler has joined #ruby
happydude has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: kenneth]
philcrissman has quit [Remote host closed the connection]
jgrau has joined #ruby
huoxito has quit [Quit: Leaving]
julian-delphiki has quit [Ping timeout: 252 seconds]
tds has quit [Quit: tds]
wallerdev has joined #ruby
Vivekananda has joined #ruby
zeade has quit [Quit: Leaving.]
timmow has joined #ruby
mockra has quit [Remote host closed the connection]
netto has quit [Quit: netto]
julian-delphiki has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
arya_ has joined #ruby
love_color_text has joined #ruby
bradhe has quit [Remote host closed the connection]
bean has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
banjara has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
tylersmith has quit [Quit: tylersmith]
cooldman224 has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
companion has quit [Quit: Poweroff]
tomsthumb has joined #ruby
icole has quit [Remote host closed the connection]
tomsthumb has quit [Client Quit]
mahmoudimus has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
shammancer has quit [Quit: Leaving.]
shammancer has joined #ruby
divout has joined #ruby
ehaliewicz has quit [Read error: No route to host]
Hanmac1 has joined #ruby
ananthakumaran has joined #ruby
jdunck has joined #ruby
Hanmac2 has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
aemeredith has quit [Remote host closed the connection]
greasegum has joined #ruby
psyprus has joined #ruby
mootpointer has joined #ruby
kenneth has joined #ruby
arya has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 264 seconds]
sayan has quit [Read error: Connection reset by peer]
arya_ has joined #ruby
Cooler__ has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
icole has joined #ruby
aemeredith has joined #ruby
arya has quit [Ping timeout: 248 seconds]
nari has joined #ruby
jhowarth has quit [Quit: Connection closed for inactivity]
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
bnewton has quit [Quit: bnewton]
akhet2 has joined #ruby
akhet has quit [Read error: Connection reset by peer]
nickchow has joined #ruby
dmiller has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
angusiguess has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
Animawish has quit [Quit: Animawish]
Macaveli has joined #ruby
graydot has quit [Quit: graydot]
tomsthumb has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
syl has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 264 seconds]
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
ttt_ has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
mattbl has joined #ruby
ttt has quit [Read error: Connection reset by peer]
mootpointer has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
pcboy_ has joined #ruby
thone_ has joined #ruby
splittingred has quit [Quit: splittingred]
leo__ has joined #ruby
nari has quit [Ping timeout: 264 seconds]
thone has quit [Ping timeout: 264 seconds]
soulofpeace has quit [Ping timeout: 245 seconds]
Axsuul has joined #ruby
zz_skinny_much is now known as skinny_much
__alpaca_ has joined #ruby
thone has joined #ruby
V8Energy has quit [Ping timeout: 260 seconds]
Macaveli has quit [Quit: This computer has gone to sleep]
arya has joined #ruby
chandankumar has joined #ruby
vikhyat has joined #ruby
thone_ has quit [Ping timeout: 252 seconds]
codecop has joined #ruby
arya_ has quit [Ping timeout: 256 seconds]
arya_ has joined #ruby
thone has quit [Read error: Operation timed out]
leo__ is now known as stackpush
heliumsocket has quit [Quit: heliumsocket]
tundrax has quit [Remote host closed the connection]
__alpaca_ has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 252 seconds]
[rust] has joined #ruby
tundrax has joined #ruby
coder_neo has quit [Ping timeout: 260 seconds]
vikhyat has quit [Ping timeout: 268 seconds]
freeayu has quit [Ping timeout: 276 seconds]
graydot has joined #ruby
freeayu has joined #ruby
michaelmartinez has joined #ruby
arya has joined #ruby
tundrax has quit [Remote host closed the connection]
benlieb has joined #ruby
arya_ has quit [Ping timeout: 264 seconds]
timmow has joined #ruby
tundrax has joined #ruby
nickchow has quit [Quit: Linkinus - http://linkinus.com]
thone has joined #ruby
miso1337 has joined #ruby
unixinit has quit [Remote host closed the connection]
ZachBeta_ has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
companion has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
coder_neo has joined #ruby
jbpros has joined #ruby
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
celinedior has joined #ruby
wallerdev has quit [Quit: wallerdev]
hach has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
dmiller_ has joined #ruby
stnly has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
vikhyat has joined #ruby
havenwood has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
arya has joined #ruby
[rust] has quit [Quit: Leaving]
mockra has quit [Ping timeout: 256 seconds]
dmiller_ has quit [Ping timeout: 264 seconds]
robscomputer has joined #ruby
MisterPostIT has joined #ruby
vikhyat has quit [Ping timeout: 245 seconds]
rakl has quit [Quit: sleeping]
gerep has joined #ruby
<gerep> Hello!
<gerep> How can I test a method that is not returning a value? Is it required to return so I can test it?
<Hanmac> gerep: all methods returns the last statement
jdunck has quit [Quit: Computer has gone to sleep.]
<gerep> Hanmac thanks, in this case: https://gist.github.com/anonymous/5449894 what is it returning? I'm confused =)
arya has quit []
jbpros has quit [Quit: jbpros]
jbpros has joined #ruby
<gerep> Hanmac: it's returning whatever player returns?
<Hanmac> gerep: in this case start returns that what players returns (and PS: you dont need the self. before that)
<gerep> Hanmac: I'll remove it, thanks ;)
<gerep> Hanmac My methods are calling other methods, following this sequence, start -> players -> ranking -> results that prints in the terminal
<gerep> how could I test if each function is working properly? Should I avoid all this other methods call?
<Hanmac> maybe
ph^ has quit [Remote host closed the connection]
<gerep> I'll try that, thanks for your time =)
<gerep> Gotta go, it's 3 am =/
<shevy> gerep you could always use a variable to keep track
ph^ has joined #ruby
<shevy> @can_we_continue = true
<gerep> shevy got it, thanks for the tip =)
gerep has quit [Remote host closed the connection]
<shevy> gerep another way is to exit early when an error happens
<shevy> exit if ! File.exist?('/tmp/bla')
<shevy> or even better, with a customized message to the user at the same time
<Liru> Ugh, I'm probably doing something wrong
coder_neo has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
<shevy> exit_gracefully('Hey man, the file does not exist, so we exit now.') if ! File.exist?('/tmp/bla')
<shevy> or rather than... "if !", you could use "unless"
<Liru> shevy: he left
<shevy> damn
<shevy> that makes me angry
<shevy> I want to kill someone now
angusiguess has joined #ruby
<Liru> Oh
<Liru> I know
<Liru> You can help me with my conundrum then
<Liru> :D
<Hanmac> shevy nokogiri ships libxml too, just image my rwx gem would ship wxWidgets too ;PP
<shevy> Liru hmm dont know conundrum
bradhe has joined #ruby
<shevy> I am more useful when it is general ruby stuff :D
<Liru> problem
<Liru> conundrum means problem
<shevy> haha
<shevy> 50% of ruby libraries means problem
<shevy> :(
<Liru> Well, this isn't a library-based problem
havenwood has quit [Remote host closed the connection]
<Liru> It's a general form-based one
decentrality has quit [Quit: decentrality]
<Hanmac> liru like in html-form?
hach has joined #ruby
<Liru> Like in "what can I do so this code won't make you shoot me" form
<Liru> hold on
seoaqua has joined #ruby
<Liru> Also should be mentioned that a lot of buildings would have their own inventory lists
tonini has joined #ruby
<Liru> I'm guessing that I should implement classes
angusiguess has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
hamakn has quit [Remote host closed the connection]
havenwood has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
cod3r has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
nomenkun has joined #ruby
<Hanmac> Liru what kind of game are you planing?
<Liru> Hanmac: IRC-based multiplayer game
bradhe has quit [Ping timeout: 268 seconds]
codesoda has joined #ruby
soulofpeace has joined #ruby
droppedonmyhead has quit [Quit: droppedonmyhead]
hamakn has joined #ruby
ph^ has quit [Remote host closed the connection]
hach has quit [Ping timeout: 256 seconds]
<Liru> I feel like I should just implement the hash method and refactor it later
Hanmac has quit [Quit: Leaving.]
brtdv has joined #ruby
<shevy> IRC based?
<Liru> Yeah
<shevy> we can play that through IRC?
<Liru> Well, I don't have much right now
<shevy> Hanmac.reboot
<shevy> Hanmac.do_something_silly
mockra has joined #ruby
<shevy> hehe
<Liru> Currently, you can only idle and get levels based on what you're "doing"
<Liru> which doesn't actually produce anything
<shevy> Liru, I am rewriting my largest project right now... it's now the third day ... I am at like 3% finished so far...
Mon_Ouie has joined #ruby
jdunck has joined #ruby
<Liru> oh?
dmiller has joined #ruby
<shevy> I often feel ruby is too complicated
icole has quit [Remote host closed the connection]
<shevy> Liru, yeah I hate rewrites, so when you wrote you dont have much right now, I dont have much right now either, in this rewrite. but it feels better, I can throw away many past design decisions and just move on and continue
workmad3 has joined #ruby
<shevy> Liru it's often best to just write and write and write and then rewrite when it all sucks and continue to write
<Liru> Yeah, thought so
jovy88 has quit [Read error: Connection reset by peer]
<Liru> I know a guy who contributes to a few gems
<Liru> I'll show him when I'm done, then watch his reaction to the code
<Liru> maybe put it on youtube
<Liru> It'll be hilarious
* Liru goes back to writing
jovy88 has joined #ruby
__alpaca_ has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
sguselnikov has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
arietis has joined #ruby
__alpaca_ has quit [Ping timeout: 252 seconds]
tret has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
codesoda has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
s2013 has quit []
Mon_Ouie has quit [Ping timeout: 252 seconds]
michaelmartinez has left #ruby [#ruby]
timmow has joined #ruby
rippa has joined #ruby
Vainoharhainen has joined #ruby
andikr has joined #ruby
hach has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
Hanmac has joined #ruby
skroon has quit [Ping timeout: 268 seconds]
Tricon has quit [Quit: Leaving...]
thebastl has joined #ruby
xiaoFroze has joined #ruby
SCommette has quit [Quit: SCommette]
xiaoFroze has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 256 seconds]
hach has quit [Ping timeout: 256 seconds]
d2dchat has joined #ruby
Myk267 has joined #ruby
<shevy> Liru that I found to be immensely helpful
<shevy> the more gems you write, the better
<shevy> my gems lack documentation :(
<shevy> but other than that, it was a great experience so far, I should have started that like +5 years ago
tundrax has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
pduin has joined #ruby
xpen has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
gabrielrotbart has quit [Remote host closed the connection]
twoism has quit [Ping timeout: 260 seconds]
<Liru> shevy: I meant that he's a good ruby programmer, and showing my code to him would give him a heart attack at the very least
crodas has quit [Ping timeout: 252 seconds]
<seoaqua> i parse WCF with ruby last week. i can provide some experience if anyone needs
nomenkun has quit [Remote host closed the connection]
<seoaqua> *parsed
celinedior has quit [Quit: celinedior]
<shevy> time to reinstall here, bbl
shevy has quit [Remote host closed the connection]
dr_bob has joined #ruby
Nimsical has quit [Ping timeout: 248 seconds]
mockra has quit [Remote host closed the connection]
tomzx_mac has quit [Read error: Operation timed out]
jprovazn_afk is now known as jprovazn
love_color_text has quit [Ping timeout: 256 seconds]
decentrality has joined #ruby
Nuck has quit [Ping timeout: 245 seconds]
gungor has joined #ruby
Nuck has joined #ruby
echevemaster has quit [Quit: Leaving]
skinny_much is now known as zz_skinny_much
agarie_ has joined #ruby
tvw has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
tomsthumb has quit [Quit: Leaving.]
filipe has joined #ruby
agarie has quit [Ping timeout: 276 seconds]
mootpointer has joined #ruby
mafolz has joined #ruby
crodas has joined #ruby
bradhe has joined #ruby
aganov has joined #ruby
kreantos has joined #ruby
moeSeth has quit [Ping timeout: 240 seconds]
aemeredith has quit [Remote host closed the connection]
V8Energy has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
rgoodwin has quit [Ping timeout: 245 seconds]
jimeh has quit [Ping timeout: 245 seconds]
epsylon has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 276 seconds]
PhilK has quit [Ping timeout: 245 seconds]
xlab has quit [Ping timeout: 248 seconds]
Rix has quit [Ping timeout: 264 seconds]
autumn has quit [Ping timeout: 240 seconds]
Apocalypse has joined #ruby
jimeh has joined #ruby
rgoodwin has joined #ruby
skroon has joined #ruby
PhilK has joined #ruby
gungor has quit [Remote host closed the connection]
autumn has joined #ruby
epsylon has joined #ruby
tomsthumb has joined #ruby
graydot has quit [Ping timeout: 252 seconds]
graydot has joined #ruby
dmiller has joined #ruby
Rix has joined #ruby
clocKwize has joined #ruby
__alpaca_ has joined #ruby
Chinorro has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
greasegum has quit [Ping timeout: 264 seconds]
ph^ has joined #ruby
palyboy has quit []
V8Energy has quit []
__alpaca_ has quit [Ping timeout: 256 seconds]
chandankumar has quit [Ping timeout: 248 seconds]
gungor_ has joined #ruby
leonidlm has joined #ruby
icole has joined #ruby
mmozuras has joined #ruby
ph^ has quit [Ping timeout: 255 seconds]
love_color_text has joined #ruby
arya has joined #ruby
codesoda has joined #ruby
icole has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
bluOxigen has joined #ruby
stackpush has quit [Ping timeout: 248 seconds]
timmow has joined #ruby
tomo has joined #ruby
<tomo> Is there a shorter way to write this (the last one)? a=1; b=1; c=1; a == b && b == c
<tomo> a == b == c does not work
arya has quit [Ping timeout: 256 seconds]
Macaveli has joined #ruby
<waxjar> tomo: something like a,b,c = 1,1,1; [a,b,c].all? { |x| x == a }
arya has joined #ruby
<tomo> waxjar: thanks a lot!
<waxjar> :)
<tobiasvl> [a,b,c].uniq.length == 1
<tomo> tobiasvl: oh, I love that one!
xlab has joined #ruby
<waxjar> that's neat
timmow has quit [Ping timeout: 252 seconds]
<tobiasvl> hehe. it's neat but maybe a bit hard to read
seoaqua has quit [Quit: 离开]
<havenwood> [a,b,c].uniq.one?
<tobiasvl> yeah, better
hach has joined #ruby
<tomo> oh!
aemeredith has joined #ruby
<tobiasvl> waxjar's answer is pretty nice, but it has an extra call (a == a)
arturaz has joined #ruby
arya_ has joined #ruby
unflores has joined #ruby
Proshot has joined #ruby
Hanmac has quit [Read error: Operation timed out]
hach has quit [Ping timeout: 252 seconds]
staafl has quit [Ping timeout: 258 seconds]
arya has quit [Ping timeout: 256 seconds]
benlieb has joined #ruby
mklappst_ has joined #ruby
francisfish has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
thebastl has quit [Remote host closed the connection]
thebastl has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
aemeredith has quit [Ping timeout: 256 seconds]
Giorgio has joined #ruby
stackpush has joined #ruby
beneggett has quit [Ping timeout: 264 seconds]
keymone has joined #ruby
keymone has quit [Client Quit]
mootpointer has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
Animawish has joined #ruby
thebastl has quit [Ping timeout: 264 seconds]
MrZYX|off is now known as MrZYX
thebastl has joined #ruby
thebastl has quit [Remote host closed the connection]
timmow has joined #ruby
Tectonic has quit [Quit: Tectonic]
thebastl has joined #ruby
pi3r has joined #ruby
Vivekananda has quit [Remote host closed the connection]
Neomex has joined #ruby
jbpros has quit [Quit: jbpros]
blacktulip has joined #ruby
Neomex has quit [Client Quit]
a_a_g has joined #ruby
thebastl has quit [Ping timeout: 268 seconds]
Hanmac has joined #ruby
ferdev has quit [Quit: ferdev]
snuglepuss has quit [Quit: Leaving]
celinedior has joined #ruby
<Hanmac> tomo did you get my line?
MrZYX is now known as MrZYX|off
tobiasvl has quit [Ping timeout: 264 seconds]
mockra has joined #ruby
thone has quit [Ping timeout: 268 seconds]
emergion has joined #ruby
emergion has quit [Client Quit]
tobiasvl has joined #ruby
<hoelzro> isn't there a way with a particular testing framework to say "only run the test containing this line"?
<hoelzro> I forget which one it is...
shevy has joined #ruby
Ontolog has quit [Remote host closed the connection]
rdark has joined #ruby
<mmozuras> hoelzro: you can certainly do that with rspec - "rspec spec/model/your_spec.rb:131"
<hoelzro> ah, that's it!
<mmozuras> (where 131 is the line number)
<hoelzro> mmozuras: any idea where that's documented?
sguselnikov has joined #ruby
LnL has quit [Quit: LnL]
arietis has quit [Ping timeout: 240 seconds]
Macaveli has quit [Read error: Connection reset by peer]
<mmozuras> hoelzro: old documentation for rspec command line options etc. is here: http://old.rspec.info/documentation/tools/spec.html gimme a sec to find a newer one
bradhe has joined #ruby
mockra has quit [Ping timeout: 255 seconds]
<Hanmac> hm i prefer test-unit
Macaveli has joined #ruby
<havenwood> i like minitest, but bacon seems really nice too
<hoelzro> mmozuras: thank you
<mmozuras> hoelzro: np
greenarrow has quit [Ping timeout: 260 seconds]
greenarrow has joined #ruby
<hoelzro> Hanmac: I'm more curious about the feature itself than interested in using rspec
<hoelzro> I myself prefer minitest
<Hanmac> hm i used test-unit with minitest once too, but i like some features from test-unit that minitest does not have
ZachBeta_ has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 248 seconds]
gungor_ has quit [Remote host closed the connection]
ZachBeta has joined #ruby
love_color_text has quit [Ping timeout: 256 seconds]
d11wtq has quit [Ping timeout: 264 seconds]
d11wtq has joined #ruby
Astral_ has quit [Read error: Connection reset by peer]
niceguyjames has joined #ruby
Astral_ has joined #ruby
gungor has joined #ruby
Fuzai has joined #ruby
ephemerian has joined #ruby
love_color_text has joined #ruby
filipe has quit [Ping timeout: 245 seconds]
<Fuzai> I just discovered something in ruby arr = [ 1, 2, 3 ]; res = ( arr.pop; arr)
xkickflip has quit [Ping timeout: 248 seconds]
<Fuzai> Was there anything in Perl that ever matched this syntax?
<hoelzro> Fuzai: which part of the syntax?
xkickflip has joined #ruby
<hoelzro> res = ( ... )?
<Fuzai> yea
<hoelzro> yeah, that's just a list literal
<Fuzai> being able to call a function before a variable assignment
<Fuzai> in the same line
<hoelzro> huh?
callmeivan has quit [Read error: Operation timed out]
<hoelzro> they're two separate statements
__alpaca_ has joined #ruby
<hoelzro> arr = [ 1, 2, 3 ] is evaluated first, then the next
<Fuzai> ur missing it
<Fuzai> arr.pop; arr are two statements within one line
<hoelzro> ah, as opposed to ( arr.pop, arr)
<Fuzai> where ( arr.pop; arr ) is like the inverse of arr.pop
<Fuzai> i'm just curious if it's been there this whole time and i'm just now noticing it as a really cool trick
<hoelzro> I personally think that's a nasty trick
<Fuzai> and by the whole time i mean in other languages too
<Fuzai> :)
ipalaus has quit [Quit: Computer has gone to sleep.]
<Fuzai> it cut a bunch of code out of my function and I still understand what is going on
<Fuzai> it can't be that bad
RagingDave has joined #ruby
<hoelzro> you understand, but will someone else reading your code?
<Fuzai> only down the line as a reference tool
<hoelzro> that semicolon is easy to miss as well
Animawish has quit [Quit: Animawish]
<Fuzai> i'll probably be the only one ever editing it
_cheney2 has quit [Read error: Connection reset by peer]
<hoelzro> that someone else can you "be in 6 months" =)
thone has joined #ruby
<Fuzai> I made proper comments incase of that :)
<Fuzai> that was my first thought
dustint has quit [Ping timeout: 250 seconds]
nari has joined #ruby
__alpaca_ has quit [Ping timeout: 257 seconds]
<Fuzai> But my question stands, is that sorta "crap" possible in something like php or perl?
rburton- has quit [Quit: Leaving...]
duosrx has joined #ruby
Deele has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
blaxter_ has joined #ruby
anderse has joined #ruby
ferdev has joined #ruby
thone has quit [Ping timeout: 264 seconds]
mahmoudimus has joined #ruby
elaptics`away is now known as elaptics
jacobw has joined #ruby
<shevy> Fuzai what was the question again?
<Fuzai> arr = [ 1, 2, 3 ]; res = ( arr.pop; arr)
callmeivan has joined #ruby
<Fuzai> can "res = ( arr.pop; arr)"
neku has joined #ruby
<shevy> I think it is possible in perl
<Fuzai> is that possible in php or perl or is that a Ruby exclusive?
<shevy> pretty sure it works in perl
<shevy> .pop exists in perl
<Fuzai> I just figured it out on my own and i'm pretty proud of myself, but i'm curious has that little trick been around the whole time
<shevy> but is probably called differently
<shevy> and the syntax is so ugly
filipe has joined #ruby
<Hanmac> i think he means the () ... looks like in this context they react like begin ... end
<shevy> Fuzai, .pop is just a method call on class Array... though, your code is a bit strange, I never saw the ()
<shevy> I see Hanmac
filipe has quit [Read error: Connection reset by peer]
<shevy> very odd
<Fuzai> so what it is
<shevy> please Fuzai, don't use too much atypical ruby code :\
<neku> Is it possibile to assign istance variables inside a lambda?
<Fuzai> i have a json array with a blank element at the end
<shevy> Fuzai what is "blank"?
<Fuzai> and before i pass it into my private variable space i munch it
<shevy> you mean array = [1,2,3,''] ?
<Fuzai> yea
<Fuzai> the code works great
<havenwood> neku: yes
<Fuzai> i'm just curious if this has been around forever or if it's something only Ruby can do
atmosx has joined #ruby
<shevy> Fuzai array = [1,2,3,'']; array.reject {|entry| entry.to_s.empty?} # => [1, 2, 3]
<shevy> Fuzai dunno, I suppose it is simply a matter of precedence
<shevy> not sure if perl uses () but I think it does
marr has joined #ruby
<neku> havenwood: @var = something doesn't seem to work
<shevy> my $foo = (5 || 6)
<Hanmac> >> array = [1,2,3,'']; array.grep(Integer)
<eval-in> Hanmac => [1, 2, 3] (http://eval.in/17377)
<atmosx> hello guys
<shevy> nice trick Hanmac
slainer68 has joined #ruby
anderse has quit [Quit: anderse]
<shevy> hey atmosx, still busy with exams?
Zai00 has joined #ruby
camilasa_ has joined #ruby
<atmosx> I'm trying to match patterns FROM list_of_words TO list_of_words. So anything in between I'd like to grab, do I do this with (pure) regexp?
<atmosx> shevy: no I'm fine now :-)
<Fuzai> shevy, that is a nice trick
<havenwood> neku: @ivar = 'outside'; ->{ @ivar = 'lambda' }.call; @ivar #=> 'lambda'
<shevy> Fuzai it's just how to "think" in ruby, you can think in how you want to change data into something you can use, and for this you use methods usually
<shevy> like .reject
<neku> havenwood: lol, sorry. my bad.
<shevy> or .grep, as Hanmac showed
<Fuzai> well i don't think grep would work
<Fuzai> because it's a complex data set coming in
<Fuzai> but the .reject is something new to me
<Fuzai> kinda sounds like a .map thing
<shevy> yeah
callmeivan has quit [Ping timeout: 252 seconds]
<shevy> .reject and .select
<shevy> when you want specific objects or want to do away with specific ones
mmozuras has quit [Ping timeout: 256 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
<shevy> slay 'em!
<shevy> ruby is 90% perfect
mmozuras has joined #ruby
<Fuzai> I like it alot, it's easier to sound out what is going on once you get the basics down
<shevy> yeah
d11wtq has quit [Ping timeout: 256 seconds]
<Fuzai> from there it just turns into a research project
<shevy> it's a bit complex taken together though
beneggett has joined #ruby
<Fuzai> I've been using it since the 1st week of January and i've wrote probably 2,000 lines of code with it
<shevy> cool
<Fuzai> I finally decided I needed to re-write everything into an OOP style
<shevy> I rewrite all the time :(
tjbiddle has joined #ruby
<Fuzai> and emplore all the tricks i've learned along the way
love_color_text has quit [Ping timeout: 252 seconds]
<shevy> the thing to ask is always whether a rewrite is really worth it
<Fuzai> Re-writing doesn't bother me, it just means i've evolved into something that fits better
<shevy> yes but it's still time
<Fuzai> in this case it will help me, because it will make it easier for me to debug, and give others a decent example
<shevy> I only regard ruby as a nice hobby, I should never allow it to suck too much time away
<Fuzai> right now i don't want to give my code to people learning because i used so many bad tricks
<Fuzai> I wrote a Robot for a HTTP chat room in Ruby
aemeredith has joined #ruby
<Fuzai> then i built an interface in jquery / php to basically act as a online console to dynamically generate the Ruby bots
<Fuzai> so far everything works well and i've got about 30 bots online as we speak
<shevy> ewwwwww
<Fuzai> But I think the code is a mess
<shevy> yeah
<shevy> better don't show it to anyone else :D
hach has joined #ruby
tjbiddle has quit [Client Quit]
nic019 has joined #ruby
love_color_text has joined #ruby
<Fuzai> Eventmachine, with globals and no comments :)
<shevy> ouw
<shevy> no comments
<shevy> I think there should always be comments, but they most be minimal, and also useful at the same time
<Fuzai> Yea like i said, not code i wanna be giving people to learn how to write these things
<shevy> *must be
aemeredith has quit [Ping timeout: 245 seconds]
Deele has quit [Ping timeout: 268 seconds]
aaronmcadam has joined #ruby
hach has quit [Ping timeout: 252 seconds]
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
enriclluelles has joined #ruby
Deele has joined #ruby
love_color_text has quit [Ping timeout: 276 seconds]
love_color_text has joined #ruby
fixl has joined #ruby
Elhu has joined #ruby
aemeredith has joined #ruby
aemeredith has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
aemeredith has joined #ruby
love_color_text has quit [Ping timeout: 276 seconds]
adambeynon has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
atyz has joined #ruby
hamakn has joined #ruby
xlab has quit [Remote host closed the connection]
xlab has joined #ruby
<neku> hey guys, is it possibile to keep looping over an enumerator when it reaches his end?
<hoelzro> neku: what would that mean?
<hoelzro> can you provide an example scenario in which you would do that?
tundrax has joined #ruby
<neku> hoelzro: i'm working to a radio player
<neku> i have a playlist
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<neku> an when it reaches is end
backjlack has joined #ruby
<neku> i want to start again from the first song
<hoelzro> oh
<hoelzro> so you want a circular enumerator
<neku> yep
<hoelzro> that's easy enough
thone has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
<neku> hoelzro: the problem is I am on an enviroment where exception have an high computational cost
<neku> and I am wondering if there is a property of enumerator that let achive that
sayan has joined #ruby
love_color_text has joined #ruby
<CyberMaN> if obj == enum.last set whatever incremental value you have to 0 again?
moeSeth has joined #ruby
daniel_- has joined #ruby
thone has quit [Read error: Operation timed out]
bradhe has joined #ruby
mmozuras has quit [Ping timeout: 256 seconds]
senayar has joined #ruby
mmozuras has joined #ruby
timmow_ has joined #ruby
vikhyat has joined #ruby
<Fuzai> [1,2] << [3,4] yields [1,2,[3,4]]. How do I join two arrays so my return looks like [1, 2, 3, 4] ?
<hoelzro> >> [1,2] + [3,4]
<eval-in> hoelzro => [1, 2, 3, 4] (http://eval.in/17387)
Nanuq has quit [Ping timeout: 252 seconds]
<Fuzai> oi
<Hanmac> concat
<Fuzai> ty
thone has joined #ruby
<neku> ok, found it guys! #cycle return an enumerator like that
<hoelzro> huh
<hoelzro> I looked for cycle, but couldn't find it
<hoelzro> what class is it on?
<neku> Enumerable
bradhe has quit [Ping timeout: 268 seconds]
love_color_text has quit [Ping timeout: 268 seconds]
<hoelzro> crazy
thone has quit [Read error: Operation timed out]
d3c has joined #ruby
mmozuras has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: Leaving]
Macaveli has joined #ruby
<Hanmac> on newer ruby Enumerators have size method where you can look how many iterations the enum will take ... for sample ary.cycle(2).size == ary.size * 2
codesoda has quit [Remote host closed the connection]
nari has quit [Ping timeout: 245 seconds]
gungor has quit [Remote host closed the connection]
jbpros has joined #ruby
vikhyat has quit [Ping timeout: 245 seconds]
sathish316 has joined #ruby
skattyadz has joined #ruby
arya has joined #ruby
miso1337 has quit [Quit: afk]
thone has joined #ruby
Nanuq has joined #ruby
timmow_ has quit [Quit: Leaving...]
blaxter_ is now known as blaxter
timmow_ has joined #ruby
timmow_ has quit [Client Quit]
__alpaca_ has joined #ruby
timmow_ has joined #ruby
love_color_text has joined #ruby
dawkirst has quit [Ping timeout: 264 seconds]
vikhyat has joined #ruby
ToApolytoXaos has joined #ruby
skattyadz has quit [Ping timeout: 245 seconds]
skattyadz_ has joined #ruby
timmow_ has quit [Client Quit]
mootpointer has joined #ruby
timmow_ has joined #ruby
tomo has quit [Ping timeout: 255 seconds]
turtlebits has joined #ruby
timmow is now known as Guest74649
skattyadz_ has quit [Client Quit]
__alpaca_ has quit [Ping timeout: 264 seconds]
love_color_text has quit [Ping timeout: 264 seconds]
timmow_ is now known as timmow
foofoobar has joined #ruby
workmad3 has joined #ruby
gungor has joined #ruby
thone has quit [Read error: Connection reset by peer]
LennyLinux has joined #ruby
nga4 has quit [Ping timeout: 252 seconds]
mootpointer has quit [Client Quit]
sayan has quit [Read error: Connection reset by peer]
akhet2 is now known as akhet
akhet has quit [Changing host]
akhet has joined #ruby
mklappst_ has quit [Remote host closed the connection]
Nanuq has quit [Read error: Operation timed out]
arya has quit [Ping timeout: 248 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Quit: benlieb]
Axsuul has quit [Ping timeout: 252 seconds]
LongLiveBacon has joined #ruby
Xeago has joined #ruby
wargasm has quit [Ping timeout: 248 seconds]
jbpros has quit [Quit: jbpros]
Giorgio has quit [Read error: Operation timed out]
dawkirst has joined #ruby
alup has quit [Remote host closed the connection]
alup has joined #ruby
Nanuq has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
thone has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
<Fuzai> Shouldn't I be able to use .map with the same variable i would use .each with?
leonidlm has quit [Ping timeout: 260 seconds]
atyz has quit [Quit: Leaving...]
<Fuzai> I was using db.query("select * from table").each do |row| and i tried to move it to a db.query("select * from table").map{|row|} and i get an error of an undefined method
adambeynon has joined #ruby
swex has joined #ruby
yacks has quit [Read error: Operation timed out]
<shevy> Fuzai what do you mean "same variable?
<shevy> .map means apply-on-each
<shevy> .each just iterates through the collection/container
<Hanmac> ... Fuzai ithink it does not include the Enumerable module ... try db.query("select * from table").each.map do |row|
<Hanmac> ... and when this returns "no block given" then blame the autor if it
<Fuzai> i'm trying to .map on a db.query() and it's failing, i used to use an each here, i'm confused because I thought if a variable supported each it would support map as well
<Fuzai> ok i'll try that
araujo has quit [Quit: Leaving]
<atmosx> anyone good with regexp?
<Fuzai> still no luck :(
<Fuzai> lots of people are good with regex atmosx
atyz has joined #ruby
TomJ has joined #ruby
<atmosx> I'm using this string: list = dna.scan(/(atg).*?(tga)/) … but instead of matching from 'atg' to 'tga' it matches ['atg' 'tga']
<atmosx> any idea why this happens?
ipalaus has joined #ruby
<Fuzai> so your string looks like 'atgxxxtga'
<Hanmac> atmosx: ? dna.scan(/atg(.*?)tga/)
<Fuzai> ty :)
<atmosx> Fuzai: yes
slainer6_ has joined #ruby
<atmosx> Hanmac: thanks :D
kiri has quit [Ping timeout: 252 seconds]
<atmosx> hmm but that doesn't match atg and tga
<atmosx> lol
<Hanmac> so you want that included or not?
enriclluelles has quit [Read error: Connection reset by peer]
enriclluelles has joined #ruby
<atmosx> ah k found it
<Hanmac> this maybe what you want: dna.scan(/atg.*?tga/)
<atmosx> Hanmac: yeap :-) thanks
kiri has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
d2dchat has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
xardas has joined #ruby
gungor has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 268 seconds]
aemeredith has quit [Remote host closed the connection]
skattyadz has joined #ruby
cod3r has joined #ruby
gungor has joined #ruby
malte_ has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
Bry8Star has quit [Ping timeout: 276 seconds]
Skelz0r has quit [Ping timeout: 276 seconds]
Skelz0r has joined #ruby
d11wtq has joined #ruby
thebastl has joined #ruby
ExxKA has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
jovy88 has joined #ruby
love_color_text has joined #ruby
tagrudev has joined #ruby
browndawg1 has joined #ruby
thone has quit [Ping timeout: 252 seconds]
gyre007 has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
staafl has joined #ruby
camilasa_ has quit [Remote host closed the connection]
vikhyat has quit [Ping timeout: 245 seconds]
ephemerian has quit [Quit: Leaving.]
spider-mario has joined #ruby
Spooner has joined #ruby
Michael__ has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 240 seconds]
Michael__ has joined #ruby
ksinkar has joined #ruby
love_color_text has quit [Ping timeout: 264 seconds]
tvw has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
thebastl_ has joined #ruby
tvw has quit [Client Quit]
tvw has joined #ruby
dv__ is now known as dv_
rippa has joined #ruby
chipotle_ has joined #ruby
kaffepanna has joined #ruby
dhruvasagar has joined #ruby
yacks has joined #ruby
thebastl has quit [Ping timeout: 252 seconds]
nari has joined #ruby
__alpaca_ has joined #ruby
dmiller has joined #ruby
peta_ has joined #ruby
chipotle_ has quit [Client Quit]
Flexa has joined #ruby
chandankumar has joined #ruby
__alpaca_ has quit [Ping timeout: 260 seconds]
dmiller has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 240 seconds]
<PaulePanter> Hi. Is there an abbreviation for `a => verylongvariablename if verylongvariablename`?
<PaulePanter> So I can somehow avoid typing the variablename again?
<PaulePanter> (Workaround is using an editor with completion.)
cod3r is now known as baba
objectivemo has quit [Quit: objectivemo]
thebastl_ has quit [Read error: Connection reset by peer]
sayan has joined #ruby
ipalaus has quit [Quit: Textual IRC Client: www.textualapp.com]
banister`sleep has joined #ruby
markalanevans has quit [Read error: Operation timed out]
jnoob22 has joined #ruby
jnoob22 has quit [Read error: Connection reset by peer]
yacks has quit [Ping timeout: 260 seconds]
mmozuras has joined #ruby
jnoob22 has joined #ruby
<tommylommykins> PaulePanter: Are you putting that inside a hash literal?
tk_ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
Iszak has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
mmozuras has quit [Ping timeout: 245 seconds]
tundrax has quit [Remote host closed the connection]
tundrax has joined #ruby
<peta_> PaulePanter: interesting question
dhruvasagar has joined #ruby
jprovazn has quit [Quit: Leaving]
<Hanmac> PaulePanter: you cant do it in a hash literal
thone has joined #ruby
mengu has joined #ruby
gungor has quit [Remote host closed the connection]
camilasa_ has joined #ruby
tommyvyo has quit [Quit:]
LennyLinux has quit [Remote host closed the connection]
alvin-x has left #ruby [#ruby]
r0bgleeson has quit [Ping timeout: 252 seconds]
camilas__ has joined #ruby
thone has quit [Read error: Operation timed out]
TomJ has quit [Read error: Operation timed out]
<PaulePanter> tommylommykins, peta_, Hanmac: It is this line https://github.com/jkraemer/pdf-forms/blob/master/lib/pdf_forms/pdftk_wrapper.rb#L23
Michael__ has quit [Remote host closed the connection]
gungor has joined #ruby
<PaulePanter> Is `data = {}` a hash? (Sorry, just started learning Ruby.)
TomJ has joined #ruby
foofoobar has joined #ruby
_bart has joined #ruby
<Hanmac> yeah
camilasa_ has quit [Ping timeout: 252 seconds]
<PaulePanter> My assumption is, `data = {}` denotes a hash. So I am going to use an editor with variable completion.
<PaulePanter> … or type faster.
thebastl has joined #ruby
dhruvasagar has quit [Ping timeout: 268 seconds]
<_bart> weird technique
<PaulePanter> Just to broading my horizon, what would be the abbreviation when this is no hash literal?
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jamesaxl has joined #ruby
dhruvasagar has joined #ruby
<Hanmac> PaulePanter: the {} is the hash literal
mikestok has joined #ruby
<PaulePanter> Hanmac: Thanks.
<banister`sleep> Hanmac: did you like BMO lost
<Hanmac> banister`sleep: the bubble at the end was creepy
<banister`sleep> Hanmac: BMO loved dat shiz though
addisaden has joined #ruby
<tommylommykins> PaulePanter: If you want to add something to a hash only if it exists, you possibly want something like "data[a] = longname if longname"
<tommylommykins> or maybe "... unless longname.empty?", depending on the type of longname
* tommylommykins doesn't think there are any sexy shortcuts for it
forlin has joined #ruby
<PaulePanter> tommylommykins: Thanks. Good to know.
Randomage has joined #ruby
<PaulePanter> Thank you all for your help!
<Hanmac> you can look at hash.merge
axxT has quit [Ping timeout: 256 seconds]
<tommylommykins> I guess also, depending on what you're using the hash for, it might be better to add a into it anyway?
<tommylommykins> and just leave it pointing at nil or "" or 0 or whateve it is
Giorgio has joined #ruby
hogeo_ has joined #ruby
loopee has joined #ruby
<banister`sleep> Hanmac: i thought the most recent episode sucked
Domon has quit [Remote host closed the connection]
pcarrier has quit [Quit: Computer has gone to sleep.]
ananthakumaran1 has joined #ruby
atmosx has quit [Quit: And so the story goes…]
mootpointer has joined #ruby
gener1c has quit [Read error: Connection reset by peer]
LennyLinux has joined #ruby
loopee has quit [Ping timeout: 256 seconds]
ananthakumaran has quit [Ping timeout: 264 seconds]
schickung has joined #ruby
mootpointer has quit [Client Quit]
hogeo_ has quit [Remote host closed the connection]
Macaveli has left #ruby ["Leaving"]
hogeo_ has joined #ruby
sayan has joined #ruby
Macaveli has joined #ruby
mikestok has quit [Quit: Computer has gone to sleep.]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
evenix has joined #ruby
Randomage has quit [Read error: Connection reset by peer]
LennyLinux has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
<Fuzai> Is there anything that would specifically block a list do |entry| vs. list { |entry| } ?
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Fuzai> I'm reading this API that is all using do end blocks and i'd like to move to the other one
dr_bob has quit [Ping timeout: 245 seconds]
Trancer has left #ruby [#ruby]
hogeo_ has quit [Ping timeout: 252 seconds]
<Fuzai> https://github.com/obrie/turntabler <-- That's the API i'm looking at, if you scroll down you can see the client.on :event do |data| end blocks i'm referring too
<Fuzai> to
bradhe has quit [Ping timeout: 255 seconds]
<spider-mario> Fuzai : the difference between do |x| … end and {|x| …} is purely stylistic
thone has joined #ruby
<Fuzai> that's what I thought
<waxjar> only thing you have to keep in mind is that arguments need parenthesis when using { … } to pass a block
<spider-mario> do … end blocks are typically used when the block is passed for its side-effects
<spider-mario> is that right?
gungor has quit [Remote host closed the connection]
<foofoobar> so when installing a gem via "gem install rails"; the installation of the gem is fast. What is really slow is the creation of the "ri" and "rdoc" documentation. Why does that need so long?
<foofoobar> s/creation/installation
pduin_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<waxjar> spider-mario: there are two conventions, one is the side effect thing, the other one is { } for single line blocks, do .. end for multiple line blocks
<waxjar> i think the latter is most popular, but i'm not sure
<Fuzai> can anyone explain why i'm seeing this error message then?
<waxjar> you need parenthesis around the arguments Fuzai
dhruvasagar has quit [Ping timeout: 252 seconds]
Guest99185 has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: Leaving]
thone has quit [Ping timeout: 256 seconds]
<Fuzai> hrm
swex_ has joined #ruby
pduin has quit [Ping timeout: 252 seconds]
<Fuzai> ty ty, it's much happier now
__alpaca has joined #ruby
<waxjar> :)
ixx has joined #ruby
renanoronfle__ has joined #ruby
dhruvasagar has joined #ruby
LennyLin_ has joined #ruby
h8R has quit [Read error: Connection reset by peer]
ixx is now known as Guest94162
h8R has joined #ruby
freeayu has quit [Remote host closed the connection]
arya has joined #ruby
banister`sleep has quit [Remote host closed the connection]
felixjet has quit [Quit: felixjet]
angusiguess has joined #ruby
swex has quit [Ping timeout: 268 seconds]
_veer has quit [Read error: Connection reset by peer]
thone has joined #ruby
__alpaca has quit [Ping timeout: 276 seconds]
haxrbyte has joined #ruby
Giorgio has quit [Read error: Operation timed out]
d11wtq has quit [Ping timeout: 255 seconds]
HAKEON has joined #ruby
yacks has joined #ruby
Giorgio has joined #ruby
thone has quit [Read error: Operation timed out]
JohnBat26 has joined #ruby
JohnBat26 has joined #ruby
gungor has joined #ruby
pcarrier has joined #ruby
d11wtq has joined #ruby
justsee has quit [Ping timeout: 255 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
jeffreylevesque has quit [Read error: Connection reset by peer]
nari has quit [Ping timeout: 252 seconds]
netto has joined #ruby
jeffreylevesque has joined #ruby
thebastl has quit [Remote host closed the connection]
kofno has joined #ruby
enriclluelles has quit [Ping timeout: 245 seconds]
thebastl has joined #ruby
charliesome has joined #ruby
madb055 has joined #ruby
arya_ has joined #ruby
vikhyat has joined #ruby
pi3r has quit [Ping timeout: 245 seconds]
axxT has joined #ruby
axxT has quit [Changing host]
axxT has joined #ruby
lucaspiller___ has quit [Quit: Connection closed for inactivity]
felixjet has joined #ruby
enriclluelles has joined #ruby
thebastl has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 276 seconds]
yshh has quit [Remote host closed the connection]
soulofpeace has quit [Ping timeout: 264 seconds]
baba has quit [Ping timeout: 268 seconds]
jnoob22 has quit [Ping timeout: 255 seconds]
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
tundrax has quit [Remote host closed the connection]
tundrax has joined #ruby
hach has joined #ruby
m8 has joined #ruby
_bart has quit [Quit: _bart]
icecandy has quit [Remote host closed the connection]
enriclluelles has quit [Remote host closed the connection]
jnoob22 has joined #ruby
csmrfx has joined #ruby
girija has joined #ruby
enriclluelles has joined #ruby
enriclluelles has quit [Remote host closed the connection]
foofoobar has quit [Quit: Computer has gone to sleep.]
graydot has quit [Read error: Connection reset by peer]
enriclluelles has joined #ruby
graydot has joined #ruby
mengu has quit [Quit: Leaving]
love_color_text has joined #ruby
eka has joined #ruby
vikhyat has quit [Remote host closed the connection]
psyprus has quit [Ping timeout: 258 seconds]
pi3r has joined #ruby
markand has joined #ruby
miso1337 has joined #ruby
<markand> hello there
vikhyat has joined #ruby
haxrbyte_ has joined #ruby
pduin_ has quit []
pduin has joined #ruby
gregorg has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
icecandy has joined #ruby
sleetdrop has quit [Ping timeout: 260 seconds]
love_color_text has quit [Ping timeout: 252 seconds]
Zai00 has quit [Quit: Zai00]
psyprus has joined #ruby
gregorg has joined #ruby
tagrudev has quit [Ping timeout: 264 seconds]
aganov has quit [Ping timeout: 268 seconds]
haxrbyte has quit [Ping timeout: 264 seconds]
dimka has quit [Ping timeout: 245 seconds]
dimka has joined #ruby
hach has quit [Quit: leaving]
daniel_- has joined #ruby
Macaveli has joined #ruby
pi3r has quit [Ping timeout: 245 seconds]
xardas has quit [Read error: Connection reset by peer]
aganov has joined #ruby
tagrudev has joined #ruby
madb055 has quit [Quit: Konversation terminated!]
postmodern has quit [Quit: Leaving]
mark_locklear has joined #ruby
netto has quit [Ping timeout: 252 seconds]
madb055 has joined #ruby
rton has joined #ruby
jnoob22 has quit [Remote host closed the connection]
jacobw has quit [Remote host closed the connection]
renanoronfle__ has quit [Quit: This computer has gone to sleep]
solidoodlesuppor has joined #ruby
codecaster has joined #ruby
Zai00 has joined #ruby
renanoronfle__ has joined #ruby
sayan has quit [Read error: Connection reset by peer]
graydot has quit [Ping timeout: 245 seconds]
xpen has quit [Remote host closed the connection]
graydot has joined #ruby
dimka has quit [Ping timeout: 264 seconds]
dimka has joined #ruby
good has joined #ruby
foofoobar has joined #ruby
thebastl has joined #ruby
bradhe has joined #ruby
kristofers has joined #ruby
braoru has joined #ruby
beiter has joined #ruby
akhet has quit [Remote host closed the connection]
jovy88 has quit [Read error: Connection reset by peer]
thone has joined #ruby
graydog has joined #ruby
graydot has quit [Ping timeout: 245 seconds]
graydog is now known as graydot
graydot has quit [Client Quit]
vikhyat has quit [Remote host closed the connection]
newbie has joined #ruby
Randomage has joined #ruby
jovy88 has joined #ruby
Randomage has left #ruby [#ruby]
newbie is now known as Guest24427
bradhe has quit [Ping timeout: 255 seconds]
mneorr_ has quit [Remote host closed the connection]
pi3r has joined #ruby
duosrx has quit [Remote host closed the connection]
codecaster has quit [Quit: Leaving.]
justsee has joined #ruby
divout has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 256 seconds]
<markand> hello there
<hoelzro> ahoy
thone has quit [Ping timeout: 248 seconds]
geekbri has joined #ruby
<markand> there is no documentation about the C API on ruby-doc.com ?
senayar has joined #ruby
<hoelzro> I don't think so?
<hoelzro> I always check README.ext
<markand> I can't find it
<hoelzro> in the Ruby source?
<charliesome> markand: its in the ruby source distribution
<hoelzro> sorry, README.EXT
<hoelzro> not .ext
<charliesome> markand: also the c api documentation is basically: "read include/ruby/ruby.h"
jnoob22 has joined #ruby
wallerdev has joined #ruby
<markand> charliesome, okay
krz has quit [Quit: krz]
gstudent2 has joined #ruby
malte_ has quit [Quit: malte_]
mneorr has joined #ruby
__alpaca_ has joined #ruby
love_color_text has joined #ruby
markand has left #ruby [#ruby]
tommyvyo has joined #ruby
<tommylommykins> charliesome: butbut!
<tommylommykins> reading the header files won't tell me the difference between, for example
<tommylommykins> rb_thread_call_without_gvl and rb_thread_call_without_gvl2
<hoelzro> the read the source =)
<hoelzro> *then
<charliesome> ^
gstudent2 has quit [Ping timeout: 248 seconds]
mikestok has joined #ruby
__alpaca_ has quit [Ping timeout: 260 seconds]
netto has joined #ruby
carloslopes has joined #ruby
enriclluelles has quit [Remote host closed the connection]
philcrissman has joined #ruby
divout has joined #ruby
invisime has joined #ruby
sguselnikov has quit [Quit: Computer has gone to sleep.]
rton has left #ruby [#ruby]
slainer6_ has quit [Ping timeout: 256 seconds]
krawchyk has joined #ruby
subbyyy has joined #ruby
mark_locklear has quit [Remote host closed the connection]
ttt_ has quit [Remote host closed the connection]
jbpros has joined #ruby
mneorr has quit [Remote host closed the connection]
jbpros has quit [Client Quit]
lkba has joined #ruby
Proshot has quit [Quit: Leaving]
justsee has quit [Ping timeout: 240 seconds]
tomzx_mac has joined #ruby
jbpros has joined #ruby
jbpros has quit [Client Quit]
F1skr has joined #ruby
netto_ has joined #ruby
Targen has quit [Ping timeout: 248 seconds]
arietis has joined #ruby
netto has quit [Ping timeout: 252 seconds]
netto_ is now known as netto
sayan has joined #ruby
lewis has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
skattyadz has joined #ruby
tundrax has quit [Remote host closed the connection]
slainer68 has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
gstudent2 has joined #ruby
dhruvasagar has joined #ruby
duosrx has joined #ruby
tundrax has joined #ruby
psyprus has quit [Ping timeout: 258 seconds]
adambeynon has joined #ruby
thebastl has quit [Remote host closed the connection]
thebastl has joined #ruby
yshh has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Qwak has joined #ruby
duosrx has quit [Remote host closed the connection]
LongLiveBacon has quit [Ping timeout: 256 seconds]
mikestok has quit [Quit: Computer has gone to sleep.]
leonidlm has joined #ruby
duosrx has joined #ruby
My_Hearing has joined #ruby
thebastl has quit [Ping timeout: 248 seconds]
mark_locklear has joined #ruby
skattyadz has quit [Read error: Connection reset by peer]
idkazuma has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
yshh has quit [Ping timeout: 276 seconds]
Bry8Star has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
Elhu has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
gungor has quit [Remote host closed the connection]
Targen has joined #ruby
kristofers has joined #ruby
tommyvyo has quit [Quit:]
Uranio has joined #ruby
adamjleonard has quit [Quit: Leaving...]
jonathanwallace has joined #ruby
mikestok has joined #ruby
geekbri_ has joined #ruby
geekbri has quit [Read error: Operation timed out]
thone has joined #ruby
chandankumar has quit [Quit: Leaving]
moos3 has joined #ruby
rhannequin has joined #ruby
nezumi has quit [Ping timeout: 276 seconds]
sayan has quit [Read error: Connection reset by peer]
sebastianb has quit [Ping timeout: 246 seconds]
sailias has joined #ruby
sebastianb has joined #ruby
gungor has joined #ruby
thone has quit [Ping timeout: 252 seconds]
mootpointer has joined #ruby
sambao21 has joined #ruby
splittingred has joined #ruby
bradhe has joined #ruby
EPIK has quit [Ping timeout: 252 seconds]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
greasegum has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
BizarreCake has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
subbyyy has quit [Ping timeout: 255 seconds]
greasegum has quit [Client Quit]
arya_ has quit [Ping timeout: 260 seconds]
daniel_- has quit [Quit: WeeChat 0.4.0]
hamakn has quit [Remote host closed the connection]
ksinkar has quit [Ping timeout: 256 seconds]
pcarrier has quit [Quit: Computer has gone to sleep.]
justsee has quit [Ping timeout: 256 seconds]
arya has joined #ruby
hamakn has joined #ruby
__alpaca_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
tundrax has quit [Remote host closed the connection]
casheew has joined #ruby
LennyLin_ has quit [Remote host closed the connection]
wmoxam has joined #ruby
r0bgleeson has joined #ruby
jerius has joined #ruby
MrZYX|off is now known as MrZYX
__alpaca_ has quit [Ping timeout: 260 seconds]
rhannequin has left #ruby [#ruby]
Guest24427 is now known as Deele
wesside has joined #ruby
theRoUS has joined #ruby
k610 has joined #ruby
wesside has quit [Client Quit]
Proshot has joined #ruby
jtharris has joined #ruby
tundrax has joined #ruby
HAKEON has joined #ruby
fermion has joined #ruby
tommyvyo has joined #ruby
breakingthings has joined #ruby
hashmal is now known as lenny
bean has joined #ruby
lenny is now known as Guest2793
Guest2793 is now known as hashmal
pcarrier has joined #ruby
kobian has joined #ruby
CyberMaN has quit [Read error: Connection reset by peer]
rhannequin has joined #ruby
rhannequin has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
julian-delphiki has quit [Ping timeout: 264 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
wallerdev has quit [Quit: wallerdev]
JonnieCache has quit [Quit: leaving]
dustint has joined #ruby
Targen has quit [Ping timeout: 252 seconds]
jgrau has quit [Remote host closed the connection]
indyrl has joined #ruby
indyrl has quit [Read error: Connection reset by peer]
ttt has joined #ruby
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
blaxter has quit [Ping timeout: 255 seconds]
fedza has joined #ruby
wolcanus has joined #ruby
wolcanus has quit [Remote host closed the connection]
wolcanus has joined #ruby
girija has quit [Ping timeout: 260 seconds]
etank has quit [Quit: WeeChat 0.3.8]
etank has joined #ruby
nveselinov has quit [Read error: Connection reset by peer]
ttt has quit [Ping timeout: 256 seconds]
nveselinov has joined #ruby
gungor has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
mmozuras has joined #ruby
psyprus has joined #ruby
droppedonmyhead has joined #ruby
oneirophren has joined #ruby
malte_ has joined #ruby
Uranio has quit [Remote host closed the connection]
lewis has joined #ruby
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby
adamjleonard has joined #ruby
mmozuras has quit [Ping timeout: 255 seconds]
ksinkar has joined #ruby
splittingred has joined #ruby
GOMADWarrior has joined #ruby
chrishunt has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: This computer has gone to sleep]
jovy88 has joined #ruby
lewis has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
enriclluelles has joined #ruby
dmiller has joined #ruby
gungor has joined #ruby
mikecmpbll has joined #ruby
braoru has quit [Remote host closed the connection]
Macaveli has quit [Client Quit]
d3c has quit [Quit: Sleep]
failshell has joined #ruby
kpshek has joined #ruby
enebo has joined #ruby
good has quit [Read error: Connection reset by peer]
good has joined #ruby
momomomomo has joined #ruby
dmiller has quit [Ping timeout: 258 seconds]
_bart has joined #ruby
pskosinski has joined #ruby
d11wtq has quit [Ping timeout: 268 seconds]
kcantwel has joined #ruby
browndawg1 has quit [Quit: Leaving.]
<shevy> why arent there more ruby-to-c bindings?
d11wtq has joined #ruby
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby
rtl_ is now known as rtl
wmoxam has quit [Client Quit]
<_bart> shevy: there are quite many
cmarques has joined #ruby
geekbri_ has quit [Remote host closed the connection]
jlast has joined #ruby
wmoxam has joined #ruby
<waxjar> i was wondering, would rack rewritten as a C extension boost performance much?
geekbri has joined #ruby
gungor has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
ner0x has joined #ruby
araujo has joined #ruby
neku has quit [Quit: Leaving...]
<injekt> waxjar: it wouldn't improve rack in the parts that rack needs improving
atmosx has joined #ruby
wallerdev has joined #ruby
akashj87 has joined #ruby
bradhe has joined #ruby
interactionjaxsn has joined #ruby
ksinkar has quit [Ping timeout: 264 seconds]
<shevy> I hate rack .ru files
<BinaryMaster> Am I wrong in thinking that the following example should create a new link even if one is already there? FileUtils.ln_s src.full_path, destination_path, :force => true
sambao21 has joined #ruby
Jon30 has joined #ruby
sambao21 has quit [Client Quit]
<waxjar> is that because of a design flaw injekt?
ananthakumaran has joined #ruby
<Jon30> is there a way to make .each loop itterate through every second item?
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
sambao21 has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
xosdy has joined #ruby
codecop has quit [Ping timeout: 264 seconds]
<Flexa> hey guys, can anyone help with this? https://gist.github.com/28f7771ddf18e1c015b2 line 36, attchments is coming back as an object.
<BinaryMaster> Jon30, I would use a for look and check the index var
<Flexa> vol = ec2.volumes['vol-f2e816df']
<Flexa> vol.attachments.each { |a| puts a.inspect }
<Flexa> <AWS::EC2::Attachment volume_id:vol-f2e816df instance_id:i-4c812007 device:/dev/sdo>
<Flexa> works however ... ?
kobian has quit []
<Jon30> thanks
<waxjar> Jon30: #each_slice(2) { |a,_| } works, but i believe there's a better way
sambao21 has quit [Client Quit]
<injekt> waxjar: kind of, I think tenderlove wrote about it some time ago
good has quit [Ping timeout: 256 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
dsabanin has joined #ruby
LBRapid has quit [Quit: ZNC - http://znc.sourceforge.net]
<waxjar> to the google machine!
dsabanin has quit [Client Quit]
tret has quit [Ping timeout: 258 seconds]
<Flexa> anyone? :P
dsabanin has joined #ruby
ariedler has joined #ruby
gaahrdner has joined #ruby
LaPetiteFromage has joined #ruby
<ddd> Flexa: err? thats what its supposed to do. return an Attachment object
<ddd> now access the volume hash key for what you need
__alpaca_ has joined #ruby
_nitti has joined #ruby
<ddd> a['volume_id'] for example
heliumsocket has joined #ruby
bean__ has joined #ruby
sambao21 has joined #ruby
<Flexa> hmm
<Flexa> like this ddd
<Flexa> results << [ volume.availability_zone_name, volume.tags['Name'], volume.id, volume.attachment['instance_i d'] ,
<Flexa> 37 "#{volume.size} GB", volume.status, volume.create_time ]
<Flexa> ?
fedza has quit [Ping timeout: 256 seconds]
wesside has joined #ruby
huoxito has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
Gue______ has joined #ruby
brian_ has joined #ruby
xosdy has left #ruby ["Konversation terminated!"]
__alpaca_ has quit [Ping timeout: 252 seconds]
angusiguess has joined #ruby
johchri has joined #ruby
andikr has quit [Remote host closed the connection]
rippa has joined #ruby
wagster has joined #ruby
SeanTAllen has quit [Quit: Connection closed for inactivity]
TomJ has quit [Quit: TomJ]
brian_ has quit [Client Quit]
cantonic has joined #ruby
dr_bob has joined #ruby
wyhaines has joined #ruby
dr_bob has quit [Read error: Connection reset by peer]
thebastl has joined #ruby
gungor has joined #ruby
brennanMKE has joined #ruby
hogeo has joined #ruby
LBRapid has joined #ruby
SCommette has joined #ruby
Targen has joined #ruby
Gue______ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haxrbyte_ has quit [Read error: Connection reset by peer]
kpshek has quit []
haxrbyte has joined #ruby
<Flexa> ddd? :(
timkohrumel has joined #ruby
Giorgio has quit [Ping timeout: 248 seconds]
frazras has joined #ruby
Gues_____ has joined #ruby
Gues_____ is now known as Guest91935
<frazras> I'm a php programmer, what is the equivalent of print_r in ruby?
hogeo has quit [Remote host closed the connection]
rosscooperman has joined #ruby
<injekt> frazras: p(obj) should suffice
hogeo has joined #ruby
bluenemo has quit [Quit: Verlassend]
<frazras> even for an array right?
<frazras> like if i wanted to echo node['newrelic']['server_monitoring']['license'] to teh terminal?
<injekt> frazras: for any object
rosscooperman has left #ruby [#ruby]
<shevy> frazras there is also pp
<frazras> thanks much
<shevy> pp obj
<injekt> shevy: yuck
<shevy> useful for big arrays
<johchri> you can try the method .inspect to show the structure of the array, hash, ...
<injekt> frazras: p(obj) does puts(obj.inspect)
atyz has quit [Quit: Linkinus - http://linkinus.com]
chrishough has joined #ruby
haxrbyte has quit [Remote host closed the connection]
jacobw has joined #ruby
<r0bgleeson> what's wrong with pretty print, injekt ?
noop has quit [Ping timeout: 252 seconds]
My_Hearing is now known as Mon_Ouie
tomsthumb has quit [Quit: Leaving.]
davetherat has quit [Remote host closed the connection]
<injekt> r0bgleeson: I don't think the output is much more helpful than p, if I want pretty inspecting I'd use something like awesome print
<injekt> p suffices for everything else for me
wedgex has joined #ruby
davetherat has joined #ruby
hogeo has quit [Ping timeout: 252 seconds]
<r0bgleeson> pp is good enough.
timkohrumel has quit [Remote host closed the connection]
<injekt> yeah I never want pretty inspecting so p is enough for me :)
netto has quit [Quit: netto]
Melnorme has joined #ruby
kevinbond has joined #ruby
blaxter has joined #ruby
sleetdrop has joined #ruby
blaxter is now known as dumdedum
dumdedum has left #ruby [#ruby]
yshh has joined #ruby
yshh has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
yshh has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
mootpointer has quit [Ping timeout: 276 seconds]
<Melnorme> Hi. I'm trying to install a ruby app called "snorby". After quite a bit of dependency trouble, I'm now stuck. I get this:
<Melnorme> [root@centos6 snorby-2.6.0]# rake snorby:setup
<Melnorme> psych-shield only works with the Psych parser
<Melnorme> rake aborted!
<Melnorme> ...now how do I fix? Do I need to change yaml parser from something to Psych? If so, how? if not - I got no idea...
matchaw_ has joined #ruby
xlab has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 272 seconds]
wesside has quit [Quit: Ice cream truck!]
ephemerian has joined #ruby
<r0bgleeson> Melnorme: what does YAML::Engine return?
<r0bgleeson> Melnorme: what version of Ruby?
matchaw_ has quit [Read error: Connection reset by peer]
wedgex has quit [Ping timeout: 272 seconds]
<Melnorme> how do I ask about yaml? ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
<r0bgleeson> Ruby 1.8.7 uses syck.
<r0bgleeson> 1.9 uses Pysch.
sathish316 has quit [Quit: Leaving.]
gungor has quit [Remote host closed the connection]
<r0bgleeson> well, you can choose on 1.9
robscomputer has quit [Remote host closed the connection]
<Melnorme> ah. So I need to install newer ruby?
robscomputer has joined #ruby
<Sou|cutter> you probably shouldn't be using 1.8.x at this point since it will be unsupported this summer
wwalker has joined #ruby
<Sou|cutter> at least as far as MRI
filipe has joined #ruby
<wwalker> I've got a strange problem. I'm using koala / omniauth the retrieve auth tokens. the token I get from token = request.env["omniauth.auth"]['credentials']['token'] looks like a token but varies in length from 215 to 221 characters. If I go to the token generator on facebook I get a 228 character token every time
tds has joined #ruby
<wwalker> if I use the 228 I get manually it works, but when facebook hits my call bath the omniauth token is short and doesn't work.
GeissT has quit [Quit: MillBroChat AdIRC User]
<r0bgleeson> Melnorme: maybe not, it is a gem: http://rubygems.org/gems/psych
gungor has joined #ruby
<r0bgleeson> Melnorme: 1.8 is reaching End-Of-Life, so upgrading can't hurt if you can.
<wwalker> aanyone have any idea what is wrong? If I got no auth or an error in the omniauth hash, I'd think I was doing it wrong...
<Melnorme> It was in the centos 6.4 repo, so... thanks a lot. "psych requires Ruby version >= 1.9.2."
_nitti_ has joined #ruby
alex__c2022 has joined #ruby
_nitti has quit [Read error: No route to host]
<r0bgleeson> i would recommend 1.9.3
pcarrier has quit [Quit: Textual IRC Client: www.textualapp.com]
dmiller has joined #ruby
matchaw has joined #ruby
_nitti has joined #ruby
LaPetiteFromage has joined #ruby
<injekt> I'd recommend 2.0.0!
<Sou|cutter> injekt: yay!
<Melnorme> I'll get a new version and compile it myself. will I need to purge other gems / otherstuff too, or will that work ok with gem?
rton has joined #ruby
<r0bgleeson> id recommend 2.0.0 as much as id recommend 1.9.1 or 1.9.0
<injekt> r0bgleeson: wow why?
<Sou|cutter> r0bgleeson: matz uses 2.0
timkohrumel has joined #ruby
* Sou|cutter winks
<r0bgleeson> Sou|cutter: haha, so?
<injekt> 2.0 is stable, 1.9.0 and 1.9.1 are not
wedgex has joined #ruby
<r0bgleeson> injekt: because it usually takes at least a few patchlevels before it becomes really usable.
<Melnorme> I'll start at the newest stable version and go back until the app I need works. :)
<r0bgleeson> even 1.9.2 wasnt particularly good
kcantwel has quit [Quit: Textual IRC Client: www.textualapp.com]
<r0bgleeson> 1.9.3 is when it seems to have stabilized a bit
<Sou|cutter> r0bgleeson: 2.0 is in a better state than the 1.9.x versions were
<Sou|cutter> but you may be right
* Sou|cutter shrugs
atmosx has quit [Quit: And so the story goes…]
<r0bgleeson> well, I still test my code against 2.0.0 & it is my default ruby, i also wouldn't have an issue with running 2.0.0 on production.
<Sou|cutter> depends on whether you can afford to be aggressive
dsabanin has quit [Quit: Leaving...]
kreantos has quit [Remote host closed the connection]
uris has joined #ruby
<r0bgleeson> but for the 1.9 series(which I used since 1.9.1) there was a lot of turbalence
<injekt> r0bgleeson: so you wouldn't have an issue running 1.9.0 on production?
<r0bgleeson> much like the refinements stuff at the moment
_nitti_ has quit [Ping timeout: 248 seconds]
dsabanin has joined #ruby
<r0bgleeson> injekt: why do you think?
jonathanwallace has quit [Ping timeout: 240 seconds]
generalissimo has joined #ruby
<r0bgleeson> that^
<injekt> r0bgleeson: "id recommend 2.0.0 as much as id recommend 1.9.1 or 1.9.0"
dmiller has quit [Ping timeout: 258 seconds]
andrew__ has joined #ruby
tagrudev has quit [Remote host closed the connection]
carlyle has joined #ruby
<r0bgleeson> ah, yeah, i dont think 2.0.0 is going to be looked back on as a good release
<r0bgleeson> i think it'll be viewed in the same light as 1.9.1 or 1.9.0
<injekt> sure, but I dont think it's quite comparable to 1.9.0 or 1.9.1
Neomex has joined #ruby
<r0bgleeson> well, 1.9.0 was particularly awful, and not even a stable release, so lets forget that one
hogeo_ has joined #ruby
<r0bgleeson> but 2.0.0 has the same sorta flux as 1.9.1
<injekt> I guess time will tell, it could go either way
<r0bgleeson> the release that defines what refinements will be is probably when 2.0.0 becomes adopted
<Sou|cutter> I haven't been hearing the same issues with 2.0
thebastl has quit [Remote host closed the connection]
<Sou|cutter> but yeah, refinements are a wildcard at this point
wsterling has joined #ruby
<injekt> r0bgleeson: 2.1.0 is already being worked on and iirc will contain those features
Astral_ has quit [Ping timeout: 256 seconds]
thebastl has joined #ruby
<injekt> I wished they'd just dropped refinements
Vainoharhainen has quit [Quit: Leaving...]
<Sou|cutter> it... seems of dubious utility to me
Chinorro has quit [Remote host closed the connection]
nateberkopec has joined #ruby
ExxKA has quit [Ping timeout: 240 seconds]
gungor_ has joined #ruby
evenix has quit [Remote host closed the connection]
gungor has quit [Read error: Connection reset by peer]
ckrailo has joined #ruby
pcarrier has joined #ruby
locriani has joined #ruby
<wwalker> Melnorme: you might want a clean repeatable way to buld: https://gist.github.com/mustafaturan/2584126 looks clean and repeatable.
vlad_starkov has joined #ruby
bradhe has joined #ruby
wudofyr has quit [Remote host closed the connection]
thebastl has quit [Ping timeout: 272 seconds]
wudofyr has joined #ruby
browndawg has joined #ruby
chrishough has quit [Quit: chrishough]
retry has joined #ruby
Rym has joined #ruby
<Melnorme> wwalker: thanks, that looks nice.
kevinbond has left #ruby [#ruby]
clocKwize has quit [Quit: clocKwize]
wudofyr has quit [Remote host closed the connection]
pduin has quit [Remote host closed the connection]
rgn has joined #ruby
Rym has quit [Client Quit]
tomsthumb has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
heliumsocket has quit [Quit: heliumsocket]
bradhe has quit [Ping timeout: 264 seconds]
<wwalker> I was trying to find somewhere with a trustworthy set of ruby 1.9 rpms for centos, but no joy. (I need them too....)
rburton- has joined #ruby
forrest has joined #ruby
Astralum has joined #ruby
Tarential has quit [Excess Flood]
Tarential has joined #ruby
Gabri has joined #ruby
tomsthumb has quit [Client Quit]
__alpaca_ has joined #ruby
<r0bgleeson> wwalker: can't use fedora's?
hogeo_ has quit [Remote host closed the connection]
Matip has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 256 seconds]
hogeo_ has joined #ruby
Matip has joined #ruby
Nahra has quit [Read error: Operation timed out]
k610 has quit [Ping timeout: 260 seconds]
jonathanwallace has joined #ruby
marr has quit [Ping timeout: 256 seconds]
Phibs has joined #ruby
<Phibs> when using Net::HTTP on Ruby 1.9.3, can I force it to use a specific record type like 'A' or IPV4 only ?
mercwithamouth has joined #ruby
robscomputer has quit [Ping timeout: 256 seconds]
chrishough has joined #ruby
wudofyr has joined #ruby
__alpaca_ has quit [Ping timeout: 268 seconds]
hogeo_ has quit [Ping timeout: 260 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
d11wtq has quit [Ping timeout: 268 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
miroatme has left #ruby ["PRIVMSG #okdrink :-timeleft"]
<wwalker> r0bgleeson I can probably take the ruby packages from fedora and rebuild them after changing a couple of paths. It would need to be able to co-exist with the default ruby .
dsabanin has quit [Quit: Linkinus - http://linkinus.com]
<Phibs> I'm having Net::HTTP randomly return getaddr info, however on the server from the cli I look up 100000 times w/ no issues
d11wtq has joined #ruby
sayan has quit [Read error: Connection reset by peer]
timkohrumel has quit [Remote host closed the connection]
<r0bgleeson> wwalker: append ruby19, you know, building it yourself & adding --program-suffix=19 isn't that hard
<r0bgleeson> wwalker: and it doesnt take much time
<r0bgleeson> wwalker: 10 minutes altogether maybe
dmiller has joined #ruby
teddyp1cker has joined #ruby
awc737 has quit [Quit: ZNC - http://znc.sourceforge.net]
<r0bgleeson> wwalker: im not sure if the exact option is --program-suffix, but there's definitely a switch for that
tk_ has quit [Quit: ばいばい]
jacobw has quit [Remote host closed the connection]
Davey has joined #ruby
brtdv has quit [Quit: brtdv]
Neomex has quit [Quit: Neomex]
Macaveli has joined #ruby
angusiguess has joined #ruby
danslo has joined #ruby
arturaz has quit [Ping timeout: 245 seconds]
oneirophren has joined #ruby
d2dchat has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
dmiller has quit [Ping timeout: 258 seconds]
mafolz has quit [Ping timeout: 256 seconds]
carloslopes has quit [Remote host closed the connection]
stoic_squirrel has joined #ruby
thebastl has joined #ruby
<Phibs> nobody eh
<wwalker> r0bgleeson: also needs a separate lib dir, but that may happen already. It's not hard, just time consuming. And I'm at 60/hrs a week a t the moment, so it'll keep getting pushed out... :-(
cantonic has quit [Quit: cantonic]
<r0bgleeson> wwalker: yeah, i just use rbenv+ruby-build which keeps the effort to a minimum :)
mercwithamouth has quit [Ping timeout: 256 seconds]
girija has joined #ruby
browndawg has quit [Quit: Leaving.]
anachronistic has joined #ruby
devdazed has quit [Quit: Bye]
nezumi has joined #ruby
wolcanus has quit [Remote host closed the connection]
<Phibs> 880 people in here and nobody knows the internals of net::http and ruby dns :)
<momomomomo> Phibs: Post your code to http://gist.github.com/ (all related code and errors), and then come back and explain: What you're trying to do, what the issue is, and what you think has gone wrong. This will help people be able to digest/understand your problem. Also check this out when you get a chance: http://www.catb.org/esr/faqs/smart-questions.html
<Phibs> nod
<Phibs> fair enough, but the code is proprietary unfortunately :(
johnnyfuchs has joined #ruby
<momomomomo> hard for us to help you when we don't know what the issue is.
<wwalker> r0bgleeson: does rbenv handle system wide now? or is it per-user?
tomsthumb has joined #ruby
mahmoudimus has joined #ruby
gungor_ has quit [Remote host closed the connection]
mikepack has joined #ruby
baphled_ has joined #ruby
slobad23 has joined #ruby
slainer6_ has joined #ruby
<slobad23> Could someone please explain the difference between: def return_block yield end compared to def return_proc(&proc) yield end
rton has left #ruby [#ruby]
Davey has quit [Quit: Computer has gone to sleep.]
rton has joined #ruby
<slobad23> They both take a block and execute... are they just different methods of doing the same thing?
rton has left #ruby [#ruby]
HAKEON has joined #ruby
<MrZYX> the later one captures the block, converts it to a proc and assigns it to the proc variable
thone has joined #ruby
rton has joined #ruby
aganov has quit [Quit: aganov]
<slobad23> Is that conversion an unnecessary overhead? The end result appears the same to me.
slainer68 has quit [Ping timeout: 245 seconds]
<MrZYX> if you don't do anything with the proc variable, yes
<slobad23> Ah okay. Following simple examples is... too simple :-) Thanks for the clarity on that one.
toddWork_ has joined #ruby
<slobad23> This book just shows a yield on each one. Nothing too funky going on inside the method.
sambao21 has joined #ruby
<MrZYX> the main usage is passing it to another method
_nitti has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
<slobad23> I have spent the last... year I guess, getting as much Javascript knowledge as possible. Ruby is a new world with some familiar concepts and some rather odd (yet very cool) ways of doing things.
rton has left #ruby [#ruby]
a_a_g has quit [Quit: This computer has gone to sleep]
skroon has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
Targen has quit [Ping timeout: 246 seconds]
rburton- has quit [Quit: Leaving...]
Arzaga has joined #ruby
banister`sleep has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<slobad23> MrZYX, will have to go through the Ruby online docs to check for differences between this book and 2.0. Any immediate gotchas I should be aware of?
<MrZYX> the book is 1.9?
<slobad23> yep
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Phibs has left #ruby [#ruby]
baroquebobcat has joined #ruby
<MrZYX> no major ones really, 2.0 got keyword arguments, lazy enumerators and some methods return arrays instead of enumerators now (there are still enumerator alternatives)
Davey has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
arya has quit [Ping timeout: 255 seconds]
sayan has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
pi3r has quit [Quit: Leaving]
_nitti has joined #ruby
carloslopes has joined #ruby
<wuest> Are there any documented changes to regexps in 2.0? I didn't see any at a glance when 2.0 was released, but code that works on 1.9.3 is breaking on 2.0 (specifically, String#scan looking for escaped hex code ranges breaks with invalid multibyte escape)
sambao21 has joined #ruby
_nitti has quit [Read error: Connection reset by peer]
arya has joined #ruby
_nitti has joined #ruby
andrew__ has quit [Remote host closed the connection]
Voodoofish430 has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
xardas has joined #ruby
gungor has joined #ruby
jamesaxl_ has joined #ruby
jamesaxl has quit [Ping timeout: 245 seconds]
tjbiddle has quit [Quit: tjbiddle]
johchri has quit [Quit: Textual IRC Client: www.textualapp.com]
rburton- has joined #ruby
timkohrumel has joined #ruby
senayar has quit [Remote host closed the connection]
kobain has joined #ruby
ksinkar has joined #ruby
<spider-mario> wuest : ruby 2.0 defaults to UTF-8, maybe that’s what causing a difference in the interpretation of the regex in the source code
_carloslopes has joined #ruby
<spider-mario> (hm, actually, I doubt that)
pcarrier has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Read error: Connection reset by peer]
ryannielson has joined #ruby
<wuest> spider-mario: 1.9.3 does as well in all cases, as far as I'm aware.
Arzaga has quit [Quit: Computer has gone to sleep.]
PigDude has left #ruby [#ruby]
mklappst_ has joined #ruby
<spider-mario> no, source code defaults to ASCII in 1.9.3
bradhe has joined #ruby
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<wuest> Ah, just strings are UTF-8 in 1.9.3, gotcha.
bradhe has quit [Read error: Connection reset by peer]
LaPetiteFromage has joined #ruby
bradhe has joined #ruby
jamesaxl_ has quit [Ping timeout: 272 seconds]
jamesaxl has joined #ruby
wyhaines has quit [Remote host closed the connection]
jamie_ca_ has joined #ruby
chandankumar has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Jon30 has quit [Ping timeout: 245 seconds]
tommyvyo has quit [Quit:]
marr has joined #ruby
Targen has joined #ruby
browndawg has joined #ruby
CyberMaN has joined #ruby
<spider-mario> not even that, appearently
<spider-mario> but that shouldn’t be a problem anyway
bradhe has quit [Ping timeout: 256 seconds]
<spider-mario> any valid ASCII string is valid UTF-8 as well and represents the same text
gungor has quit [Remote host closed the connection]
nic019 has quit [Remote host closed the connection]
<wuest> Indeed. Interesting.
jamesaxl has quit [Ping timeout: 272 seconds]
fmcgeough has joined #ruby
LennyLinux has joined #ruby
__alpaca_ has joined #ruby
lewis has joined #ruby
xorro has joined #ruby
rburton- has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 248 seconds]
mneorr has quit [Remote host closed the connection]
kobain has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
mercwithamouth has joined #ruby
renanoronfle__ has quit [Quit: This computer has gone to sleep]
wolcanus has joined #ruby
_bart has quit [Read error: Operation timed out]
andrew__ has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
Freijo is now known as Fraeon
kenneth has quit [Quit: kenneth]
<xorro> anyone know how this is possible? -> [-43759].pack("n") I don't get how ruby is packaging a negative number as an unsigned short?
alup has quit [Quit: Leaving]
MisterPostIT has quit [Ping timeout: 264 seconds]
russfrank has quit [Read error: Operation timed out]
__alpaca_ has quit [Ping timeout: 276 seconds]
<xorro> in python the equivilent would be struct.pack('!H', -43759) This would cause an exception though because it's a negative number
dangerousdave has joined #ruby
Flexa has quit [Remote host closed the connection]
mengu has joined #ruby
<xorro> i don't get what ruby does to make it work
rakl has joined #ruby
motto has joined #ruby
vlad_starkov has quit []
jgarvey has joined #ruby
tylersmith has joined #ruby
vlad_starkov has joined #ruby
m8 has quit [Ping timeout: 256 seconds]
russfrank has joined #ruby
filipe has quit [Quit: Leaving]
gungor has joined #ruby
francisfish has quit [Remote host closed the connection]
sayan has joined #ruby
rton has joined #ruby
gungor has quit [Remote host closed the connection]
rburton- has joined #ruby
slainer6_ has quit [Remote host closed the connection]
robscomputer has joined #ruby
tommyvyo has joined #ruby
<wuest> xorro: can you tell me the relationship between those two numbers? If you had, let's say, a 24 bit integer, what would the two numbers look like in binary?
bradhe has joined #ruby
<wuest> Specifically, unpack that packed value. If you truncate the high order byte of the aforementioned 24 bit integers, you'll find the result to be the same. :)
_maes_ has joined #ruby
vikhyat has joined #ruby
artm has joined #ruby
Elhu has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
artm has quit [Client Quit]
corentin has quit [Quit: leaving]
slainer68 has joined #ruby
Dracula79 has joined #ruby
Dracula79 has left #ruby [#ruby]
slainer68 has quit [Remote host closed the connection]
nik_-_ has joined #ruby
blaxter has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
smigg has joined #ruby
cantonic has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
vikhyat has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 260 seconds]
kenneth has joined #ruby
miso1337 has quit [Quit: afk]
camilas__ has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 264 seconds]
prophile is now known as conphile
tvw has quit [Ping timeout: 264 seconds]
Macaveli has quit [Quit: Leaving]
leonidlm has quit [Ping timeout: 264 seconds]
sethetter has joined #ruby
twoism has joined #ruby
LaPetiteFromage has quit [Ping timeout: 252 seconds]
sayan has quit [Read error: Connection reset by peer]
jdunck has joined #ruby
kennyvb has quit [Quit: ZNC - http://znc.in]
Squarepy has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
kennyvb has joined #ruby
momomomomo has quit [Quit: momomomomo]
timmow has quit [Ping timeout: 252 seconds]
_maes_ has joined #ruby
indyrl has joined #ruby
<xorro> ty wuest
CalebMingle has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
jbueza has joined #ruby
bradhe has joined #ruby
fedza has joined #ruby
daniel_- has joined #ruby
CalebMingle has quit [Client Quit]
CalebMingle has joined #ruby
CalebMingle has quit [Client Quit]
Giorgio has joined #ruby
LaPetiteFromage has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
baphled_ has quit [Quit: Lost terminal]
keyvan has joined #ruby
io_syl has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
io_syl has quit [Client Quit]
francisfish has joined #ruby
io_syl has joined #ruby
Davey has joined #ruby
<CyberMaN> how do I write to a file printf style?
<MrZYX> #printf
<CyberMaN> can't see it in the docs :/
<CyberMaN> ty
Morrolan has quit [Ping timeout: 272 seconds]
skroon has joined #ruby
t-mart_ has joined #ruby
jamescarr has joined #ruby
banjara has quit [Quit: Leaving.]
<BinaryMaster> Is there any value to writing a CLI app in a MCV pattern?
Morrolan has joined #ruby
cloke has joined #ruby
<jamescarr> what's recommended for quickly running something as a daemon? I was going to use supervisor
flori has quit [Ping timeout: 245 seconds]
t-mart has quit [Ping timeout: 272 seconds]
io_syl has quit [Quit: Computer has gone to sleep.]
flori has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
teddyp1cker has left #ruby [#ruby]
skroon has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
jamie_ca_ has quit []
twoism has quit [Remote host closed the connection]
tjbiddle has joined #ruby
jbueza has quit [Quit: Leaving.]
twoism has joined #ruby
brennanMKE has joined #ruby
addisaden has quit [Ping timeout: 255 seconds]
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
jamie_ca_ has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
codesoda has joined #ruby
turtlebits has quit []
mahmoudimus has joined #ruby
lewis has quit [Remote host closed the connection]
addisaden has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
brennanMKE has quit [Ping timeout: 260 seconds]
nik_-_ has quit [Quit: nik_-_]
Chryson has joined #ruby
renanoronfle__ has joined #ruby
banjara has joined #ruby
Gabri has quit [Remote host closed the connection]
mklappst_ has quit [Remote host closed the connection]
banister`sleep has quit [Ping timeout: 268 seconds]
nga4 has joined #ruby
nik_-_ has joined #ruby
rdark has quit [Quit: leaving]
<peta_> BinaryMaster: it depends on your application and its complexity
adambeynon has joined #ruby
<peta_> and on the tasks it solves
<MrZYX> BinaryMaster: just keep in mind that it's a pattern, not an architecture
BizarreCake has quit [Read error: Connection timed out]
camilasa_ has joined #ruby
cantonic has quit [Quit: cantonic]
aaronmcadam has quit [Read error: Operation timed out]
Spooner has quit [Quit: Leaving]
zeade has joined #ruby
neurone-1337 has quit [Ping timeout: 276 seconds]
philcrissman has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<spike|spiegel> jamescarr: um? Process.daemon may be? if you are on recent enough ruby
cpruitt has joined #ruby
dmiller has joined #ruby
__alpaca_ has joined #ruby
vlad_sta_ has joined #ruby
BizarreCake has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
generalissimo has quit [Ping timeout: 272 seconds]
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
dmiller has quit [Remote host closed the connection]
stoic_squirrel has joined #ruby
dmiller has joined #ruby
cruffinski has joined #ruby
mneorr has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
cruffinski has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 272 seconds]
__alpaca_ has quit [Ping timeout: 252 seconds]
vlad_sta_ has quit [Client Quit]
generalissimo has joined #ruby
vlad_starkov has joined #ruby
jamescarr has quit [Quit: jamescarr]
jonathanwallace has quit [Ping timeout: 268 seconds]
camilasa_ has quit [Remote host closed the connection]
vikhyat has joined #ruby
pkrnj has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
philcrissman has joined #ruby
cantonic has joined #ruby
ariedler has quit [Remote host closed the connection]
rbennacer has joined #ruby
<rbennacer> hello
duosrx has quit [Remote host closed the connection]
brunoro has joined #ruby
<Fuzai> hi
jamescarr has joined #ruby
<rbennacer> how can i extrapolate a variable in a %r{ }
r0bgleeson has quit [Ping timeout: 252 seconds]
<rbennacer> example %r{ @keyword }
mark_locklear has quit [Ping timeout: 240 seconds]
banister`sleep has joined #ruby
<rbennacer> sorry i mean %r{ /@keyword/}
mneorr has quit [Remote host closed the connection]
<MrZYX> #{}
<MrZYX> >> foo = "bar"; %r{#{foo}}
<eval-in> MrZYX => /bar/ (http://eval.in/17483)
tvw has joined #ruby
<rbennacer> cool
<rbennacer> thanks guys
<MrZYX> you can even interpolate other regexes
c0rn has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
wgosling__ has joined #ruby
marcdel has joined #ruby
Rym has joined #ruby
jovy88 has joined #ruby
celinedior has quit [Quit: celinedior]
tomku has quit [Ping timeout: 256 seconds]
anachronistic has quit [Quit: anachronistic]
mark_locklear has joined #ruby
<aedornm> Is the date format correct? "yyMMdd-T-hhmmss" = "130418-T-142510"? If not, what is T? What is the correct format? Answered: Yes, it is the correct format: T is on the ISO 8601 specs.
tomku has joined #ruby
mockra has joined #ruby
<aedornm> Words ... they fail me.
sepp2k has joined #ruby
divout has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
<spike|spiegel> aedornm: that doesn't look ISO to me
<aedornm> Let's cite an ISO spec, and then proceed to confirm the wrong format for that spec. Obviously this is the cherry pick what you want from a spec and when questioned about the random changes refer to the original.
wgosling_ has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
Cultofmetatron has joined #ruby
LnL has joined #ruby
icole has joined #ruby
jeebster has joined #ruby
wgosling has joined #ruby
wgosling__ has quit [Read error: Operation timed out]
<aedornm> spike|spiegel: Indeed it does not. That's why I questioned it and the guy refers back to ISO 8601. I'm working with geniuses here!
rbennacer has left #ruby ["Leaving"]
<spike|spiegel> require 'time' ... Time.now.iso8601
dummies_freelanc has joined #ruby
sambao21 has joined #ruby
bradhe has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
tenmilestereo has joined #ruby
slyv has joined #ruby
m8 has joined #ruby
rakl has quit [Quit: sleeping]
brianpWins has joined #ruby
motto has quit [Ping timeout: 260 seconds]
r0bgleeson has joined #ruby
<cpruitt> Can anyone offer some insight into an error? (Please point me to a different channel if this isn't appropriate here). I'm working with a colleague who's having an issue installing the mysql2 gem. He's done a complete removal / reinstall of MySQL (OS X 64 bit) and is using rbenv. Error indicates missing mysql.h but it's very clearly installed. This is the specific error. https://gist.github.com/cpruitt/402f2d111dee1193d4a7
<cpruitt> Trying to install directly (gem install) as opposed to using bundler.
Rym has quit [Quit: Rym]
LaPetiteFromage has joined #ruby
jamescarr has quit [Quit: jamescarr]
<aedornm> cpruitt: That realy means your compiler environment does not see mysql.h ... So if you say you have it installed, it's not looking for it in the directory you believe it to be.
Zai00 has quit [Quit: Zai00]
<CyberMaN> I have a string, like this one: "test\r\n". The important thing to realize here, is that this is not a string literal, it is read from a file. Now, I want to manipulate each string byte by byte, but no matter what I do, \r and \n are treated as two bytes
bondar has joined #ruby
ariedler has joined #ruby
<CyberMaN> How can I go past this behavior?
mityaz has joined #ruby
LaPetiteFromage has quit [Ping timeout: 258 seconds]
wolcanus has quit [Remote host closed the connection]
mrsolo has joined #ruby
cmyers has left #ruby [#ruby]
jdunck has quit [Quit: Computer has gone to sleep.]
angusiguess has joined #ruby
chrishough has quit [Ping timeout: 260 seconds]
LaPetiteFromage has joined #ruby
<spike|spiegel> CyberMaN: you mean .each_char ?
chrishough has joined #ruby
<CyberMaN> spike|spiegel; seeing the same behavior. tried both
<MrZYX> CyberMaN: they are two bytes?!
brunoro has quit [Ping timeout: 256 seconds]
gungor has joined #ruby
<MrZYX> do `man ascii`
<CyberMaN> MrZYX; when I view the file normally, \r\n are interpreted by the text browser (notepad, notepad++, visual studio)
<CyberMaN> I am not an idiot
<aedornm> If you want to replace CRLF with just a LF then you can do "test\r\n".encode(universal_newline: true) #=> "test\n"
motto has joined #ruby
markalanevans has joined #ruby
<MrZYX> so you want to threat two special bytes as a single one?
markalanevans has quit [Remote host closed the connection]
<CyberMaN> when I read the line from the file, the string contains "test\r\n". Is it not logical that when I iterate with each_char, \n would be 1 character instead of two?
<CyberMaN> it is an escape sequence, after all
<aedornm> And then parse over the returned string ... otherwise you need to tell it to just ignore one or the other and continue on
<spider-mario> no, not really logical
<aedornm> CyberMaN: No, that's not logical at all.
<CyberMaN> :|
<spider-mario> the file does contain \ and n as separate characters
<MrZYX> again, man ascii
<CyberMaN> oh my god
rton has left #ruby [#ruby]
<MrZYX> they are two bytes and two characters
vlad_sta_ has joined #ruby
<CyberMaN> spider-mario; if so, how can all text browsers/editors filter it normally?
Cultofmetatron has quit [Remote host closed the connection]
<CyberMaN> how can I view the text with \r\n INTERPRETED?
<CyberMaN> if I opened it in notepad it would show \r\n
<aedornm> CyberMaN: It's not going to assume, by itself, to do something. But you can replace it using the encode method as already stated.
<spider-mario> by performing a manual substitution, for example
Liothen has quit [Ping timeout: 264 seconds]
gungor has quit [Remote host closed the connection]
<bean__> *sigh* dev at work is insisting on using `curl ` calls instead of using curb or other net/http libraries
<bean__> :(
<bean__> makes me a sad panda
m8 has quit [Ping timeout: 258 seconds]
Ontolog has joined #ruby
<MrZYX> bean__: just overwrite Kernel#` :P
<bean__> haha
vikhyat has quit [Remote host closed the connection]
motto has quit [Max SendQ exceeded]
motto has joined #ruby
gungor_ has joined #ruby
qubit has joined #ruby
renanoronfle__ has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Ping timeout: 268 seconds]
markalanevans has joined #ruby
<csmrfx> whats wrong with using curl, then?
<qubit> If a ruby script is running an external program via %x{} and the script receives a signal such as SIGTERM, is there a way to pass that signal on to the program being run through the %x{} before exiting?
<bean__> I would just rather he use curb.
<csmrfx> why?
rupee has joined #ruby
icole has quit [Remote host closed the connection]
<bean__> because I don't like using backticks inside of scripts when I can programatically build the request
<MrZYX> no need ot spawn a shell and a process?
<bean__> ^
<csmrfx> bean__: backticks is your point?
<csmrfx> lel
icole has joined #ruby
Ontolog_ has joined #ruby
<csmrfx> eek, spawning processes *makes a lady-on-the-table-imitation*
<csmrfx> man, I wish my problems were as insignificant and artificial as yours
hamakn has quit [Remote host closed the connection]
MrPoT4tO has joined #ruby
<bean__> jesus, aren't you condescending.
<MrZYX> qubit: nothing automagical that I'm aware of, maybe have a look at $? and check the return code
renanoronfle__ has joined #ruby
codecop has joined #ruby
deepy-osl has joined #ruby
<csmrfx> qubit: how did you start the script?
rakl has joined #ruby
<csmrfx> assuming it is in a normal process, you just send the signal
<csmrfx> you can use kill
<csmrfx> bean__: see qubits prob, forking processes and using systems infra for your things is perfectly valid thing to do, imo
<bean__> sure, i never said it was invalid, i just prefer to use curb, etc, if available
Ontolog has quit [Ping timeout: 272 seconds]
chipotle_ has joined #ruby
<csmrfx> qubit ps. the pid seen with $?.pid
rburton- has quit [Ping timeout: 246 seconds]
icole has quit [Ping timeout: 264 seconds]
MrPoT4tO has quit [Remote host closed the connection]
<csmrfx> bean__: well, newsflash: curb uses curl
<bean__> no, it uses libcurl
<bean__> not backticks out to curl
<bean__> you really don't need to be a dick csmrfx
<qubit> csmrfx: $? will be updated even if the script receives a signal before %x has completed?
MrPoT4tO has joined #ruby
<csmrfx> great q
netto has joined #ruby
<csmrfx> I must be dyslexic, didn't realize you mentioned %x{}
deepy-osl has quit [Ping timeout: 245 seconds]
<cpruitt> aedornm: Sorry, I had to step away. Thanks for the reply. Unfortunately we've also tried specifying the mysql config file and that doesn't seem to work either. It's like nothing we do will specify the correct location and the error isn't telling me the full path it's trying to read.
vlad_sta_ has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 268 seconds]
Arzaga has joined #ruby
<csmrfx> qubit: to me it seems it will be updated
twoism has quit [Read error: Connection reset by peer]
<qubit> csmrfx: sweet
<qubit> ty, i'll give it a shot
<netto> hello guys, for years I had a form with a wysiwyg (description field), so now I want to convert these html to plain text, because I'll use only a textarea in edit file. can you recommend something better than 'html_massage'?
pcarrier has joined #ruby
<csmrfx> >> %x{ grep wopee . }; $?
jamescarr has joined #ruby
<eval-in> csmrfx => (http://eval.in/17484)
icecandy_ has joined #ruby
twoism has joined #ruby
Xeago has quit [Remote host closed the connection]
<csmrfx> oh well
<csmrfx> ^ try that in irb qubit
<csmrfx> mine returns
<csmrfx> => #<Process::Status: pid=28185,exited(1)>
atmosx has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
<csmrfx> I wonder what the number is for "excited"
<jrabbit> netto: you probably want http://nokogiri.org/
carlyle has quit [Remote host closed the connection]
benlieb has joined #ruby
<qubit> csmrfx: didnt work. $? only updates once %x completes. if it receives the signal while it's executing it fails
<csmrfx> yeah
schickung has quit [Quit: schickung]
<netto> yeah, I tried nokogiri, but it's almost like .gsub("\n","<br>") command, i dont see too difference. for example when I have unordered list
bnagy has quit [Ping timeout: 252 seconds]
<netto> jrabbit:
icecandy has quit [Ping timeout: 276 seconds]
<csmrfx> qubit: oh, fails? independent of the signal?
mercwithamouth has quit [Ping timeout: 264 seconds]
kimteq has joined #ruby
bnagy has joined #ruby
<qubit> csmrfx: fails, $? isnt updated. For example `%x{sleep 60}` and then SIGTERM the script while the sleep is still running
cantonic has quit [Quit: cantonic]
<csmrfx> qubit: ok, so "$?" fails, not the process?
<jrabbit> netto: oh another option could be to convert to markdown
Uranio has joined #ruby
<qubit> csmrfx: if I put in a Signal.trap, $? is not updated when the trap executes
chipotle_ has quit [Quit: cya]
<csmrfx> lol surprise: I sent my process SIGTERM and my process died?
<netto> yes, theres a gem called 'reverse_markdown'
<csmrfx> wonder why?
unflores has quit [Quit: unflores]
MikeIn has joined #ruby
wsterling has quit [Read error: Connection reset by peer]
<qubit> csmrfx: I'll just launch the pid in a fork or something and git the fork's pid, and then just wait for the fork to exit
<qubit> s/pid/program/
wsterling has joined #ruby
<jrabbit> netto: it'd probably take more of the stuff you want into account
thone has quit [Remote host closed the connection]
<jrabbit> netto: I can't see it being perfect but probably good enough
<netto> jrabbit: I'll try, but I still think html_massage convert to a better plain text, but the problem is: there a lot of gem dependencies
thone has joined #ruby
<csmrfx> qubit: you do realize that SIGTERM tells processes to terminate
<csmrfx> +?
<netto> jrabbit: yeah, Im trying to get the best solution
<qubit> csmrfx: yes, and it can be trapped via Signal.trap("TERM")
wsterling has quit [Read error: Connection reset by peer]
<jrabbit> oh html_massage even does markdown out
<qubit> csmrfx: all signals other than SIGKILL can be caught
wsterling has joined #ruby
<qubit> err, and SIGSTOP
<jrabbit> netto: they don't have that many deps
sailias has quit [Quit: Leaving.]
jbueza has joined #ruby
<aedornm> cpruitt: You can pass the locations when doing the gem install: gem install mysql -- --with-mysql-dir=/usr/mysql --with-mysql-lib=/usr/mysql/lib --with-mysql-incklude=/usr/mysql/include .. or whatever they may be
<netto> jrabbit: yeah, I looked at reverse_markdown but the markdown doesnt make a lot sense to nooby people (my audience)
<aedornm> gem install mysql2 even
<netto> jrabbit: what do u think?
noop has joined #ruby
indyrl has quit [Quit: Leaving.]
Xeago has joined #ruby
<csmrfx> qubit: how about Process.pod
<jrabbit> netto: use html_massager
<csmrfx> *.pid
LaPetiteFromage has quit [Quit: LaPetiteFromage]
icecandy_ has quit [Remote host closed the connection]
<jrabbit> netto: I don't see why dependencies is a bad thing. Just means they didn't reinvent the wheel
<cpruitt> aedornm: Thanks. I'm pretty sure I've tried that but at this point I've tried so many things I might not have done it right. I'll give it another shot. Thanks very much for the reply.
<qubit> csmrfx: that gives you the pid of the script, not the thing being run
m8 has joined #ruby
<netto> jrabbit: cool! I said that because I'm new to rails, I thought many gems = bad practice
<csmrfx> yes
bondar has quit []
<MrPoT4tO> hey guys, who here can help me with netbeans and ruby gems? I wanna use the latest ruby version and all (Linux). How do I install it ?
krawchyk_ has joined #ruby
<MrPoT4tO> (if there's a guide I can follow, also that can help)
<csmrfx> qubit: maybe you wanted spawn instead
motto has quit [Ping timeout: 256 seconds]
krawchyk_ has quit [Remote host closed the connection]
<nezumi> Depending on the distro, there should be packages available
jekotia has joined #ruby
<csmrfx> qubit: or, IO.popen3 or whatever that is these days
<MrPoT4tO> it's kubuntu nezumi
girija has quit [Ping timeout: 276 seconds]
mengu has joined #ruby
krawchyk has quit [Ping timeout: 256 seconds]
<MrPoT4tO> I'm looking for them, but only shows an old version for some reason. What if I download it from the site? do I have to put it in my usr/lib folder?
noop has quit [Quit: Leaving]
<csmrfx> and, this seems pretty valid on forking and pids http://ujihisa.blogspot.fi/2010/03/how-to-run-external-command.html
ferdev has quit [Quit: ferdev]
__alpaca_ has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
francisfish has quit [Remote host closed the connection]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
browndawg has quit [Quit: Leaving.]
noop has joined #ruby
bondar has joined #ruby
akhet has quit [Remote host closed the connection]
<nezumi> I see 1.9.1 in synaptic, that's a bit old.
bondar has quit [Excess Flood]
<MrZYX> that's the ABI version
BizarreCake has quit [Ping timeout: 256 seconds]
bondar has joined #ruby
bondar has quit [Excess Flood]
<MrZYX> it should be a 1.9.3 ruby iirc
<netto> jrabbit: I set up the gems and I get: Expected /Users/netto/my-app/lib/sanitize.rb to define Sanitize
<nezumi> I built a 1.9.3 rpm for CentOS by following instructions I found online
bondar has joined #ruby
bondar has quit [Excess Flood]
benlieb has quit [Quit: benlieb]
<jrabbit> netto: I don't know
bondar has joined #ruby
<netto> jrabbit: is there some tip ?
<csmrfx> "I'm going to sing the spawn song now" *gir voice*
JohnBat26 has joined #ruby
<jrabbit> netto: I don't use rails.
bondar has quit [Excess Flood]
<netto> ok
bondar has joined #ruby
<nezumi> I don't write much code on my solitary kubuntu box, so I haven't tracked it down
mahmoudimus has quit [Quit: Computer has gone to sleep.]
bondar has quit [Excess Flood]
bondar has joined #ruby
<MrPoT4tO> alright, then I can install it manually
<nezumi> i recommend searching for ubuntu "ruby 1.9.3"
mahmoudimus has joined #ruby
Cultofmetatron has joined #ruby
cantonic has joined #ruby
<csmrfx> ah, nm, this computers ruby is 1.8.7 so no spawn.
__alpaca_ has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
troessner has quit [Quit: Leaving]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
bondar has quit [Client Quit]
icole has joined #ruby
GOMADWarrior has quit [Ping timeout: 252 seconds]
nomenkun has joined #ruby
krz has joined #ruby
icole has quit [Remote host closed the connection]
jeebster has left #ruby [#ruby]
jeebster has joined #ruby
interactionjaxsn has quit [Ping timeout: 258 seconds]
jpwhiting has joined #ruby
GOMADWarrior has joined #ruby
jpwhiting has left #ruby ["Konversation terminated!"]
benlieb has quit [Quit: benlieb]
headius has joined #ruby
<csmrfx> hey headius
<csmrfx> does jruby support .spawn?
danslo has quit [Quit: danslo]
<headius> kinda sorta
<headius> it doesn't suppose most of the options
<headius> we need to do a native/FFI version of it to work properly
<headius> suppose=support
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<csmrfx> hehe
<csmrfx> I guess java is about threads.
<csmrfx> netto did you get it sorted?
gungor_ has quit [Remote host closed the connection]
Cultofmetatron has quit [Remote host closed the connection]
<netto> csmrfx: I put <%= HtmlMassage.markdown(@event.description) %> and I get that error
<csmrfx> which os, how did you install ruby/rubygems/sanitize?
lewis has joined #ruby
heliumsocket has joined #ruby
<netto> i have i file sanitize.rb in lib folder
<netto> osx
duosrx has joined #ruby
<netto> mac
toekutr has joined #ruby
jacobw has joined #ruby
wedgex has quit [Remote host closed the connection]
motto has joined #ruby
<csmrfx> netto: well, this is guessing but something railsy didnt start or isnt where it is supposed to be or in path
interactionjaxsn has joined #ruby
idkazuma has quit [Remote host closed the connection]
m8 has quit [Ping timeout: 268 seconds]
tonini has joined #ruby
<csmrfx> I bet someone on the rails channels has insight, and also this http://stackoverflow.com/questions/93853/how-to-fix-debug-expected-x-rb-to-define-x-rb-in-rails
flowsnake has joined #ruby
duosrx has quit [Ping timeout: 246 seconds]
momomomomo has joined #ruby
Uranio has quit [Quit: while you reading this, a kitty dies]
zigomir has joined #ruby
benwoody has left #ruby [#ruby]
_maes_ has joined #ruby
invariant has joined #ruby
robbyoconnor has joined #ruby
kirun has joined #ruby
<nezumi> Searching rubyforge for "ping" is useless. It matches any word ending in ping, like developing...
<nezumi> Major lose.
F1skr has quit [Quit: WeeChat 0.4.0]
<csmrfx> what are you looking for?
Proshot has quit [Read error: Operation timed out]
wolcanus has joined #ruby
<nezumi> ping
_maes_ has quit [Client Quit]
<csmrfx> >> `ping www.fi`
<eval-in> csmrfx => (http://eval.in/17488)
LaPetiteFromage has joined #ruby
<csmrfx> >> %x{ ping www.google.com }
<eval-in> csmrfx => (http://eval.in/17489)
Ethan2 has joined #ruby
Ethan2 has quit [Changing host]
Ethan2 has joined #ruby
Ethan2 has quit [Client Quit]
<csmrfx> >> spawn(ping www.google.com )
<eval-in> csmrfx => /tmp/execpad-8ad4bb9973f4/source-8ad4bb9973f4:2:in `<main>': undefined local variable or method `www' for main:Object (NameError) (http://eval.in/17490)
<nezumi> I just found net-ping, I'll try it
<csmrfx> >> spawn('ping', 'www.google.com' )
<eval-in> csmrfx => (http://eval.in/17491)
AndChat| has joined #ruby
wolcanus has quit [Read error: Connection reset by peer]
wolcanus_ has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Client Quit]
undersc0re97 has joined #ruby
undersc0re97 has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 248 seconds]
Ethan has joined #ruby
<csmrfx> haha, I will keep my system commands https://github.com/djberg96/net-ping/tree/master/lib/net
jdunck has joined #ruby
ferdev has joined #ruby
mmitchell has joined #ruby
LaPetiteFromage has quit [Ping timeout: 256 seconds]
foofoobar has quit [Quit: Computer has gone to sleep.]
MrPoT4tO has quit [Remote host closed the connection]
sethetter has quit [Quit: leaving]
Ethan has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
grn_ is now known as grn
Giorgio has quit [Ping timeout: 252 seconds]
Ethan has joined #ruby
Ethan has quit [Client Quit]
chrishough has quit [Quit: chrishough]
Ethan has joined #ruby
Ethan has quit [Client Quit]
noop_ has joined #ruby
akam-it has quit [Remote host closed the connection]
symme7ry has joined #ruby
Ethan has joined #ruby
gaahrdne_ has joined #ruby
gaahrdner has quit [Ping timeout: 276 seconds]
Squarepy has quit [Quit: Leaving]
<symme7ry> I'm unable to create an AES cipher of key length 128 .. cipher = OpenSSL::Cipher.new('AES-128-CBC') then cipher.key_len = 128 gives an error.. anyone know why? OpenSSL::Cipher.ciphers lists 'AES-128-CBC' as a valid option
noop has quit [Ping timeout: 256 seconds]
Proshot has joined #ruby
<csmrfx> pastie?
Vainoharhainen has joined #ruby
<csmrfx> also, ruby --version
wolcanus_ has quit [Read error: Connection reset by peer]
<symme7ry> https://gist.github.com/anonymous/7b19590e8eda26d42ce9 .. output is 16.. ruby 1.9.3p392 (2013-02-22) [i386-mingw32]
wolcanus has joined #ruby
wedgex has joined #ruby
oneirophren has quit [Ping timeout: 256 seconds]
<csmrfx> symme7ry: well, your arguments are wrong afaics
<atmosx> Guys, in this situation I use the variable list which in outside the scope and cannot be used in printf. I usually get by this sort of situation by using $list instead of list… but what's the common way to deal with this? https://gist.github.com/5454649
pedrosnk has joined #ruby
<atmosx> Should I use $list which is kinda hard-coded or maybe define list is a 'list' earlier? orf_list() returns an array or elements.
tspike has joined #ruby
MisterPostIT has joined #ruby
<MrZYX> list = nil before the block should do
brennanMKE has joined #ruby
hamakn has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
<csmrfx> symme7ry: docs even mention this for .key_len: Under normal circumstances you do not need to call this method (and probably shouldn’t).
tonini has quit [Remote host closed the connection]
beiter has quit [Read error: Operation timed out]
otters has quit [Disconnected by services]
g3org3s has joined #ruby
beiter has joined #ruby
otters_ has joined #ruby
hamakn has quit [Ping timeout: 248 seconds]
otters_ is now known as otters
<g3org3s> hey there;, i am having a problem with ruby ... maybe u can help out plz :) http://pastebin.com/81xSvQDr
DrCode has joined #ruby
vlad_starkov has joined #ruby
toekutr has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
<atmosx> g3org3s: why are you running this as root?
c0rn has quit [Quit: Computer has gone to sleep.]
noop_ has quit [Remote host closed the connection]
<csmrfx> >> require 'benchmark'; def tst; list = []; t = Benchmark.realtime do; list = 1; end; p list; end
<atmosx> secondly I know of no gem called memcacheex
<eval-in> csmrfx => nil (http://eval.in/17496)
<csmrfx> weird
<csmrfx> my irb returns 1
<csmrfx> am I running old irb again
<csmrfx> hm, 1.9.1
<csmrfx> atmosx: ^
<tylersmith> you did not call tat?
<tylersmith> tst*
<csmrfx> lel
<csmrfx> >> require 'benchmark'; def tst; list = []; t = Benchmark.realtime do; list = 1; end; p list; end; tst
<eval-in> csmrfx => 1 ... (http://eval.in/17497)
vlad_starkov has quit [Remote host closed the connection]
<csmrfx> tylersmith: thx
<tylersmith> $500 plz ;p
rburton- has joined #ruby
<csmrfx> atmosx: owes me 5k, ask him
vlad_starkov has joined #ruby
<tylersmith> oh, then I meant $5000
g3org3s_ has joined #ruby
<g3org3s_> sorry disc
* csmrfx dodges the inginite loop
<atmosx> I'm Greek so I'm broke by default.
<g3org3s_> atmosx: is it the issue ? running as root ?
<atmosx> g3org3s: no that's just stupid.
<slobad23> ^^
<atmosx> g3org3s: the issue not finding the required gem.
g3org3s has quit [Ping timeout: 245 seconds]
sayan has quit [Quit: Leaving]
beiter has quit [Read error: Operation timed out]
<slobad23> can you def tst without adding an end?
<atmosx> g3org3s_: which that either is not installed or it's installed (most likely) in a path that root user can't find it when running ruby. that's why people use rbenv, rvm or install ruby system-wide in /usr/local/
Hanmac has quit [Read error: Operation timed out]
<csmrfx> slobad23: wait what?
<atmosx> slobad23: why you would wanna do that?
__alpaca_ has joined #ruby
vlad_starkov has quit [Client Quit]
pedrosnk has quit [Remote host closed the connection]
<slobad23> Just glanced at the code line above and it contains "def tst;"
<csmrfx> well, methods are defined by code between def and end
<csmrfx> so, no end, no joy
<slobad23> Sorry, my bad, it's the syntax on the IRC line to show the code. I couldn't read it properly :-)
Neomex has joined #ruby
Cultofmetatron has joined #ruby
mercwithamouth has joined #ruby
<slobad23> They should make a tag for IRC to show your code indented with syntax highlighting.
<csmrfx> it's called pastie.org
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
<g3org3s_> atmosx: so if i put the gems in /usr/local/ it could fix it
<atmosx> what's the best way in ruby to get system info like OS/CPU/RAM/SSD(if any)
<atmosx> g3org3s_: well depends.
blaxter has quit [Ping timeout: 256 seconds]
<csmrfx> atmosx: use the OS
<atmosx> g3org3s_: try running gem install {whatever}
<atmosx> as root
<atmosx> not with sudo and it might work
<csmrfx> >> spawn("df")
<eval-in> csmrfx => (http://eval.in/17499)
<atmosx> csmrfx: ah, I wonder is there was anything more direct.. with OS I'll have to write too many lines I guess
<csmrfx> atmosx: also, how about the $
<atmosx> csmrfx: what about it? I didn't find another solution so I used it
krz has quit [Quit: krz]
<slobad23> atmosx, Quick good shows https://github.com/opscode/ohai or gem "sysinfo"
<atmosx> slobad23: thanks
<csmrfx> atmosx: yes, you're supposed to use the $ env vars
simocarus has joined #ruby
<simocarus> ujhljl
__alpaca_ has quit [Ping timeout: 256 seconds]
<g3org3s_> atmosx: http://pastebin.com/SYGD0h35
<simocarus> hey
<atmosx> csmrfx: yeah I know..
simocarus has quit [Client Quit]
simocarus has joined #ruby
<csmrfx> lol actually use *gasp* g-gems
slobad23 has quit [Quit: Leaving]
<atmosx> g3org3s_: is that a mac?
jonathanwallace has quit [Ping timeout: 248 seconds]
simocarus has left #ruby [#ruby]
m8 has joined #ruby
rakl has quit [Quit: sleeping]
vlad_starkov has joined #ruby
stoic_squirrel has joined #ruby
<adamjleonard> Is there a better way to do [:theater_id, :movie_id].all? { |key| params.include? key }
motto has quit [Ping timeout: 272 seconds]
<g3org3s_> atmosx: no, its a kali-linux/debian
stkowski has quit [Quit: stkowski]
<csmrfx> adamjleonard: wat you expect, wat you get?
<atmosx> Oh I see.
<atmosx> you probably need to isntall some packages
<atmosx> dev-packages
<atmosx> if it's debian
<atmosx> but I don't know which ones
<MrZYX> csmrfx: isn't that obvious? he want's to know if params includes all the symbols
<MrZYX> read the questions
<csmrfx> MrZYX: all I see is broken code
<adamjleonard> Wat?
<adamjleonard> How is that broken code
<atmosx> sysinfo is good but doesn't give lots of info… not cpu/ram/etc
<MrZYX> csmrfx: then look in the other direction
<adamjleonard> I want to ask a hash if it contains multiple keys
<csmrfx> MrZYX: I already looked at your mom
<atmosx> if 4.5 MB of raw data gives 27,05 seconds
<MrZYX> csmrfx: are you drunk?
<atmosx> 1 GB of gziped data will give… how much?
<csmrfx> irb(main):009:0* [:theater_id, :movie_id].all? { |key| params.include? key }
<csmrfx> NameError: undefined local variable or method `params' for main:Object
<adamjleonard> Really?
<g3org3s_> atmosx: can u plz point me to the right direction ?
* csmrfx snaps whip at noobs
alex__c2022 has quit [Ping timeout: 252 seconds]
<MrZYX> adamjleonard: just ignore him, he decided to be a dick today
<adamjleonard> ...
alex__c2022 has joined #ruby
<adamjleonard> I'm going to be nice, but you have problems
<adamjleonard> MrZYX: :>
<adamjleonard> There was a time when every one in IRC world was nice.
<csmrfx> and then you woke up
pkrnj has quit [Ping timeout: 268 seconds]
<adamjleonard> csmrfx, you put the tampon in the wrong hole
<csmrfx> irc is a finnish invention, and finns are absolute cunts
<MrZYX> adamjleonard: don't feed the troll
<csmrfx> thats why they use irc, they cant stand to talk to each other 8)
<ddd> hahah. I've been on IRC for damned near 20 years and I don't ever remember anyone being nice on IRC
<atmosx> g3org3s_: wild guess, try : apt-get install libmemcached-dev
Cultofmetatron has quit [Remote host closed the connection]
* csmrfx hears the sound of ignore list *plonk*
<adamjleonard> ddd: Got stop hanging out with the assholes
<adamjleonard> gotta*
<TTilus> csmrfx: well, thanks alot
<TTilus> :)
<atmosx> is Linus Torvalds fin?
<atmosx> also Raikonnen is fin
<g3org3s_> atmosx: cannot locate package lol
jonathanwallace has joined #ruby
<atmosx> I like Fins
<ddd> adamjleonard: and linus can be a dick with the best of them
<TTilus> both
* csmrfx used to study at the same school as linus
<atmosx> awesome.
* atmosx has a lotus
* atmosx supports the lotus team in F1
* atmosx lkes F1
<atmosx> csmrfx: okay, good going.
* TTilus had lotus amkipro once
<TTilus> *amipro
<atmosx> TTilus: yeah… hmm I had a lotus elise… it's kinda of different thing… not too many things to click on it.
<csmrfx> adamjleonard: so, what was that about?
<atmosx> maybe 1 or 2
<netto> csmrfx: I followed that thread but I cant solve that problem
<netto> lib/sanitize.rb to define Sanitize
<netto> do you have some idea?
<TTilus> atmosx: but the speed aint cpu bound ;)
<csmrfx> use the console to debug the problem, netto
beneggett has joined #ruby
<atmosx> TTilus: no, it's a sort of mixture grossomodo between cpu/ram/hd
<netto> csmrfx: I run conselo, but I dont know what to type to debug
<atmosx> TTilus: given the same fucked up software that I write...
xorro has quit [Quit: leaving]
<TTilus> atmosx: i ment the elise...
<g3org3s_> atmosx: on the website they said it was tested with ruby 1.8 ... could it be the issue ?
<atmosx> TTilus: aaaaaah sorry :-P
<MrZYX> adamjleonard: a bit more cryptic but shorter: ([:a, :b]-params.keys).empty? :P
<atmosx> atmosx: hmm no I don't think so.
<atmosx> err g3org3s_ that was for u
<adamjleonard> I do like that MrZYX
<g3org3s_> atmosx: grrr im going crazy here i want this to work
<adamjleonard> I was thinking about comparing arrays, but if they aren't in order
<csmrfx> netto: what did you do again? did you have a pastie?
objectivemo has joined #ruby
<atmosx> g3org3s_: sorry for that. Don't think I can help more.
<g3org3s_> atmosx: maybe if i switch os ? which os would run it like a charm ?
<atmosx> g3org3s_: no idea, it's not a matter of os. You need the right libraries
<atmosx> g3org3s_: try: sudo aptitude install ruby1.9.1-dev
Giorgio has joined #ruby
<netto> csmrfx: i dont know how to debug this error
<atmosx> g3org3s_: then try "locate mkmf"
<netto> i'm only access the url
forlin has quit [Remote host closed the connection]
keyvan has quit [Ping timeout: 248 seconds]
<csmrfx> g3org3s_: remember, with debian you either 1) install rubygems -program manually and gem install -- or 2) apt-get install both ruby, rubygems and the gems.
AndChat| has quit [Ping timeout: 256 seconds]
thebastl has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
Cultofmetatron has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
<TTilus> csmrfx: actually as of wheezy apt-installed stuff satisfies gem dependencies
Arzaga has quit [Quit: Computer has gone to sleep.]
<TTilus> so you can actually mix and match
chandankumar has quit [Quit: Leaving]
<csmrfx> yeah?
<TTilus> but im blissfully unaware of any details
<cpruitt> Resolved an issue with msql2 gem not building extensions. Required downgrade from MySQL version 5.6.11 to 5.5.31. Can anyone recommend a good place to look to see if there is a known issue with using the latest version of MySQL?
jdunck has quit [Quit: Computer has gone to sleep.]
mljsimone has joined #ruby
<csmrfx> I'm still on squeeze
kiri has quit [Ping timeout: 252 seconds]
<csmrfx> cpruitt: can you even imagine all the factors from OS, OS version to ruby implementations?
<csmrfx> Does mysql have public bug tracker?
kiri has joined #ruby
<TTilus> cpruitt: already tried googling the error message + some keywords
<cpruitt> csmrfx: I understand. I'm not so much asking about a cause, I'm asking about the best place to look for / ask about the details. A general Ruby IRC channel doesn't seem like the best place for a discussion of a specific gem (though I could be wrongs, you can correct me)
rubycode has joined #ruby
<csmrfx> you ask your question and maybe get lucky
dayom has joined #ruby
<rubycode> hi. how can I force minitest to continue running my unit tests after a single assertion failure?
balishag has joined #ruby
<TTilus> rubycode: it doesnt?
foofoobar has joined #ruby
<cpruitt> TTilus: Yes. The error is that the compiler can't find mysql.h, though it's clearly installed with the OS X binary. Specifying all the relevant paths does not resolve the error, while rolling back to an earlier version installs the gem without any issue or special config. I'd just like to do my homework & see if I can figure out why this is an issue.
<g3org3s_> atmosx: csmrfx i couldnt find the package .... i added sources to my cache, now updating then i will try to find the package
angusiguess has quit [Ping timeout: 248 seconds]
<cpruitt> That error occurrs with MySQL version 5.6.11 but not with 5.5.31
<rubycode> TTilus: within the same test. i am driving some data thru a unit test case.
<cpruitt> If there's a legitimate problem, I'd like to report it, but I don't quite know how to go about looking for any info.
jonathanwallace has quit [Ping timeout: 260 seconds]
<netto> csmrfx: I tried: >> Sanitize
<netto> => Sanitize
nomenkun has quit [Remote host closed the connection]
<csmrfx> cpruitt: well supposedly it's the mysql2 gem
<rubycode> also is there a chat for total ruby newbs
malte_ has quit [Quit: malte_]
<rubycode> cos i r.
<csmrfx> this is it
<csmrfx> welcome
havenwood has quit [Remote host closed the connection]
<rubycode> awesome.
mahmoudimus has joined #ruby
<rubycode> I have a hash, and some of the elements in it, but not all, are hashes of hashes, or arrays of hashes.
pikapp has joined #ruby
<cpruitt> csmrfx: Yes. Well, more specifically it's the compiler trying to build and link against libmsqlclient. It can't find a header, but I've confirmed that the header is there. Something is different between the installs of those MySQL versions.
<rubycode> how would i go about converting all integers in that structure into strings"
<rubycode> ?
jacobw has quit [Remote host closed the connection]
akashj87_ has joined #ruby
<cpruitt> I'm sorry If I'm phrasing the question poorly.
mityaz has quit [Quit: See ya!]
<MrZYX> rubycode: that sounds like a silly requirement, what do you actually want to achieve by doing that?
<cpruitt> After I resolve an error (especially if it requires a downgrade) I always try to thorough ally understand why it happened and that's what I'm trying to do here. Find the cause, not just the fix.
jonathanwallace has joined #ruby
<rubycode> MrZYX: crack xml and json parsers dont parse integers the same way. json parser spits out integers and xml - strings.
<rubycode> i need to unify them.
tenmilestereo has quit [Quit: Leaving]
<Sou|cutter> rubycode: use recursion
<rubycode> Sou|cutter: i dont know when i will get a hash or an array :(
<MrZYX> you can check with is_a?
<rubycode> so recursion with a switch statement?
akashj87 has quit [Ping timeout: 272 seconds]
jerius_ has joined #ruby
<Sou|cutter> rubycode: yeah
Hanmac has joined #ruby
<rubycode> ew.
<g3org3s_> atmosx: i installed it ... still same error ... the error basically says i need the gem memcacheex installed ? right ?
<rubycode> i was hoping there was some kind of majik .inject I could use or something
<rubycode> can i not inject this somehow?
<atmosx> g3org3s_: hm no
<atmosx> if required that gem will be installed aumatically
<MrZYX> rubycode: nope, also .map on a hash doesn't return a hash
<csmrfx> rubycode: start with each
<csmrfx> or map
<atmosx> some gems need header files. You probably need some -dev packages which I don't know where you will find since I never used debian for anything
<atmosx> I use gentoo/freebsd and macosx
<g3org3s_> atmosx: souldnt it tell me what packages i need ? "technically speaking"
jerius has quit [Ping timeout: 260 seconds]
jerius_ is now known as jerius
<banister`sleep> rubycode: there's always room for cleverness, but you have to figure it out yourself :)
<banister`sleep> i think it's more of a programmer virtuosity question than a language question
ryanclark has joined #ruby
<cpruitt> rubycode: Would it make more sense to use a class of your own design that keeps the hash / array representation internally? You then define a method to get a value and it converts your integer when called?
chrishough has joined #ruby
<atmosx> g3org3s_: yes, it does.
<rubycode> cpruitt: it would make sense, yes.
<rubycode> i just dont know how to implement this
<atmosx> g3org3s_: but you need a debian-guru to tell which exact package you're going to need. Try to #debian ask for some ruby user… it's easy for someone who knows the system to solve this kind of thing
<cpruitt> Hard to say without really knowing what you're doing. You have any existing code?
jtharris has joined #ruby
<cpruitt> And what does your data structure represent?
jonathanwallace has quit [Ping timeout: 248 seconds]
foofoobar has quit [Quit: Computer has gone to sleep.]
<rubycode> cpruitt: it represents an XML object i recieve from a rest call.
love_color_text has joined #ruby
<cpruitt> rubycode: But how complex is that? Is it completely arbitrary or does it follow a predictable pattern? (e.g. invoice > line items > line item details)
ryannielson has quit [Quit: ryannielson]
<rubycode> cpruitt: predictable.
<rubycode> it's a documented call, and its very stable.
<rubycode> idk why xml parsers are so messy.
<g3org3s_> atmosx: allrigth will try in debian , tahnks :=)
jovy88 has quit [Read error: Connection reset by peer]
caleb_io has joined #ruby
<atmosx> g3org3s_: good luck :-)
vlad_sta_ has joined #ruby
ner0x has left #ruby ["Leaving"]
<g3org3s_> tanks
jovy88 has joined #ruby
caleb_io has quit [Client Quit]
<cpruitt> OK, if it were me (on a better day) I'd use the hash only as a structure for retrieving the data. Then I'd create classes for each of my models. I'd create a class method for each to create an instance from an hash / array. So if the root of my XML is <invoice> I'd call Invoice.new_from_hash(some_hash)
codezombie has joined #ruby
<cpruitt> or just require the hash be passed into my initialize method Invoice.new(some_hash)
mechcozmo has joined #ruby
slainer68 has joined #ruby
jonathanwallace has joined #ruby
<cpruitt> that initialize method would reach the hash & when it gets to a child (e.g. line item) it'd loop through and repeatedly call it's own add_line_item(hash_item) which would instantiate a new line item instance & read the data
<cpruitt> Then you have all the opportunity in the world to massage your data
vlad_starkov has quit [Ping timeout: 258 seconds]
<cpruitt> Now, on a bad day, I'd just use a whole bunch of hash['some_attr'].to_i :-)
<mechcozmo> Does anyone here use BBEdit for their programming? I'm having a hard time giving up BBEdit's great built-in PHP function autocomplete for the near-total lack of Ruby autocomplete, and hoping that someone here can point me towards a solution to augment BBEdit in this regard.
<lewis> hi
g3org3s_ has quit [Ping timeout: 245 seconds]
love_color_text has quit [Ping timeout: 264 seconds]
motto has joined #ruby
hadees has joined #ruby
lewis is now known as lewix
m8 has quit [Ping timeout: 246 seconds]
<csmrfx> mechcozmo: mac vim
kobain has quit [Remote host closed the connection]
<mechcozmo> csmrfx: I'm not really looking to switch editors (nor start an argument about them)
kobain has joined #ruby
mneorr has joined #ruby
<csmrfx> I dont even have a mac
workmad3 has joined #ruby
c0rn has joined #ruby
Burgestrand has joined #ruby
<mechcozmo> Well… thanks anyway I guess.
yekta has joined #ruby
awkisopen has joined #ruby
<awkisopen> gem install python
<Olipro> is there a method to find the n'th occurrence of a char in a string?
<awkisopen> doesn't work
<awkisopen> suggestions?
<awkisopen> (or a substring in a string, honestly, we're not picky)
<Hanmac> xD
<csmrfx> awkisopen: system("apt-get install python")
<csmrfx> >> spawn('python', 'version')
<eval-in> csmrfx => (http://eval.in/17500)
carlyle has joined #ruby
Yakko has joined #ruby
<awkisopen> you guys are the best
<csmrfx> irb(main):079:0> Python 2.6.6
Neomex has quit [Quit: Neomex]
objectivemo has quit [Quit: objectivemo]
<MrZYX> Olipro: hm, maybe there's an alternate way to solve your problem than finding the nth occurence?
<awkisopen> that's very zen
<Olipro> or maybe I just want to find the position of the n'th occurrence of a character
<MrZYX> that's just a hidden "describe the problem, not the solution you think you need" ;)
caveat- has quit [Remote host closed the connection]
<canton7> XY problems, and all that
chipotle_ has joined #ruby
jbpros has joined #ruby
__alpaca_ has joined #ruby
<Olipro> given "foo/bar/baz/boo" I want to produce a nested hash like thus: {'foo' => {'bar' => {'baz' => {'boo' => nil } } } }
<MrZYX> now, we're talking
jonathanwallace has quit [Ping timeout: 252 seconds]
huoxito has quit [Quit: Leaving]
caveat- has joined #ruby
thone_ has joined #ruby
angusiguess has joined #ruby
retry has quit [Quit: Leaving...]
shirokuro11 has joined #ruby
<Olipro> so, with that in mind, got any better ideas?
<canton7> string.split('/').inject({}){ |s,k| {s => k} } is almost ther
<canton7> *there
chandankumar has joined #ruby
Space_ has joined #ruby
thone has quit [Ping timeout: 258 seconds]
<csmrfx> >> string.split('/').inject({}){ |s,k| {s => k} }
<eval-in> csmrfx => /tmp/execpad-0275c128fbdb/source-0275c128fbdb:2:in `<main>': undefined local variable or method `string' for main:Object (NameError) (http://eval.in/17501)
jtharris has quit [Quit: WeeChat 0.4.0]
<canton7> you'll want the actual string ;)
bitcycle has joined #ruby
ner0x has joined #ruby
jtharris has joined #ruby
<canton7> I'm an idiot
pcarrier has quit [Quit: Computer has gone to sleep.]
<canton7> >> "foo/bar/baz/boo".split('/').inject(nil){ |s,k| {s => k } }
<eval-in> canton7 => {{{{nil=>"foo"}=>"bar"}=>"baz"}=>"boo"} (http://eval.in/17502)
<canton7> oops wrong way around
<MrZYX> >> "foo/bar/baz/boo".split("/").reverse.inject(nil) { |hsh, key| {key => hsh} }
<eval-in> MrZYX => {"foo"=>{"bar"=>{"baz"=>{"boo"=>nil}}}} (http://eval.in/17503)
<canton7> >> "foo/bar/baz/boo".split('/').inject(nil){ |s,k| {k => s } }
<eval-in> canton7 => {"boo"=>{"baz"=>{"bar"=>{"foo"=>nil}}}} (http://eval.in/17504)
<Hanmac> >> *others,last = "foo/bar/baz/boo".split("/");others.inject(h={}){|h,k| h[k]= {} }[last] = nil;h
<eval-in> Hanmac => {"foo"=>{"bar"=>{"baz"=>{"boo"=>nil}}}} (http://eval.in/17505)
cantonic has quit [Quit: cantonic]
<MrZYX> Hanmac no need to obfuscate :P
yalue has quit [Read error: Connection reset by peer]
__alpaca_ has quit [Ping timeout: 268 seconds]
<canton7> and yeah, need that .reverse in there
shirokuro11 has quit [Remote host closed the connection]
<MrZYX> Olipro: convinced? ;P
<canton7> I think we win there :P
<awkisopen> he said emoticonally
jonathanwallace has joined #ruby
<bitcycle> Hey all. I am new to ruby. I'm trying to use rvm during development, and I'm wondering is it possible to install the gem from source or symlink the gem from my repository on the file system so that I don't have to keep re-installing the gem each time I make a change and want to test it?
alexyz has quit [Read error: Connection reset by peer]
<Olipro> well, I'd ideally like something that codeclimate doesn't think is a complete disaster
elaptics`away is now known as elaptics
<netto> Guys, I'm using html_massage gem but I got this error: Expected /Users/netto/my-app/lib/sanitize.rb to define Sanitize
<netto> can someone help me with this issue?
<awkisopen> is sanitize.rb defining a class called Sanitize?
<MrZYX> Olipro: well, code analysis isn't there to be blindly trusted, it's there to give you some pointers at what you should stare another day or two ;)
bean__ has quit [Quit: Computer has gone to sleep.]
chandankumar has quit [Quit: Leaving]
<Olipro> let me put it another way, some code that doesn't look like it's from an obfuscation competition
dummies_freelanc has quit [Read error: Connection reset by peer]
retry has joined #ruby
<MrZYX> "foo/bar/baz/boo".split("/").reverse.inject(nil) { |hsh, key| {key => hsh} } that are only three chained method calls, once you read up on inject it'll be pretty obvious to you
alexyz has joined #ruby
Faris9 has joined #ruby
<canton7> yeah, it's the obvious way to solve the problem - build the hash up from the inside. If I saw anyone using any other principle I'd think they were an idiot
<awkisopen> it would be doable if that were the only path being acted on
<MrZYX> you're issue is that you need the call a few times? make a method
<MrZYX> ew, *your
<Olipro> yeah, I'll extend this out further; it should scale so that the input could be as such: ['foo/bar/baz/boo', 'foo/bar/baz/bez', 'foo/bar/baz', 'foo/bar', 'foo']
<canton7> using #inject's a matter of taste, but once you're familiar with it (and you should be - it's one of the core members of Enumerable), it's a pretty obvious choice
<canton7> what would be the output for that input?
<awkisopen> a single hash
<MrZYX> Olipro: and then you want n hashes? or just one for all?
<canton7> an array of hashes, or one bit hash?
io_syl has joined #ruby
<canton7> [array of stuff].map{ |x| x.split('/') }.flatten
<Olipro> MrZYX: it should nest such that the baz hash contains both bez, boo and baz
<canton7> then as before
gaahrdne_ has quit [Remote host closed the connection]
<canton7> ah, each sub-hash has more than one member in that case?
<canton7> gotcha
gaahrdner has joined #ruby
<Olipro> e.g: {'foo' => {'bar' => {'baz' => {'boo' => nil, 'bez' => nil } } } }
<canton7> so a directory-structure parsing problem
<MrZYX> hmm active_supports deep_merge would make that easy :P
<Olipro> I'm okay with using a gem
<canton7> a deep_merge implementation is only a few lines - no need for the whole gem
<MrZYX> active_support is like a second stdlib, you don't really want to use it unless you're in rails already
<Olipro> I'm not in Rails
<bitcycle> Hey all. I am new to ruby. I'm trying to use rvm during development, and I'm wondering is it possible to install the gem from source or symlink the gem from my repository on the file system so that I don't have to keep re-installing the gem each time I make a change and want to test it?
angusiguess has quit [Ping timeout: 258 seconds]
wyhaines has joined #ruby
gaahrdne_ has joined #ruby
io_syl has quit [Client Quit]
rippa has quit [Ping timeout: 240 seconds]
<csmrfx> yo dawg I heard you like gems so we put gems in your ruby so you can rubygems
<Olipro> here's the way I have it right now: http://codepad.org/k56usbx4 - I dislike the way I get the substring on line 7
gaahrdner has quit [Read error: Connection reset by peer]
io_syl has joined #ruby
<csmrfx> bitcycle ^
bean__ has joined #ruby
gungor has joined #ruby
wedgex has quit [Remote host closed the connection]
retry has quit [Quit: Leaving...]
JohnBat26 has quit [Ping timeout: 240 seconds]
jdunck has joined #ruby
retry has joined #ruby
<bitcycle> csmrfx, Hm.. maybe my question needs clarification: I'm developing gem foo. My functional tests require "foo". So, that gem needs to be installed to latest available on the filesystem where I'm developing and making changes to the foo project. How should I accomplish that with rvm?
bubbajones has joined #ruby
carlyle_ has joined #ruby
<netto> awkisopen: yes
carlyle has quit [Read error: Connection reset by peer]
<csmrfx> bitcycle: there is a link to that from the thread
retry has quit [Client Quit]
<csmrfx> ie. specifying gem version
wedgex has joined #ruby
stkowski has joined #ruby
<canton7> then 'gem install'
tundrax has quit [Remote host closed the connection]
<canton7> (I assume)
<csmrfx> Å^
locriani has quit [Remote host closed the connection]
Gabri has joined #ruby
wolcanus_ has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
pcarrier has joined #ruby
<MrZYX> Olipro: my approach http://paste.mrzyx.de/show.php?id=1434
geekbri has quit [Remote host closed the connection]
mljsimone has quit [Remote host closed the connection]
wolcanus has quit [Ping timeout: 264 seconds]
ner0x has quit [Quit: Leaving]
rakl has joined #ruby
retry has joined #ruby
mechcozmo has quit [Quit: mechcozmo]
Tricon has joined #ruby
_carloslopes has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
daniel_- has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
pkrnj has joined #ruby
jbpros has quit [Quit: jbpros]
mark_locklear has quit [Ping timeout: 264 seconds]
Arzaga has joined #ruby
vlad_sta_ has quit [Ping timeout: 258 seconds]
cloke has quit [Ping timeout: 256 seconds]
cloke has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
MisterPostIT has quit [Quit: MisterPostIT]
workmad3 has quit [Ping timeout: 246 seconds]
robscomputer has quit [Read error: Connection reset by peer]
renanoronfle__ has quit [Quit: This computer has gone to sleep]
robscomputer has joined #ruby
c0rn has joined #ruby
daniel_- has joined #ruby
enriclluelles has quit [Read error: Connection reset by peer]
enriclluelles has joined #ruby
jonathanwallace1 has joined #ruby
retry has quit [Quit: Leaving...]
jonathanwallace has quit [Ping timeout: 276 seconds]
emmanuelux has joined #ruby
smigg has quit [Remote host closed the connection]
<jeebster> can someone explain why line 10 fails in this example? http://pastie.org/7711444
<otters> jeebster: that's the same as b.include?(a ? true : false)
<otters> and b doesn't include true or false
love_color_text has joined #ruby
<jeebster> otters: ah, so it evaluates the entire statement as an option huh
<otters> yeah, operator associativity and stuff
<jeebster> makes sense. gracias
<bean__> yeah, the ternary operator doesn't even make sense there since the ? method will return true or false anyways
Guest91935 has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> anyone ever used ruby on cuda?
<otters> I assume that's a simplified version of the actual code
bean__ is now known as julian-delphiki
Gues_____ has joined #ruby
Gues_____ is now known as Guest4460
tundrax has joined #ruby
backjlack has quit [Remote host closed the connection]
francisfish has joined #ruby
blacktulip has quit [Remote host closed the connection]
lkba has joined #ruby
backjlack has joined #ruby
chrishough has quit [Quit: chrishough]
Gabri has quit [Remote host closed the connection]
__alpaca_ has joined #ruby
codesoda has quit [Remote host closed the connection]
pbertain has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
choobie has joined #ruby
rburton- has quit [Quit: Leaving...]
vikhyat has joined #ruby
banister`sleep has quit [Remote host closed the connection]
sambao21 has joined #ruby
vlad_sta_ has joined #ruby
MikeIn has quit [Quit: Leaving]
root has quit [Quit: fooo]
jeebster1 has joined #ruby
HAKEON has joined #ruby
__alpaca_ has quit [Ping timeout: 258 seconds]
slobad23 has joined #ruby
tundrax has quit [Ping timeout: 256 seconds]
jeebster has quit [Ping timeout: 252 seconds]
<slobad23> What is the difference between File::exists? and File.exists?
vlad_sta_ has quit [Remote host closed the connection]
love_color_text has quit [Ping timeout: 260 seconds]
jnoob22 has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
<Hanmac> siobad23 in this context nothing, but it reacts different then the second part is caplilized
<Hanmac> (and does not have () )
enriclluelles has quit [Remote host closed the connection]
stoic_squirrel has quit [Quit: Textual IRC Client: www.textualapp.com]
wedgex has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 264 seconds]
twoism_ has joined #ruby
<slobad23> So when woyld you use one over the other? Or is calling a static method with :: or directly with the . completely synonymous
twoism has quit [Read error: Connection reset by peer]
lewix has quit [Remote host closed the connection]
<otters> they're synonymous
vlad_starkov has joined #ruby
mneorr has joined #ruby
failshell has quit [Remote host closed the connection]
<slobad23> Thanks otters. Why they don't choose a style for this document and stick with it, I don't know.
<canton7> you need to use :: for scope resolution iirc. so if module A contains class B, A.B.new is invalid where as A::B.new is valid
<Hanmac> slobad23: for sample: M::A is a constant, but M::A() is a method, M.A and M.A() are allways methods
<otters> There's more than one way to do it!
netto has quit [Quit: netto]
<canton7> typically docs use :: for class methods and # for instance methods
foofoobar has joined #ruby
<Hanmac> canton7: but you can do A::B::new too
<otters> right
<canton7> true
Spooner has joined #ruby
<otters> but if I recall correctly, most people don't use :: for static methods
cyro has joined #ruby
<canton7> aye
cyro has left #ruby [#ruby]
<otters> :: for modules, . for statics
dustint has quit [Quit: Leaving]
<slobad23> But you /could/ use . for modules?
failshell has joined #ruby
bradhe has joined #ruby
<otters> no, you can't
<Hanmac> slobad23: like i sayd no
carlyle_ has quit [Remote host closed the connection]
Nahra has joined #ruby
vlad_sta_ has joined #ruby
Michae___ has joined #ruby
fedza has quit []
kofno has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<slobad23> The thing I'm reading now shows File.file? and File::directory? Seems odd that they're called differently.
<otters> you could use :: or . for both
HAKEON has joined #ruby
<canton7> convention is File::directory? if you're documenting it, or File.directory? if you're actually using it in code
<canton7> similarly, String#length in documention, but "mystring".length in code
vlad_starkov has quit [Ping timeout: 257 seconds]
mneorr has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
Giorgio has quit [Read error: Connection reset by peer]
cyro has joined #ruby
<slobad23> String#length is new to me. Just starting out moving from JavaScript and C#. Forgive the newbie questions.
<cyro> what's the best way to turn a zipcode into lat lon?
chrishough has joined #ruby
vikhyat has quit [Remote host closed the connection]
_maes_ has joined #ruby
cyro has left #ruby [#ruby]
jonathanwallace1 has quit [Ping timeout: 256 seconds]
angusiguess has joined #ruby
<canton7> slobad23, http://ruby-doc.org/core-2.0/String.html for instance
Hanmac2 has joined #ruby
headius has quit [Quit: headius]
wmoxam has quit [Ping timeout: 252 seconds]
generalissimo has quit [Remote host closed the connection]
foofoobar has quit [Quit: Computer has gone to sleep.]
mixel has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
angusiguess has quit [Ping timeout: 252 seconds]
failshell has quit [Remote host closed the connection]
timkohrumel has quit [Remote host closed the connection]
jerius has quit []
failshell has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
Arzaga has quit [Quit: Computer has gone to sleep.]
jamescarr has quit [Quit: jamescarr]
mavcunha has joined #ruby
heliumsocket has left #ruby [#ruby]
mavcunha has quit [Client Quit]
cantonic has joined #ruby
<PaulePanter> Hi. `:t1 => t1, :t2 => t2, …` for a literal hash, how can I abbreviate that?
workmad3 has joined #ruby
tvw has quit []
<PaulePanter> I got help already from Hanmac for `:t1 => 't1', …`: Hash[symlist.map{|sym|[sym,sym.to_s]}]
<PaulePanter> But in this case, I’d like to put the value of the variable into the hash, where the key is the variable name.
HAKEON has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
zastern has joined #ruby
nfk has quit [Quit: yawn]
slobad23 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
philcrissman has quit [Remote host closed the connection]
andrew__ has quit [Remote host closed the connection]
thone has joined #ruby
<otters> why would you want to do that
jonathanwallace has joined #ruby
Michae___ has quit [Remote host closed the connection]
gungor has quit [Remote host closed the connection]
stoic_squirrel has joined #ruby
pedm has joined #ruby
Michae___ has joined #ruby
Michae___ has quit [Remote host closed the connection]
Michae___ has joined #ruby
retry has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
thone_ has quit [Ping timeout: 252 seconds]
elaptics is now known as elaptics`away
jacktrick has joined #ruby
hadees has quit [Quit: hadees]
adamjleonard has quit [Quit: Leaving...]
<PaulePanter> otters: Because that is how the variables are named. (pdf-forms extracts them from the PDF.)
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
rakl has quit [Quit: sleeping]
<PaulePanter> otters: pdf-forms provides pdftk.fill_form 'path/to/file', 'path/to/output', :t1 => 'bla', :t2 => 'blubb', …
mootpointer has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
generalissimo has joined #ruby
<otters> oh, I see
breakingthings has quit []
<PaulePanter> But due to the comma »,« it is hard to use control structures. So I want to “calculate/create” the values beforehand and as there are a lot, I thought just using the same variable names.
francisfish has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
<PaulePanter> Now only some Ruby magic is needed to connect both.
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
<kalleth> ^ this is about to make me throw my computer in a bin
<kalleth> $ sudo gem install refinerycms -> 1500 web requests made and counting
<kalleth> i know its a fair number of gems but jesus
<kalleth> there's over 200 web requests for rack alone
<kalleth> and all sequential
asuka_ has quit [Ping timeout: 246 seconds]
kapowaz has quit [Ping timeout: 246 seconds]
danman has joined #ruby
<PaulePanter> `Hash.new[["bla", "blubb"].map {|sym|[sym, sym]}]` returns nil.
locriani has joined #ruby
<PaulePanter> ["bla", "blubb"].map {|sym|[sym, sym]}
<PaulePanter> => [["bla", "bla"], ["blubb", "blubb"]]
forrest has quit [Quit: Leaving]
spider-mario has quit [Remote host closed the connection]
brennanMKE has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 276 seconds]
enebo has quit [Quit: enebo]
ryanclark has quit [Quit: ryanclark]
kristofers has quit []
interactionjaxsn has quit [Ping timeout: 258 seconds]
kofno has joined #ruby
ryanclark has joined #ruby
asuka has joined #ruby
DrCode has joined #ruby
balishag has quit [Ping timeout: 276 seconds]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
<peta_> happens
workmad3 has quit [Read error: Operation timed out]
c0rn has joined #ruby
carlyle has joined #ruby
mikepack has quit [Remote host closed the connection]
emmanuelux has quit [Quit: emmanuelux]
mmitchell has quit [Ping timeout: 248 seconds]
hadees has joined #ruby
<LennyLinux> PaulePanter: to get all the variable names as sym, an idea would be have them define inside a scope and use local_variables and then using the zip method with argument the same variables
idkazuma has joined #ruby
<LennyLinux> :P
<LennyLinux> I dunno if i'm clear
huoxito has joined #ruby
<PaulePanter> LennyLinux: Thanks. But I did not get what you mean.
zigomir has quit [Ping timeout: 256 seconds]
ryanclark has quit [Quit: ryanclark]
mikepack has joined #ruby
lewix has joined #ruby
<LennyLinux> >> def m; t1, t2 = 1, 2; k = local_variables.zip [t1, t2]; p k; end
<eval-in> LennyLinux => nil (http://eval.in/17506)
<LennyLinux> mmh
<MrZYX> you didn't call it
<LennyLinux> ahahah
<LennyLinux> >> def m; t1, t2 = 1, 2; k = local_variables.zip [t1, t2]; p k; end; m
<eval-in> LennyLinux => [[:t1, 1], [:t2, 2], [:k, nil]] ... (http://eval.in/17507)
<LennyLinux> something like that..
pedm has quit [Quit: pedm]
wsterling has quit [Remote host closed the connection]
momomomomo has joined #ruby
mjb2k has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
failshell has quit [Remote host closed the connection]
rakl has joined #ruby
mjb2k has left #ruby [#ruby]
postmodern has joined #ruby
<PaulePanter> LennyLinux, MrZYX: Looks good. Let’s read up about local_variables.
deadalus has quit [Excess Flood]
jbueza has quit [Quit: Leaving.]
jbueza has joined #ruby
gaahrdne_ has quit [Remote host closed the connection]
deadalus has joined #ruby
gaahrdner has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<PaulePanter> LennyLinux, MrZYX: Awesome. Thanks!
pedm has joined #ruby
dangerousdave has quit [Quit: Leaving...]
mercwithamouth has quit [Ping timeout: 252 seconds]
<LennyLinux> np
danman has quit [Quit: danman]
momomomomo has quit [Quit: momomomomo]
freerobby has quit [Quit: Leaving.]
Liothen has joined #ruby
Liothen has joined #ruby
gaahrdner has quit [Ping timeout: 264 seconds]
vlad_sta_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
kirun has quit [Quit: Client exiting]
jgarvey has quit [Quit: Leaving]
tundrax has joined #ruby
_nitti has quit [Remote host closed the connection]
Myk267 has left #ruby [#ruby]
chrishough has quit [Quit: chrishough]
<A124> Umm.. how would I apply lamda, to use it recursively? : Hash.new { |hash, key| hash[key] = {} }
atmosx has quit [Quit: And so the story goes…]
chrishough has joined #ruby
DaniG2k has joined #ruby
<injekt> A124: Hash.new { |h, k| h[k] = Hash.new(&h.default_proc) }
<otters> hehe
pedm has quit [Quit: pedm]
<ericwood> yikes
jlwestsr has joined #ruby
<huismon> how do I interact with local users/groups in ruby?
<injekt> A124: that's an infinite hash, if that's what you mean
<huismon> like list users, groups, add users, etc
<ericwood> what operating system?
<huismon> ericwood, sorry, linux.
<A124> injekt: Yeah. But this is the proc way.
<ericwood> use the system() command, or backticks to run commands
<otters> injekt: that's nicer than how I would do it
<LennyLinux> PaulePanter: you can even avoid listing all variables using local_variables.map { |x| eval x.to_s } as zip's argument. Pretty ugly though
<ericwood> just like you would from the command line
jlwestsr has quit [Remote host closed the connection]
<huismon> ericwood, seriously? That's dumb, why isn't there a ruby api built?
bitcycle has quit [Quit: Leaving]
<injekt> A124: huh?
<ericwood> because that's extraordinarily platform-specific
<ericwood> maybe there's a gem
<injekt> otters: heh, I've done it many times, I did it much much worse many times before I got it right, too :D
<huismon> ericwood, yeah perhaps
<ericwood> huismon: but what you want shouldn't be core language functionality...
<otters> damn you ruby for making hashes too easy
<otters> I want to use them for everything
<huismon> ericwood, oh, I agree. I just thought there was a gem or something everyone used.
<DaniG2k> do you guys know why ruby had hashes right the first time round while python needed itertools before it got the whole key/val thing to work
<DaniG2k> just curious
<otters> luck
xcv has quit [Remote host closed the connection]
<A124> injekt: You are referencing to proc. Which is not wrong, of course, but I think I was looking for.. sth like tree_block = lambda{|h,k| h[k] = Hash.new(&tree_block) }
bluOxigen has quit [Ping timeout: 264 seconds]
<otters> yeah, but injekt's method doesn't require an extra assignment
brennanMKE has joined #ruby
<A124> otters: You don't get it .. Do you even know lambda logic to judge?
<A124> otters: Anyway, hash.to_json
<otters> what about it?
retry has quit [Quit: Leaving...]
<A124> That's OP, if you use gem like 'oj'
<otters> "lambda logic"?
julian-delphiki has quit [Quit: Computer has gone to sleep.]
gyre007 has quit [Ping timeout: 245 seconds]
<MrZYX> A124: in ruby, what's the difference between a lambda and a proc
philcrissman has joined #ruby
stoic_squirrel has quit [Quit: Computer has gone to sleep.]
<A124> injekt: Thank you. It's nices notation I came with for .. I would use p.call which seemed not right.
<otters> I'm still trying to figure out what just happened
<injekt> :D
<A124> MrZYX: Is what I mentioned identical to injekt's proc or not?
<A124> otters: At least I'm not alone
<tylersmith> and you know lambda logic :(
<otters> lambda logic, huh?
<otters> my mistake, I should've studied it
thetristan has joined #ruby
<MrZYX> in ruby a lambda is a special type of proc enforcing its argument arity
<tylersmith> is that what you're referring to?
<injekt> MrZYX: not to mention the different semantics with returning within a method definition.. :( sad
ariedler has quit [Remote host closed the connection]
wagster has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<MrZYX> yup, but still, a proc and a lambda is the same basic concept
objectivemo has joined #ruby
<MrZYX> (in ruby)
<A124> Yeah, that's true. lambda is a type of proc
rburton- has joined #ruby
tundrax has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 252 seconds]
`p has quit [Remote host closed the connection]
brunoro has joined #ruby
mercwithamouth has joined #ruby
rburton- has quit [Ping timeout: 256 seconds]
<jeebster1> what encryption library would you recommend for easily hashing/decrypting email addresses for db storage?
Cultofmetatron has joined #ruby
dayom has quit [Ping timeout: 252 seconds]
mikestok has quit [Quit: Computer has gone to sleep.]
<injekt> jeebster1: why not store them in plain text?
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 272 seconds]
<jeebster1> injekt: yeah…just humor me :)
<injekt> that is, if you're encrypting emails into your database for security purposes, it's really not making it any more secure
<jeebster1> I'm not too familiar with encryption/decryption and would like to mess around
<jeebster1> so really encrypting/decrypting any string
objectivemo has quit [Quit: objectivemo]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
EPIK has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
<injekt> jeebster1: You should use something like encryptor which uses keys for encryption
Hanmac1 has joined #ruby
<injekt> ruby has lots of stuff like that already in the openssl library though
idkazuma has quit [Remote host closed the connection]
jovy88 has joined #ruby
<injekt> check out OpenSSL::Cipher
jacktrick has quit [Quit: Leaving]
<injekt> jeebster1: alternatively, check out https://www.ruby-toolbox.com/categories/encryption
<injekt> bed time, enjoy!
<jeebster1> thanks sir
freerobby has joined #ruby
Hanmac2 has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
wsterling has joined #ruby
nezumi has quit [Ping timeout: 240 seconds]
pikapp has quit [Read error: Connection reset by peer]
jdunck has quit [Quit: Computer has gone to sleep.]
`p has joined #ruby
justsee has quit [Ping timeout: 256 seconds]
freerobby has quit [Ping timeout: 258 seconds]
momomomomo has quit [Quit: momomomomo]
mengu has quit [Quit: This computer has gone to sleep]
LennyLinux has quit [Remote host closed the connection]
jdunck has joined #ruby
MrZYX is now known as MrZYX|off
mikestok has joined #ruby
<Spooner> jeebster1, You don't decrypt passwords. You encrypt what the user gives and see if that is the same as the encrypted password that you've stored.
ryanclark has joined #ruby
jarin has joined #ruby
arubin has joined #ruby
<jeebster1> Spooner: you are correct. I'm reading up on this.
pcarrier has quit [Ping timeout: 256 seconds]
Guest4460 has quit [Quit: Textual IRC Client: www.textualapp.com]
brunoro has quit [Ping timeout: 255 seconds]
wsterling has quit [Remote host closed the connection]
xkickflip has quit [Ping timeout: 260 seconds]
brunoro has joined #ruby
mikestok has quit [Client Quit]
xkickflip has joined #ruby
BSaboia has joined #ruby
momomomomo has joined #ruby
justsee has joined #ruby
pcarrier has joined #ruby
<momomomomo> hola
t-mart_ has quit [Read error: Connection reset by peer]
t-mart has joined #ruby
__alpaca_ has joined #ruby
addisaden has quit [Ping timeout: 258 seconds]
philcrissman has quit [Remote host closed the connection]
freerobby has joined #ruby
benlieb has joined #ruby
SCommette has quit [Quit: SCommette]
kofno has quit [Remote host closed the connection]
idkazuma has joined #ruby
idkazuma has quit [Read error: Connection reset by peer]
_veer has joined #ruby
__alpaca_ has quit [Ping timeout: 264 seconds]
codezombie has quit [Quit: Linkinus - http://linkinus.com]
schickung has joined #ruby
stkowski has quit [Quit: stkowski]
mercwithamouth has quit [Ping timeout: 248 seconds]
motto has quit [Quit: Sto andando via]
sambao21 has quit [Quit: Computer has gone to sleep.]
jtharris has quit [Quit: WeeChat 0.4.0]
stkowski has joined #ruby
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
Proshot has quit [Quit: Leaving]
graeme has joined #ruby
<Spooner> jeebster1, Yeah, if you can decode them easily, you might as well store them in plain text in the database ;)
mercwithamouth has joined #ruby
<Spooner> jeebster1, https://github.com/codahale/bcrypt-ruby is a good option (and decent examples).
mixel has quit [Quit: mixel]
Xeago has quit [Remote host closed the connection]
rburton- has joined #ruby
vlad_starkov has joined #ruby
chrishough has quit [Quit: chrishough]
freerobby has quit [Quit: Leaving.]
ryanclark has quit [Quit: ryanclark]
mikepack has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
pyx has joined #ruby
mmitchell has joined #ruby
brunoro has quit [Ping timeout: 252 seconds]
benwoody has joined #ruby
wyhaines has quit [Remote host closed the connection]
kinginky has joined #ruby
nezumi has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
wedgex has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
Michae___ has quit [Remote host closed the connection]
mmitchell has quit [Ping timeout: 248 seconds]
<kinginky> i'm writing something for a client, storing UTC date/times in the DB. he wants these displayed in EST. i'm using Sequel. does anyone know of a simple way to do this?
mixel has joined #ruby
nik_-_ has quit [Quit: nik_-_]
timkohrumel has joined #ruby
chris___ has joined #ruby
aki1 has quit [Ping timeout: 276 seconds]
mixel has quit [Client Quit]
_nitti has joined #ruby
mixel has joined #ruby
tomsthumb has quit [Quit: Leaving.]
justsee has quit [Ping timeout: 260 seconds]
Yakko has quit [Remote host closed the connection]
brunoro has joined #ruby
huoxito has quit [Read error: Connection reset by peer]
adamjleonard has joined #ruby
pyx has quit [Quit: WeeChat 0.4.0]
Spooner has quit [Remote host closed the connection]
jduan1981 has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
DaniG2k has quit [Quit: Leaving]
kofno has joined #ruby
Guedes has joined #ruby
hach has joined #ruby
_nitti has quit [Ping timeout: 258 seconds]
predator217 has joined #ruby
c0rn_ has joined #ruby
c0rn has quit [Read error: Connection reset by peer]
c0rn_ is now known as c0rn
saschagehlich has joined #ruby
aki1 has joined #ruby
mercwithamouth has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
Rym has joined #ruby
kofno has quit [Remote host closed the connection]
thetristan has quit [Quit: thetristan]
GOMADWarrior has quit [Ping timeout: 255 seconds]
brunoro has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
chris___ has quit [Remote host closed the connection]
ukd1 has joined #ruby
Tricon has joined #ruby
Cultofmetatron has joined #ruby
yekta has quit [Quit: yekta]
Astral_ has joined #ruby
cooldman224 has joined #ruby
zeade has quit [Quit: Leaving.]