<Ox0dea>
"After all, He Who Must Not Be Named did great things--terrible, yes, but great."
<Ox0dea>
I've said it before: Ruby is Voldemort.
<Ox0dea>
Er, no, it seems it was ObjectSpace last time.
<havenwood>
greg: If you wonder if something is an Object, ask it! (If it's not a value there's nothing to ask so the question ends there.)
<Ox0dea>
>> defined? defined?
<ruboto>
Ox0dea # => /tmp/execpad-04e0c75cd9af/source-04e0c75cd9af:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/484248)
<Ox0dea>
havenwood: That went well.
A5101 has joined #ruby
<havenwood>
Ox0dea: Just need parens for a better error.
shock_one has quit [Ping timeout: 250 seconds]
<Ox0dea>
Aye, and that the one I was hoping for.
<havenwood>
Should change when to use parens from "when it breaks the interpreter" to "when it breaks the interpreter or produces gibberish errors."
<Ox0dea>
>> BasicObject.new.respond_to? :is_a?
<ruboto>
Ox0dea # => undefined method `respond_to?' for #<BasicObject:0x40a64344> (NoMethodError) ...check link for more (https://eval.in/484249)
<Ox0dea>
Methinks maybe BasicObjects are a little too basic.
<greg>
what is the current stable version of ruby
<havenwood>
greg: 2.2.3
<greg>
my system says ruby 2.2.1p85 (2015-02-26 revision 49769) [i686-linux]
<greg>
how to upgrade
<havenwood>
greg: How'd you install 2.2.1?
reaVer has quit [Remote host closed the connection]
<greg>
sudo aptget ruby
<havenwood>
greg: Ubuntu or something else?
<greg>
ubuntu
<havenwood>
greg: You might just use your Ubuntu's latest stable unless you have a reason to do otherwise. One otherwise option is to use Brightbox's up-to-date Ruby packages for Ubuntu: https://www.brightbox.com/docs/ruby/ubuntu/
<greg>
my ubuntu is lts 14
<havenwood>
yup
Zamerick_ has joined #ruby
weemsledeux has joined #ruby
reaVer has joined #ruby
kaka__ has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
shanemcd has joined #ruby
juddey has quit [Ping timeout: 272 seconds]
greg has quit [Quit: Leaving]
SCHAAP137 has quit [Remote host closed the connection]
beast has joined #ruby
shanemcd has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
Azure has quit [Client Quit]
Azure has joined #ruby
yilmaz_alican has joined #ruby
chouhoulis has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
yilmaz_alican has left #ruby [#ruby]
blackgoat has joined #ruby
krobzaur has quit [Ping timeout: 256 seconds]
<jhass>
oh, new bundler
agent_white has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
FooMunki has quit [Quit: FooMunki]
enlycanm3nt has joined #ruby
A5101 has quit [Quit: Leaving]
A5101 has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
tenderlove has quit [Remote host closed the connection]
tenderlove has joined #ruby
casadei has joined #ruby
dlitvak has joined #ruby
duckpuppy has quit [Ping timeout: 250 seconds]
Rickmasta has joined #ruby
juddey has joined #ruby
ruby-lang518 has joined #ruby
ruby-lang518 has quit [Client Quit]
dlitvak has quit [Ping timeout: 240 seconds]
BTRE has joined #ruby
<Ox0dea>
Oh, new Linux.
iamcz has joined #ruby
duckpuppy has joined #ruby
duckpuppy has quit [Client Quit]
segmond has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
iamcz has quit [Ping timeout: 252 seconds]
duckpuppy has joined #ruby
yfeldblum has joined #ruby
bronson has joined #ruby
chipotle has joined #ruby
calderonroberto has joined #ruby
bronson has quit [Ping timeout: 256 seconds]
JDiPierro has joined #ruby
blackgoat has quit [Quit: WeeChat 1.3]
Jardayn has quit [Read error: Connection reset by peer]
JDiPierro has quit [Remote host closed the connection]
cassioscabral has quit [Quit: cassioscabral]
duckpuppy has quit [Ping timeout: 272 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
dlitvak has joined #ruby
tenderlove has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
shiru has joined #ruby
tenderlove has joined #ruby
cassioscabral has joined #ruby
User458764 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
mooe has joined #ruby
bubbys has quit [Ping timeout: 250 seconds]
nibbo has quit [Ping timeout: 256 seconds]
14WAAEQEK has joined #ruby
djbkd has joined #ruby
shiru has quit [Ping timeout: 240 seconds]
cassioscabral has quit [Quit: cassioscabral]
ss_much has quit [Quit: Connection closed for inactivity]
cassioscabral has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
tenderlove has quit [Remote host closed the connection]
kkeuning has joined #ruby
kkeuning has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
kkeuning has joined #ruby
14WAAEQEK has left #ruby [#ruby]
chipotle has quit [Quit: cheerio]
Guest66119 has quit [Ping timeout: 250 seconds]
chouhoulis has joined #ruby
dorei has quit []
wildlander has quit [Quit: Saliendo]
bubbys has joined #ruby
chipotle has joined #ruby
BTRE has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
Nanuq has quit [Ping timeout: 264 seconds]
Nanuq has joined #ruby
krobzaur has joined #ruby
djbkd has joined #ruby
rgrmatt has quit [Remote host closed the connection]
JDiPierro has joined #ruby
atomical has joined #ruby
nibbo has joined #ruby
voodo|away is now known as voodo
voodo has quit [Quit: Leaving...]
DeXterbed has joined #ruby
JDiPierro has quit [Remote host closed the connection]
kalopsian has joined #ruby
brt has quit [Quit: peace]
dlitvak has joined #ruby
ReK2 has joined #ruby
ReK2 has quit [Changing host]
ReK2 has joined #ruby
shanemcd has joined #ruby
The_Phoenix has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
calderonroberto has quit [Ping timeout: 250 seconds]
shock_one has joined #ruby
lessless has joined #ruby
Coldblackice has joined #ruby
brt has joined #ruby
sucks has quit [Ping timeout: 240 seconds]
rkazak has joined #ruby
calderonroberto has joined #ruby
shanemcd has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 240 seconds]
cassioscabral has quit [Quit: cassioscabral]
sucks has joined #ruby
cassioscabral has joined #ruby
qiukun has joined #ruby
gaiada has joined #ruby
yeticry has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
braincrash has quit [Quit: bye bye]
Bellthoven has joined #ruby
yeticry has joined #ruby
davedev24 has quit [Remote host closed the connection]
crowell has quit [Read error: Connection reset by peer]
casadei has quit [Remote host closed the connection]
crowell has joined #ruby
crowell has quit [Changing host]
crowell has joined #ruby
yeticry has quit [Remote host closed the connection]
n_blownapart has joined #ruby
yeticry has joined #ruby
grayjedi has joined #ruby
grayjedi has left #ruby [#ruby]
n_blownapart has quit [Client Quit]
braincrash has joined #ruby
ss_much has joined #ruby
Zamerick_ has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
atumzin has quit [Read error: Connection reset by peer]
nertzy has joined #ruby
chouhoulis has joined #ruby
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 256 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
houhoulis has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
govg has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
gaiada has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby
dviola has joined #ruby
dlitvak has joined #ruby
gaiada has joined #ruby
s00pcan_ has joined #ruby
s00pcan_ has quit [Client Quit]
BTRE has joined #ruby
s00pcan_ has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 240 seconds]
s00pcan_ has joined #ruby
gaiada has quit [Max SendQ exceeded]
gaiada has joined #ruby
tenderlove has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 256 seconds]
djbkd has quit [Remote host closed the connection]
shanemcd has joined #ruby
djbkd has joined #ruby
rdavila has joined #ruby
rdavila has quit [Client Quit]
user083_ has joined #ruby
user083_ has quit [Client Quit]
c355e3b has quit [Quit: Connection closed for inactivity]
dlitvak has joined #ruby
houhoulis has joined #ruby
tenderlove has joined #ruby
A124 has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 256 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sapslaj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
kspencer has quit [Ping timeout: 260 seconds]
gaiada has quit [Ping timeout: 240 seconds]
tpendragon has joined #ruby
TomPeed has joined #ruby
chouhoulis has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
radgeRayden_ has quit [Ping timeout: 256 seconds]
bean has quit [Changing host]
bean has joined #ruby
chouhoulis has quit [Ping timeout: 272 seconds]
bubbys has quit [Ping timeout: 256 seconds]
bubbys has joined #ruby
gaiada has joined #ruby
ruby-lang097 has joined #ruby
framling has joined #ruby
<ruby-lang097>
Hey guys I'm having a simple problem. My program is supposed to read an integer value from a file (and save the data in runtill variable) and if the data is : not integer, empty, nil etc the program would just assign its own value to runtill variable but it's not quite working
<bean>
Don't worry about it ruby-lang097. You can learn pretty easily. Lots of good ruby tutorials and exercises online.
ponga has quit []
<Ox0dea>
I think there's an IRC channel too.
duckpuppy has quit [Ping timeout: 272 seconds]
<bean>
I think you're correct, not sure what it is, though.
<ruby-lang097>
The main problem is my english u know, most of the time i cant learn because i do not understand the words
* baweaver
raises eyebrow
<ruby-lang097>
but yeah thanks for the help
<Ox0dea>
It wasn't help if nothing stuck. :<
<ruby-lang097>
huh? Thats because im very newbie man..?
shock_one has joined #ruby
govg has quit [Ping timeout: 240 seconds]
<ruby-lang097>
but yeah i now know 0 != nil but i did know it before huehuehue just dont know the key difference between them
<Ox0dea>
They're just... completely different things.
shanemcd has quit [Ping timeout: 240 seconds]
<Ox0dea>
It's probably for the worse that `nil.to_i` is 0, but that's well past renegotiation.
<ruby-lang097>
why would you get nil by reading a file?
<baweaver>
nothing in it, doesn't exist, something like that
<bean>
if the file was empty you might, depending on the implementation, or the file being unable to open or something.
chipotle has quit [Quit: cheerio]
<Ox0dea>
ruby-lang097: IO.readlines on an empty file returns an empty array, of which the 0th element is `nil`.
<baweaver>
read nothing get nothing
<Ox0dea>
Simple as that, really.
<ruby-lang097>
Thanks Ox0dea
jdelaney has joined #ruby
<Ox0dea>
Happy to help.
<ruby-lang097>
Lmao i dnt even know what im coding sucks
<baweaver>
everyone says that about code they wrote last week, welcome to programming
<baweaver>
if they don't there's another issue.
gaiada has quit [Ping timeout: 272 seconds]
M-Kodo has joined #ruby
zast has quit [Quit: Leaving.]
<ruby-lang097>
:D okay
<ruby-lang097>
i will fix this bug right away then
shock_one has quit [Ping timeout: 272 seconds]
<jdelaney>
I'm moving to a job soon where I'll be using Ruby for the first time. Any book recommendations that are targeted towards people experienced with programming?
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lessless has joined #ruby
crystalmaiden has joined #ruby
ruby-lang097 has quit [Ping timeout: 252 seconds]
<baweaver>
jdelaney: Eloquent Ruby if you want a full book.
<baweaver>
and just ruby or rails as well?
Coldblackice has quit [Ping timeout: 240 seconds]
kp666 has quit [Ping timeout: 240 seconds]
<jdelaney>
baweaver: I'll check that book out. Thanks as well!
<norc>
Ox0dea: Luckily nil equals nil. In SQL null == null equals null, because there "NULL" means unknown. :-)
AmericanRedneck has joined #ruby
<AmericanRedneck>
what is a good $100,000+ job where people love free speech and expression ("hate" and "racist" speech must be not discriminated against and only encouraged) and that has great benefits too?
<jdelaney>
baweaver: Just ruby. I believe I'll be using Sinatra
<bean>
AmericanRedneck, .... trolling?
<baweaver>
Might read into that as well
shock_one has joined #ruby
<baweaver>
!mute AmericanRedneck
<baweaver>
probably
<baweaver>
and that's all we'll say about that.
<blub>
hi baweaver
<baweaver>
alo
dionysus69 has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qiukun has quit [Remote host closed the connection]
qiukun has joined #ruby
jdm__ has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
InvGhost has joined #ruby
tomphp has joined #ruby
nfk|laptop has joined #ruby
skade has quit [Client Quit]
<Diabolik>
so do
agent_white has quit [Quit: night]
<Diabolik>
.chars.count then pass a block in
<Diabolik>
?
qiukun has quit [Remote host closed the connection]
diego1 has joined #ruby
qiukun has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
CloCkWeRX has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
dviola has quit [Ping timeout: 240 seconds]
diego1 is now known as dviola
<Diabolik>
shevy i meant characters
<Diabolik>
sorry for confusion
<jhass>
Diabolik: if you can't solve it then you can't solve it
zarubin has joined #ruby
<jhass>
the point of these is not to find somebody that solves them for you
zarubin has quit [Remote host closed the connection]
<Diabolik>
i was just looking for advice..
<Diabolik>
but ok
<jhass>
I'll happily discuss prettier solutions once you've shown yours
<shevy>
Diabolik ok so substring searching
<jhass>
I think I've given you a quite huge advice already by giving you the base algorithm
<shevy>
quite huge hmmm
<shevy>
:D
chouhoulis has joined #ruby
<soahccc_>
I try to write a little tool which can accept a file via argument or piped input. ARGF.each_line does the trick except for when there is neither an argument nor input stream it waits forever for input :( How do I prevent this?
blackjid has joined #ruby
<blub>
it reads standard input and waits for an end of file, c-d on unix
<blub>
that's the correct behaviour
<toretore>
soahccc_, does the program work without the input?
<blub>
if it didn't do that, piping wouldn't work anyway
<toretore>
^
<shevy>
soahccc_ simply pipe it through a method that can handle the input-versus-no-input situation
<soahccc_>
toretore: well not really but it should just exit (maybe show help). I just don't know how to check if there is something
diego1 has joined #ruby
<toretore>
what you could do is check if stdin is attached to a terminal
diego1 has quit [Changing host]
diego1 has joined #ruby
<toretore>
but that's not really something you should do
mooe has quit [Quit: Connection closed for inactivity]
<toretore>
if a program takes input on stdin it is correct behavior to block
chouhoulis has quit [Ping timeout: 256 seconds]
<soahccc_>
hmm cat without anything blocks as well. Maybe I should just leave it then :)
<blub>
that's how unix programs work, its why ruby makes it easy to write programs that work like that :)
<toretore>
some programs make you explicitly set "-" as the filename to indicate it should use stdin
dviola has quit [Ping timeout: 250 seconds]
diego1 is now known as dviola
f00bar-32 has joined #ruby
<toretore>
but i don't really like that
<toretore>
if it makes sense, it should just default to stdin
jbrhbr has quit [Quit: Leaving.]
<soahccc_>
I thought maybe it's as simple as either there is $pipein but apparently it's all stdin :)
<apeiros>
even for large, unless you start hitting memory limits
<apeiros>
but since your text consumes O(n) memory already, this solution doesn't increase memory complexity (it takes "only" a factor more memory)
<jhass>
hence relative measures aren't always the best
<jhass>
1G vs 2G makes a differences
<jhass>
*difference
<apeiros>
test it with a 1G string then ;-p
<jhass>
can't be bothered :P
qiukun has quit [Quit: qiukun]
<apeiros>
but yeah, if you work with *very* large strings, each_chars may be a consideration. but then you might even consider not having the full text in memory in the first place -> hence vape
bMalum has quit [Quit: bMalum]
thejamespinto has quit [Ping timeout: 256 seconds]
CloCkWeRX has quit [Quit: Leaving.]
akem has joined #ruby
FernandoBasso has joined #ruby
tk__ has joined #ruby
davedev24 has joined #ruby
tildes has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
saneax_AFK is now known as saneax
saneax is now known as Guest42221
cassioscabral has quit [Quit: cassioscabral]
FooMunki has joined #ruby
spt0 has joined #ruby
dlitvak has joined #ruby
akem has quit [Remote host closed the connection]
shanemcd has joined #ruby
symm- has joined #ruby
akem has joined #ruby
rippa has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inukshuk_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zamerick_ has joined #ruby
jdm__ has joined #ruby
blackgoat has quit [Ping timeout: 256 seconds]
shanemcd has quit [Ping timeout: 250 seconds]
f00bar-32 has quit [Ping timeout: 272 seconds]
akem has quit [Remote host closed the connection]
weihan has joined #ruby
jdm_ has quit [Ping timeout: 256 seconds]
shock_one has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
DroidBurgundy has joined #ruby
bMalum has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
User458764 has joined #ruby
inukshuk_ has quit [Quit: leaving]
shanemcd has joined #ruby
akem has joined #ruby
tomphp has joined #ruby
shock_one has joined #ruby
weihan has quit [Quit: Leaving...]
shanemcd has quit [Ping timeout: 240 seconds]
blackgoat has joined #ruby
iateadonut has joined #ruby
chouhoulis has joined #ruby
pawnbox has joined #ruby
favadi has joined #ruby
skcin7 has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
igor has joined #ruby
TomyLobo has quit [Ping timeout: 272 seconds]
nocd has joined #ruby
charliesome has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
shock_one has quit [Remote host closed the connection]
bronson has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
firstdayonthejob has quit [Quit: WeeChat 1.4-dev]
bronson has quit [Ping timeout: 256 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
igor has quit [Remote host closed the connection]
igor has joined #ruby
firstdayonthejob has joined #ruby
lessless has joined #ruby
loren has joined #ruby
nocd has quit [Quit: nocd]
loren has left #ruby [#ruby]
arup_r has joined #ruby
baweaver has joined #ruby
radgeRayden_ has joined #ruby
Visitante has joined #ruby
<shevy>
xmas is happening soon
agit0 has quit [Quit: zzzZZZ….]
<arup_r>
shevy: any new ruby ? :)
<blub>
whats that shev
<blub>
y
baweaver has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
DeXterbed has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
tlaxkit has joined #ruby
Bloomer has joined #ruby
charliesome has joined #ruby
duckpuppy has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby
shazaum_ has quit [Quit: This computer has gone to sleep]
igor has quit [Quit: Leaving]
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 has joined #ruby
platzhirsch has joined #ruby
wmdrossard has joined #ruby
govg has joined #ruby
<shevy>
arup_r yeah in 11 days or so
duckpuppy has quit [Ping timeout: 256 seconds]
akem has quit [Read error: Connection reset by peer]
akem has joined #ruby
solocshaw1 is now known as solocshaw
<platzhirsch>
woopie
dfinninger has joined #ruby
jdm_ has joined #ruby
shazaum_ has joined #ruby
Visitante has quit []
dviola has quit [Quit: WeeChat 1.3]
jpank has joined #ruby
jdm__ has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum has quit [Quit: bMalum]
tildes has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DeXterbed has joined #ruby
favadi has joined #ruby
favadi has left #ruby [#ruby]
aryaching has joined #ruby
chouhoulis has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
workmad3 has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
darkxploit has quit [Ping timeout: 272 seconds]
arup_r has quit []
thejamespinto has joined #ruby
solars has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
TheBloke has quit [Read error: Connection reset by peer]
thejamespinto has quit [Ping timeout: 256 seconds]
TheBloke has joined #ruby
Bloomer has quit [Remote host closed the connection]
darkxploit has joined #ruby
zarubin has joined #ruby
shock_one has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lxsameer has quit [Quit: Leaving]
tomphp has joined #ruby
Guest42221 is now known as saneax_AFK
govg has quit [Ping timeout: 240 seconds]
f00bar-32 has joined #ruby
blackgoat has quit [Quit: night night]
govg has joined #ruby
dorei has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
platzhirsch has joined #ruby
Xentil has joined #ruby
devoldmx has joined #ruby
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
dfinninger has quit [Remote host closed the connection]
loren has joined #ruby
platzhirsch has quit [Read error: Connection reset by peer]
<Tahada_Puto>
jhass: which is the most widely use?
chouhoulis has joined #ruby
<jhass>
popularity shouldn't be your primary measure
A5101 has joined #ruby
agit0 has quit [Ping timeout: 272 seconds]
kalopsian has joined #ruby
dlitvak has quit [Ping timeout: 256 seconds]
<Tahada_Puto>
jhass: which is the natural and easy to use?
<jhass>
that's rather subjective
edwinvdgraaf has joined #ruby
rgrmatt_ has quit [Remote host closed the connection]
govg has joined #ruby
<Tahada_Puto>
jhass: I'm beginner. I need to know -_-
<jhass>
Look at the docs/readmes for a couple and make up your own mind
nocd has left #ruby [#ruby]
chouhoulis has quit [Ping timeout: 256 seconds]
colegatron has joined #ruby
Tahada_Puto has quit [Quit: Page closed]
tvw has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
imperator has quit [Quit: Leaving]
aryaching has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
freerobby has joined #ruby
skade has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheBloke has quit [Read error: Connection reset by peer]
skade has quit [Client Quit]
TheBloke has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
skade has joined #ruby
bMalum has quit [Quit: bMalum]
Phage has left #ruby [#ruby]
Arnvald has joined #ruby
kaka__ has quit [Ping timeout: 256 seconds]
SCHAAP137 has joined #ruby
kalopsian has joined #ruby
aryaching has joined #ruby
Arnvald has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
kalopsian has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
jbrhbr has joined #ruby
blackjid has quit [Max SendQ exceeded]
user083 has quit [Ping timeout: 240 seconds]
kalopsian has joined #ruby
blackjid has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
kaka__ has joined #ruby
rgrmatt has quit [Remote host closed the connection]
boxofrox has quit [Ping timeout: 250 seconds]
solocshaw has joined #ruby
decoponio has quit [Quit: Leaving...]
Rickmasta has joined #ruby
_whitelogger_ has joined #ruby
pawnbox_ has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
vinleod has joined #ruby
edwinvdg_ has joined #ruby
deimos has joined #ruby
mroth_ has joined #ruby
ohcibi has joined #ruby
devoldmx has joined #ruby
c355e3b_ has joined #ruby
heftig has joined #ruby
Lloyd has joined #ruby
jxf has joined #ruby
MiracleBlue_ has joined #ruby
moloch has joined #ruby
thesheff17_ has joined #ruby
contradictioned has joined #ruby
tejasmanohar_ has joined #ruby
yaewa has joined #ruby
vdamewood has quit [Disconnected by services]
iamdevnul__ has joined #ruby
zemmihates_ has joined #ruby
vinleod is now known as vdamewood
johnpank has joined #ruby
jbrhbr1 has joined #ruby
kmckelvin has joined #ruby
zrl has joined #ruby
Eleeleth_ has joined #ruby
Bloomer_ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
ramblinpeck_ has joined #ruby
cstrahan_ has joined #ruby
PlasmaStar has joined #ruby
zeljkof_ has joined #ruby
camilasan has joined #ruby
benlakey_ has joined #ruby
DroidBur_ has joined #ruby
thejamespinto has quit [Ping timeout: 256 seconds]
sideshowcoder_ has joined #ruby
jdm_ has joined #ruby
Downtime has joined #ruby
chandlerbing has joined #ruby
Jackneill_ has joined #ruby
pandaant_ has joined #ruby
tessier-1shpool has joined #ruby
x0f_ has joined #ruby
sumark_ has joined #ruby
AdamMeghji_ has joined #ruby
spidermario has joined #ruby
kadoppe_ has joined #ruby
hackeron_ has joined #ruby
bestie has quit [Ping timeout: 240 seconds]
adambeynon has quit [Ping timeout: 240 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
_whitelogger has quit [Ping timeout: 240 seconds]
tvw has quit [Ping timeout: 240 seconds]
ta has quit [Ping timeout: 240 seconds]
crayfishx has quit [Ping timeout: 240 seconds]
zly has quit [Ping timeout: 240 seconds]
danneu has quit [Ping timeout: 240 seconds]
c355e3b has quit [Ping timeout: 240 seconds]
zeljkof has quit [Ping timeout: 240 seconds]
AdamMeghji has quit [Ping timeout: 240 seconds]
cstrahan has quit [Ping timeout: 240 seconds]
soahccc_ has quit [Ping timeout: 240 seconds]
tejasmanohar has quit [Ping timeout: 240 seconds]
artmann_ has quit [Ping timeout: 240 seconds]
LoganG has quit [Ping timeout: 240 seconds]
zapata has quit [Ping timeout: 240 seconds]
WizJin has quit [Ping timeout: 240 seconds]
InvGhost has quit [Ping timeout: 240 seconds]
Mr_Pancake has quit [Ping timeout: 240 seconds]
arian0n has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
Trieste has quit [Ping timeout: 240 seconds]
Hobbyboy has quit [Ping timeout: 240 seconds]
heftig_ has quit [Ping timeout: 240 seconds]
Uptime has quit [Ping timeout: 240 seconds]
SuperTux88 has quit [Ping timeout: 240 seconds]
zemmihates has quit [Ping timeout: 240 seconds]
Guest85414______ has quit [Ping timeout: 240 seconds]
mroth has quit [Ping timeout: 240 seconds]
bauruine has quit [Ping timeout: 240 seconds]
[BNC]BLuEGoD has quit [Ping timeout: 240 seconds]
camilasann has quit [Ping timeout: 240 seconds]
dr_Poggs has quit [Ping timeout: 240 seconds]
ohcibi_ has quit [Ping timeout: 240 seconds]
contradictioned_ has quit [Ping timeout: 240 seconds]
phrozen77 has quit [Ping timeout: 240 seconds]
Eleeleth has quit [Ping timeout: 240 seconds]
sideshowcoder has quit [Ping timeout: 240 seconds]
kadoppe has quit [Ping timeout: 240 seconds]
M-Kodo has quit [Ping timeout: 240 seconds]
x0f has quit [Ping timeout: 240 seconds]
spider-mario has quit [Remote host closed the connection]
jpank has quit [Ping timeout: 240 seconds]
benlakey has quit [Ping timeout: 240 seconds]
machty has quit [Ping timeout: 240 seconds]
chandlerbing_ has quit [Ping timeout: 240 seconds]
kirun has quit [Ping timeout: 240 seconds]
ramblinpeck has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 240 seconds]
sdothum has quit [Ping timeout: 240 seconds]
darkxploit has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
braincrash has quit [Ping timeout: 240 seconds]
bean has quit [Ping timeout: 240 seconds]
gremax has quit [Ping timeout: 240 seconds]
epitron has quit [Ping timeout: 240 seconds]
Tessier-Ashpool has quit [Ping timeout: 240 seconds]
kobain has quit [Ping timeout: 240 seconds]
tlaxkit has quit [Ping timeout: 240 seconds]
pandaant has quit [Ping timeout: 240 seconds]
Jackneill has quit [Ping timeout: 240 seconds]
dellavg has quit [Ping timeout: 240 seconds]
sumark has quit [Ping timeout: 240 seconds]
jbrhbr has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Ping timeout: 240 seconds]
firstdayonthejob has quit [Ping timeout: 240 seconds]
hackeron has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 240 seconds]
moei has quit [Ping timeout: 240 seconds]
kirun has joined #ruby
Bloomer has quit [Ping timeout: 240 seconds]
LoganG_ is now known as LoganG
Guest85414______ has joined #ruby
sideshowcoder_ is now known as sideshowcoder
thesheff17_ is now known as thesheff17
c355e3b_ is now known as c355e3b
Mr_Pancake has joined #ruby
AdamMeghji_ is now known as AdamMeghji
atomical has joined #ruby
Jackneill_ has quit [Max SendQ exceeded]
cstrahan_ is now known as cstrahan
benlakey_ is now known as benlakey
zeljkof_ is now known as zeljkof
BLuEGoD has joined #ruby
machty_ has joined #ruby
mroth_ is now known as mroth
zemmihates_ is now known as zemmihates
Eleeleth_ is now known as Eleeleth
tejasmanohar_ is now known as tejasmanohar
kaka__ has quit [Quit: Leaving]
M-Kodo has joined #ruby
jdm__ has quit [Ping timeout: 246 seconds]
shock_one has quit [Remote host closed the connection]
ramblinpeck_ is now known as ramblinpeck
fantazo has quit [Ping timeout: 256 seconds]
gix has joined #ruby
braincrash has joined #ruby
juddey has joined #ruby
shock_one has joined #ruby
tomaw_ has joined #ruby
bronson has joined #ruby
tomaw has quit [Disconnected by services]
tomaw_ is now known as tomaw
machty_ is now known as machty
colegatron has joined #ruby
Fridtjof has quit [Ping timeout: 245 seconds]
kirun_ has joined #ruby
marienz_ has joined #ruby
DroidBurgundy has quit [Ping timeout: 240 seconds]
kirun has quit [Ping timeout: 240 seconds]
marienz has quit [Ping timeout: 600 seconds]
tlaxkit has joined #ruby
kobain has joined #ruby
kobain has quit [Changing host]
kobain has joined #ruby
bestie has joined #ruby
blackjid has quit [Max SendQ exceeded]
firstdayonthejob has joined #ruby
govg has quit [Ping timeout: 256 seconds]
kalopsian has quit [Ping timeout: 250 seconds]
danneu has joined #ruby
blackjid has joined #ruby
superman_ has joined #ruby
adambeynon has joined #ruby
adambeynon has quit [Changing host]
adambeynon has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 256 seconds]
Fridtjof has joined #ruby
boxofrox has joined #ruby
tlaxkit has quit [Ping timeout: 240 seconds]
kobain has quit [Ping timeout: 240 seconds]
darkxploit has joined #ruby
djbkd has joined #ruby
n008f4g_ has joined #ruby
sdothum has joined #ruby
kobain has joined #ruby
tlaxkit has joined #ruby
WizJin has joined #ruby
bMalum has joined #ruby
Blaguvest has joined #ruby
<stevenxl>
Ox0dea: I gotta move from this cafe. Getting dirty looks.
<stevenxl>
Just letting you know so you won't get worried.
<stevenxl>
;)
chouhoulis has joined #ruby
<Ox0dea>
stevenxl: Alas. Well, thanks for hangin' out.
ePascoal has quit [Ping timeout: 252 seconds]
djbkd has quit [Quit: My people need me...]
govg has joined #ruby
rgrmatt has joined #ruby
stevenxl has quit [Ping timeout: 272 seconds]
Platonides has quit [Remote host closed the connection]
bauruine has joined #ruby
chouhoulis has quit [Ping timeout: 256 seconds]
rgrmatt has quit [Remote host closed the connection]
yardenbar has joined #ruby
tomphp has joined #ruby
aptrcki has joined #ruby
epitron has joined #ruby
dellavg has joined #ruby
chouhoulis has joined #ruby
tomphp has quit [Max SendQ exceeded]
<aptrcki>
anyone mind me picking there brain for a minute?
Bloomer_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<Ox0dea>
?ask
<ruboto>
Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
kiez0rd has joined #ruby
Wsewolod has quit [Ping timeout: 240 seconds]
zerowaitstate has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
<aptrcki>
gotcha. so I'd like to know if it's possible to make an object that can hold a block that can be executed on demand, similar to the call method
crayfishx has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
freerobby has quit [Quit: Leaving.]
stevenxl has joined #ruby
Wsewolod has joined #ruby
vdamewood has quit [Quit: Life beckons.]
ruid has joined #ruby
ruid has joined #ruby
krobzaur has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
<hxegon>
adaedra: you should have banned him for the question
<shevy>
lol
weemsledeux has quit [Max SendQ exceeded]
sjohnsen has joined #ruby
Wsewolod has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
DavidDudson has joined #ruby
aryaching has quit [Ping timeout: 240 seconds]
MissionCritical has joined #ruby
shock_one has quit [Remote host closed the connection]
ap4y has joined #ruby
tildes has quit [Ping timeout: 272 seconds]
atomical has joined #ruby
iamvery has joined #ruby
sucks has joined #ruby
nateberkopec has joined #ruby
doodleha_ has quit [Remote host closed the connection]
devbug has joined #ruby
drptbl has joined #ruby
TheBloke has quit [Read error: Connection reset by peer]
TheBloke has joined #ruby
<jhass>
poll: Do you think the acme-client gem violates namespace conventions by also using the Acme namespace for other constants besides Acme::Client, for example Acme::Certificate?
tomdp has left #ruby ["Leaving"]
bMalum has quit [Quit: bMalum]
tomdp has joined #ruby
hxegon has quit [Read error: Connection reset by peer]
<pontiki>
i think so
underplank has joined #ruby
ornerymoose has joined #ruby
cats is now known as santacat
<pontiki>
are there any other gems staking a claim in the Acme namespace?
howdoico1 has joined #ruby
<jhass>
not yet, at least nothing serious (and iirc the other acme* gems use ACME), but I can easily picture that will change given ACME is the protocol used by Let's encrypt
atumzin has quit [Read error: Connection reset by peer]
rgrmatt has quit [Remote host closed the connection]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
shock_one has joined #ruby
otherj has joined #ruby
f00bar-32 has joined #ruby
framling has joined #ruby
otherj has quit [Client Quit]
codecop has quit [Remote host closed the connection]
atumzin has quit [Read error: Connection reset by peer]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
hxegon has joined #ruby
zarubin has quit []
<adaedra>
ruboto_: you're all dressed up with this underscore (cc apeiros)
DeXterbed has quit [Ping timeout: 250 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
rgrmatt has joined #ruby
atomical has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
Coraline has quit [Ping timeout: 240 seconds]
atomical has joined #ruby
Coraline has joined #ruby
rgrmatt has quit [Remote host closed the connection]
blowmage has quit [Ping timeout: 260 seconds]
rgrmatt has joined #ruby
maxmanders has quit [Ping timeout: 260 seconds]
alexblom has quit [Ping timeout: 260 seconds]
clamstar has quit [Ping timeout: 260 seconds]
sirecote has quit [Ping timeout: 260 seconds]
vF3hNGxc47h8 has joined #ruby
duckpuppy has joined #ruby
atomical has quit [Max SendQ exceeded]
marienz_ has quit [Ping timeout: 600 seconds]
Wsewolod has quit [Ping timeout: 240 seconds]
sirecote has joined #ruby
ruid has quit [Ping timeout: 250 seconds]
alexblom has joined #ruby
maxmanders has joined #ruby
blowmage has joined #ruby
jgt1 has joined #ruby
jbrhbr1 has quit [Quit: Leaving.]
duckpuppy has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
blowmage has quit [Ping timeout: 272 seconds]
clamstar has joined #ruby
atomical has joined #ruby
blowmage has joined #ruby
rgrmatt has joined #ruby
Arnvald has joined #ruby
DeXterbed has joined #ruby
zarubin has joined #ruby
zarubin has quit [Client Quit]
rgrmatt has quit [Remote host closed the connection]
Wsewolod has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
chouhoulis has quit []
spidermario is now known as spider-mario
atomical has quit [Max SendQ exceeded]
bbert has joined #ruby
Arnvald has quit [Ping timeout: 250 seconds]
dopie has quit [Read error: No route to host]
rgrmatt has joined #ruby
<zacts>
are there any good Ruby music synth gems?
dfinninger has joined #ruby
<zacts>
for live musical programming
dopie has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<adaedra>
Running gems installed for 2.2 with ruby 2.0? Great idea you have here, RubyMine.
rgrmatt has joined #ruby
blowmage has quit [Ping timeout: 250 seconds]
<bbert>
Hi. C++ programmer here trying to get comfortable in Ruby. About programming with OO paradigms in Ruby, I keep seeing in the docs things like globally scoped variables. For example, the mutex defined on this page's example: http://ruby-doc.org/core-2.2.0/Mutex.html . Is this for brevity, or is it more idiomatic to actually do it this way in Ruby?
BTRRY has joined #ruby
<adaedra>
For sample.
<adaedra>
But note that you'll have to do some things at the top level, as there is no main function – the code at top-level is the one that runs at startup.
devbug_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BTRE has quit [Ping timeout: 272 seconds]
dfinninger has quit [Ping timeout: 256 seconds]
blowmage has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
atomical has joined #ruby
JDiPierro has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
rgrmatt has quit [Remote host closed the connection]
devbug has joined #ruby
shock_one has quit [Ping timeout: 240 seconds]
<jhass>
bbert: it's mainly brevity, yes
rgrmatt has joined #ruby
lurch_ has quit [Quit: lurch_]
weemsledeux has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
jessemcgilallen has quit [Quit: jessemcgilallen]
aspire has quit [Quit: Leaving]
al2o3-cr has quit [Quit: WeeChat 1.3]
chouhoulis has joined #ruby
al2o3-cr has joined #ruby
stannard has joined #ruby
Xentil has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
JDiPierro has joined #ruby
workmad3 has joined #ruby
JDiPierro has quit [Remote host closed the connection]
InvGhostt has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
JDiPierro has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
<adaedra>
mh, test failing because of rspec mocking getting in the way.
<bbert>
jhass and adaedra: thanks. I thought as much. I suppose that it does make it more accessible at a glance, but I started to worry about the quality (from an OO perspective) of the code I'd run into.
rgrmatt has joined #ruby
tomphp has joined #ruby
<adaedra>
bbert: usually, for short and quick code, you'll stay in the global scope. For larger project, you'll try to stuff things in classes/modules, and keep little in the top-level.
rgrmatt has quit [Remote host closed the connection]
Suntzu has quit [Ping timeout: 250 seconds]
rgrmatt has joined #ruby
vF3hNGxc47h8 has quit [Remote host closed the connection]
roshanavand has joined #ruby
<bbert>
adaedra: that's similar to breaking components out into their own header and object files in C++. Keeps things logically separated and makes it easier to program to an interface/abstraction.
<adaedra>
that's different.
devbug_ has joined #ruby
yfeldblum has joined #ruby
superman_ has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<adaedra>
in C++, you'll keep declaration and implementation separate (the header and source). In Ruby, you cannot, as you cannot just declare something.
devbug has quit [Ping timeout: 250 seconds]
YankNYC has quit [Quit: Connection closed for inactivity]
ChameleonSix has joined #ruby
<bbert>
adaedra: no, I get that. I'm just saying that by logically separating things, for instance in a module (that may live in another file), you steer yourself in the direction of interacting with that code through some designed manner, not simply changing it to suit your current needs
<ChameleonSix>
Hello
<ChameleonSix>
Can anyone help me
<adaedra>
?ask ChameleonSix
<ruboto_>
ChameleonSix, Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<ChameleonSix>
i got a bet with a friend
<ChameleonSix>
i need to bypass admin.php login somehow
<ChameleonSix>
i want to make a website that uses that ruby code
<ChameleonSix>
how do i link them together
<shevy>
ChameleonSix you can use .cgi
Cohedrin has joined #ruby
<ChameleonSix>
like script source?
Ebok has joined #ruby
<shevy>
what is script source
<havenwood>
ChameleonSix: Look at my first link. Read!
<jhass>
ChameleonSix: I don't believe you that you fully evaluated havenwood's suggestion in less than a minute, especially given that you're on a phone
<julian-delphiki>
I think he means he wants to use ruby like you can use javascript.
<jhass>
ChameleonSix: please stop wasting our time
<jhass>
julian-delphiki: I think they don't know what they want because they didn't do any research yet
<julian-delphiki>
also possible.
<shevy>
julian-delphiki huh how weird
<havenwood>
ERB
<shevy>
but if he wants to do away with javascript in favour of ruby, I am all for it!
<ChameleonSix>
it is easier with js
<shevy>
the-browser-as-programming-environment
bklane has joined #ruby
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
<ChameleonSix>
anyway
dlitvak has joined #ruby
<ChameleonSix>
i same things with ruby as with python
Freeaqingme has joined #ruby
<ChameleonSix>
can do
bb010g has joined #ruby
<jhass>
yes
<julian-delphiki>
ChameleonSix, again, one line at a time please.
<shevy>
on a phone
<shevy>
you type like
<shevy>
this
<adaedra>
shevy: don't.
<adaedra>
If the phone medium is not good enough to use IRC correctly, then wait to be in a better environment.
<jhass>
in other words I don't care where your bad habit comes from, it doesn't excuse it
scripore has joined #ruby
crack__david has joined #ruby
ChameleonSix has quit [Ping timeout: 252 seconds]
<jhass>
that should give us another week or three
<shevy>
I think it'll give us perhaps two hours at best
<shevy>
he will be back!
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<crack__david>
hey, when i set rbenv global 2.1.4 should ruby -v show 2.1.4?
arooni has joined #ruby
<crack__david>
because it shows me 1.9.3 :/
tenderlove has quit [Remote host closed the connection]
<hxegon>
<ChameleonSix> HEY CAN YOU\nTEACH ME\n RUB\nY ON\nRAILS\n???
agent_white has joined #ruby
<jhass>
crack__david: mmh, how strongly are you attached to rbenv? :P
m8 has quit [Quit: Sto andando via]
beast has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hxegon>
crack__david: what does rbenv versions show
<crack__david>
im not really sure. i just started today learning ruby and im setting up my development environment on ubuntu
saneax_AFK is now known as saneax
Cohedrin has joined #ruby
<crack__david>
rbenv versions shows 2.1.4
tenderlove has joined #ruby
tenderlove has quit [Remote host closed the connection]
<hxegon>
crack__david: did you install that ruby version through rbenv?
pandaant_ has quit [Remote host closed the connection]
<crack__david>
i want to do the lynda course but ive to setup a development environment which is kinda difficult for me
bklane_ has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
<shevy>
what is the indent to use in a ruby-c file? I am looking at ruby-gnome, it uses 4 spaces as indent
<hxegon>
crack__david: learning about the dev env is kind of a right of passage. It's all stuff you need to learn anyway, and knowing that stuff makes trouble shooting easier.
<jhass>
shevy: I doubt there's a community convention for that
bklane has quit [Ping timeout: 256 seconds]
rgrmatt has quit [Remote host closed the connection]
<crack__david>
i c, makes sense
<jhass>
but good C code should also be good ruby extension C code
rgrmatt has joined #ruby
<jhass>
crack__david: also note that there's a separate room for rails questions, #RubyOnRails
<crack__david>
hxegon: any idea where to start?
<crack__david>
ah ok
<crack__david>
didnt knew that
Arnvald has joined #ruby
duckpuppy has joined #ruby
<hxegon>
crack__david: not really, I just learned by dealing with problems that came up naturally.
Arnvald has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
duckpuppy has quit [Ping timeout: 272 seconds]
jgt1 has joined #ruby
PaulCapestany has quit [Quit: .]
JammyHammy has joined #ruby
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
stevenxl has quit [Client Quit]
bklane_ has quit [Ping timeout: 240 seconds]
PaulCapestany has joined #ruby
bklane has joined #ruby
ChameleonSix has joined #ruby
<ChameleonSix>
hi
bronson has joined #ruby
wolffles has joined #ruby
ChameleonSix has left #ruby [#ruby]
_stu_ has joined #ruby
wolffles has quit [Client Quit]
rgrmatt has quit [Remote host closed the connection]
wolffles has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
dfinninger has joined #ruby
<shevy>
he was back!
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Read error: Connection reset by peer]
rgrmatt has joined #ruby
bklane has joined #ruby
shock_one has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
agent_white has quit [Remote host closed the connection]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
rgrmatt has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bklane has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: leaving]
djbkd has joined #ruby
Stalkr_ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
stevenxl has joined #ruby
stevenxl has quit [Changing host]
stevenxl has joined #ruby
<Stalkr_>
Hi, I am using Grape to define my API. I want to accept an array for parameter, but both ?a[]=x&a[]=y and ?a[0]=x&a[1]=y should be legal, anyone knows how to do that? I only have success for a[]=x&a[]=y requests
platzhirsch has left #ruby [#ruby]
bronson has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
<darix>
Stalkr_: the a[] syntax without index makes more sense imho. with the 2nd syntax it is really easy to remove a field and then forgetting to reindex everything.
kalopsian has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
<Stalkr_>
darix: Problem is I can only figure out how to send the [0] syntax from the client, but the backend only accepts []