Kricir has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
adamjleonard has quit [Quit: Leaving...]
Kricir has joined #ruby
mikepack has quit [Remote host closed the connection]
<werdnativ>
or any good resources for debugging memory leaks, generally?
postmodern has quit [Quit: Leaving]
adamjleonard has joined #ruby
postmodern has joined #ruby
julian-delphiki has joined #ruby
mixel has quit [Quit: mixel]
adamjleonard has quit [Remote host closed the connection]
adamjleonard has joined #ruby
julian-delphiki has quit [Client Quit]
wesside has quit [Quit: Computer has gone to sleep.]
julian-delphiki has joined #ruby
brianpWins has quit [Quit: brianpWins]
El_Diablo has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
El_Diablo has joined #ruby
kofno has joined #ruby
bean has quit [Ping timeout: 245 seconds]
yaroslav has joined #ruby
Loaft has joined #ruby
El_Diablo has quit [Remote host closed the connection]
bean has joined #ruby
BSaboia has joined #ruby
tangledhelix has joined #ruby
NiteRain has quit [Ping timeout: 264 seconds]
ariedler has quit [Remote host closed the connection]
julian-delphiki has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
chrisja has quit [Remote host closed the connection]
nat2610 has joined #ruby
AndChat| has quit [Ping timeout: 245 seconds]
tealmage has quit [Remote host closed the connection]
headius has joined #ruby
Banistergalaxy has joined #ruby
arubin has joined #ruby
Rumsteak has joined #ruby
mneorr has quit [Ping timeout: 246 seconds]
splittingred has joined #ruby
hackerdude has quit [Remote host closed the connection]
nik_-_ has quit [Quit: nik_-_]
Retistic has joined #ruby
nwertman has quit [Ping timeout: 258 seconds]
benlieb has quit [Quit: benlieb]
yshh has quit [Remote host closed the connection]
<Retistic>
is there a prettier way to do this: a == "hello" ? "hello" :
<Retistic>
"goodbye"
Cultofmetatron has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
generalissimo has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
slainer68 has quit [Remote host closed the connection]
glacification11 has quit [Ping timeout: 246 seconds]
headius has quit [Quit: headius]
omg|its|otr has joined #ruby
phayte has joined #ruby
rakl has quit [Quit: sleeping]
aryasam has joined #ruby
Hanmac has joined #ruby
osvico has joined #ruby
mockra has quit [Remote host closed the connection]
phayte has quit [Quit: phayte]
Hanmac1 has quit [Ping timeout: 276 seconds]
sambao21 has joined #ruby
phayte has joined #ruby
<Rennex>
Retistic: yeah, replace the second "hello" with a ;)
<gf3>
Also ActiveSupport has a StringInquirer which is cute
Voodoofish430 has quit [Quit: Leaving.]
<Retistic>
Rennex: were you intentionally drawing a smiley or is my irc client just being annoying?
<Rennex>
Retistic: yes i was
threesome has joined #ruby
<Retistic>
Rennex: ah :-), i'm really surprised there isn't a rubier way of doing that
butblack has joined #ruby
<butblack>
does anyone know a hardware irc channel?
dmiller has joined #ruby
<Rennex>
Retistic: i would try to rewrite it, for example "return 'goodbye' unless a == 'hello'; return a"
<Rennex>
actually make that "return a if a == 'hello'; return 'goodbye'" :)
<Retistic>
Rennex: but thats not equivalent
zxr has joined #ruby
JMcAfreak has quit [Ping timeout: 240 seconds]
<Retistic>
Rennex: that requires being in a method though
brianpWins has joined #ruby
centipedefarmer has joined #ruby
<Rennex>
Retistic: i know, but you can imagine varying it when you're assigning to a variable or something
__alpaca has joined #ruby
<Retistic>
Rennex: but then you're repeating the variable name, not really DRYer
<Rennex>
but if it's a small expression inside a big method call's parameters or something, there's probably not any really cleaner ways
ariedler has joined #ruby
<Rennex>
Retistic: it's drier than repeating the string though
<Rennex>
or just write a method that does that. you only have to come up with a good name for it, and that's unfortunately one of two hard things in programming ;)
<Retistic>
Rennex: depends on you're variable name ;-)
<Rennex>
true (though i'm not)
<Retistic>
in this case it's an object attribute, so much less dry than the small string
<Retistic>
Rennex: yeah should probably be some sort of an || operator
<Retistic>
maybe =|| ?
<Retistic>
hehe
jamesfung14 has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
<Rennex>
if you can change it so that you're comparing against nil rather than "hello", then you can use && ;)
<sam113101>
they're both interpreted scripting languages
<Spooner>
werdnativ, I suspect that it says that it requires 1.9.2 because 1.9.3 wasn't out (and 1.9.0 and 1.9.1 were cruddy).
<gr33n7007h>
I want to take up a language either ruby or python but don't know which one
<sam113101>
gr33n7007h: pick ruby then
<Rennex>
gr33n7007h: ruby ftw
<Spooner>
gr33n7007h, They are both used for similar purposes. Choose the one you like better.
<sam113101>
you're on the ruby channel, what do you expect
<sam113101>
look at different projects (such as web frameworks)
<sam113101>
django vs rails, etc.
<sam113101>
might help you choose
<gr33n7007h>
I can't get my head around the 'self' in python classes ruby I can
<Rennex>
we chose ruby despite knowing about python. But how many python coders ever learnt ruby and still stuck with python? :P
<gr33n7007h>
Good question
<Spooner>
Oh yeah, the endless need to explicitly have self. Something I really don't like about Python. I work in both languages, to get more work, but I prefer Ruby.
<Rennex>
and if you went with python, you'd have to deal with the whole 2.7 / 3.x split that still exists after what, over 5 years?
omg|its|otr has quit [Ping timeout: 272 seconds]
thomasl__ has quit [Remote host closed the connection]
peta_ has quit [Quit: peta_]
<Spooner>
Rennex, There are still plenty of people on Ruby 1.8.7 (though maybe less than Python 2.7)!
mercwithamouth has quit [Read error: Operation timed out]
<Rennex>
Spooner: yes but their code most likely works on 1.9
<sam113101>
also, not everything is an object, so sometimes you'll do test(something) instead of something.test
butblack has joined #ruby
<sam113101>
(in python)
<Rennex>
sam113101: yeah, python is full of stuff like that. len(x)? gimme a break
<Spooner>
Rennex, Nope. Case syntax and encoding are big differences, just like in Python.
<gr33n7007h>
I'm going to start learning ruby is there a good place to start?
c0rn has quit [Quit: Computer has gone to sleep.]
<sam113101>
I liked The Well-Grounded Rubyist, personaly (it's a book)
<Spooner>
Rennex, Yes, you do len(x), but internally there is a __len__ method on x. Why you can't just do x.len...???
jeebster has quit [Quit: Leaving.]
vertroa has quit [Quit: WeeChat 0.3.8]
ckrailo has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
<kenneth>
hey is this not how you would override initialize?
Domon has quit [Remote host closed the connection]
bubblehead has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
mockra has joined #ruby
__alpaca has quit [Remote host closed the connection]
Domon has joined #ruby
vlad_starkov has joined #ruby
niklasb has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
ehaliewicz has joined #ruby
cgcardona has quit [Quit: cgcardona]
BSaboia has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jbueza has quit [Quit: Leaving.]
adamjleonard has joined #ruby
adamjleonard has quit [Client Quit]
werdnativ has quit [Quit: werdnativ]
brianherman has quit [Quit: Leaving]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
atno has quit [Remote host closed the connection]
adamjleonard has joined #ruby
ossareh has quit [Ping timeout: 264 seconds]
hiyakashi has joined #ruby
hiyakashi has left #ruby [#ruby]
a_a_g has joined #ruby
a_a_g has quit [Client Quit]
jamesfung14 has quit [Ping timeout: 245 seconds]
osvico has quit [Ping timeout: 256 seconds]
aryasam has quit [Read error: Connection reset by peer]
akashj87 has joined #ruby
syskk has joined #ruby
<syskk>
is it normal that i need to sudo to install gems ?
<syskk>
i installed ruby with homebrew
<syskk>
on OS X
<ryanf>
syskk: yes
<ravster>
whats people's experiences with drip and jruby?
<ryanf>
if you install ruby with a non-ruby-specific package manager, your gems will generally be in a location that you don't have write access to without sudo
<ryanf>
(as opposed to using rvm or rbenv or rbfu to install ruby)
__alpaca has joined #ruby
<ravster>
I'm trying to get my development moving faster, and right now a new jvm is spinning up with every command I run. :(
tealmage has joined #ruby
threesome has quit [Ping timeout: 245 seconds]
__alpaca has quit [Remote host closed the connection]
brunoro has joined #ruby
<syskk>
mmm its a bit scary to give sudo access to some random gems
<syskk>
do gems have the ability to execute a script when you install them?
calatu has joined #ruby
joofsh has quit [Remote host closed the connection]
<yfeldblum>
syskk, yes
tealmage has quit [Ping timeout: 248 seconds]
<syskk>
scary :(
ravster has left #ruby [#ruby]
ravster has joined #ruby
Domon has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
<ryanf>
syskk: you might prefer using one of the ruby installation tools that put ruby in your home directory then
<ryanf>
rbenv is nice
<syskk>
ryanf: ok
<yfeldblum>
syskk, it's just like any package manager, though
<syskk>
I believe I have rvm installed
<yfeldblum>
syskk, except that it's free-for-all, not curated
<syskk>
ok
baba has joined #ruby
cod3r has quit [Ping timeout: 252 seconds]
richcollins has joined #ruby
<richcollins>
How do I install a gem to vendor/bundle after adding it to my Gemfile?
Kricir has quit [Remote host closed the connection]
tomsthumb has joined #ruby
Domon has joined #ruby
poga has joined #ruby
poga has quit [Remote host closed the connection]
Kricir has joined #ruby
poga has joined #ruby
v0n has joined #ruby
louism2_ has joined #ruby
<ericwood>
gem install <foo>
ElderFain has joined #ruby
<ElderFain>
Right now in ruby 1.9.3, Time.now says its 2013-05-02 03:19:59 +0000
<ElderFain>
but its certainly not tomorrow here right now
dev__ has joined #ruby
benlieb has quit [Quit: benlieb]
<louism2_>
Hey everyone, is there slicker way to build an array out of hash keys than to simply loop through the hash and to push them into a hash that you have already initialized? Thanks.https://gist.github.com/louism2/5499967
jonathanwallace has quit [Ping timeout: 240 seconds]
shammancer has joined #ruby
jonathanwallace has joined #ruby
kenneth has joined #ruby
swex_ has quit [Ping timeout: 272 seconds]
ariedler has quit [Remote host closed the connection]
wald0 has joined #ruby
dmiller has joined #ruby
shammancer has left #ruby [#ruby]
<wald0>
this can sound like a stupid question but, im searching examples of "how powerful is ruby" (basically searching applications/games/interfaces made in ruby in debian) and there's... nothing! lots of libs but only a few applications that i can count with my fingers
<wald0>
so my stupid question is... why is there's not ruby applications available in debian ? there's not applications ? (which i assume that "of course there's plenty of them!")
cyong has joined #ruby
<wald0>
not even in google, wtf ?
glacification11 has quit [Quit: glacification11]
apostatical06 has joined #ruby
cooldman224 has quit [Remote host closed the connection]
<ryanf>
people don't generally write desktop applications in ruby
<wald0>
why not ?
<wald0>
im thinking to learn ruby because seems very powerful, but i mostly want to do desktop applications
mahmoudimus has joined #ruby
jwang has joined #ruby
Kricir has joined #ruby
generali_ has joined #ruby
<wald0>
ryanf: why is that ?
ffranz has joined #ruby
mars26 has joined #ruby
louism2_ has quit [Quit: This computer has gone to sleep]
<ryanf>
I don't really know
<ryanf>
I don't think there's great library support for building GUIs
<ryanf>
which is probably because people don't do it
<ryanf>
and people probably don't do it because there isn't great library support
<ryanf>
I have no idea though, maybe people actually do it outside my bubble of web development
chandankumar has quit [Quit: Leaving]
pitzips has quit [Quit: Leaving]
rickruby has joined #ruby
<ryanf>
I think people have built non-trivial mac apps in macruby
<wald0>
mmh, but there's lot of libs like gtk for ruby, gtk should be enough for any desktop app interface
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<ryanf>
maybe rubyists have an aversion to ugly cross-platform UIs :)
<infecto>
wald0: you can do it and there is really no great reason you should not imo
mahmoudimus has joined #ruby
Kricir has quit [Ping timeout: 248 seconds]
xoxo has joined #ruby
dmiller has quit [Remote host closed the connection]
<wald0>
infecto: well, im trying to finally convince myself to learn ruby (instead of C) because i think that is a better option, but i have not found any "applications to check" (music players, desktop ui's, games, etc) in ruby, where i can found a few ones to make a look ? or there's is not ? (which i dont understand why not)
Bakala has joined #ruby
<infecto>
have you programmed before?
xoxo is now known as utter
<wald0>
i have do everything since now in bash, but actually i need something that brings me more possibilites
<infecto>
ruby or python is fine
utter has quit [Client Quit]
<wald0>
im mostly interested on desktop applications
<infecto>
python has a little more fleshed out in terms of libraries out side of web development
<infecto>
*is
<wald0>
well, seems like i dont need anything more than ffi right now
<wald0>
but i still not understand, why there's not applications made in ruby ? :/
mars26 has left #ruby [#ruby]
kofno has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<infecto>
what type of applications?
v0n has quit [Ping timeout: 272 seconds]
<wald0>
generic.. gui's, not like these "very simple kiddies press-button-like" ones but a bit more powerful
<wald0>
not fully-featured applications like inkscape or gimp, but something a bit in the middle
ravster has left #ruby [#ruby]
Dreamer3 has joined #ruby
tonini has joined #ruby
vlad_starkov has joined #ruby
hackerdude has quit [Remote host closed the connection]
jamescarr has joined #ruby
<jamescarr>
when using bundler, can I specify a git repo's branch as the src?
wallerdev has quit [Quit: wallerdev]
poga has quit [Remote host closed the connection]
Yakko has quit [Ping timeout: 252 seconds]
miso1337 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<ryanf>
yeah, I think you can do git: "reponame", branch: "foobar"
<wald0>
infecto: for some reason i never liked python, so i wanted to learn perl, but discovered ruby...
monkegjinni has quit [Remote host closed the connection]
<wald0>
infecto: but if ruby is so powreful and magnificent, why there's only focus on web on it ?
<infecto>
rails
blandflakes has quit [Ping timeout: 245 seconds]
<infecto>
slowly their are more robust libraries showing up for ruby but not anywhere close to what python has
<Anarch>
wald0: See http://wxruby.rubyforge.org/wiki/wiki.pl for a GUI toolkit with a very good reputation. I have never used it myself, however, so can't vouch for it personally.
classix has quit [Remote host closed the connection]
Spamchecker20 has joined #ruby
<wald0>
infecto: is not "ffi" just enough for use any C lib under ruby ?
classix has joined #ruby
<wald0>
Anarch: thx, ill make a look
wesside has quit [Quit: I think I heard an ice cream truck..]
<infecto>
that should have a good listing for just about any library you need
tomzx_mac has quit [Ping timeout: 252 seconds]
aflag has quit [Ping timeout: 248 seconds]
chrisramon has quit [Quit: chrisramon]
Spamchecker20 has left #ruby [#ruby]
tylersmith has quit [Remote host closed the connection]
browndawg has joined #ruby
twoism has quit [Ping timeout: 245 seconds]
ab1 has joined #ruby
Jackneill has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
blandflakes has quit [Remote host closed the connection]
icecandy has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
Kricir_ has quit [Remote host closed the connection]
aflag has joined #ruby
davedev24 has quit [Remote host closed the connection]
splittingred has quit [Quit: splittingred]
nickchow has joined #ruby
nat2610 has quit [Quit: Leaving.]
poincare101 has quit [Quit: Leaving.]
centipedefarmer has quit [Remote host closed the connection]
mengu_ has quit [Quit: This computer has gone to sleep]
saiju has joined #ruby
browndawg has quit [Quit: Leaving.]
codecop has joined #ruby
DonRichie has joined #ruby
justinmcp has quit [Remote host closed the connection]
Bofu2U has quit [Read error: Connection reset by peer]
Bofu2U has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
mpereira has quit [Ping timeout: 256 seconds]
corehook has joined #ruby
corehook has quit [Max SendQ exceeded]
mockra has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
cyong has quit [Quit: Leaving.]
girija has joined #ruby
browndawg has joined #ruby
huoxito has quit [Quit: Leaving]
lethjakman has quit [Ping timeout: 272 seconds]
__alpaca has joined #ruby
justinmcp has joined #ruby
robscomputer has joined #ruby
browndawg has quit [Quit: Leaving.]
robscomputer has quit [Remote host closed the connection]
robscomputer has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
ab1 has quit [Ping timeout: 252 seconds]
Matip has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
mneorr has joined #ruby
sandGorgon has joined #ruby
__alpaca has quit [Ping timeout: 252 seconds]
adamjleonard has quit [Quit: Leaving...]
DonRichie has quit [Quit: Verlassend]
corehook has joined #ruby
corehook has quit [Max SendQ exceeded]
robscomputer has quit [Remote host closed the connection]
Davey has joined #ruby
io_syl has joined #ruby
ToApolytoXaos has joined #ruby
mklappstuhl has quit [Ping timeout: 272 seconds]
Mon_Ouie has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
<ElderFain>
ugh why does Thin hate me
banjara has joined #ruby
AgentWillyWonka has joined #ruby
girija has quit [Ping timeout: 245 seconds]
<epochwolf>
ElderFain: well, two possiblities come to mind, either you're eating too much or you have a serious medical issue that should be looked at.
<epochwolf>
in my case, both
browndawg has joined #ruby
<ElderFain>
I've got some data thats iso-8859-1 cause some guy has kanji or what not in his name
brianpWins has joined #ruby
<ElderFain>
so haml won't render anything even though I force encoding on the strings to all be iso8859
<ElderFain>
so I'm trying to figure how where the hell the utf8 is coming from thats making it complain
<epochwolf>
ElderFain: um… force encoding doesn't force anything to be valid.
gstamp has quit [Quit: Computer has gone to sleep.]
<ElderFain>
incompatible character encodings: UTF-8 and ISO-8859-1
Kruppe has quit [Ping timeout: 268 seconds]
<ElderFain>
its not a matter of validity, its a matter of compatability
aflag has quit [Quit: leaving]
<epochwolf>
ElderFain: well, you'll have issues with validity if you use force_encoding.
dmiller has joined #ruby
mahmoudimus has joined #ruby
<epochwolf>
ElderFain: which framework are you using for this?
<epochwolf>
ElderFain: what's the encoding of @page_title?
jimg has joined #ruby
<ElderFain>
i stripped out all those lines
<ElderFain>
and now it bitches about !!! Strict
<epochwolf>
Sorry. :( I've got to go to bed so you'll have to figure it out from here.
<ElderFain>
thanks for trying see ya
<epochwolf>
I'm pretty sure you're hitting an encoding problem with the template and some other part of the application.
<epochwolf>
Sinatra and it's friends default to utf-8 (and they don't respect ruby's default encoding) so you're going to be fighting an uphill battle
<ElderFain>
I'm going to cut out the asian dude
<ElderFain>
so I can stop worrying about iso whatever
<epochwolf>
There's probably a config setting buried somewhere.
<epochwolf>
ElderFain: just do a losy conversion to utf.
tvw has joined #ruby
<ElderFain>
oh, force the whole hash to utf8
<ElderFain>
sure okay
<epochwolf>
That's the general worthflow for most web apps. The japanese tends to get a little peeved because some of their characters aren't supported.
girija has quit [Read error: Connection reset by peer]
girija has joined #ruby
tylersmith has joined #ruby
rton has joined #ruby
Heero has quit [Ping timeout: 264 seconds]
dmiller has joined #ruby
hogeo has joined #ruby
rakl has joined #ruby
<ElderFain>
ugh I thought hash order was maintained in 1.9
sayan has joined #ruby
Faris9 has quit [Ping timeout: 272 seconds]
tylersmith has quit [Ping timeout: 276 seconds]
robscomputer has joined #ruby
davetherat has quit [Read error: Connection reset by peer]
davetherat has joined #ruby
akashj87 has quit [Disconnected by services]
jbpros has joined #ruby
miso1337 has quit [Quit: afk]
dkannan has joined #ruby
akashj87 has joined #ruby
gstamp has joined #ruby
miso1337 has joined #ruby
jamesfung14 has quit [Ping timeout: 272 seconds]
yashshah has quit [Ping timeout: 264 seconds]
bluOxigen has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
sayan has quit [Read error: Connection reset by peer]
jimg has quit [Remote host closed the connection]
blaxter_ has joined #ruby
akashj87 has quit [Ping timeout: 245 seconds]
jbpros has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 256 seconds]
jbpros has joined #ruby
miso1337 has quit [Ping timeout: 256 seconds]
jonathanwallace has quit [Ping timeout: 268 seconds]
jonathanwallace has joined #ruby
nomenkun has quit [Remote host closed the connection]
__alpaca has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
dmiller has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
BizarreCake has joined #ruby
r0bglees0n has joined #ruby
noop has joined #ruby
vainohelvete has joined #ruby
__alpaca has quit [Ping timeout: 260 seconds]
dinoex has quit [Read error: Connection reset by peer]
workmad3 has joined #ruby
ZachBeta has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
dinoex has joined #ruby
Z_Mass has quit [Quit: Leaving]
DrCode has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
hogeo has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
jamescarr has quit [Quit: jamescarr]
DrCode has joined #ruby
sayan has joined #ruby
haxrbyte_ has joined #ruby
evxd has quit [Ping timeout: 252 seconds]
pduin has joined #ruby
evxd has joined #ruby
dev__ has joined #ruby
hogeo has quit [Ping timeout: 256 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
haxrbyte has quit [Ping timeout: 264 seconds]
tealmage has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
ab1 has quit [Ping timeout: 260 seconds]
ElderFain has quit [Quit: ElderFain]
Morkel has joined #ruby
jamescarr has joined #ruby
Ch4rAss has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
Ch4rAss has left #ruby [#ruby]
mafolz has joined #ruby
dev__ has quit [Ping timeout: 240 seconds]
Retistic has quit [Quit: Retistic]
jprovazn has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
Criztian has joined #ruby
baba has quit [Ping timeout: 252 seconds]
predator217 has quit [Quit: leaving]
predator117 has joined #ruby
nickchow has quit [Ping timeout: 240 seconds]
jimg has joined #ruby
miso1337 has joined #ruby
threesome has joined #ruby
nickchow has joined #ruby
rakl has quit [Quit: sleeping]
jovy88 has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
jovy88 has joined #ruby
Elhu has joined #ruby
pevjan has joined #ruby
phrame has quit [Ping timeout: 248 seconds]
miso1337 has quit [Quit: unplugging]
dev__ has joined #ruby
phrame has joined #ruby
chiel has quit [Remote host closed the connection]
s2013 has quit []
rakl has joined #ruby
baba has joined #ruby
jimg has quit [Ping timeout: 272 seconds]
Criztian has quit [Remote host closed the connection]
maxmanders has joined #ruby
mneorr has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
filipe has joined #ruby
Morkel_ has joined #ruby
maxmanders has quit [Client Quit]
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
adkron_ has joined #ruby
mneorr has quit [Ping timeout: 276 seconds]
adkron has quit [Ping timeout: 245 seconds]
asuka has quit [Ping timeout: 260 seconds]
timonv has quit [Remote host closed the connection]
locriani has quit [Remote host closed the connection]
ZachBeta has quit [Read error: Connection reset by peer]
ZachBeta has joined #ruby
sumark_ is now known as sumark
blacktulip has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
monkegji_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
Tolman has quit [Quit: Tolman]
pevjan has quit [Remote host closed the connection]
foofoobar has joined #ruby
dhruvasagar has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
monkegji_ has quit [Read error: Connection reset by peer]
BizarreCake has quit [Quit: Leaving]
HecAtic has quit [Quit: HecAtic]
iaj has quit [Ping timeout: 264 seconds]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
HecAtic has joined #ruby
freewiza_ has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
iaj has joined #ruby
jduan1981 has joined #ruby
nat2610 has quit [Quit: Leaving.]
skroon has joined #ruby
yashshah has joined #ruby
calatu has quit [Ping timeout: 245 seconds]
RORgasm_ has joined #ruby
Retistic has joined #ruby
monkegjinni has joined #ruby
tommyvyo has joined #ruby
tonini has joined #ruby
bigkevmcd has joined #ruby
musl_ has joined #ruby
freewizard has quit [Ping timeout: 272 seconds]
alanp_ has joined #ruby
kreantos has joined #ruby
musl has quit [Read error: Connection reset by peer]
RORgasm has quit [Read error: Connection reset by peer]
alanp has quit [Quit: No Ping reply in 180 seconds.]
saiju has quit [Ping timeout: 256 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
HecAtic has quit [Quit: HecAtic]
saiju has joined #ruby
HecAtic has joined #ruby
andikr has joined #ruby
__alpaca has joined #ruby
browndawg has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
nickchow has quit [Quit: Leaving...]
ehaliewicz has quit [Ping timeout: 276 seconds]
asuka has joined #ruby
mklappstuhl has joined #ruby
tommylommykins has quit [Read error: Operation timed out]
__alpaca has quit [Ping timeout: 272 seconds]
sayan has quit [Read error: Connection reset by peer]
persand has joined #ruby
monkegjinni has quit [Ping timeout: 272 seconds]
tommylommykins has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
leonidlm has joined #ruby
mklappstuhl has joined #ruby
mosez has joined #ruby
tyl has quit [Quit: Computer has gone to sleep.]
blandflakes_ has quit [Ping timeout: 245 seconds]
HecAtic has quit [Quit: HecAtic]
mosez has quit [Client Quit]
HecAtic has joined #ruby
mosez has joined #ruby
Kurion has joined #ruby
hogeo has joined #ruby
tealmage has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
mars26 has joined #ruby
freewiza_ is now known as freewizard
blaxter_ is now known as blaxter
nickchow has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
teclator has joined #ruby
mockra has joined #ruby
tealmage has quit [Ping timeout: 245 seconds]
jduan1981 has joined #ruby
primer^ has joined #ruby
HecAtic has quit [Quit: HecAtic]
mockra has quit [Ping timeout: 240 seconds]
cantonic has joined #ruby
Virunga has joined #ruby
HecAtic has joined #ruby
mars26 has quit [Read error: Connection reset by peer]
yashshah has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
dhruvasagar has joined #ruby
mars26 has joined #ruby
threesome has joined #ruby
yashshah has joined #ruby
tommyvyo has joined #ruby
timonv has joined #ruby
lewix is now known as lewix_away
unflores has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
timonv has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
bigkevmcd has joined #ruby
HecAtic has quit [Quit: HecAtic]
HecAtic has joined #ruby
endomorphism_ has joined #ruby
persand has quit [Ping timeout: 248 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
nkts has quit [Quit: -]
hogeo has quit [Remote host closed the connection]
endomorphism has quit [Ping timeout: 248 seconds]
troessner has joined #ruby
dr_bob has joined #ruby
mootpointer has joined #ruby
__alpaca has joined #ruby
felipebalbi has joined #ruby
browndawg has quit [Quit: Leaving.]
persand has joined #ruby
Elhu has joined #ruby
<felipebalbi>
hi, I'm writing a small script which, eventually, will write to an output file. I want the script to treat '--' as a signal to write the output to STDOUT instead, but I dont want other parts of the script to know about that. Is there any clean way to handle it ? Maybe convert the ouput file string into an IO object ?
<felipebalbi>
so the script only handles IO objects (since STDOUT is a IO instance)
mootpointer has quit [Client Quit]
browndawg has joined #ruby
<hoelzro>
felipebalbi: open the given filename and use the IO object from that
guitsaru has quit [Ping timeout: 240 seconds]
jduan1981 has quit [Ping timeout: 272 seconds]
<hoelzro>
if using standard output, pass $stdout to the method(s) instead
<felipebalbi>
hoelzro: thanks :-) I'll try that out
mootpointer has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
Rumsteak has quit [Quit: Rumsteak]
__alpaca has quit [Remote host closed the connection]
pi3r has joined #ruby
sebastianb has quit [Ping timeout: 246 seconds]
jamescarr has quit [Quit: jamescarr]
goganchic has joined #ruby
goganchic has quit [Client Quit]
infecto has quit [Ping timeout: 256 seconds]
infecto has joined #ruby
ghr has joined #ruby
charliesome has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
mootpointer has joined #ruby
akashj87 has joined #ruby
<felipebalbi>
hoelzro: working fine. I can just ignore the type and use 'output.puts' and similar ;-)
jcrawford has quit [Ping timeout: 258 seconds]
marr has joined #ruby
Cultofmetatron has joined #ruby
willbradley has left #ruby [#ruby]
niceguyjames has joined #ruby
niceguyjames has quit [Client Quit]
niceguyjames has joined #ruby
sebastianb has joined #ruby
filipe has quit [Ping timeout: 240 seconds]
jcrawford has joined #ruby
HecAtic has quit [Quit: Àá¼ö]
dhruvasagar has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
mntzn has joined #ruby
whitedawg has quit [Quit: Leaving.]
camilasan has joined #ruby
rakl has quit [Quit: sleeping]
<mntzn>
Hi, I'm do resp = Net::HTTP.get_response(uri) for an not correct url intentionally, resp.message in this case contains "" and resp.message.nil? returns false, why is that?
mneorr has joined #ruby
Shrink has quit [Ping timeout: 240 seconds]
<Olipro>
if my method has been passed a block, is there a way to determine how many arguments were passed with that block?
<Olipro>
i.e. if someone calls my method with: my_method { |x,y| do_something_else(x,y) } - can I detect that they passed two args in that block>
<hoelzro>
Olipro: yes
<hoelzro>
you need to capture the block as a Proc and ask its arity
mahmoudimus has quit [Quit: Computer has gone to sleep.]
freewiza_ has joined #ruby
<Pequinno>
how would i use that to get <p> tag content with id="p_tag"?
whitedawg has joined #ruby
nil1511 has joined #ruby
freewizard has quit [Read error: Connection reset by peer]
krz has quit [Ping timeout: 252 seconds]
atno has quit [Remote host closed the connection]
foofoobar has joined #ruby
atno has joined #ruby
<Virunga>
Pequinno: study a bit of regular expressions and you'll learn it
<Virunga>
or do as DefV has said
bluenemo has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
krz has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
GeissT has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Ping timeout: 272 seconds]
arya has quit [Ping timeout: 248 seconds]
linusoleander has quit [Quit: linusoleander]
tonini has joined #ruby
<shevy>
Pequinno via () in a regex you can capture
arya has joined #ruby
mklappstuhl has joined #ruby
<shevy>
you can then reference to the content via $1, $2 etc
<ChristianS>
but regexes are rarely suitable for parsing html/xml
<shevy>
or, through MatchData, like o = MatchData.new; o[0], o[1] etc...
Immatix has left #ruby ["WeeChat 0.3.7"]
syskk has quit [Quit: syskk]
d11wtq has joined #ruby
GeissT has joined #ruby
gregorg has quit [Quit: Quitte]
Neomex has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
adamjleonard has quit [Quit: Leaving...]
tonini has quit [Ping timeout: 248 seconds]
nkts has joined #ruby
jnoob22 has joined #ruby
Shrink has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
marr has quit [Ping timeout: 252 seconds]
Neomex has quit [Quit: Neomex]
ericwood has quit [Ping timeout: 260 seconds]
robottinosino has quit [Ping timeout: 260 seconds]
icecandy has quit [Remote host closed the connection]
sandGorgon has quit [Ping timeout: 246 seconds]
nkts is now known as marius
Xeago has joined #ruby
timmow has joined #ruby
GeissT has quit [Ping timeout: 256 seconds]
ToApolytoXaos has quit [Quit: Leaving]
niceguy1234 has joined #ruby
Umren_ has joined #ruby
ericwood has joined #ruby
robottinosino has joined #ruby
mmitchell has joined #ruby
Umren has quit [Ping timeout: 264 seconds]
mmitchell has quit [Remote host closed the connection]
Squarepy has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jimzar has joined #ruby
<jimzar>
Hello everybody, I'm new to ruby and I'm looking for a book (not reference - something easy to read and understand the philosophy of ruby). Any suggestions? :)
<felipebalbi>
ghr: hmm, I see. I looked at rugged at bit, but it doesn't handle diffs yet
<felipebalbi>
ghr: my script is trying to extract a few statistics out from a git repository and added lines, removed lines and modified files are some of them
tealmage has joined #ruby
<ghr>
Hmm, maybe GitHub are still using grit for their diffs then
<felipebalbi>
ghr: grit is playing dumb with me... it fails miserably to get a log with more than a few commits
tealmage has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
<felipebalbi>
ghr: using the linux kernel source as a repo (yes, I'm a kernel engineer who likes to play with ruby every now and again)
monkegjinni has quit [Read error: No route to host]
monkegjinni has joined #ruby
<ghr>
Yeah I didn't find it particularly easy to work with
<ghr>
Ah yeah I remember having to specify which branch I wanted to inspect (L74) i.read_tree 'master'
<felipebalbi>
ghr: alright, guess I'll have to continue using grit for a while longer then
Targen has quit [Ping timeout: 260 seconds]
tealmage has quit [Ping timeout: 246 seconds]
sleetdrop has quit [Ping timeout: 264 seconds]
linusoleander has quit [Ping timeout: 252 seconds]
andikr has quit [Ping timeout: 268 seconds]
nplusp has quit [Ping timeout: 248 seconds]
<ghr>
It's worth looking through the source code
monkegjinni has quit [Ping timeout: 272 seconds]
tvw has quit []
wmoxam has quit [Ping timeout: 276 seconds]
tealmage has joined #ruby
corehook has joined #ruby
corehook has quit [Max SendQ exceeded]
andikr has joined #ruby
robottinosino has quit [Ping timeout: 255 seconds]
<felipebalbi>
ghr: will do
<felipebalbi>
cheers
syskk has joined #ruby
monkegjinni has joined #ruby
syskk has left #ruby [#ruby]
Leighton has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 256 seconds]
peta_ has quit [Remote host closed the connection]
peta_ has joined #ruby
robottinosino has joined #ruby
SAUCYSALAMANDER has quit [Ping timeout: 252 seconds]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
ferdev has quit [Ping timeout: 252 seconds]
hamakn has quit [Read error: Connection reset by peer]
monkegjinni has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
mikecmpbll has joined #ruby
Retistic has quit [Quit: Retistic]
Morkel has joined #ruby
Palantir has joined #ruby
ctp has joined #ruby
__alpaca has quit [Remote host closed the connection]
workmad3 has joined #ruby
marr has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
pskosinski has joined #ruby
jbpros has quit [Quit: jbpros]
jovy88 has joined #ruby
hamakn has quit [Remote host closed the connection]
Umren_ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
eregon has quit [Quit: No Ping reply in 180 seconds.]
tealmage has joined #ruby
eregon has joined #ruby
Umren has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
Pequinno has left #ruby [#ruby]
clocKwize has quit [Quit: clocKwize]
sandGorgon has joined #ruby
marius has quit [Quit: -]
CyberMaN has quit []
tealmage has quit [Ping timeout: 260 seconds]
__alpaca has joined #ruby
marr has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
aryasam has joined #ruby
wallerdev has joined #ruby
tealmage has joined #ruby
tealmage has quit [Read error: Connection reset by peer]
atyz has joined #ruby
marr has joined #ruby
tealmage has joined #ruby
charliesome has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
rton has joined #ruby
mneorr has quit [Remote host closed the connection]
chiel has joined #ruby
<felipebalbi>
ghr: alright, found the error. Grit can't handle signed tags ;-)
niceguyjames has joined #ruby
<ghr>
aha! oh dear
h8R has joined #ruby
<felipebalbi>
ghr: hmm, maybe just --no-merges will do the trick, let me try
tealmage has quit [Ping timeout: 256 seconds]
mmozuras has joined #ruby
predator117 has quit [Quit: leaving]
predator117 has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
freewiza_ has quit [Remote host closed the connection]
browndawg has joined #ruby
Criztian has quit [Remote host closed the connection]
tonini has joined #ruby
mengu has joined #ruby
snuglepuss has joined #ruby
freeayu has joined #ruby
dev__ has quit [Ping timeout: 240 seconds]
mmozuras has quit [Ping timeout: 245 seconds]
dev__ has joined #ruby
phayte has joined #ruby
divout has quit [Remote host closed the connection]
tvw has joined #ruby
Pequinno has joined #ruby
Pequinno has left #ruby [#ruby]
akashj87 has quit [Quit: brb]
tonini has quit [Ping timeout: 248 seconds]
monkegjinni has joined #ruby
vlad_starkov has joined #ruby
dustint has joined #ruby
mark_locklear has joined #ruby
<wald0>
im trying a few demo applications made in ruby to finally convince me to learn ruby... actually im trying a ruby-gnome2 app but it cannot run, im in debian wheezy and it doesn't launches, seems like the "require gnome2" is not valid, but i have installed it, i need to run any "ruby update" thing before ?
nil1511 has quit [Read error: Connection reset by peer]
nil1511 has joined #ruby
__alpaca has quit [Remote host closed the connection]
<wald0>
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- sample (LoadError)
vlad_starkov has quit [Ping timeout: 268 seconds]
andikr has quit [Ping timeout: 268 seconds]
vlad_sta_ has joined #ruby
mljsimone has joined #ruby
kf8a has joined #ruby
tomzx_mac has joined #ruby
tonini has joined #ruby
jnoob22 has quit [Remote host closed the connection]
robottinosino has quit [Ping timeout: 256 seconds]
linusoleander has joined #ruby
Tricon has joined #ruby
yannis has joined #ruby
jimzar has quit [Ping timeout: 268 seconds]
huoxito has joined #ruby
mneorr has joined #ruby
marr has quit [Ping timeout: 268 seconds]
marr has joined #ruby
bluenemo has quit [Quit: Verlassend]
nil1511 has quit [Remote host closed the connection]
divout has joined #ruby
linusoleander has quit [Read error: Connection reset by peer]
phayte has quit [Quit: phayte]
linusoleander has joined #ruby
phayte has joined #ruby
aryasam has quit [Read error: Connection reset by peer]
linusoleander has quit [Client Quit]
aryasam has joined #ruby
dimka is now known as epta
teedex has joined #ruby
akhet has quit [Remote host closed the connection]
F1skr has joined #ruby
yeban has quit [Ping timeout: 276 seconds]
yeban has joined #ruby
yshh has quit [Remote host closed the connection]
jnoob22 has joined #ruby
clocKwize has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
jbpros has joined #ruby
dkannan has quit [Quit: dkannan]
mavcunha has joined #ruby
vlad_starkov has joined #ruby
browndawg has quit [Ping timeout: 272 seconds]
huoxito has quit [Quit: Leaving]
<wald0>
mmh, searching for "application demos" seems like "luz" is a good one
leonidlm has quit [Ping timeout: 260 seconds]
Kruppe has joined #ruby
tealmage has joined #ruby
AndChat| has joined #ruby
monkegjinni has quit [Ping timeout: 240 seconds]
carloslopes has joined #ruby
foofoobar has quit [Quit: Computer has gone to sleep.]
mikestok has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
jimzar has joined #ruby
radic has quit [Remote host closed the connection]
leonidlm has joined #ruby
mljsimon_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
NiteRain has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 256 seconds]
marr has joined #ruby
mljsimone has quit [Ping timeout: 272 seconds]
yashshah has quit [Ping timeout: 248 seconds]
jimzar has quit [Ping timeout: 248 seconds]
Matip has joined #ruby
browndawg has joined #ruby
dustint has quit [Quit: Leaving]
dustint has joined #ruby
teedex has quit [Remote host closed the connection]
teedex has joined #ruby
browndawg has left #ruby [#ruby]
jokke_ has joined #ruby
<jokke_>
hey, is there a method for "nth successor" of a string?
<jokke_>
(other than n.times(string.succ)
mmozuras has joined #ruby
freerobby has joined #ruby
<jokke_>
*{}
corehook has joined #ruby
corehook has quit [Max SendQ exceeded]
vlad_starkov has quit [Remote host closed the connection]
jamescarr has joined #ruby
<clocKwize>
jokke_: doesn't look like it
felipebalbi has left #ruby [#ruby]
brtdv has joined #ruby
akashj87 has joined #ruby
corehook has joined #ruby
corehook has quit [Max SendQ exceeded]
<clocKwize>
jokke_: I think the way it works, you just have to call it until it reaches your n
<wald0>
so crystal is something like a compiler for ruby ?
codecop has quit [Remote host closed the connection]
cmarques has joined #ruby
monkegjinni has quit [Read error: Operation timed out]
yshh has quit [Ping timeout: 240 seconds]
pkh has joined #ruby
jimzar has quit [Ping timeout: 245 seconds]
Targen has joined #ruby
mmitchell has joined #ruby
marr has quit [Ping timeout: 272 seconds]
statarb3 has quit [Ping timeout: 256 seconds]
NiteRain has joined #ruby
marr has joined #ruby
monkegjinni has joined #ruby
mmitchell has quit [Remote host closed the connection]
jamescarr has quit [Quit: jamescarr]
ariedler has joined #ruby
<Spooner>
wald0, It is possible that the code is written for 1.8.7, since the way require works has changed.
bluenemo has quit [Quit: Verlassend]
<Spooner>
wald0, Try using "ruby -I. script.rb" instead.
sailias has quit [Ping timeout: 252 seconds]
<wald0>
$ ruby -I. player.rb
<wald0>
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- gnome2 (LoadError)
<wald0>
like this, Spooner ?
Uranio has joined #ruby
Z_Mass has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
<wald0>
btw, im using "molokai" for gvim colorscheme for ruby, is there any better suggested one ?
norm has joined #ruby
jimzar has joined #ruby
KevinSjoberg has joined #ruby
<norm>
got a question about variable scopes in a Proc (http://pastie.org/7753027). i understand why it's happening, i just don't have a good work-around
<Spooner>
wald0, Like that yes, but then it fails to load the gem. Odd.
girija has quit [Ping timeout: 268 seconds]
<Spooner>
norm, For one, in Ruby we prefer: ["apple", "banana", "cantelope"].each do |fruit|
<norm>
Spooner: yeah i just noticed that works fine
<norm>
Spooner: didn't realize there was a difference
<Spooner>
I didn't either. Literally no-one uses 'for' in Ruby though.
wolcanus has joined #ruby
Vert has quit [Remote host closed the connection]
<Spooner>
wald0, What gem and example are you using? I'll try iy.
<Spooner>
*try it
sandGorgon has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
skroon has quit [Ping timeout: 246 seconds]
failshell has joined #ruby
<Spooner>
norm, I assume that for changes a single variable in the general scope, so at the end, it is set to the last value in the array. A block creates variables within it, so you create a closure.
<norm>
yeah
Nisstyre has quit [Ping timeout: 252 seconds]
tvw has quit [Ping timeout: 276 seconds]
davedev24 has joined #ruby
mntzn has quit [Quit: Lost terminal]
<Spooner>
Well, all the procs created are closures, but the ones in a block are different closures ;)
__alpaca has joined #ruby
Nisstyre has joined #ruby
hamakn has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 240 seconds]
mootpointer has joined #ruby
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
tonini has quit [Quit: Lost terminal]
hamakn has joined #ruby
MarioEIU has joined #ruby
MarioEIU has left #ruby [#ruby]
sailias has joined #ruby
tvw has joined #ruby
Spooner has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
clocKwize has joined #ruby
Spooner has joined #ruby
johnnyfuchs has joined #ruby
Spooner has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 248 seconds]
failshell has joined #ruby
gaahrdner has joined #ruby
Palantir has joined #ruby
Nichod has joined #ruby
<Nichod>
If someone is around I need a bit of help trying to get jquery datepicker to work
robglees0n has quit [Read error: Connection reset by peer]
freewizard has quit [Ping timeout: 248 seconds]
aryasam has joined #ruby
johchri has joined #ruby
alex__c2022 has quit [Ping timeout: 252 seconds]
alex__c2022_ is now known as alex__c2022
rakl has joined #ruby
johnnyfuchs1 has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
workmad3 has joined #ruby
johnnyfuchs has joined #ruby
Gooder` has quit [Ping timeout: 255 seconds]
brtdv has quit [Ping timeout: 252 seconds]
icecandy has joined #ruby
carloslopes has quit [Remote host closed the connection]
pitzips has joined #ruby
momomomomo has quit [Quit: momomomomo]
jbpros has quit [Quit: jbpros]
mklappstuhl has joined #ruby
corehook has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
BSaboia has joined #ruby
Caius has quit [Ping timeout: 252 seconds]
d2dchat has joined #ruby
Todd- has joined #ruby
wolcanus has quit [Remote host closed the connection]
wroathe has joined #ruby
Todd- has quit [Quit: Changing server]
Caius has joined #ruby
<wroathe>
I've got serialized data in a row in my database. It was serialized using PHP's serialize function. How would I unserialize that data in ruby?
theRoUS has joined #ruby
Criztian has quit [Remote host closed the connection]
<ericwood>
good question, the PHP docs don't seem to say wtf is actually happening
Todd- has joined #ruby
<wroathe>
Well
<wroathe>
I've heard that Marshal.load would do what I need
afei has joined #ruby
<ericwood>
it's very PHP-specific, it seems, kind of like how Marshall.dump in ruby is
<robgleeson>
Virunga: oh not you too :) This observation is made a million times a month on here by new programmers
akashj87 has quit [Ping timeout: 245 seconds]
<Virunga>
ahahahah, i've just found it
bsaboia_ has joined #ruby
<robgleeson>
Virunga: basically it's the way floating points work in computers, you need to read about it. What can be represented precisely in base 10 cannot necessarily be expressed precisely in base 2, so you get these kind of approximations.
BSaboia has quit [Remote host closed the connection]
bsaboia_ has quit [Remote host closed the connection]
sayan has joined #ruby
jdunck has joined #ruby
tommyvyo has quit [Quit:]
BSaboia has joined #ruby
cmarques has joined #ruby
<Virunga>
i read it much time ago, and forgot it
atyz has quit [Quit: Leaving...]
girija has joined #ruby
wsterling has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 268 seconds]
wsterling has joined #ruby
statarb3 has joined #ruby
musl_ has quit [Quit: WeeChat 0.4.0]
Paradox has quit [Ping timeout: 258 seconds]
musl has joined #ruby
jaclinuxhelp has joined #ruby
Paradox has joined #ruby
<jaclinuxhelp>
any pointer (URL) to tutorials on spinach bdd? i'm looking at official places and cant find any help about using the "Background:" keyword on the .feature file (i'm completely newbbie)
robscomputer has joined #ruby
<Uranio>
ow man! what spell must casted for compile nokogiri on debian
<Progster>
anyone know of an appointment scheduling SASS? I need something that will "aggregate" all of the current installers I have, so that all a user has to do is book a "10:00AM" slot as long as one of my installers still has a time slot open for that time. Usually I see calendar/scheduling apps that let the user select who they want to service them, which works well for something like a hair salon, but not for my use case. I'd appreciate any ideas
<infecto>
Making a maid service eh?
<infecto>
joking
<Progster>
haha that would be fun lol
timkohrumel has left #ruby [#ruby]
mose has quit [Quit: brb]
mercwithamouth has quit [Ping timeout: 245 seconds]
dr_bob has left #ruby [#ruby]
vlad_sta_ has joined #ruby
denbuzze41 has joined #ruby
troessner has joined #ruby
<shevy>
Spooner and injekt are the two cleverest people here
<shevy>
hmm we kinda lost apeiros ...
<infecto>
whats the difference betwen #ruby and #ruby-lang?
sambao21 has joined #ruby
<shevy>
infecto the people here invite you to a glass of beer and pay
<shevy>
infecto the people on #ruby-lang invite you to a glass of beer - and you pay
denbuzze4 has quit [Ping timeout: 260 seconds]
<infecto>
hah
<shevy>
#ruby-lang is stricter
<shevy>
you must be registered before you can talk
<Spooner>
shevy, Only because Hanmac is asleep.
<shevy>
it is also the "official" channel
<shevy>
and has only 40% of the people here :(
<shevy>
but some in #ruby-lang never come to #ruby, and some in #ruby never go to #ruby-lang
<infecto>
hah interesting
<Spooner>
ruby-lang is for people that hack Ruby source, not for people who code _in_ Ruby.
* Hanmac
wakes up
rupee has joined #ruby
<shevy>
Spooner Hanmac is a little bit insane sometimes, his code!
twoism has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
<shevy>
it's like perl in ruby
drodicus1 has quit [Quit: Leaving.]
<shevy>
he even makes ruby core team include his suggestions :(
pitzips has joined #ruby
andikr has quit [Read error: Connection reset by peer]
drodicus1 has joined #ruby
ab1 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
apod has quit [Quit: apod]
* Hanmac
is very convictive ;P
sambao21 has quit [Ping timeout: 240 seconds]
foofoobar has quit [Quit: Computer has gone to sleep.]
<shevy>
he also coins new words!
linusoleander has joined #ruby
<shevy>
I have to finish rewriting my largest project and I dont wanna anymore
mklappstuhl has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
marr has quit [Ping timeout: 264 seconds]
cathoderay has quit [Quit: leaving]
atyz has joined #ruby
freewizard has joined #ruby
jamescarr has quit [Quit: jamescarr]
jduan1981 has joined #ruby
Tolnaiz has joined #ruby
camilasan has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
nplusp has joined #ruby
<robgleeson>
Hanmac: have you seen newest adventure time?
ab2 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<Hanmac>
you mean princess potluck?
thomasl__ has joined #ruby
robgleeson has quit [Disconnected by services]
dustint has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
guitsaru_ has joined #ruby
ColKurtz has joined #ruby
pskosinski has joined #ruby
ab1 has quit [Ping timeout: 252 seconds]
tealmage has quit [Remote host closed the connection]
robgleeson has joined #ruby
<robgleeson>
.
<robgleeson>
Hanmac: no i mean the 19th episode -- it should be out by now
tealmage has joined #ruby
tealmage has quit [Read error: Connection reset by peer]
<felipebalbi>
Hi, I have another question. I wanted to use Ruby RSpec to test a running linux kernel on a remote platform (say, beaglebone). I was wondering if I could have some extensions to RSpec so that I execute commands on the remote platform via a serial connection. The idea of using RSpec is that I could leverage a bunch of infrastructure that's already built into it for, e.g. generating output reports, running tests ramdomically, etc. Any suggestions on ho
gaahrdner has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 248 seconds]
ab1 has joined #ruby
jgarvey has joined #ruby
generali_ has quit [Read error: Connection reset by peer]
Guest94394 is now known as fandango
ab4 has quit [Ping timeout: 268 seconds]
generali_ has joined #ruby
Eiam has joined #ruby
arya_ has quit [Ping timeout: 252 seconds]
ctp_ has quit [Ping timeout: 260 seconds]
<aedornm>
What's a good XML editor with automatic XSD generation that can support SOAP 1.2 elements? If anyone knows of one..
pkh has quit [Read error: Connection timed out]
nwertman has quit [Ping timeout: 256 seconds]
dummies_freelanc has joined #ruby
dross has quit [Read error: Operation timed out]
locriani has quit [Remote host closed the connection]
arya_ has joined #ruby
pkh has joined #ruby
slainer68 has quit [Remote host closed the connection]
<fandango>
What can I name a class that takes an object and runs a command and thereafter updates the object depending on the result of the command. Is that a builder, factory, service or anything else?
nat2610 has joined #ruby
connor_goodwolf has quit [Remote host closed the connection]
ThePicard has quit [Ping timeout: 268 seconds]
ctp- has quit [Ping timeout: 255 seconds]
nwertman has joined #ruby
jblack has joined #ruby
aryasam has joined #ruby
arya_ has left #ruby [#ruby]
tjbiddle has joined #ruby
Morkel has joined #ruby
BizarreCake has quit [Remote host closed the connection]
statarb3 has quit [Ping timeout: 252 seconds]
Vert has joined #ruby
jduan1981 has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
pkh has quit [Max SendQ exceeded]
Kricir has quit [Remote host closed the connection]
pkh has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
nghialv2607 has quit [Remote host closed the connection]
ossareh has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
tonini has joined #ruby
apod has joined #ruby
ThePicard has joined #ruby
connor_goodwolf has joined #ruby
dross has joined #ruby
joofsh has quit [Remote host closed the connection]
drago777 has joined #ruby
girija has quit [Ping timeout: 256 seconds]
codecop has joined #ruby
Apes is now known as aPES
aPES is now known as apes
joofsh has joined #ruby
whowantstolivef1 has joined #ruby
mickn has joined #ruby
alex__c2022 has joined #ruby
saiju has quit [Read error: Connection reset by peer]
markalanevans has joined #ruby
Palantir has joined #ruby
mneorr has joined #ruby
Bry8Star has quit [Remote host closed the connection]
mengu has quit [Quit: This computer has gone to sleep]
nat2610 has quit [Quit: Leaving.]
corehook has joined #ruby
brennanMKE has joined #ruby
felipebalbi has left #ruby [#ruby]
<ravster>
how do I do ruby-indenting in emacs?
locriani has joined #ruby
jwcarman has joined #ruby
rsahae has quit [Quit: rsahae]
<jwcarman>
Does anyone have any pointers on how to set up a gem to be built in a CI container? Do you publish the gem on each "build"? Do you publish a new version each time?
pkh has quit [Max SendQ exceeded]
cgcardona has quit [Quit: cgcardona]
jamescarr has joined #ruby
pkh has joined #ruby
jduan1981 has quit [Read error: Connection reset by peer]
interactionjaxsn has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
jblack has quit [Ping timeout: 268 seconds]
interactionjaxsn has quit [Read error: Connection reset by peer]
davout has quit [Remote host closed the connection]
IrishGringo has joined #ruby
Bry8Star has joined #ruby
interactionjaxsn has joined #ruby
rsahae has joined #ruby
jduan1981 has joined #ruby
mattbl has joined #ruby
ckrailo has joined #ruby
jblack has joined #ruby
Tolman has quit [Quit: Tolman]
divout has quit [Remote host closed the connection]
rsahae has quit [Client Quit]
skroon has joined #ruby
jduan1981 has quit [Client Quit]
skroon_ has joined #ruby
apod has quit [Quit: apod]
tymat has joined #ruby
tymat is now known as starburst
<Progster>
anyone know of an appointment scheduling SASS? I need something that will "aggregate" all of the current installers I have, so that all a user has to do is book a "10:00AM" slot as long as one of my installers still has a time slot open for that time. Usually I see calendar/scheduling apps that let the user select who they want to service them, which works well for something like a hair salon, but not for my use case. I'd appreciate any ideas
sambao21 has joined #ruby
slainer68 has joined #ruby
Tricon has quit [Ping timeout: 260 seconds]
whitedawg has joined #ruby
locriani has quit [Remote host closed the connection]
chandankumar has joined #ruby
skroon has quit [Ping timeout: 252 seconds]
mattbl has quit [Quit: Leaving]
ebobby has joined #ruby
sambao21 has quit [Client Quit]
Spooner has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
skroon_ is now known as skroon
aryasam_ has joined #ruby
aryasam has quit [Read error: Connection reset by peer]
corehook has quit [Ping timeout: 240 seconds]
<icco>
Progster, I always used Google Calendar office hours
<icco>
but I think they shut that down?
cgcardona has joined #ruby
werdnativ has joined #ruby
sambao21 has joined #ruby
celestius has joined #ruby
Kricir has joined #ruby
pkh has quit [Max SendQ exceeded]
mickn has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<unstable>
Since I'm not doiPerhaps I should strip everything
<unstable>
er, if I add a string into the map.. that might be fine.
<unstable>
strip*
<unstable>
heh, words aren't working well today for me.
<lectrick>
Asking here because #ruby might be more likely to know: When Passenger, Unicorn etc. fork a Rails process so that they don't have to fire up the stack with every request... *Where* exactly does that occur, in the load process?
jamescarr has quit [Quit: jamescarr]
ebollens has joined #ruby
nat2610 has joined #ruby
<MrZYX>
unstable: another variant would be puts line.chomp.scan(/\S+/).map(&:capitalize).join(' ')
marr has joined #ruby
TheMoonMaster has quit [Excess Flood]
andikr has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
reset has quit [Ping timeout: 240 seconds]
TheMoonMaster has joined #ruby
Heero` has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
<MrZYX>
or even puts line.chomp.scan(/\S+/, &:capitalize).join(' ') if I think about it
evangelosavgerin has joined #ruby
hadees has quit [Quit: hadees]
<evangelosavgerin>
join #rails
<injekt>
#rubyonrails
<injekt>
not #rails
gaahrdner has joined #ruby
Heero has quit [Ping timeout: 260 seconds]
<injekt>
Also even though Spooner isn't here right now, #ruby-lang is not for Ruby source hacking, that's #ruby-core, #ruby-lang really is just like this channel, general Ruby questions
kofno has quit [Remote host closed the connection]
mengu_ has joined #ruby
<ChristianS>
is #rails about something not-ruby-related?
<injekt>
Yeah, rails :P
freerobby has quit [Quit: Leaving.]
alex__c2022 has quit [Quit: alex__c2022]
freerobby has joined #ruby
* ChristianS
thinks about a suitable railroad-related question to ask there...
KevinSjoberg has joined #ruby
peta_ has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
alex__c2022 has joined #ruby
danslo has joined #ruby
mklappstuhl has joined #ruby
brtdv has quit [Ping timeout: 252 seconds]
<lewix_away>
what's the diff between tab size:2 and 2 spaces
scrapcode has left #ruby [#ruby]
ravster has joined #ruby
browndawg has quit [Quit: Leaving.]
sepp2k has joined #ruby
brennanMKE has quit [Remote host closed the connection]
robottinosino has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<linduxed>
lewix_away: if you use tabs, that inserts the literal \t character
<gf3>
SO MISLEADING
<linduxed>
lewix_away: without discussing the ups and downs of tabs, they aren't used in ruby
mengu_ has joined #ruby
<aedornm>
lewix_away: Not all editors render tabs the same way, but all render spaces correctly.
<linduxed>
lewix_away: the thing is that everyone who uses a decent editor can set the width of tabs to whatever they want
<linduxed>
lewix_away: so people who get the idea of indenting and more importantly ALIGNING with those tabs will write code that might not look the same across all computers
marr has quit [Ping timeout: 264 seconds]
<linduxed>
lewix_away: so the ruby people have decided that it's spaces all the way
* linduxed
personally prefers tabs for indentation, then spaces for alignment
<linduxed>
but that doesn't matter
<aedornm>
It's not just editors, but other things as well. The base concern is the end result of character rendering on whatever view you may be using, and spaces always render the same (minus font changes.)
<linduxed>
if you write ruby, you indent with 2 spaces for each level, and align with spaces too
<lewix_away>
linduxed: thanks. you gave me a stack overflow type of answer
<linduxed>
lewix_away: happy that it's clarified
mengu has joined #ruby
<linduxed>
aedornm: you just w8 a sec
mengu__ has quit [Ping timeout: 256 seconds]
evangelosavgerin has quit [Ping timeout: 255 seconds]
clocKwize has joined #ruby
mengu_ has quit [Read error: Connection reset by peer]
brianpWins has quit [Quit: brianpWins]
marr has joined #ruby
<waxjar>
gf3: Array.methods gives you the methods you can call on the object Array (aka class methods) :)
<gf3>
waxjar: Yes I suppose it makes sense, I just don't like the naming
<sukima>
I'm having a bugger of a time working with erb. How do you create a context for a template without runtime errors: https://gist.github.com/sukima/5504609
nahiluhmot has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
jtharris has joined #ruby
<aedornm>
linduxed: Reddit is a great example of stubborn people clashing on any given subject. It doesn't change the fact it's a problem, regardless of how many opinions there are.
<linduxed>
aedornm: well, i just provided my opinion on the subject, if you notice that the top posts in the two links are from me
yfeldblum has quit [Ping timeout: 272 seconds]
pkh has quit [Read error: Connection timed out]
pkh has joined #ruby
wroathe has quit [Ping timeout: 264 seconds]
Cultofmetatron has quit [Remote host closed the connection]
wedgex has quit [Remote host closed the connection]
tonini has quit [Remote host closed the connection]
davedev24 has quit [Remote host closed the connection]
chandankumar has joined #ruby
jamescarr has joined #ruby
<aedornm>
linduxed: And that's fine, but the end result is it will still be a problem. I think there's bigger problems in the world to fight against right now - like patents!
kofno has joined #ruby
momomomomo_ has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo_ is now known as momomomomo
<linduxed>
i've never understood the attiude of setting aside issues that clearly are of interest to a large amount of people, just because there are bigger issues around
nahiluhmot has joined #ruby
dmiller has joined #ruby
foofoobar has joined #ruby
<linduxed>
there's time and "brain cycles" for both
mengu__ has joined #ruby
chandankumar has quit [Remote host closed the connection]
mengu_ has quit [Ping timeout: 256 seconds]
celestius has quit [Quit: Computer has gone to sleep.]
reset has joined #ruby
tspike has joined #ruby
nat26101 has quit [Quit: Leaving.]
akhet has quit [Ping timeout: 252 seconds]
sandGorgon has joined #ruby
whitedawg has quit [Quit: Leaving.]
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
<waxjar>
i ran into it a while ago. edited some file that was indented with tabs, while my editor (ST2) is configured to use spaces. looks fine in the editor, looks like poo on GitHub.
timonv has joined #ruby
chandankumar has joined #ruby
robottinosino has quit [Quit: WeeChat 0.4.0]
frem has joined #ruby
chipotle_ has joined #ruby
<linduxed>
waxjar: ran into what? that people used tabs? bad communication? editor deficiency? insufficient default editor settings?
mheller has left #ruby [#ruby]
snuglepuss has quit [Remote host closed the connection]
<linduxed>
*inadequate
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<aedornm>
Well, in this case because nobody is dying, creativity isn't stifled, and it's certainly not causing any economical or environmental catastrophe. Now if whole populations were undergoing genocide because someone used spaces instead of tabs or vice versa, then it might be a different story. For now, it's all individual opinion that will never get resolved.
freewizard has joined #ruby
yfeldblum has joined #ruby
<injekt>
I didn't think it was much of a problem, I've only ever met one guy who formatted Ruby with tabs and I've been using Ruby for ~8 years now
tomsthumb has joined #ruby
Dreamer3 has joined #ruby
marr has quit [Ping timeout: 246 seconds]
<linduxed>
injekt: yeah, the community is quite homogenous on this point
tomsthumb has quit [Max SendQ exceeded]
locriani has joined #ruby
mengu has joined #ruby
tomsthumb has joined #ruby
rakl has quit [Quit: gone]
tomsthumb has quit [Max SendQ exceeded]
interactionjaxsn has quit [Remote host closed the connection]
mengu__ has quit [Ping timeout: 264 seconds]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
pkh has quit [Read error: Connection timed out]
interactionjaxsn has joined #ruby
marr has joined #ruby
tvw has quit []
tomsthumb has joined #ruby
pcasaretto has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
interactionjaxsn has quit [Read error: Connection reset by peer]
rakl has joined #ruby
tomsthumb has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
Morkel has quit [Read error: Connection reset by peer]
interactionjaxsn has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
jamesfung14 has joined #ruby
<aedornm>
Speaking of opinions, I really hate SOAP.
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
freewizard has quit [Ping timeout: 240 seconds]
<linduxed>
aedornm: that seems to be the norm though
tomsthumb has joined #ruby
Morkel has joined #ruby
<aedornm>
hating SOAP? heh
stkowski has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
haxrbyte has joined #ruby
pcasaretto has quit [Client Quit]
<DementedInsanity>
out
<DementedInsanity>
uio
tomsthumb has joined #ruby
<DementedInsanity>
ojilij;
<DementedInsanity>
uj
Palantir has quit [Ping timeout: 255 seconds]
tomsthumb has quit [Max SendQ exceeded]
mark_locklear has quit [Ping timeout: 272 seconds]
akhet has quit [Remote host closed the connection]
tomsthumb has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
elaptics is now known as elaptics`away
tomsthumb has joined #ruby
iPhoneMRZ has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
iPhoneMRZ has quit [Client Quit]
nomenkun has joined #ruby
<frem>
vim user, eh?
tomsthumb has joined #ruby
momomomomo has quit [Ping timeout: 256 seconds]
celestius has joined #ruby
tomsthumb has quit [Max SendQ exceeded]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
iPhoneMRZ has joined #ruby
nahiluhmot has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
KevinSjoberg has joined #ruby
Beoran__ has joined #ruby
vlad_starkov has joined #ruby
wroathe has joined #ruby
postmodern has joined #ruby
davedev24 has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
pietr0 has quit [Ping timeout: 264 seconds]
nomenkun has quit [Remote host closed the connection]
Beoran_ has quit [Ping timeout: 245 seconds]
nahiluhmot has joined #ruby
nplusp has joined #ruby
alex__c2022_ has joined #ruby
sambao21 has joined #ruby
kinginky has quit [Ping timeout: 245 seconds]
alex__c2022 has quit [Ping timeout: 252 seconds]
alex__c2022_ is now known as alex__c2022
vlad_starkov has quit [Ping timeout: 256 seconds]
geggam has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
tommyvyo has quit [Quit:]
Hanmac has quit [Ping timeout: 256 seconds]
nplusp has quit [Ping timeout: 256 seconds]
locriani_ has joined #ruby
locriani has quit [Read error: Connection reset by peer]
lushious has quit [Remote host closed the connection]
locriani has joined #ruby
haxrbyte has quit [Remote host closed the connection]
locriani_ has quit [Read error: Connection reset by peer]
pitzips has quit [Ping timeout: 255 seconds]
haxrbyte has joined #ruby
ryannielson has quit [Quit: ryannielson]
cgcardona has joined #ruby
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
nkts has joined #ruby
s0ber_ has joined #ruby
Asher has quit [Quit: Leaving.]
lsone has joined #ruby
s0ber has quit [Ping timeout: 248 seconds]
benlieb has joined #ruby
s0ber_ is now known as s0ber
huoxito has quit [Quit: Leaving]
locriani_ has joined #ruby
locriani has quit [Read error: Connection reset by peer]
platzhirsch has joined #ruby
Asher has joined #ruby
beiter has quit [Ping timeout: 256 seconds]
djwonk has joined #ruby
tommyvyo has joined #ruby
locriani_ has quit [Read error: No route to host]
reset has quit [Quit: Leaving...]
krawchyk has quit [Remote host closed the connection]
forlin has quit [Remote host closed the connection]
<unstable>
How can I get a boolean if there is a period in a string or not?
beiter has joined #ruby
<waxjar>
"foo. bar".include? "."
sbenthall has joined #ruby
evangelosavgerin has joined #ruby
mark_locklear has joined #ruby
sambao21 has joined #ruby
rton has left #ruby [#ruby]
sandGorgon has quit [Ping timeout: 272 seconds]
nplusp has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
bitri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbpros has joined #ruby
<platzhirsch>
I want to run the unit tests of a Ruby framework, unfortunately this ends in a segfault. Now I woud like to run a single unit test file, but when executing it like so: ruby test/unit/the_script.rb then it has problems to find test_helper.rb which sits in test/ and is required in the_script.rb as require "test_helper". Any idea how to approach this?
jerius_ has joined #ruby
Cultofmetatron has joined #ruby
<platzhirsch>
I am more interested in how to runtime environment behaves and why it cannot find the test_helper file
<platzhirsch>
how the*
jovy88 has quit [Read error: Connection reset by peer]
centipedefarmer has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 252 seconds]
jerius_ is now known as jerius
evangelosavgerin has quit [Ping timeout: 245 seconds]
jovy88 has joined #ruby
chrisja has quit [Quit: leaving]
Kricir has quit [Remote host closed the connection]
Kruppe has joined #ruby
nplusp has quit [Ping timeout: 245 seconds]
<waxjar>
you'll have to put the folder test_helper lives in in the path. you can run ruby with the -I flag for that (e.g. ruby -I test test/your_test.rb)
bitri has joined #ruby
<platzhirsch>
waxjar: ah ok, that should do I saw this being generated when running a rake task before
pitzips has joined #ruby
danslo has quit [Quit: danslo]
geekbri has quit [Remote host closed the connection]
<waxjar>
yeah, rake or the executable that comes with a test library usually does that for you
rickmasta has joined #ruby
<platzhirsch>
waxjar: seems to work, thanks. I found it really frustrating to face the segmentation fault. I have no idea how to narrow down its cause
<MrZYX>
that usually happens when you copy gems with native extensions over to a new ruby version
<MrZYX>
or if you update a library and don't recompile the gem
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
MrZYX: maybe there is a conflict between my RVM and native Ruby installation
yannis has joined #ruby
marr has joined #ruby
ebobby has quit [Ping timeout: 268 seconds]
nat26101 has joined #ruby
kofno has quit [Remote host closed the connection]
aempirei has joined #ruby
aempirei has left #ruby [#ruby]
headius has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
nkts has quit [Quit: -]
jduan1981 has joined #ruby
rickmasta has quit [Quit: Leaving...]
Xeago has joined #ruby
akhet has quit [Remote host closed the connection]
<backjlack>
Could someone tell me which was that ruby patch which was recently developed by a company and they saw a decrease in of 5-9% / 8-9% in the duration of their requests?
sambao21 has quit [Quit: Computer has gone to sleep.]
<backjlack>
I've come across it somewhere, but I can't seem to find it again. Any help would be appreciated.
<backjlack>
This isn't about the new generational garbage collector.
philcrissman has quit [Remote host closed the connection]
apostatical06 has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
<secureboot>
having trouble googling this - how do people usually turn JSON responses into usable objects? Obviously JSON.parse to a hash, but then what? Just assume the hash fields will stay the same over time? It'd be great to have a solution where you list the expected fields somewhere, and ignore anything not in the list. Even better would be the ability to translate json field name -> class field name, with accessors
josedonizetti has quit [Quit: josedonizetti]
yann_ck has joined #ruby
philcrissman_ has joined #ruby
sbenthall has quit [Quit: Konversation terminated!]
<tylersmith>
secureboot: look into client-side models
joofsh has joined #ruby
<MrZYX>
secureboot: maybe you want an OpenStruct
<tylersmith>
e.g. whatever comes with backbone or some such
<tylersmith>
hm, response or requests?
RORgasm_ has quit [Read error: Connection reset by peer]
RORgasm has joined #ruby
chipotl__ has joined #ruby
chipotle_ has quit [Ping timeout: 256 seconds]
allsystemsarego has quit [Quit: Leaving]
<secureboot>
tylersmith: response
<secureboot>
tylersmith: looking now, looks like the backbone stuff is tied to rails a bit. Not sure how much yet.
brotatos has joined #ruby
chandankumar has quit [Quit: Leaving]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
<tylersmith>
i guess i should've actually asked, from ruby or from js, but sounds like js
aapzak has joined #ruby
wsterling has joined #ruby
<tylersmith>
i don't do a lot of client side model stuff so i don't have great recommendations
<tylersmith>
they peoples in ##javascript probably do
<tylersmith>
the people*
<secureboot>
tylersmith: looking to do this in ruby, no JS involved (writing a gem)
<tylersmith>
gotcha, sorry, idk why I assume :p
ebobby has joined #ruby
chipotl__ has quit [Ping timeout: 256 seconds]
wolcanus has quit [Remote host closed the connection]
<tylersmith>
then yeah, sounds like you probably want to use structs
lmadrigal has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
<tylersmith>
probably have a method that takes an arbitrary hash, and creates a struct out of only the wanted items
<tylersmith>
+ validation
wolcanus has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
dmiller has joined #ruby
momomomomo has joined #ruby
alex__c2022 has joined #ruby
joofsh has quit [Read error: Connection reset by peer]
jacktrick has joined #ruby
tommyvyo has quit [Quit:]
radic has joined #ruby
brotatos has quit [Quit: WeeChat 0.4.1-dev]
joofsh has joined #ruby
marr123 has joined #ruby
marr has quit [Ping timeout: 272 seconds]
clocKwize has quit [Quit: clocKwize]
denbuzze4 has joined #ruby
wchun has quit [Quit: Leaving]
moos3 has quit [Quit: Computer has gone to sleep.]
yann_ck has quit [Quit: Computer has gone to sleep.]
huoxito has joined #ruby
<secureboot>
tylersmith: it's looking like that's the best thing I can find. The tricky thing is that the hash will have sub-item in it as well obj = { :a => {:other_item => "the thing"}}, and I'd like obj.a.other_item to not be surprising (works one day, stops the next)
tommyvyo has joined #ruby
<tylersmith>
secureboot: well if you explicitly write it set that it'll be there as long as the response returns it. if you don't own whatevers returning the json then you can't be sure it'll be there
wmoxam has quit [Ping timeout: 264 seconds]
joofsh has quit [Remote host closed the connection]
Nahra has quit [Remote host closed the connection]
mklappst_ has quit [Remote host closed the connection]
Retistic has joined #ruby
balishag has quit [Ping timeout: 256 seconds]
marr123 has quit []
machuga is now known as machuga|away
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
nat2610 has quit [Quit: Leaving.]
greenarrow has joined #ruby
stoic_squirrel has joined #ruby
s2013 has quit [Ping timeout: 252 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
greengriminal has joined #ruby
s2013 has joined #ruby
Morkel has joined #ruby
greengriminal has quit [Client Quit]
wedgex has quit [Read error: Connection reset by peer]
wedgex_ has joined #ruby
reppard has joined #ruby
wolcanus_ has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
ebobby has quit [Ping timeout: 276 seconds]
nat2610 has joined #ruby
<reppard>
I'm trying to create a crontab that executes a ruby script that does an INSERT to a database
axxT has joined #ruby
<reppard>
the script works when ran manually but the cron doesn't seem to do the trick?
slainer68 has joined #ruby
nat2610 has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
<reppard>
i can see the crontab running at the specified interval in the logs but no INSERT. Specified absolute paths for everything too... any ideas?
tealmage has quit [Remote host closed the connection]
helvete has quit [Quit: Leaving...]
emergion has joined #ruby
enriclluelles has joined #ruby
banjara has quit [Quit: Leaving.]
banjara has joined #ruby
mneorr has quit [Remote host closed the connection]
robmuh has joined #ruby
theRoUS has joined #ruby
jbpros has quit [Quit: jbpros]
emergion has quit [Client Quit]
toquonce has joined #ruby
wmoxam has joined #ruby
centipedefarmer has joined #ruby
wedgex_ has quit [Ping timeout: 240 seconds]
emmanuelux has joined #ruby
nahiluhmot has quit [Remote host closed the connection]
wedgex has joined #ruby
djwonk has quit [Quit: djwonk]
arubin has joined #ruby
frem has quit [Quit: departing for home]
jlast has quit [Remote host closed the connection]
djwonk has joined #ruby
s2013_ has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
gstamp has joined #ruby
tealmage has joined #ruby
tealmage has quit [Remote host closed the connection]
reset has joined #ruby
stoic_squirrel has quit [Quit: Computer has gone to sleep.]
tealmage has joined #ruby
snearch has quit [Quit: Verlassend]
<graft>
can anyone explain the & syntax to me a bit better, in, i.e., array.map(&:size) ?
IceDragon has joined #ruby
tommyvyo has quit [Quit:]
mmitchell has quit [Remote host closed the connection]
wchun has joined #ruby
s2013_ has quit [Ping timeout: 276 seconds]
locriani has joined #ruby
tealmage has quit [Ping timeout: 256 seconds]
reppard has quit [Ping timeout: 252 seconds]
locriani has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
nyuszika7h has quit [Remote host closed the connection]
baba has joined #ruby
omg|its|otr has joined #ruby
brianpWins has quit [Quit: brianpWins]
megha has quit [Ping timeout: 240 seconds]
sepp2k1 has joined #ruby
rickmasta has joined #ruby
tootubular has quit [Quit: tootubular]
sepp2k has quit [Ping timeout: 252 seconds]
gstamp has quit [Ping timeout: 256 seconds]
johnnyfuchs has quit [Ping timeout: 268 seconds]
_nitti has quit [Remote host closed the connection]
nyuszika7h has joined #ruby
ARCADIVS has joined #ruby
<MrZYX>
graft: when invoking a method it converts a proc into a block
gstamp has joined #ruby
thorncp has joined #ruby
<MrZYX>
so, size = proc { |x| x.size }; ary.map(&size); and ary.map { |x| x.size } are equivalent
nahiluhmot has joined #ruby
<Virunga>
graft: Method#to_proc method gets called. You can see it like passing a block
mercwithamouth has joined #ruby
atyz has joined #ruby
<MrZYX>
now the & also calls the to_proc method before. Symbol.to_proc creates a proc that basically looks like proc { |x| x.send(self) } where self is the symbol of course
thorncp has left #ruby [#ruby]
<Virunga>
i stand correct eheh
<Virunga>
corrected
juarlex has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
kristofers has quit [Read error: Connection reset by peer]
potato has joined #ruby
kristofers has joined #ruby
ravster has left #ruby [#ruby]
reset has quit [Quit: Leaving...]
cj3kim has joined #ruby
freeayu has joined #ruby
<cj3kim>
hello
chrishough has joined #ruby
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
mneorr has joined #ruby
emergion has joined #ruby
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
greenarrow has joined #ruby
bean has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
Progster has quit [Ping timeout: 245 seconds]
Progster has joined #ruby
bean has joined #ruby
slainer68 has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
slyv has joined #ruby
chrishough has quit [Client Quit]
lancepantz has quit [Ping timeout: 248 seconds]
fryguy- has joined #ruby
crazed_ has joined #ruby
<MrZYX>
cj3kim: if you have a question just ask ;)
faulkner has quit [Ping timeout: 248 seconds]
<cj3kim>
No, I just came to hang out. :]
Norrin has quit [Ping timeout: 256 seconds]
fryguy has quit [Ping timeout: 256 seconds]
<cj3kim>
Though, I'm certain the questions will come sometime in the future. :D
atyz has quit [Ping timeout: 272 seconds]
<cj3kim>
MrZYX
<MrZYX>
alright
johnnyfuchs has joined #ruby
SegFaultAX has quit [Ping timeout: 246 seconds]
thomasfedb has quit [Ping timeout: 246 seconds]
crazed has quit [Ping timeout: 246 seconds]
aspiers has quit [Ping timeout: 246 seconds]
adam12 has quit [Ping timeout: 264 seconds]
Davey_ has joined #ruby
wgosling has joined #ruby
adam12 has joined #ruby
lancepantz_ has joined #ruby
lancepantz_ is now known as lancepantz
faulkner has joined #ruby
Cultofme_ has quit [Remote host closed the connection]
aspiers has joined #ruby
Norrin has joined #ruby
benlieb has quit [Quit: benlieb]
xardas has quit [Ping timeout: 240 seconds]
thomasfedb has joined #ruby
SegFaultAX has joined #ruby
ffranz1 has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 272 seconds]
wsterling has quit [Remote host closed the connection]
jnoob22 has joined #ruby
Xeago has joined #ruby
benlieb has joined #ruby
wsterling has joined #ruby
mneorr has quit [Ping timeout: 256 seconds]
ffranz has quit [Ping timeout: 240 seconds]
Davey_ has quit [Quit: Computer has gone to sleep.]
heidar is now known as heidarb
TomJ has joined #ruby
heidar has joined #ruby
<jokke>
hello, i'm having some trouble with rspec, probalbly because i'm trying to make it do something it wasnt made for.. http://paste.xinu.at/Uzyws5/
<jokke>
I get a bunch of errors because of the last describe block
wsterling has quit [Ping timeout: 264 seconds]
nahiluhmot has quit [Remote host closed the connection]
<jokke>
first some warnings about The new definition will overwrite the originila one
nplusp has joined #ruby
marr has joined #ruby
whitedawg has quit [Quit: Leaving.]
<jokke>
oh wait the error isn't related to the warnings
pevjan has joined #ruby
heidarb has quit [Quit: leaving]
guillehorno has quit [Quit: guillehorno]
wedgex has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
joofsh has joined #ruby
philcrissman_ has quit [Ping timeout: 260 seconds]
brianherman has joined #ruby
Cultofmetatron has joined #ruby
philcrissman has joined #ruby
breakingthings has joined #ruby
banjara has quit [Quit: Leaving.]
monkegjinni has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
wmoxam has joined #ruby
nplusp has quit [Ping timeout: 248 seconds]
wgosling has quit [Quit: Konversation terminated!]
wgosling has joined #ruby
dekhaus has joined #ruby
c0rn has joined #ruby
tenmilestereo has quit [Quit: Leaving]
lethjakman has quit [Ping timeout: 240 seconds]
Heero` has quit [Ping timeout: 246 seconds]
<dekhaus>
Hi All. I'm reviewing a script that I didn't write and trying to understand something unfamiliar … what are the semantics of 'rescue []' ?
ericmathison has quit [Ping timeout: 255 seconds]
Davey_ has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
nplusp has joined #ruby
epitamizor has joined #ruby
mercwithamouth has joined #ruby
tealmage has joined #ruby
<jokke>
i'm trying to monkeypatch String like so: https://gist.github.com/5506230 but i'm getting stack level too deep errors when trying to se succ in any way.
<jokke>
Clearly i'm doing something wrong..
tealmage has quit [Remote host closed the connection]
josedonizetti has joined #ruby
marr has quit [Ping timeout: 272 seconds]
anonymuse has quit [Quit: Leaving...]
MrPoT4tO has joined #ruby
<Virunga>
jokke: inside succ! there's an infinite recursive loop
secureboot has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<enriclluelles>
the alias man
<jokke>
oh i need to define the alias before, right?
<enriclluelles>
you should define it before
<enriclluelles>
yep
<enriclluelles>
you're aliasing the function you just defined
Xeago has quit [Remote host closed the connection]
mmitchell has joined #ruby
dekhaus has left #ruby [#ruby]
baroquebobcat has quit [Ping timeout: 248 seconds]
<jokke>
thanks :)
<ariedler>
is __id__ always unique?
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
<ariedler>
(given that you are only looking at objects in memory)
tealmage has joined #ruby
Spooner has joined #ruby
predator217 has joined #ruby
ariedler has quit [Remote host closed the connection]
tealmage has quit [Remote host closed the connection]
nari_ has quit [Ping timeout: 252 seconds]
emergion has joined #ruby
tealmage has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
emergion has quit [Max SendQ exceeded]
tspike has quit [Ping timeout: 264 seconds]
predator117 has quit [Ping timeout: 268 seconds]
moos3 has joined #ruby
evangelosavgerin has quit [Ping timeout: 264 seconds]
nik_-_ has quit [Quit: nik_-_]
ravster has joined #ruby
tealmage has quit [Ping timeout: 248 seconds]
prime has quit [Read error: Connection reset by peer]
mengu has quit [Quit: This computer has gone to sleep]
ereslibre has quit [Read error: Connection reset by peer]
tealmage has quit [Remote host closed the connection]
TomJ has quit [Quit: TomJ]
<MrPoT4tO>
hey people, question: say I wanna know the length of a string, I use the method for it and gives the the number. If i wanna use that number as an index for an specific character of said string, do I have to substract 1 to it?
atma1 has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
atma1 is now known as atmosx
<omg|its|otr>
Yes MrPoT4tO
<omg|its|otr>
if you have "hello"
<omg|its|otr>
length will return 5.
<omg|its|otr>
But there are only indicies 0-4 in the string
<MrPoT4tO>
awesome thanks
sambao21 has quit [Ping timeout: 245 seconds]
john_paxton has joined #ruby
chipotle_ has quit [Quit: cya]
<omg|its|otr>
Alternatively what you can do is say string[-1]
<john_paxton>
Hello. What is the threading model in Ruby? I know that they are green threads, but are they pre-emptive? When is the scheduler run?
<omg|its|otr>
THat will get you the last characer in any string
atmosx has quit [Client Quit]
<MrPoT4tO>
alright, thank you. I'll write that down too