<DouweM>
drim: you'd need to have email return an object that implements <<
<yoshie902a>
;(
enebo has quit [Quit: enebo]
binaryhat has joined #ruby
<soahccc>
I think it is possible to "patch" methods onto single instances but it isn't really good usually
burlyscudd has quit [Quit: Leaving.]
mneorr_ has joined #ruby
<lethjakman>
DouweM: only thing that's confusing me is I don't see sale being declared and I'm inside Sale....so how does it know which sale is in question?
<DouweM>
you're passing a lambda in the :if option. a lambda is pretty much a function that can be stored and then called at any time. so what activemodel does is call that lambda with a sale when validating the sale
<DouweM>
so the sale arg is the sale currently being validated
MrZYX is now known as MrZYX|off
<lethjakman>
it's definitely working
thumpba has quit [Remote host closed the connection]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
guinslym has quit [Ping timeout: 272 seconds]
iamsean has joined #ruby
Targen has joined #ruby
<popl>
why?
<bnagy>
inorite?
eka has quit [Quit: Computer has gone to sleep.]
zz_karupanerura is now known as karupanerura
<popl>
You might get threats.
<bnagy>
basically I have some wrapped C objects that come back from the lib, and against my better instincts I want to give people a footgun to save them in an array instead of consuming them immediately via Enumerable
yfeldblum has joined #ruby
<bnagy>
so I can either laboriously build a new HLL object by copying every single thing out of the C obj, or do something revolting
doodlehaus has joined #ruby
<popl>
You might get threats.
diegoviola has joined #ruby
<popl>
Is anyone using crabstone?
<bnagy>
maybe I'll make it private, so you have to explicitly call it via private_methods
<bnagy>
so the user code will look as bad as it is
<bnagy>
*shrug*
havenwood has quit [Remote host closed the connection]
<bnagy>
I use the go version
tkuchiki has quit [Remote host closed the connection]
<popl>
You should put a big warning sign on that, yeah.
<popl>
:)
<bnagy>
but we wanted a ruby wrapper to at least be available
tt1187 has quit [Ping timeout: 248 seconds]
tkuchiki has joined #ruby
* Hanmac
's bindings point and laugh about ObjectSpace finalizers ;P
<bnagy>
in other news, MRI FFI segfaults when trying to .clone FFI structs with embedded pointers
<bnagy>
so that's nice
Vivekananda has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
predator217 has joined #ruby
<shevy>
hehehe
mhenrixon is now known as mhenrixon|afk
digital-_ has joined #ruby
davidhq_ has joined #ruby
alexfreidah has joined #ruby
whomp has quit [Quit: leaving]
mikepack has joined #ruby
yoshie902a has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 252 seconds]
digital-ghost has quit [Ping timeout: 260 seconds]
predator117 has quit [Ping timeout: 248 seconds]
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby
davidhq has quit [Ping timeout: 276 seconds]
szerated has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
cbetta is now known as cbetta_afk
ss has joined #ruby
ss is now known as Guest4705
mikepack has quit [Ping timeout: 272 seconds]
kitak has joined #ruby
SCommette has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cescalante is now known as ce_afk
vlad_starkov has quit [Remote host closed the connection]
Guest19668 is now known as raar
raar has quit [Changing host]
raar has joined #ruby
rootshift has joined #ruby
unixpro1970 has quit [Quit: unixpro1970 has off IRC]
gr33n7007h has quit [Ping timeout: 272 seconds]
mocfive_ has quit [Remote host closed the connection]
mocfive has joined #ruby
vlad_starkov has joined #ruby
mansi has joined #ruby
rahult has joined #ruby
axl_ has quit [Quit: axl_]
mocfive_ has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
mocfive has quit [Read error: Connection reset by peer]
Megtastique has quit []
w4pm has quit [Read error: Connection reset by peer]
w4pm has joined #ruby
mneorr_ has quit [Remote host closed the connection]
RagingDave has joined #ruby
mneorr has joined #ruby
RagingDave has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 272 seconds]
ckinni has joined #ruby
rankine has quit [Quit: Leaving]
robustus has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robustus has joined #ruby
tkuchiki has joined #ruby
ce_afk is now known as cescalante
tylersmith has quit [Remote host closed the connection]
chrisseaton has quit []
vlad_starkov has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
Guedes0 has quit [Remote host closed the connection]
starkhalo has quit [Ping timeout: 272 seconds]
mocfive_ has quit [Remote host closed the connection]
nfk has quit [Ping timeout: 248 seconds]
mocfive has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
charliesome has joined #ruby
noob101 has joined #ruby
<noob101>
Why is Gambling seen as a victimless crime?
<DouweM>
what?
Guest41562 has quit [Ping timeout: 248 seconds]
maycon has joined #ruby
pizzocel has joined #ruby
jenskarlsen has quit [Remote host closed the connection]
jenskarlsen has joined #ruby
havenwood has joined #ruby
<lewellyn>
ERROR: Could not find a valid gem 'gambling' (>= 0) in any repository
mocfive has quit [Ping timeout: 272 seconds]
davidhq_ has quit [Remote host closed the connection]
davidhq has joined #ruby
<noob101>
Why is Gambling seen as a victimless crime? Is it really a Victimless crime?
maletor has quit [Quit: Computer has gone to sleep.]
tt1187 has joined #ruby
davidhq has quit []
mikepack has joined #ruby
coda23 has joined #ruby
sLi_ has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
sailias has joined #ruby
davidhq has joined #ruby
CaptainJet has joined #ruby
Ehtyar has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
Hobogrammer has quit [Ping timeout: 265 seconds]
<Ehtyar>
hi guys, i'm looking to capture errors from a specific ruby function in a manner similar to perl "or". Something like my_function or puts "error trying to my_function". Does such a thing exist in ruby?
mklappstuhl has joined #ruby
mehlah has quit [Quit: Leaving...]
sparrovv has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
thesheff17 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
mklappstuhl has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
mneorr has joined #ruby
io_syl has quit []
kenndel_ has quit [Read error: Connection reset by peer]
kenndel_ has joined #ruby
<soahccc>
Ehtyar: I don't know perl. in ruby "method || puts "failed" would print if the result of method is falsy
tt1187 has quit [Ping timeout: 272 seconds]
<soahccc>
Ehtyar: can you elaborate "capture errors"?
[Neurotic] has left #ruby [#ruby]
vlad_starkov has joined #ruby
mojjojo has quit [Quit: mojjojo]
zeade has quit [Quit: Leaving.]
mneorr has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
szerated has joined #ruby
LastWhisper has quit [Ping timeout: 272 seconds]
Tamal has joined #ruby
mocfive has joined #ruby
Tamal has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
phipes has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
clevermatt has quit [Remote host closed the connection]
<Ehtyar>
well i guess the return value would do
<Ehtyar>
i was thinking more of exceptions
<Ehtyar>
but i don't want to rescue each function individually
fijimunkii has quit [Ping timeout: 260 seconds]
<bnagy>
you can do blah = obj.xyzzy rescue '4'
<bnagy>
it's not usually considered to be great style though, but depends how certain you are of the possible failure states
phipes has joined #ruby
sLi- has joined #ruby
<Ehtyar>
oh actually that's perfect
<Ehtyar>
thank you!
clevermatt has joined #ruby
szerated has quit [Read error: Connection reset by peer]
szerated has joined #ruby
Cephalostrum has quit [Quit: Aim higher. Try this: why am I here? Why do I exist, and what is my purpose in this universe? (Answers: 'Cause you are. 'Cause you do. 'Cause I got a shotgun, and you ain't got one.)]
mojjojo has joined #ruby
habanany has quit [Ping timeout: 252 seconds]
dukz has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
Cephalostrum has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
idoru has joined #ruby
<shevy>
soahccc awwww you should have learned perl!
<shevy>
but don't worry, perl 6 is still available in the future
<centrx>
In 10-20 years
phipes has quit [Remote host closed the connection]
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
bricker`1ork has joined #ruby
phipes has joined #ruby
rburton- has joined #ruby
mocfive has quit [Remote host closed the connection]
Bira has joined #ruby
mocfive has joined #ruby
LostMonk- has joined #ruby
Xiti` has joined #ruby
fella6s has joined #ruby
krz has joined #ruby
starkhalo has joined #ruby
davidhq_ has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
bricker`1A is now known as bricker`LA
peregrin_ has quit []
Vitor__ has joined #ruby
davidhq has quit [Ping timeout: 252 seconds]
synergy_ has joined #ruby
mocfive has quit [Ping timeout: 248 seconds]
Vitor_ has quit [Ping timeout: 272 seconds]
Xiti has quit [Ping timeout: 252 seconds]
LostMonk has quit [Ping timeout: 252 seconds]
fella5s has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
e62 has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
dukz has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 276 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
alexfreidah has quit [Ping timeout: 260 seconds]
drim has quit [Quit: drim]
tylersmith has joined #ruby
szerated has quit [Ping timeout: 245 seconds]
echevemaster has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
doodlehaus has quit [Remote host closed the connection]
Barrin6 has joined #ruby
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
lioninawhat has quit [Remote host closed the connection]
samuel02 has joined #ruby
guinslym has joined #ruby
brennanMKE has joined #ruby
araujo has quit [Read error: Connection reset by peer]
tylersmith has quit [Ping timeout: 252 seconds]
drim has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
godd2 has joined #ruby
<RubyPanther>
It may not be finished, but [a few] people were already using Perl 6 when I switched to Ruby in 2004. So it has to be even more usable by now, regardless of completion status.
<brennanMKE>
Perl 6?
<brennanMKE>
over 10 years and it is still not done
mocfive has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 272 seconds]
mocfive has joined #ruby
freerobby has joined #ruby
CaptainJet has quit []
mocfive has quit [Read error: Connection reset by peer]
mocfive has joined #ruby
deens has joined #ruby
danshultz has joined #ruby
clevermatt has quit [Remote host closed the connection]
m00nlight has joined #ruby
Wolland has quit [Remote host closed the connection]
blandflakes has quit [Quit: Page closed]
<centrx>
I just used the evalbot in #perl6, and the bot immediately quit, so I think I crashed it
chomskiii has quit [Read error: Connection reset by peer]
<centrx>
IRC version of Perl6 not ready for prime time
chomskiii has joined #ruby
mojjojo has quit [Quit: mojjojo]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
mr_red has quit [Quit: Bye :)]
gja has joined #ruby
braincrash has quit [Read error: Operation timed out]
bnagy has quit [Ping timeout: 260 seconds]
bnagy has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
mr_red has joined #ruby
St_Marx has quit [Quit: leaving]
St_Marx has joined #ruby
vlad_starkov has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
RubyPanther has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
jenskarlsen has quit [Remote host closed the connection]
jenskarlsen has joined #ruby
sailias has quit [Ping timeout: 265 seconds]
kcombs has joined #ruby
RubyPanther has joined #ruby
gigetoo has quit [Remote host closed the connection]
mgorbach has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troyready has quit [Ping timeout: 248 seconds]
gigetoo has joined #ruby
glaksmono has quit [Quit: This computer has gone to sleep]
araujo has joined #ruby
araujo has quit [Read error: Connection reset by peer]
phinfonet has quit [Quit: exitiing]
saarinen has quit [Quit: saarinen]
thomasxie has joined #ruby
ewnd9_ has joined #ruby
szerated has joined #ruby
Hobogrammer has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Remote host closed the connection]
jaimef has quit [Excess Flood]
sassamo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
jaimef has joined #ruby
Jake232 has joined #ruby
cescalante is now known as ce_afk
amclain has joined #ruby
MattStratton has joined #ruby
nari has joined #ruby
Guest4705 has quit [Remote host closed the connection]
ss has joined #ruby
ss is now known as Guest83811
szerated has quit [Ping timeout: 245 seconds]
Jdubs has quit [Remote host closed the connection]
mlpinit_ has quit [Ping timeout: 260 seconds]
Jdubs has joined #ruby
heidi has quit [Quit: Leaving.]
Jdubs has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
Guest83811 has quit [Ping timeout: 245 seconds]
fedesilva has quit [Remote host closed the connection]
Ehtyar has quit [Quit: Page closed]
burlyscudd has joined #ruby
zenNamaste has joined #ruby
m00nlight_ has joined #ruby
samuel02 has joined #ruby
godd2 has quit [Ping timeout: 252 seconds]
godd2 has joined #ruby
prc has quit [Remote host closed the connection]
m00nlight has quit [Ping timeout: 245 seconds]
szerated has joined #ruby
<zenNamaste>
howdy all. I created a xmlrpc-client with: " @server = XMLRPC::Client.new_from_uri('https://beaker.engineering.redhat.com/RPC2') " but when I call a rpc-method with param = @server.call("auth.login_password", "c", "zxc"), it shows: wrong/unknown XML-RPC type 'nil' (RuntimeError).
mansi has quit [Remote host closed the connection]
radic has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
samuel02 has quit [Ping timeout: 260 seconds]
<zenNamaste>
does the error message means some Version conflict?
Jetchisel has quit [Ping timeout: 256 seconds]
prc has joined #ruby
radic has joined #ruby
mansi has quit [Ping timeout: 260 seconds]
ehaliewicz has quit [Remote host closed the connection]
aspires has joined #ruby
<bricker`LA>
zenNamaste: set XMLRPC::Config::ENABLE_NIL_PARSER = true
burlyscudd has quit [Quit: Leaving.]
<zenNamaste>
bricker`LA: I'll try. Thanks tons!
aspires has quit [Client Quit]
aspires has joined #ruby
aspires has quit [Client Quit]
pel_daniel has left #ruby [#ruby]
lioninawhat has joined #ruby
mansi has joined #ruby
<zenNamaste>
bricker`LA: it works! but I got following warning: http://ix.io/9V7
<zenNamaste>
bricker`LA: does it mean I should change the config.rb? thanks.
snath has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
coda23 has quit [Quit: Leaving]
aspires has joined #ruby
dkamioka has joined #ruby
deens has quit [Remote host closed the connection]
dkamioka has quit [Remote host closed the connection]
ce_afk is now known as cescalante
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
Wolland has joined #ruby
webus has joined #ruby
Seich has joined #ruby
ewnd9_ has quit [Ping timeout: 260 seconds]
danshultz has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
danshultz has joined #ruby
Asher has quit [Quit: Leaving.]
zeade has joined #ruby
<bricker`LA>
zenNamaste: no way to get around that warning really, the constant is defined inside of Ruby's stdlib. It's just a warning afterall.
Asher has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 252 seconds]
<zenNamaste>
bricker`LA: I see. Thanks.
starkhalo has quit [Ping timeout: 245 seconds]
aagdbl has quit [Quit: Leaving]
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
cafhacker has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
ss has joined #ruby
mocfive has quit [Remote host closed the connection]
ss is now known as Guest2215
mocfive has joined #ruby
lioninawhat has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 248 seconds]
mocfive has quit [Ping timeout: 245 seconds]
starkhalo has joined #ruby
Jake232 has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
snath has joined #ruby
thesheff17 has quit [Remote host closed the connection]
<diegoviola>
please give me a tl;dr version of what refinements are, thanks
aspires has quit []
alexfreidah has joined #ruby
goganchic has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<bricker`LA>
diegoviola: a way to modify a class and apply those modifications selectively, an improvement on the common Ruby practice of modifying classes globally
mansi has quit [Remote host closed the connection]
<diegoviola>
thanks\
<diegoviola>
thanks*
<bricker`LA>
s/class/module to be more accurate
mansi has joined #ruby
freezey has joined #ruby
yacks has joined #ruby
alexfreidah has quit [Ping timeout: 265 seconds]
digital-_ has quit [Remote host closed the connection]
guinslym has quit [Quit: Leaving]
kobain has quit []
mansi has quit [Ping timeout: 252 seconds]
<diegoviola>
i see
lioninawhat has joined #ruby
jle` has quit [Quit: WeeChat 0.4.2]
gja has quit [Quit: This computer has gone to sleep]
Hanmac has joined #ruby
jle` has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
sensen has joined #ruby
godd2 has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
samuel02 has joined #ruby
<centrx>
I see
bbloom has joined #ruby
Jetchisel has joined #ruby
lfox has quit [Quit: ZZZzzz…]
Jdubs has joined #ruby
lfox has joined #ruby
lfox has quit [Client Quit]
josbrahol has joined #ruby
josbrahol has quit [Client Quit]
samuel02 has quit [Ping timeout: 245 seconds]
b00stfr31k has joined #ruby
Jdubs has quit [Ping timeout: 245 seconds]
bbloom has quit [Ping timeout: 260 seconds]
krz has quit [Ping timeout: 246 seconds]
Cephalostrum has quit [Read error: Connection reset by peer]
tyl has joined #ruby
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
starkhalo has quit [Ping timeout: 245 seconds]
Cephalostrum has joined #ruby
Cephalostrum has quit [Max SendQ exceeded]
krz has joined #ruby
Cephalostrum has joined #ruby
deens has joined #ruby
coderhs has joined #ruby
szerated has quit [Ping timeout: 245 seconds]
stryek has quit [Quit: Leaving]
lioninawhat has quit [Remote host closed the connection]
deens has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
<RubyPanther>
why not factorygirl About 1,170,000 results
Cephalostrum has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
<pontiki>
just mentioned over in the rails place...
JohnBat26 has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
Jdubs has joined #ruby
vlad_starkov has joined #ruby
phipes has quit [Remote host closed the connection]
dkamioka has joined #ruby
aspires has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
deens has joined #ruby
goganchic has quit []
mikepack has joined #ruby
icy` has joined #ruby
icy` has quit [Client Quit]
dkamioka has quit [Remote host closed the connection]
St_Marx has quit [Quit: Ex-Chat]
starkhalo has joined #ruby
browndawg has joined #ruby
deens has quit [Ping timeout: 265 seconds]
mikepack has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
obbo has joined #ruby
zmansiv has quit [Ping timeout: 252 seconds]
<obbo>
hello. i am trying to get a timezone name (i.e. "America/New_York") from a given datetime: 2011-03-30T14:08:14-04:00 is there any way to do this?
<lewellyn>
obbo: no.
robbyoconnor has joined #ruby
<lewellyn>
how do you know that the user is in America/New_York versus someplace else 4 hours behind UTC?
Soda has joined #ruby
zmansiv has joined #ruby
micah` has quit [Remote host closed the connection]
<lewellyn>
i mean, if you have *additional* data, you can potentially make a pretty good guess.
Deele has joined #ruby
<obbo>
yeah, the app is for a very specific purpose. if the offset is -0400 or -0500 you are considered to be on the "east coast"
<obbo>
any way to get just the offset amount (-0400) from a datetime string?
freerobby has quit [Quit: Leaving.]
<obbo>
i basically need a way to tell which section of the united states a datetime string is from
<lewellyn>
so what about those in, say, nova scotia? :P
Paradox has quit [Ping timeout: 276 seconds]
<lewellyn>
or is this guaranteed to be united states only?
<lewellyn>
(and i assume you'll account for daylight saving time appropriately)
Guest2215 has quit [Ping timeout: 265 seconds]
Paradox has joined #ruby
<obbo>
yeah, guaranteed to be in the US. it's an app that parses my emails
<lewellyn>
so which timezones do you care about? and how would you classify them?
rickruby has joined #ruby
phipes has joined #ruby
<lewellyn>
4-5 east coast, 6 middle us, 7-8 west coast? (realizing that people will move between those as the seasons change)
sski has joined #ruby
jonathanwallace has quit [Ping timeout: 246 seconds]
<obbo>
i have friends who send me emails from hawaii and california, some from texas and some from ny. i just want a way to tell me the total amounts of email come from west/central/east
<obbo>
is there a time method that give me the offset or should i just regex?
senayar has joined #ruby
ohwhoa has joined #ruby
senayar has quit [Remote host closed the connection]
<lewellyn>
if so, i'd start by slicing the string. [-4] will get you the single digit hour offset.
senayar has joined #ruby
senayar has quit [Client Quit]
<lewellyn>
then just use one of any number of ways to correlate that digit to a string.
<lewellyn>
i'd probably use a case statement for the whole shebang.
<lewellyn>
offset = case timestamp[-4]
VesQ has quit [Ping timeout: 246 seconds]
<lewellyn>
when "6" then "Central"
Bira has quit [Remote host closed the connection]
<lewellyn>
end
<lewellyn>
something like that.
Sami345 has quit [Ping timeout: 260 seconds]
rezzack has quit [Ping timeout: 272 seconds]
<obbo>
that sounds good. now, silly question, i'm pretty new to programming: if I parse the datetime strings into Time objects and use #utc on them. if i then sort on that, it should order chronologically, right?
jonathanwallace has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
<lewellyn>
actually, if you use timestamp[-4].to_i you can use e.g. when 4..5 then "East Coast"
brennanMKE has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lewellyn>
um. i thought you were parsing email headers?
<lewellyn>
oh. i think i see what you're asking.
<lewellyn>
hm.
<lewellyn>
i don't know offhand. all i can suggest is "try it" :)
havenwood has joined #ruby
dkamioka has joined #ruby
gja has joined #ruby
<obbo>
ha, thanks
obbo has quit [Quit: Page closed]
phipes has quit [Remote host closed the connection]
deens has joined #ruby
brennanMKE has quit [Ping timeout: 260 seconds]
IceDragon has quit [Quit: Space~~~]
cyberarm has quit [Remote host closed the connection]
deens has quit [Client Quit]
Sawbones has joined #ruby
venkat has joined #ruby
e62 has joined #ruby
r0bby_ has joined #ruby
robbyoconnor has quit [Ping timeout: 272 seconds]
mocfive has joined #ruby
godd2 has quit [Ping timeout: 245 seconds]
godd2 has joined #ruby
phipes has joined #ruby
freezey has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 248 seconds]
vim_shim_ has quit [Read error: Connection reset by peer]
vim_shim_ has joined #ruby
tylersmith has joined #ruby
dkamioka has quit [Remote host closed the connection]
phipes has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
pranny has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
browndawg has quit [Ping timeout: 272 seconds]
cj3kim has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
sassamo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
RubyPanther has joined #ruby
achru has joined #ruby
_tpavel has joined #ruby
Barrin6 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
soba has joined #ruby
coder_neo has joined #ruby
vlad_sta_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
e62 has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
Seich has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
Hobogrammer_ has joined #ruby
Seich has joined #ruby
mary5030 has joined #ruby
pu22l3r_ has quit [Ping timeout: 246 seconds]
Hobogrammer has quit [Ping timeout: 252 seconds]
Hobogrammer_ has quit [Ping timeout: 248 seconds]
freerobby1 has quit [Ping timeout: 260 seconds]
Hobogrammer has joined #ruby
bjhaid has quit [Ping timeout: 276 seconds]
BrixSat has quit [Remote host closed the connection]
kate_r has joined #ruby
BrixSat has joined #ruby
pu22l3r has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
Wolland has joined #ruby
dukz has quit [Remote host closed the connection]
Seich has joined #ruby
browndawg has joined #ruby
Macaveli has joined #ruby
v0n has quit [Ping timeout: 260 seconds]
Seich has quit [Ping timeout: 272 seconds]
phipes has joined #ruby
bluOxigen has joined #ruby
kuzushi__ has joined #ruby
VesQ has joined #ruby
rezzack has joined #ruby
Tarential has quit [Excess Flood]
kaldrenon has joined #ruby
Sawbones has joined #ruby
kate_r has quit [Read error: Connection reset by peer]
Tarential has joined #ruby
kate_r has joined #ruby
baroquebobcat has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
kuzushi_ has quit [Ping timeout: 272 seconds]
falood has joined #ruby
alexfreidah has joined #ruby
Sami345 has joined #ruby
gja has joined #ruby
aagdbl has joined #ruby
rickruby has quit [Remote host closed the connection]
kaldrenon has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
SCommette has quit [Quit: SCommette]
synergy_ has quit [Remote host closed the connection]
mhenrixon|afk has quit [Read error: Operation timed out]
yaymukund has quit [Ping timeout: 252 seconds]
mehlah has joined #ruby
xjiujiu has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
tubuliferous__ has left #ruby ["Leaving"]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
sassamo_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
sassamo has joined #ruby
Xeago_ has joined #ruby
zeade has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 252 seconds]
andikr has joined #ruby
derick_skibotn has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
Xeago has quit [Ping timeout: 245 seconds]
xjiujiu has joined #ruby
MindfulMonk has quit [Ping timeout: 272 seconds]
sassamo has quit [Ping timeout: 245 seconds]
gasbakid has joined #ruby
zegerjan has joined #ruby
camilasan has joined #ruby
cj3kim has quit [Remote host closed the connection]
browndawg has joined #ruby
LekeFly has joined #ruby
lethjakman has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
maoko has joined #ruby
<DefV>
q/4
klaut has quit [Ping timeout: 260 seconds]
alexfreidah has joined #ruby
phansch has joined #ruby
stetho has quit [Quit: Textual IRC Client: www.textualapp.com. I don't know why I'm advertising something I paid for but couldn't think of anything funny.]
b00stfr31k has quit [Quit: leaving]
dogonthesun has joined #ruby
echevemaster has quit [Quit: Leaving]
alexfreidah has quit [Ping timeout: 252 seconds]
fusi0n has quit [Quit: .]
avril14th has joined #ruby
fijimunkii has quit [Ping timeout: 252 seconds]
mhenrixon has joined #ruby
camilasan has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Xzanron has joined #ruby
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
Wolland has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
braincrash has joined #ruby
e62 has joined #ruby
cbetta_afk is now known as cbetta
brennanMKE has quit [Ping timeout: 252 seconds]
krz has joined #ruby
camilasan has joined #ruby
e62 has quit [Ping timeout: 245 seconds]
shaunbaker has joined #ruby
Bira has quit [Remote host closed the connection]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
freerobby has joined #ruby
xjiujiu has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ctp has joined #ruby
clevermatt has joined #ruby
alexherbo2 has joined #ruby
<jglauche>
I like symbols
freerobby has quit [Ping timeout: 260 seconds]
klaut has joined #ruby
ahawkins has joined #ruby
<shevy>
hmm
<shevy>
I think symbols are more annoying to define in yaml files
<shevy>
which is what my dataset is loaded from initially
diegoviola has quit [Quit: WeeChat 0.4.2]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
<RubyPanther>
for some reason my ruby is stuck, and when I try to install native gems, it tries to re-build cairo. Even though cairo isn't a dep for what I'm installing
Seich has joined #ruby
<RubyPanther>
and not just once, it starts like a dozen processes trying to install the same thing!
nhhagen has quit [Remote host closed the connection]
<shevy>
cool
<RubyPanther>
yeah, that's what I thought
<shevy>
:D
h_kon has joined #ruby
<shevy>
why does it want to build cairo and more importantly, what exactly - rcairo?
karupanerura is now known as zz_karupanerura
<RubyPanther>
cairo-1.12.8 which I have installed already
gja has quit [Quit: This computer has gone to sleep]
ferr has joined #ruby
coder_neo has joined #ruby
<RubyPanther>
but the rebuild fails
nomenkun has quit [Ping timeout: 272 seconds]
<shevy>
hmmmm
<shevy>
I have cairo 1.12.16 installed
nhhagen has joined #ruby
aagdbl has joined #ruby
<RubyPanther>
even just running irb... it tries to compile cairo
Seich has quit [Ping timeout: 245 seconds]
aaronmcadam has joined #ruby
nari has quit [Ping timeout: 276 seconds]
gja has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
<shevy>
lol
<shevy>
that is awesome though
<shevy>
as if you'd have a virus!
<RubyPanther>
yeah, it is like that. or a poltergeist
tkuchiki has quit [Remote host closed the connection]
sec^nd has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
allen_on_c has quit [Remote host closed the connection]
allen_on_c has joined #ruby
allen_on_c has quit [Client Quit]
alexfreidah has joined #ruby
mklappstuhl has joined #ruby
chavezgu has joined #ruby
<RubyPanther>
looks like I had a cairo extension with a later date than the gem
zeeraw has joined #ruby
_bart has quit []
chavezgu has left #ruby ["WeeChat 0.4.2"]
tkuchiki has quit [Ping timeout: 245 seconds]
<RubyPanther>
I rm -rf 'd them both and irb starts again
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<shevy>
lol
xjiujiu has joined #ruby
m00nlight has joined #ruby
francisfish has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
alexfreidah has quit [Ping timeout: 252 seconds]
nhhagen has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
mojjojo has joined #ruby
davidhq_ has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
davidhq has joined #ruby
Bira has joined #ruby
marr has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
BorjaGVO has joined #ruby
kizzx2 has joined #ruby
mengu has quit [Remote host closed the connection]
sassamo has joined #ruby
drumusician has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 265 seconds]
<BorjaGVO>
Hello! How can I get info about a method in Ruby? For example, if I want to use the method "string".lines and I want info about what that method does, where anw can I get that information?
Bira has quit [Ping timeout: 272 seconds]
<apeiros>
BorjaGVO: in your bash/console: ri String#lines
<apeiros>
BorjaGVO: alternatively online - rdoc.info and ruby-doc.org
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
sassamo has quit [Ping timeout: 265 seconds]
<BorjaGVO>
apeiros: great! thankyou
bashdy has quit [Ping timeout: 252 seconds]
h_kon has quit [Remote host closed the connection]
<workmad3>
BorjaGVO: or install pry and pry-doc
<apeiros>
oooh, of course. why did I omit that?
<workmad3>
BorjaGVO: and then I think you can do '? String#lines' in a pry console to look it up
<apeiros>
not "or". do!
<workmad3>
:)
senayar_ has quit [Remote host closed the connection]
<apeiros>
I still have to set up my rvm to automatically install those by default (and automatically run `rvm docs generate`)
nomenkun has joined #ruby
bashdy has joined #ruby
kitak has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
<BorjaGVO>
thanks guys
senayar_ has joined #ruby
senayar_ has quit [Remote host closed the connection]
senayar_ has joined #ruby
sec^nd has joined #ruby
<Takumo>
hmm, if I have an array of OpenStructs , and a hash , could I match the structs against the hash
<Takumo>
i.e. structs.each do |s| s.each do |property| check_property_matches_hash if hash.keys.include?(property)
tyl has joined #ruby
cj3kim has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
gja has joined #ruby
xjiujiu has joined #ruby
Thanatermesis has joined #ruby
gja has quit [Client Quit]
mojjojo has quit [Quit: mojjojo]
ferr has quit [Ping timeout: 272 seconds]
cj3kim has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
mojjojo has joined #ruby
Jdubs has quit [Remote host closed the connection]
<yo61>
So, custom facts are only accessibly to the root user?
coder_neo has quit [Ping timeout: 252 seconds]
tkuchiki has joined #ruby
mojjojo has quit [Client Quit]
vlad_starkov has joined #ruby
_5kg has quit [Ping timeout: 272 seconds]
falood has quit [Remote host closed the connection]
brennanMKE has quit [Ping timeout: 248 seconds]
falood has joined #ruby
mojjojo has joined #ruby
ewnd9_ has joined #ruby
nhhagen has joined #ruby
falood has quit [Remote host closed the connection]
agjacome has joined #ruby
gasbakid has quit [Read error: Connection reset by peer]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ayaz>
yo61: Did you mean to ask that on #puppet or #mcollective?
weems has quit [Read error: Connection reset by peer]
mojjojo has quit [Read error: Connection reset by peer]
mojjojo_ has joined #ruby
TheNumb has quit [Read error: Connection reset by peer]
Asher has quit [Read error: Connection reset by peer]
dangerousdave has quit [Read error: Connection reset by peer]
justinxreese has quit [Read error: Connection reset by peer]
TheNumb has joined #ruby
justinxreese has joined #ruby
<yo61>
Oops - the former
<yo61>
*blush*
freerobby has joined #ruby
dangerousdave has joined #ruby
danijoo has quit [Ping timeout: 246 seconds]
mercwithamouth has joined #ruby
brandon_ has quit [Ping timeout: 246 seconds]
brandon has joined #ruby
tziOm has quit [Ping timeout: 246 seconds]
brandon is now known as Guest71680
tziOm has joined #ruby
karl___ has quit [Ping timeout: 246 seconds]
<ayaz>
yo61: :) But to answer your question, yes.
browndawg has quit [Quit: Leaving.]
karl___ has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
xjiujiu has joined #ruby
Xeago_ has joined #ruby
ferr has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
jtdowney has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
nhhagen has joined #ruby
karl___ has quit [Ping timeout: 246 seconds]
<yo61>
thx (am discussing in #puppet)
skattyadz has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
karl___ has joined #ruby
skattyadz has left #ruby [#ruby]
Xeago_ has quit [Ping timeout: 260 seconds]
Seich has joined #ruby
BorjaGVO has quit [Quit: Page closed]
Speed has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
jlebrech has joined #ruby
mojjojo_ has quit [Quit: mojjojo_]
Seich has quit [Ping timeout: 265 seconds]
mircoblitz has joined #ruby
<mircoblitz>
Hi, can someone please give me some hints on ruby. I find that I don't understand the documentation at all.
sergicles has joined #ruby
<hoelzro>
mircoblitz: which parts?
<tobiasvl>
mircoblitz: well that's vague. what do you need hints about?
mojjojo has joined #ruby
eka has joined #ruby
mengu has joined #ruby
<jokke>
hi, i'm having some trouble with sidekiq and probably rvm... and maybe bundle. i don't know.. Anyway i'm using a sidekiq worker to trigger a rake task in a "subproject". This fails because of unmet dependencies. 'bundle check' however reports that deps are satisfied.
senayar_ has quit []
<mircoblitz>
Problem. Made a small script using JSON.parse and ap (awsomeprint), wich works nice. I now want to refactor that into a class, but I can't get JSON or ap to work insode the class. I think I need to link them into the class, but I don't find out how. Its all so cryptic and these shortening drive me crazy
w4pm has joined #ruby
nomenkun has joined #ruby
h_kon has joined #ruby
skattyadz_ has joined #ruby
skattyadz_ has left #ruby [#ruby]
<Hanmac1>
mircoblitz: show us your code you already have with a gist
<workmad3>
jokke: which is a shame, because this is a perfect time for !gist-usage :)
<mircoblitz>
MY problem starts on line 31
Jdubs has joined #ruby
browndawg has joined #ruby
<jokke>
yeah well
<jokke>
any ideas on what exactly my problem might be?
<jokke>
i'll just paste some code. maybe that helps.
w4pm has quit [Ping timeout: 252 seconds]
bamdad has joined #ruby
<mircoblitz>
I am a ruby nood. And although I code in C++, Javascript, Php and some other script languages. I don't get used to ruby. But for capistrano i need to do it :-(
mojjojo has quit [Quit: mojjojo]
mechanicles_ has quit [Quit: Computer has gone to sleep.]
diegoviola has joined #ruby
<popl>
You're a noodle?
<mircoblitz>
noob
<popl>
That sucks. I like noodles.
<mircoblitz>
ruby noob to be precise
<mircoblitz>
rofl
<Hanmac>
mircoblitz: why do you want JSON::Ext::Parser.parse when JSON.parse like in line 35 would work?
<mircoblitz>
JSON.parse does not work! the lines above are for debugging
Jamo has quit [Ping timeout: 246 seconds]
nw has quit [Ping timeout: 252 seconds]
<mircoblitz>
because its broken with jira api 6
<jokke>
so line 18 outputs "The Gemfile's dependencies are satisfied"
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
shaman42 has quit [Ping timeout: 276 seconds]
mojjojo has joined #ruby
xjiujiu has joined #ruby
<mircoblitz>
and with ruby 2.xxx jira-ruby does not work and it does not support all of the api i need later
<mircoblitz>
these are just my first steps
<jokke>
but line 24 fails with "These tasks require the following gems: chromatic, mustache, net-sftp, ruby-progressbar. Please use gem install to get those gems."
Jdubs has quit [Ping timeout: 248 seconds]
<jokke>
the Gemfile however contains just those gems
<jokke>
and the call works on the console
<jokke>
which is why i think this is an rvm problem
<mircoblitz>
Errormessage when i use JSON.parse : `block in read': uninitialized constant #<Class:0x007fa43212b618>::SpwJiraApi::JSON (NameError)
gijsje has joined #ruby
MrZYX|off is now known as MrZYX
sensen has quit [Ping timeout: 252 seconds]
<workmad3>
mircoblitz: did you do 'require "json" ' anywhere in your file?
<Hanmac>
i think he forgot
<mircoblitz>
oops
<jokke>
:P
<mircoblitz>
ok another thing
<jokke>
noodle :)
<mircoblitz>
yes a big one :-)
<jokke>
a maccaroni!
nhhagen has quit [Remote host closed the connection]
mechanicles_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
VeinMelted has joined #ruby
mechanicles_ has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 260 seconds]
zeeraw has joined #ruby
<mircoblitz>
what the heck. I missed just the require. Damn thats kind of dumb. But as I said, I'm a ruby noob ;-)
<mircoblitz>
thank you very much for your help.
chrisseaton has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
<popl>
jokke: a feather in his cap
<workmad3>
mircoblitz: it's friday and people are just messing around ;)
<mircoblitz>
wine with me :-)
xjiujiu has joined #ruby
coderhs has joined #ruby
<workmad3>
mircoblitz: I'm more of a cider man myself...
<popl>
Is it really because it's Friday?
riku has joined #ruby
<popl>
I have to work later.
<mircoblitz>
and fine with me. Its Firrday, lety party
<popl>
I like beer.
mojjojo has quit [Quit: mojjojo]
<mircoblitz>
As ruby devs. Can you give me your perspective, what makes ruby good?
<workmad3>
mircoblitz: it's fun, the community is nice, the gem ecosystem can be pretty damn awesome at times, and there's an acceptance that there are many ways to do things and they can all be good
<jokke>
mircoblitz: it lets you focus on the relevant parts of coding without getting in your way with complex syntax or boilerplate code. Since i've coded ruby i feel that i can be much more creative when coding and it encourages you to write beautiful code.
<popl>
what community is that?
<mircoblitz>
I have a real hard time to read the code. does it get better :-)
<workmad3>
mircoblitz: yes
<workmad3>
mircoblitz: think about how hard something like C++ was to grok initially, but I bet that's reasonably easy to read now ;)
ocline has quit [Ping timeout: 246 seconds]
<workmad3>
mircoblitz: it's just a case of familiarity
<jokke>
yup
Garo_ has joined #ruby
<jokke>
but of course you can write very obfuscated code in ruby too.. As in any language
* Hanmac
used C++ in his ruby stuff for evil purpose ;P
shaman42 has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
Jamo has joined #ruby
nw has joined #ruby
justsee has quit [Ping timeout: 265 seconds]
LekeFly has joined #ruby
<mircoblitz>
I like long written code, even in c things like ap p puts and over all << disturb me much.
mneorr has joined #ruby
<mircoblitz>
<< is a fucking bit opperator, not a string concat :-)
<workmad3>
mircoblitz: it's string concat in C++ stdlib ;)
nhhagen has joined #ruby
<workmad3>
mircoblitz: and ruby generalises it to a 'shift operation'
varfoo has joined #ruby
<mircoblitz>
Ahh that makes sense
<workmad3>
mircoblitz: so 3 << 2 is a bitshift, some_array << new_value is some_array.shift(new_value)
nhhagen has quit [Remote host closed the connection]
<mircoblitz>
pheew ok i see.
tvw has joined #ruby
<mircoblitz>
Do you kno a good starting point to learn all this but not starting at "A constant is a variable that does not change"
m00nlight_ has joined #ruby
jtdowney has joined #ruby
m00nlight has quit [Ping timeout: 248 seconds]
mojjojo has joined #ruby
<workmad3>
mircoblitz: not off the top of my head, I'm afraid... I normally suggest that people who are familiar with coding go through some of them anyway, just skim them rather than read in-depth
<workmad3>
get a familiarity from them about how ruby works
postmodern has quit [Quit: Leaving]
mneorr has quit [Ping timeout: 272 seconds]
<mircoblitz>
I see
Hanmac1 has joined #ruby
<mircoblitz>
thanks for the push
<mircoblitz>
in the right direction
sensen has joined #ruby
<workmad3>
mircoblitz: some of it, like thinking about << as a shift operation, I'm not sure I've seen written down anywhere... it's something that just became obvious from explaining it to others :)
<Hanmac1>
same as "*" is used for different stuff ... like 3 * 2 == 6; "3" * 2 == "333"; [1,2,3] * 2 == [1,2,3,1,2,3]; [1,2,3] * "2" == "12223"
<workmad3>
Hanmac1: or | for set union on arrays :)
<mircoblitz>
I think thats the real hard part. In every tut i find on the net. blahh is the same then blubb is the same than crunch ..... and so on
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
lkba has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
xjiujiu has joined #ruby
mojjojo has quit [Client Quit]
<workmad3>
Hanmac1: I've only just realised (from reading an oldish discrete maths book) the rationale behind & and | as intersection and union on arrays :)
ewnd9_ has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
mhenrixon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tyl has quit [Ping timeout: 245 seconds]
brennanMKE has joined #ruby
riku has joined #ruby
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
lorelei_ has joined #ruby
xjiujiu has joined #ruby
mojjojo has joined #ruby
clevermatt has joined #ruby
urbanslug has quit [Quit: leaving]
DaniG2k has joined #ruby
chrisseaton has quit []
zipper has joined #ruby
tyl has joined #ruby
vlad_starkov has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 248 seconds]
wdiechmann has joined #ruby
mojjojo has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
mojjojo has joined #ruby
vlad_starkov has joined #ruby
mikepack has joined #ruby
razibog has joined #ruby
coderhs has quit [Read error: Connection timed out]
freerobby has joined #ruby
Hanmac1 has joined #ruby
Macaveli has joined #ruby
nhhagen has joined #ruby
chrisseaton has joined #ruby
coderhs has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
sensen has quit [Quit: leaving]
mikepack has quit [Ping timeout: 245 seconds]
xjiujiu has quit [Quit: No Ping reply in 180 seconds.]
mircoblitz has quit [Quit: mircoblitz]
xjiujiu has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
claymore has quit [Ping timeout: 248 seconds]
mklappst_ has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
ringaroses has joined #ruby
chrisseaton has quit []
mojjojo has quit [Quit: mojjojo]
danshultz has joined #ruby
var1 has joined #ruby
mojjojo has joined #ruby
mklappstuhl has quit [Ping timeout: 252 seconds]
fella5s has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
Seich has joined #ruby
mojjojo has quit [Client Quit]
Hanmac has joined #ruby
mansi has quit [Remote host closed the connection]
mojjojo has joined #ruby
mehlah has quit [Quit: Leaving...]
<marwinism>
I just tossed out ubuntu, and went over to Fedora 20 (Korora, it's fedora with closed sauce drivers) - anywho. I'm unable to install rbenv version 2.0.0-p247, even with the patch described on github here: https://github.com/sstephenson/ruby-build
Hanmac1 has quit [Ping timeout: 252 seconds]
clevermatt has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 260 seconds]
m00nlight has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Macaveli has joined #ruby
LadyRainicorn has joined #ruby
ndrei has joined #ruby
mehlah has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
m00nlight has joined #ruby
dukz has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 246 seconds]
zeeraw has joined #ruby
<Hanmac>
marwinism: what error did you got? what patch did you use and why did you use that patch?
clevermatt has joined #ruby
ringaroses has quit [Quit: Leaving]
webus has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
ringaroses has joined #ruby
<LadyRainicorn>
Ugh, why is gem so slow? ;-;
LostMonk- has quit [Read error: Connection reset by peer]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
kristiandelay has joined #ruby
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coda23 has joined #ruby
nhhagen has quit [Remote host closed the connection]
kristiandelay has quit [Ping timeout: 272 seconds]
<marwinism>
Hanmac: because ruby-build page told me to use it (not working anyway) - error: http://pastebin.com/AZNLMRRF
aagdbl has quit [Quit: This computer has gone to sleep]
<marwinism>
that's the one without the patch btw.
<Hanmac>
marwinism: i want the content of /tmp/ruby-build.20140117130205.3572.log
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
habanany has joined #ruby
var1 has quit [Quit: Leaving]
bamdad has quit [Quit: bamdad]
clevermatt has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
<marwinism>
Hanmac: the patch is a workaround for the ossl_pkey_ec.c if i'm not mistaken
MrZYX is now known as MrZYX|off
claymore has joined #ruby
gja has joined #ruby
<Hanmac>
hm yes, what did you get with the patch?
<Hanmac>
PS: why do you not try ruby2.1 ?
<marwinism>
We are developing with 2.0.0-p247, I did get p538 og whatever going, but it's an advantage to use the same version as the rest of the team ;) Hang on, i'll try the logs for the patch.
brennanMKE has joined #ruby
<LadyRainicorn>
Why does your team not want to upgrade?
<Hanmac>
pure lazyness
<Hanmac>
or its a rails problem
<apeiros>
my instinct tells me that Hanmac hasn't yet worked for a corporation
m00nlight_ has joined #ruby
<marwinism>
I could run up a virtual machine with ubuntu, where it does work. But i'll keep on hacking
bamdad has quit [Quit: bamdad]
m00nlight has quit [Ping timeout: 272 seconds]
<Hanmac>
i did, and in the last one we are used centos *ugh
<LadyRainicorn>
Why would anyone want to do that, apeiros?
<apeiros>
LadyRainicorn: money?
<LadyRainicorn>
LIES.
ahmedelgabri has quit [Remote host closed the connection]
<apeiros>
also while some decisions in corporations suck, the work experience as a whole doesn't have to
<apeiros>
I enjoy work where I am, yet we still have an app on ruby 1.8.2 and rails 1.2.x (1.2.3 I think)
<LadyRainicorn>
Ugh 15 minutes installing nokogiri and counting.
<Hanmac>
ruby 1.8.2 oO ???
<LadyRainicorn>
w t f
brennanMKE has quit [Ping timeout: 252 seconds]
<apeiros>
ever heard of "don't touch a running system"? :)
<LadyRainicorn>
Continuous integration!
<marwinism>
"If it works, don't fix it!"
<Hanmac>
ever heard of "dont ride a dead horse" ? ;P
<zumba_addict>
sorry guys for the off topic question, what is that slang when our wives are not around and we do all their hardwork at home?
<LadyRainicorn>
I want to ride a dead horse!
<marwinism>
bahabahahaha, good one Hanmac.
<apeiros>
Hanmac: ain't dead. as I said, it runs.
<LadyRainicorn>
zumba_addict: huh?
<zumba_addict>
hi LadyRainicorn
<marwinism>
not dead, just overly ready for retirement
<LadyRainicorn>
Hi
<apeiros>
Hanmac: tell me, what value is in it, to upgrade the app? (hint: correct answer is "none")
<Hanmac>
with my newest commits in my bindings some of them might not support ruby < 2.0 ;P
<LadyRainicorn>
Vulnerabilities?
<zumba_addict>
there was a slang that I heard about 7 years ago from my officemate and he said his wife is at work and he'll be staying home to take care of kids
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<apeiros>
LadyRainicorn: not a concern/issue with this app
<zumba_addict>
LadyRainicorn: my visual memory tells me that there is a word daddy in the slang
<apeiros>
(read-only, internal-only)
<apeiros>
and the read-only is enforced on the DB level
freerobby has joined #ruby
<marwinism>
sounds about what our app is doing now. Read only, from a bunch of DB's (MSSQL, Access *puke*, ++ )
<marwinism>
Big data sort of thingy
<LadyRainicorn>
I suppose if you don't have to develop for it and everyone who can access it can run code on the machine anyway and the information it uses is unimportant.
aagdbl has quit [Quit: Leaving]
jan1337z has joined #ruby
nwertman has quit [Ping timeout: 246 seconds]
aagdbl has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
RaCx has joined #ruby
codebauss has joined #ruby
bashdy has quit [Read error: Connection reset by peer]
dreinull has joined #ruby
<dreinull>
From a calendar I get Date and DateTime Strings and I want to easily check if they are #today. Is there an easier way than checking if it is this or that kind of class?
mojjojo has quit [Quit: mojjojo]
diegoviola has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
codebauss has left #ruby [#ruby]
<apeiros>
dreinull: do you get Strings now or Date/DateTime?
dkamioka has joined #ruby
<dreinull>
apeiros: String representations of either (json basically)
<apeiros>
dreinull: well, Date/DateTime implies you have actual instances of that, so stating it that way is confusing…
<apeiros>
and if you always have strings, there's no point in checking the class, right?
clevermatt has joined #ruby
clevermatt has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 246 seconds]
<dreinull>
apeiros: you're right. Problem is that the key is called date or dateTime so in a way it is still true :S
mojjojo has joined #ruby
browndawg has quit [Quit: Leaving.]
razibog has quit [Quit: Leaving.]
popl has quit [Ping timeout: 252 seconds]
gijsje has quit []
<apeiros>
json has no standardization for date/datetime, so you have to check with the json producer what their standardize on for any meaningful answer.
<apeiros>
*they standardize on
Seich has joined #ruby
DaZ has quit [Ping timeout: 272 seconds]
<dreinull>
apeiros: ok, thanks
g0bl1n has quit [Ping timeout: 248 seconds]
<Hanmac>
you can try something like DateTime.parse(str) rescue Date.parse(str) but i dont know if that would help you
<apeiros>
I would absolutely not use .parse
<apeiros>
I was about to suggest to - if they only ever use one of two formats in those strings - use a regex to determine which one it is and extract the values in the same step.
clamstar has quit [Quit: Computer has gone to sleep.]
jerius has joined #ruby
jhaals has joined #ruby
jhaals has quit [Max SendQ exceeded]
Mekkis has joined #ruby
jhaals has joined #ruby
jerius has quit [Read error: Connection reset by peer]
jerius has joined #ruby
Guest79784 has quit [Quit: Ex-Chat]
Guest79784 has joined #ruby
clamstar has joined #ruby
afhammad has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
TMM has joined #ruby
iamjarvo has joined #ruby
palachy has joined #ruby
ndrei has quit [Read error: Operation timed out]
nhhagen has quit [Remote host closed the connection]
<palachy>
hello
<TheLarkInn>
Good morning!
vlad_starkov has joined #ruby
xjiujiu has quit [Remote host closed the connection]
<palachy>
here is night. I'm from China
cescalante is now known as ce_afk
<palachy>
:)
<TheLarkInn>
Oh. Ni hao ma!
dblessing has joined #ruby
<LadyRainicorn>
Night people unite!
<jokke>
hey
Guest79784 has quit [Ping timeout: 272 seconds]
<palachy>
Great! you know chinese! 哈哈
araujo has quit [Remote host closed the connection]
Astralum has quit [Read error: Connection reset by peer]
bamdad has joined #ruby
<TheLarkInn>
Bu ke qi
<jokke>
anyone here have experience with ruby-git? I'm trying to set all branches to the status of the remote versions of them or if there is no local branch fetch the remote one. So i have the following code: https://paste.jreinert.com/wGCBeA/ruby
mneorr has joined #ruby
<jokke>
which doesn't work however
Astralum has joined #ruby
<jokke>
as in it doesn't update
<jokke>
the local repo
e62 has joined #ruby
aspiers has joined #ruby
sailias has joined #ruby
<jokke>
branch.checkout should probably be on top though
<jokke>
but it still doesn't work
gr33n7007h has joined #ruby
<TheLarkInn>
不客气! palacy
<TheLarkInn>
palachy
Astralum has quit [Read error: Connection reset by peer]
mansi has joined #ruby
ringaroses has quit [Ping timeout: 246 seconds]
Astralum has joined #ruby
Es0teric has joined #ruby
sassamo has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
samuel02 has quit []
Astralum has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
vxr74 has joined #ruby
IceColdMax has quit [Quit: Soiya!]
IceColdMax has joined #ruby
Astralum has quit [Read error: Connection reset by peer]
tyl has joined #ruby
fire has quit [Quit: WeeChat 0.4.1]
doodlehaus has joined #ruby
palachy has quit [Quit: WeeChat 0.4.0]
phansch has quit [Quit: Leaving]
fire has joined #ruby
tyl has quit [Client Quit]
drumusician has quit [Read error: Connection reset by peer]
Targen has quit [Ping timeout: 252 seconds]
sassamo has quit [Ping timeout: 272 seconds]
drumusician has joined #ruby
mansi has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
mengu has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
blaxter has quit [Quit: foo]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
mlpinit has joined #ruby
meatherly has joined #ruby
nwertman has quit [Ping timeout: 248 seconds]
sparrovv has joined #ruby
brennanMKE has joined #ruby
jfojtl has joined #ruby
g0bl1n has joined #ruby
bamdad has quit [Quit: bamdad]
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
krz has quit [Quit: WeeChat 0.4.2]
IceColdMax has quit [Quit: Soiya!]
meatherly has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
brennanMKE has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
meatherly has joined #ruby
rippa has joined #ruby
aryaching has joined #ruby
ndrei has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jhaals has joined #ruby
sparrovv has quit [Remote host closed the connection]
rosssssssss has joined #ruby
sparrovv has joined #ruby
vlad_starkov has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Read error: No route to host]
acrussell has joined #ruby
mklappstuhl has joined #ruby
maoko has joined #ruby
mojjojo has quit [Quit: mojjojo]
fantazo has joined #ruby
Deejay_ has joined #ruby
bamdad has joined #ruby
_aeris_ has left #ruby ["Konversation terminated!"]
Megtastique has joined #ruby
brennanMKE has joined #ruby
jfojtl has left #ruby [#ruby]
Hanmac1 has joined #ruby
leo-the-manic has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 272 seconds]
sparrovv has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
Hanmac has joined #ruby
sparrovv has joined #ruby
LastWhisper has joined #ruby
OdNairy has quit [Client Quit]
acrussell has left #ruby [#ruby]
Seich has joined #ruby
afhammad has quit []
m00nlight_ has quit [Ping timeout: 252 seconds]
m00nlight__ has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
DaZ has joined #ruby
duggiefresh has joined #ruby
nifty has joined #ruby
freezey has joined #ruby
mary5030 has joined #ruby
tobago has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Squarepy has quit [Quit: Leaving]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Seich has quit [Ping timeout: 245 seconds]
tolstoi has joined #ruby
m8 has joined #ruby
cj3kim has joined #ruby
vxr74 has quit [Quit: peace]
sassamo has joined #ruby
v0n has joined #ruby
nwertman has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
enebo has quit [Quit: enebo]
relix has joined #ruby
Neomex has joined #ruby
freerobby has joined #ruby
tylersmith has joined #ruby
colonolGron has joined #ruby
zeeraw has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
francisfish has quit [Remote host closed the connection]
g3orge has joined #ruby
g3orge has quit [Client Quit]
chrisseaton has quit []
thesheff17 has joined #ruby
pranny has joined #ruby
Jdubs has joined #ruby
snath has quit [Read error: Operation timed out]
yasushi has quit [Remote host closed the connection]
pranny1 has joined #ruby
pranny has quit [Read error: Connection reset by peer]
yasushi has joined #ruby
sparrovv has quit [Remote host closed the connection]
<Takumo>
Here's a question, I'm building an API client where the response objects are passed into classes inheriting from OpenStruct
Jdubs has joined #ruby
Jdubs has quit [Remote host closed the connection]
<LzrdKing>
hi all, i am having a problem when i go to /users in redmine, which appears to be the only page affected. the error is at http://pastie.org/8642628, can someone help me out?
<Takumo>
but if I have say a user object , and a user has posts, how can I make the posts be lazy-loaded?
sski has quit [Remote host closed the connection]
<Takumo>
LzrdKing: ask #redming or #rubyonrails ;)
<LzrdKing>
Takumo: thanks
sparrovv has joined #ruby
<Takumo>
* #redmine
sski has joined #ruby
LzrdKing has left #ruby [#ruby]
deception has joined #ruby
sparrovv has quit [Remote host closed the connection]
DaZ has joined #ruby
senj has joined #ruby
jlebrech has quit [Quit: Konversation terminated!]
LekeFly has joined #ruby
diegoviola has joined #ruby
m00nlight__ has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
gja has quit [Quit: This computer has gone to sleep]
vlad_starkov has quit [Remote host closed the connection]
jaxxstorm has joined #ruby
krz has quit [Ping timeout: 265 seconds]
diegoviola has quit [Client Quit]
sski has quit [Ping timeout: 272 seconds]
yasushi has joined #ruby
krz has joined #ruby
<workmad3>
Takumo: how to lazy load depends entirely on how you're loading the data, apart from the basic idea that your 'user.posts' method will do the loading if needed (e.g. with an @posts ||= load_posts or similar call)
<workmad3>
Takumo: or, in other words, in order to lazy load, you need to write the method yourself, it's not handled by openstruct ;)
nifty has quit [Ping timeout: 248 seconds]
diegoviola has joined #ruby
mikepack has joined #ruby
vlad_starkov has joined #ruby
Seich has joined #ruby
m00nlight__ has joined #ruby
TMM has quit [Quit: Ex-Chat]
lethjakman has joined #ruby
Aserpent10 has joined #ruby
sparrovv has joined #ruby
freezey has quit [Remote host closed the connection]
<Aserpent10>
Anybody know of any good websites for learning Ruby?
digital-ghost has joined #ruby
enebo has quit [Quit: enebo]
<Aserpent10>
or advice for best way of learning Ruby?
danshultz has quit [Read error: Connection reset by peer]
<Aserpent10>
lol cut me some slack I wanted to make sure I had a strong grasp of the basics first
Kruppe has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
DannyJ has joined #ruby
<DannyJ>
hi all
joshu has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
freezey has joined #ruby
sassamo has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
sassamo has joined #ruby
lkba has joined #ruby
g0bl1n has quit [Read error: Operation timed out]
blandflakes has joined #ruby
alexfreidah has quit [Ping timeout: 245 seconds]
<DouweM>
yo
saarinen has quit [Quit: saarinen]
<DannyJ>
hey
AndChat| has quit [Read error: Connection reset by peer]
<DannyJ>
so is Ruby a good language to start on pr python ?
<DannyJ>
what is ruby used for?
<Takumo>
DannyJ: what do you want to use it for? would be a better question
<DannyJ>
well I'm not sure
<DannyJ>
what are its purposes?
<Jamo>
you can do "anything" with ruby
<Jamo>
as well as with any other language...
joshu has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<DouweM>
scripts and web apps mostly, can be used for iOS apps well. Python does scripts and web apps as well, but no iOS apps, and there's a lot of scientific libraries
<lewellyn>
just as you can do anything in pure machine language
<DannyJ>
ah
<havenwood>
DannyJ: General purpose programming language. Web apps, super computers, fighter jet simulations, whatever.
<DannyJ>
nice
<Jamo>
I personally prefer ruby for almost everything
<DannyJ>
is it easy to learn?
<DannyJ>
I want so,ething with a easy learning curve
chomskiii has quit [Read error: Connection reset by peer]
<lewellyn>
yeah. mobile apps and scripting languages don't tend to go together.
<DannyJ>
I think the IRC app I'm using is made from RUby
<DannyJ>
its nifty
<DannyJ>
stable
<DannyJ>
:)
chomskiii has joined #ruby
<DouweM>
it's pretty easy to get started with ruby, but so it is with python. to fully understand the whole language is another thing
<lewellyn>
especially on ios, since apple has this weird thing about intepreted code in the app store
<Jamo>
Imo. ruby is easy to learn - syntax is much more flexible when compared to python
<DouweM>
lewellyn: RubyMotion
<DannyJ>
I do know that Minecraft is based on it
killfill has left #ruby [#ruby]
<DannyJ>
My friend works at Google
<DouweM>
both are fine languagues, but here we're obviously biased
<DannyJ>
he said he coded some maps via RUby
<DannyJ>
I forget..
<lewellyn>
DouweM: i said tend :)
<DouweM>
Minecraft is Java
<DannyJ>
what part of Minecraft is part of Ruby?
<DannyJ>
well he mtjioned something of it being Ruby too
<DannyJ>
mentioned*
<DouweM>
could be it's scriptable using Ruby, but the game is Java
<DannyJ>
ah
cj3kim has quit [Remote host closed the connection]
<DouweM>
lewellyn: right ;) but RubyMotion is compiled
<DannyJ>
intersting
<havenwood>
JRuby
<Takumo>
workmad3: I know OpenStruct wouldn't handle that, but how would I pass a reference to the API client object or something to allow the resource to make the request?
<DouweM>
lewellyn: I thought you didn't know RubyMotion. You're definitely right on interpreted langages
sassamo has quit [Ping timeout: 245 seconds]
<lewellyn>
DouweM: i was speaking in generalities since he's trying to figure out what he wants.
<DouweM>
gotcha
Aserpent10 has left #ruby [#ruby]
* lewellyn
is gently trying to suggest that maybe a scripting language might not be the best choice.
m00nlight__ has quit [Read error: Connection reset by peer]
<DannyJ>
thanks
<DouweM>
if you wanna build iOS apps, RubyMotion is a fine choice :P But yeah, for applications in general, be it mobile or desktop, scripting language is not the best choice
<lewellyn>
it's a might. we don't know enough :)
<DouweM>
web apps is fine obvs
<DouweM>
so DannyJ, what do you want from the language?
<DannyJ>
maybe make a app
<DannyJ>
:)
<shevy>
DannyJ both python and ruby should be good languages. if you would pick one, you could as well pick the other.
<DouweM>
web or mobile or desktop?
bamdad has quit [Quit: bamdad]
<shevy>
DannyJ there are more python users and python devs out there on the www
<DouweM>
there are? if so, I've never found the smaller size of ruby to be a problem
roolo has quit [Remote host closed the connection]
<DouweM>
so that's a bit of a non-argument
<Takumo>
problem with python is versions, 2.0 → 3.0 is a big change that few are taking
freerobby has joined #ruby
<DannyJ>
hm
joker___ has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
<DannyJ>
I'm new to programming
<DannyJ>
so im not sure
hornairs has joined #ruby
apeiros has joined #ruby
m00nlight__ has joined #ruby
<shevy>
DannyJ start with php
<DouweM>
nononono
<canton7-mac>
no no no
<shevy>
eventually you want to switch away from it
<DouweM>
jesus
chrisseaton has quit []
<DouweM>
what are you doing
<DouweM>
noooo
<DannyJ>
ok
ckinni has joined #ruby
<havenwood>
Ruby is best. Crush the snake. PHP...
<DouweM>
So. No PHP. Ruby is a fine language to start programming
<shevy>
he needs to first go through hell ;)
<apeiros>
shevy is a sadist
<DouweM>
clearly
<shevy>
you were using php too apeiros!!!
VTLob has joined #ruby
<canton7-mac>
shevy, many people don't make it out. You woudn't wish that on him, would you?
<DouweM>
lots of us were, including me
<havenwood>
shevy: I came to Ruby after a month of PHP.
<shevy>
he'll make it out
<shevy>
or he'll break
<apeiros>
shevy: yes, which is why I know better than recommending that as a programming primer
<DouweM>
I don't want anyone to go through that ever again
mansi has quit [Read error: Connection reset by peer]
kevind has joined #ruby
<DouweM>
^^
zumba_addict has quit [Ping timeout: 252 seconds]
<shevy>
DannyJ look they are all weaklings here :P
mansi has joined #ruby
<shevy>
but hardened by their php experience
<apeiros>
and I never used it because I thought it was good. I came from perl, which was (and still is) vastly superior to php.
mansi has quit [Read error: Connection reset by peer]
<DouweM>
yeah DannyJ if you wanna be touch like shevy go with PHP
<workmad3>
Takumo: you'd probably want to pass the connection in during initialize, or have some form of service locator that you can use to find or create a connection
<DouweM>
*tough
zumba_addict has joined #ruby
<DannyJ>
I'll do python or ruby I guess
<shevy>
why doesn't anyone suggest perl!
mansi has joined #ruby
<shevy>
DannyJ YES
<DannyJ>
is ruby pre default with most OS"S ?
<shevy>
YES
<havenwood>
DannyJ: Yes.
<DannyJ>
ok
<DannyJ>
:)
<Takumo>
any sane OS that is ;)
<shevy>
WINDOWS
<workmad3>
DannyJ: going with ruby as a first language means that you get to follow the nice 'Learn to Program' book by C. Pine ;)
krawchyk has joined #ruby
joshu has quit [Ping timeout: 248 seconds]
<Takumo>
workmad3: if I passed it in during initialize wouldn't that copy the client object as a member of the created object. Although I'm not familiar with ruby's memory management
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Takumo>
and weather or not it would pass a reference to the client
<Takumo>
or could I pass a reference to the client?
<workmad3>
Takumo: no, everything in ruby is pass by reference-value
<workmad3>
Takumo: in that you pass a reference as a value (so re-assignments don't influence the original)
<canton7-mac>
a fair number of things are immutable, so behave as though they're pass-by-value
<Takumo>
sounds good
<Takumo>
brb gotta clean the office
pzula has joined #ruby
mneorr has joined #ruby
joshu has joined #ruby
Cephalostrum has joined #ruby
senayar_ has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
i_s has joined #ruby
<shevy>
DannyJ do you have ruby installed on your system?
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
meatherly has joined #ruby
deception is now known as deception_away
<shevy>
DannyJ let's teach you interactively
i_s has quit [Read error: Connection reset by peer]
bamdad has joined #ruby
i_s has joined #ruby
rayners has quit [Remote host closed the connection]
hornairs has quit [Read error: Connection reset by peer]
rayners has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
senayar has quit [Ping timeout: 252 seconds]
DannyJ has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
rubyracer has joined #ruby
DannyJ has joined #ruby
joshu has quit [Ping timeout: 246 seconds]
meatherly has quit [Read error: Connection reset by peer]
<workmad3>
Takumo: they make you clean the office? :(
meatherly has joined #ruby
<DannyJ>
I'll do Python first
triptec has quit [Quit: leaving]
<workmad3>
DannyJ: :(
<workmad3>
DannyJ: #python isn't as nice as us
momomomomo has joined #ruby
<DannyJ>
thats true
<DannyJ>
but Pyton is easier
<DannyJ>
:P
<workmad3>
DannyJ: I disagree ;)
<shevy>
lol
mojjojo has joined #ruby
<shevy>
DannyJ you have to REGISTER before you can join #python - look at this kind of philosophy! :(
<workmad3>
shevy: technically you have to register before you can join the official ruby channel...
<shevy>
you must be a GOOD NETIZEN before you can SPEAK
<DannyJ>
oh
<angusiguess>
The best language is the one you come to enjoy! Program in what makes your <3 smile.
<DannyJ>
thats true
maletor has joined #ruby
aspires has joined #ruby
<shevy>
workmad3 #ruby is the only channel that exists
<workmad3>
shevy: #ruby-lang
<shevy>
workmad3 you mean #ruby-crossdressers ?
yasushi has quit [Remote host closed the connection]
mocfive has joined #ruby
<shevy>
DannyJ don't go to #ruby-lang YOU WILL BE MUTE
<workmad3>
shevy: I didn't know #ruby-crossdressers existed... I must join that channel!
<shevy>
they fled to #ruby-lang
yasushi has joined #ruby
<workmad3>
hehe
<shevy>
actually I think there are more people on #python-unregistered or whatever was the name than there are people here on #ruby :(
<DannyJ>
ok
<shevy>
DannyJ you wanna know what will sway your opinion in favour of ruby?
Cephalostrum has quit [Remote host closed the connection]
<DannyJ>
sure
<DannyJ>
I'm new her
<DannyJ>
ehere
tylersmith has quit [Remote host closed the connection]
<shevy>
DannyJ that interview convinced me to go with ruby when I left php. I had a choice between python and ruby, php is just an awful thing. it's not really a language at all
<DannyJ>
It dosent matter what language you start with you just need to get really good with one language first.
<DannyJ>
friend at Gogole said that ^'
fedesilva has quit [Remote host closed the connection]
<DannyJ>
in a text :p
<DannyJ>
I asked him thats better
<workmad3>
DannyJ: yes and no :)
<DannyJ>
whats*
<shevy>
yeah
<DannyJ>
ok
<DannyJ>
anyhow I'll try ruby I guess ..
<angusiguess>
DannyJ: That's pretty good advice. Asking what language to use to write programs is like asking what pencil to use to write books.
<shevy>
but an awful language will give you more obstacles
<DannyJ>
I mean the python guys are rude
<shevy>
so don't pick php for the rest of your life :P
<DannyJ>
right..
<angusiguess>
People get good at writing books by writing them!
<DannyJ>
I mean Ruby is a easy way to get into iOS app dev right?
<shevy>
DannyJ python is a snake, what else do you expect! didn't you watch the junglebook? ;)
achru has quit [Remote host closed the connection]
<angusiguess>
Try some stuff out and see how it makes you feel.
<workmad3>
DannyJ: first language can affect how you think about coding
<workmad3>
DannyJ: and can affect what habits you pick up
<havenwood>
DannyJ: Also they'll never take pull requests. They pride themselves on never moving. Nicer to be part of the Ruby community imho.
<DannyJ>
I just want something easy
<shevy>
DannyJ well "easy" ... you have to know some things before you can productive really
<DannyJ>
I took grammar in HS
<DannyJ>
erm
<DannyJ>
java
<DannyJ>
It made me cry
<shevy>
java is awful too
<workmad3>
DannyJ: it's possible to get past that eventually, but it can be difficult
mojjojo has joined #ruby
<angusiguess>
Scheme is pretty fun.
achru has joined #ruby
<shevy>
but it does not fit into the scripting languages
yasushi has quit [Ping timeout: 252 seconds]
<DannyJ>
well
drumusician has quit [Ping timeout: 248 seconds]
<DannyJ>
for a retart
<DannyJ>
Ruby shall do ?
<shevy>
wat
<angusiguess>
Ruby is a good start.
<shevy>
hehe
<shevy>
Ruby shall do well.
Cephalostrum has quit [Read error: Connection reset by peer]
<DannyJ>
friend said if I want to do iOS apps
<DannyJ>
stick with it
<DannyJ>
Rub ythat is
<DannyJ>
Ruby*
<shevy>
no idea, I can't work for apple
Cephalostrum has joined #ruby
aryaching has quit []
<shevy>
but ruby is general purpose really
m00nlight has joined #ruby
m00nlight__ has quit [Ping timeout: 245 seconds]
<DannyJ>
ah
<DannyJ>
I'll do ruby
<workmad3>
DannyJ: well, if you want to do iOS stuff, you should really grok objective-C, but ruby-motion is a step along the way I guess :)
<DannyJ>
again I'm new to programming
<DannyJ>
so im not sure
<DannyJ>
:(
<workmad3>
DannyJ: and I suspect you'll pick up objective-C more easily after some ruby anyway :)
<DannyJ>
I mean Ruby is easy right?
<workmad3>
I think so
* Hanmac1
does not trust ruby motion because its closed source
<angusiguess>
DannyJ: Programming is hard, but ruby is approachable.
<DannyJ>
ok
<DannyJ>
Ruby will do
<DannyJ>
:)
<DannyJ>
I agree
Spami__ has joined #ruby
<DannyJ>
ALL THE python channels i've been i have been mean
<DannyJ>
they never respond
<DannyJ>
and ignore my questions
<workmad3>
DannyJ: the thing you'll be learning is how to think in a certain way
soulcake has quit [Read error: Connection reset by peer]
<workmad3>
DannyJ: which will be guided by the language
aryaching has joined #ruby
<DannyJ>
Are the Python guys that rude?
blackmesa has quit [Ping timeout: 240 seconds]
<shevy>
DannyJ "easy" is really a bad term. I dont think there are really many "easy" languages
wdiechmann has quit [Quit: wdiechmann]
soulcake has joined #ruby
<shevy>
there are a lot of features available in ruby that you won't find in many other languages. blocks for instance
<shevy>
DannyJ they are not really fun people
<shevy>
when you have a nick called "python", you can not join #python :(
<workmad3>
DannyJ: I find the python community quite a bit more insular than the ruby community, and they're not very newcomer friendly (especially for learners or less-able newcomers) IMO
achru has quit [Ping timeout: 252 seconds]
dkamioka has quit [Remote host closed the connection]
<workmad3>
but it has been about 4-5 years since I was in #python :)
<DannyJ>
agreed
<DannyJ>
They are very rude
<DannyJ>
they troll too much
<DannyJ>
They called people idiots
<DannyJ>
seriously
<DannyJ>
I understand off topicness
<DannyJ>
but really? trolling?
<shevy>
wow
<shevy>
that was fast
<shevy>
how can you type so quickly??
<workmad3>
shevy: connection lag? :)
<DannyJ>
workmad3: will do
<shevy>
hmmmmmm
<DannyJ>
I'll keep out
<angusiguess>
It's worth mentioning that the more work you put into a problem you're working on or a question you're asking, the nicer _any_ programmer will be.
<shevy>
could be :-)
<shevy>
it was like in one second...
<DannyJ>
I agree
<DannyJ>
Why do you have to register ?
<DannyJ>
thats kind of stupid ..
<DannyJ>
its a programming channel
<DannyJ>
im not on IRC all day
<workmad3>
DannyJ: troll-prevention
<DannyJ>
workmad3: well just ban the ip's
<shevy>
I can register and then troll!
<DannyJ>
done
<DannyJ>
I cant get a cloak either
<workmad3>
DannyJ: IP bans are kinda pointless
<DannyJ>
the staff are rude
<DannyJ>
they are?
<DannyJ>
Most don't know hot oget a new one
<DannyJ>
to get*
hornairs has joined #ruby
<workmad3>
DannyJ: sure, IP addresses are recycled
<DannyJ>
Except technically experienced people
<DannyJ>
hmm
<DannyJ>
agreed
<shevy>
you can google this up easily DannyJ :P
<shevy>
eh it is just the amount of time you invest into a topic
<workmad3>
DannyJ: and spam bots can cycle them pretty easily ;)
<workmad3>
shevy: sure, and then your account can be banned
<shevy>
I call myself technically experienced but I am also damn lazy, if my IP is banned, I am done because I would never in my life google for that
<DannyJ>
btw I found this
<DannyJ>
Is that good?
<DannyJ>
I used it for 1 python lesson
<shevy>
workmad3 I just insult all who wanna ban me :D
<DannyJ>
but was i said the Python guys didn't seem happy
gja has quit [Quit: This computer has gone to sleep]
<DannyJ>
I never asked a qeustion
<DannyJ>
but I saw how they respond to others
<DannyJ>
quite rude
<DannyJ>
so I will stay here
<shevy>
DannyJ most trolls are on reddit, I keep on fighting them but they are coming back
<DannyJ>
:(
<DannyJ>
:)
<DannyJ>
shevy: Im on reddit too
<DannyJ>
:)
<DannyJ>
but I just read and comment etc
<shevy>
eh #php can be worse than #python actually
<DannyJ>
dpeends ..
glaksmono has joined #ruby
<DannyJ>
well
Cephalostrum has quit [Read error: Connection reset by peer]
<shevy>
though you dont have to register, so that is a plus
<DannyJ>
I'm staying here for programming
<DannyJ>
:)
MattStratton has joined #ruby
Cephalostrum has joined #ruby
<workmad3>
DannyJ: registering is a good way to ensure a stable nick btw
<shevy>
DannyJ I think there is only the initial hurdle, once you know enough in any single programming language, transitioning to another one is not that hard if you invest the time
hornairs has quit [Client Quit]
<DannyJ>
belh
<shevy>
except for haskell
<DannyJ>
I'll do ruby
<workmad3>
DannyJ: it's also nice and easy to do, although I'd suggest that if you do that you do a quick bit of investigation to set up SASL auth with your IRC client
user258467 has quit [Read error: Connection reset by peer]
<shevy>
I will read that. maybe.
<shevy>
well ok I will read it ;)
<workmad3>
yeah, JS seems to be getting quite a lot of functional love atm
<angusiguess>
Futures, the dollar in jQuery, are both good examples.
<workmad3>
kinda re-inforces what a guy I used to work with - javascript is really a functional language dressed up in some OO clothes
<angusiguess>
ActiveRelations in rails are actually probably monadic.
<workmad3>
*work with said
<DannyJ>
Issue is
<DannyJ>
Should I stay in #programming or not?
<DannyJ>
I figured #ruby is better to keep it at?
<workmad3>
DannyJ: how many peeps are in there?
<workmad3>
DannyJ: and are they saying useful stuff?
<DannyJ>
well let me put it this way
<DannyJ>
and no
<angusiguess>
ActiveRecord::Relations**
<DannyJ>
well unreal is the founder there
<DannyJ>
he's in my own channel
<DannyJ>
:)
<DannyJ>
but ..
<DannyJ>
mostly #Porgramming is garbage
<DannyJ>
lots of trolls and meanies
<DannyJ>
I'll stay here
<DannyJ>
#programming*
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
<workmad3>
DannyJ: you can be in more than 1 channel at a time ;)
<shevy>
Porkgamming?
<colonolGron>
:D
<DannyJ>
well I know
<shevy>
DannyJ you gotta insult the trolls!
<DannyJ>
but I won't use it
<DannyJ>
its not wroth it
<Hanmac1>
shevy more like Pork-gambling ;P
<workmad3>
DannyJ: yeah, that's reasonable :)
<shevy>
indeed, time is precious
stryek has joined #ruby
<shevy>
I try to reduce the amount of channels I am in all the time but it's hard
<DannyJ>
good
<DannyJ>
I mean ..
<shevy>
I am in 8 channels right now... I could cut 4 of these
<workmad3>
shevy: yeah, I can't seem to get below about 10 :(
<shevy>
hehe
<DannyJ>
I don't want to be in too many channels
mansi has quit [Remote host closed the connection]
<DannyJ>
makes it hard to see
<shevy>
yeah
<DannyJ>
what I'm doing
yfeldblum has quit [Ping timeout: 265 seconds]
Jdubs has quit [Ping timeout: 252 seconds]
<DannyJ>
well 'll use LearnRubythehardway
<DannyJ>
:)
phansch has joined #ruby
dagobah has quit [Quit: Leaving...]
mhenrixon has joined #ruby
<shevy>
be aware that it was written by someone who left ruby
cleverma_ has joined #ruby
<workmad3>
shevy: rails (2 channs), ruby (3 chans), chef(2 chans), and some user groups
<DannyJ>
oh
<DannyJ>
oh well I'll use it
<DannyJ>
I used it for Pyton
rootshift has joined #ruby
<DannyJ>
it wasn't bad
<shevy>
yeah he is still using python
<DannyJ>
so I'll use it for Ruby
<DannyJ>
:)
<angusiguess>
@DannyJ it's a good book.
<shevy>
:P
<DannyJ>
the gudide was easy
<DannyJ>
people were rude
<DannyJ>
so Ruby it is
<DannyJ>
:)
<shevy>
workmad3, two rails channels???
<DannyJ>
again THIs is my first langauge
Deejay_ has quit [Quit: Computer has gone to sleep.]
<workmad3>
shevy: yup, one's a seekrit one though
<shevy>
hehe
<shevy>
#rails-take-over-the-world
maletor has quit [Quit: Computer has gone to sleep.]
<workmad3>
DannyJ: one thing I can heartily recommend (if that book doesn't cover it) is to approach coding right from the start in a test-driven fashion
momomomomo has quit [Quit: momomomomo]
mansi has joined #ruby
Seich has joined #ruby
<DannyJ>
Python was easy
<DannyJ>
but as I said
<DannyJ>
ok
<DannyJ>
Ruby to me fron alaysis seems easier
<workmad3>
DannyJ: it's a really good habit to be in, and unlearning habits is hard :)
<DannyJ>
I'll do Ruby
<DannyJ>
:
<DannyJ>
:)
mocfive has quit [Remote host closed the connection]
ahawkins has quit [Quit: leaving]
Al1_andre_ has joined #ruby
<workmad3>
DannyJ: so now all that's left is to go and learn it ;)
mocfive has joined #ruby
<DannyJ>
hehe
<DannyJ>
like a poop cow
clevermatt has quit [Ping timeout: 252 seconds]
<DannyJ>
:D
<DannyJ>
right?
<shevy>
nah
<DannyJ>
kidding
<shevy>
let's chat
<DannyJ>
:P
<shevy>
you'll hate programming
<shevy>
think of ALL the bugs you will CREATE
<DannyJ>
Ruby tw
<DannyJ>
ftw
asteros has joined #ruby
jlast has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<shevy>
is there a way to make an array of symbols?
tkuchiki has joined #ruby
SHyx0rmZ has joined #ruby
mojjojo has quit [Quit: mojjojo]
b00stfr3ak has joined #ruby
<canton7-mac>
shevy, %s I think?
<canton7-mac>
ah no, that's a single symbol
mojjojo has joined #ruby
Seich has quit [Ping timeout: 272 seconds]
<havenwood>
shevy: %i
mocfive has quit [Ping timeout: 245 seconds]
asteros has quit [Client Quit]
acoyfellow has joined #ruby
<havenwood>
shevy: You'll need a *modern* Ruby. :P 2.0+
<shevy>
:(
meatherly has joined #ruby
w4pm has joined #ruby
echevemaster has joined #ruby
Al1_andre_ has quit [Read error: Connection reset by peer]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dukz has joined #ruby
mojjojo has joined #ruby
saarinen has quit [Quit: saarinen]
meatherly has joined #ruby
cj3kim has joined #ruby
RaCx has joined #ruby
pzula has quit [Ping timeout: 252 seconds]
hl has quit [Ping timeout: 276 seconds]
John445 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
hl has joined #ruby
Niele has joined #ruby
drim has quit [Quit: drim]
meatherly has quit [Read error: Connection reset by peer]
RubyPanther has quit [Ping timeout: 248 seconds]
jtdowney has joined #ruby
Al1_andre_ has joined #ruby
meatherly has joined #ruby
zeeraw has joined #ruby
Niele has quit []
John445 has quit [Client Quit]
DannyJ has quit [Ping timeout: 272 seconds]
shaunbaker has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 245 seconds]
cj3kim has quit [Ping timeout: 272 seconds]
mojjojo has quit [Quit: mojjojo]
mercwithamouth has joined #ruby
freezey has quit [Remote host closed the connection]
Al1_andre_ has quit [Remote host closed the connection]
pen has joined #ruby
coderhs has quit [Read error: Connection timed out]
Al1_andre has joined #ruby
nifty has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
drim has joined #ruby
mklappstuhl has joined #ruby
pzula has joined #ruby
zipper has joined #ruby
mneorr has joined #ruby
zipper has quit [Client Quit]
jhaals has joined #ruby
RaCx has joined #ruby
k0m has joined #ruby
heidi has joined #ruby
bamdad has quit [Quit: bamdad]
allaire has quit []
mojjojo has joined #ruby
sparrovv has quit [Remote host closed the connection]
pzula has quit [Ping timeout: 272 seconds]
bigkevmcd has quit [Quit: outta here]
rayners has quit [Remote host closed the connection]
peregrin_ has joined #ruby
rayners has joined #ruby
saarinen has joined #ruby
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby
mneorr has quit [Ping timeout: 245 seconds]
pzula has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
fedesilv_ has joined #ruby
zoscoy has joined #ruby
v0n has quit [Read error: Operation timed out]
RaCx has quit [Ping timeout: 252 seconds]
gja has joined #ruby
araujo has quit [Remote host closed the connection]
mojjojo has quit [Client Quit]
RaCx has joined #ruby
Seich has joined #ruby
einarj has quit [Remote host closed the connection]
einarj has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
charlies_ has joined #ruby
DrShoggoth has joined #ruby
fedesilva has quit [Ping timeout: 248 seconds]
relix has joined #ruby
heidi has quit [Quit: Leaving.]
Clooth has joined #ruby
pzula has quit [Ping timeout: 248 seconds]
asteros has joined #ruby
nifty has quit [Ping timeout: 248 seconds]
thumpba has quit []
<sickweezle>
... a poop cow?
albertgrala has joined #ruby
thumpba has joined #ruby
Xeago has quit [Remote host closed the connection]
e62 has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
_tpavel has quit [Ping timeout: 272 seconds]
charliesome has quit [Ping timeout: 248 seconds]
heidi has joined #ruby
heidi has quit [Client Quit]
coderhs has quit [Read error: Connection timed out]
thumpba has quit [Client Quit]
coderhs has joined #ruby
einarj has quit [Ping timeout: 246 seconds]
thumpba has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy>
I guess he liked cows
browndawg has quit [Quit: Leaving.]
<shevy>
ever since Diablo, I was very impressed with the abilities of combat-ready cows anyway
<shevy>
and their warcry is just outstanding
<sickweezle>
a herd of cows with halberds is indeed a thing to fear
ndrei has quit [Ping timeout: 272 seconds]
zeade has joined #ruby
pzula has joined #ruby
pzula has quit [Client Quit]
Neomex has quit [Quit: Neomex]
jasonwebster has joined #ruby
allaire has joined #ruby
Seich has quit [Quit: Computer has gone to sleep.]
diegovio1 has joined #ruby
diegoviola has quit [Ping timeout: 252 seconds]
Seich has joined #ruby
diegovio1 has quit [Changing host]
diegovio1 has joined #ruby
diegovio1 is now known as diegoviola
jasonwebster has quit [Client Quit]
lsmola_ has quit [Ping timeout: 272 seconds]
mojjojo has joined #ruby
keen__ has quit [Ping timeout: 276 seconds]
mojjojo has quit [Client Quit]
klaut has quit [Remote host closed the connection]
mojjojo has joined #ruby
<Hanmac1>
shevy i also liked the first diablo game ;P ... (i also had a mod that addeds creatures from diablo I into Diablo II, but it was to mean ... )
Fitzsimmons has joined #ruby
Xeago_ has joined #ruby
ndrei has joined #ruby
Seich has quit [Ping timeout: 252 seconds]
fantazo has quit [Ping timeout: 252 seconds]
<Fitzsimmons>
there's Comparable for <=>, is there a similar module for basic arithmetic?
yfeldblum has joined #ruby
<canton7>
how do you mean?
mojjojo has quit [Client Quit]
Xeago_ has quit [Remote host closed the connection]
<canton7>
<=> is an operator which can compare any two objects - say whether one is equal, greater to, or less than, the other. Comparable breaks this down in to specific 'less than', 'less than or equal to', etc, operators
<canton7>
there isn't a general "combine two objects arithmetically in all possible ways" operator
<Fitzsimmons>
I'm pretty sure you can implement - and * as long as + is defined, for example
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
<apeiros>
canton7: depends. theoretically there could be.
<LadyRainicorn>
That sounds like a pretty fun operator canton7.
workmad3 has quit [Ping timeout: 252 seconds]
duggiefresh has quit [Remote host closed the connection]
arietis has joined #ruby
aaronmcada has joined #ruby
aaronmcada has quit [Client Quit]
<apeiros>
wouldn't be very efficient, though
<LadyRainicorn>
I actually don't think there could be.
Xeago has quit [Ping timeout: 252 seconds]
meatherly has quit [Read error: Connection reset by peer]
<canton7>
if you had a unary minus, 1/x, add, and multiply operators, you could infer subtract and divide :P
<LadyRainicorn>
I am fairly sure the resultant set is uncountably infinite.
<apeiros>
LadyRainicorn: in binary arithmetic, you can do all operations implemented using a single operation
<apeiros>
or was it two?
<canton7>
NAND
<canton7>
all you need
<apeiros>
bah, been a while since theory
<canton7>
(or NOR, but you need some form of conversion)
<canton7>
s/conversion/inversion
meatherly has joined #ruby
<shevy>
LadyRainicorn when I wake up, before I leave bed, I count to Infinity
<LadyRainicorn>
And you still couldn't make the operator of awesomeness!
Seich has joined #ruby
Bira has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
derick_skibotn has joined #ruby
aaronmcadam has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
Asher has quit [Quit: Leaving.]
coderhs has quit [Read error: Connection timed out]
meatherly has quit [Read error: Connection reset by peer]
lmickh_ has quit []
meatherly has joined #ruby
baroquebobcat has joined #ruby
lmickh has joined #ruby
lmickh has quit [Client Quit]
albertgrala has quit [Quit: Leaving]
coderhs has joined #ruby
blueOxigen has joined #ruby
lmickh has joined #ruby
Hanmac has joined #ruby
mojjojo has joined #ruby
e62 has joined #ruby
aspires has quit [Remote host closed the connection]
blueOxigen has quit [Read error: Connection reset by peer]
blueOxigen has joined #ruby
aspires has joined #ruby
mansi has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
zigomir has joined #ruby
<colonolGron>
for someone who never did web dev, would you suggest to start with ruby or php? i need to know both, but am not sure which one is good for a start
benzrf has joined #ruby
<benzrf>
so 'wtf!?!' is valid ruby syntax
<benzrf>
i enjoy this fact
<havenwood>
colonolGron: Ruby
bluOxigen has quit [Ping timeout: 252 seconds]
MattStra_ has joined #ruby
MattStra_ has quit [Max SendQ exceeded]
<colonolGron>
hmm
<havenwood>
colonolGron: I'd suggest learning Ruby basics then looking at Jekyll and Sinatra.
<colonolGron>
actually i also read some tutorials about ruby :) i know the basics but never applied them
<shevy>
benzrf hmm but only via define_method()
peregrin_ has quit []
<shevy>
colonolGron go with php. soon you will want a better language, then you'll never look back again at php
<colonolGron>
now i try to learn some of that stuff
<havenwood>
colonolGron: save yourself the pain though, context shifting away from php's way of doing web sounds harder than just starting with Ruby
<|RicharD|>
hi to all, i'm using the oauth2 gem
devdazed has quit [Quit: Bye]
<|RicharD|>
I have a problem when i create a token object from a existing access token(that i have in db)
<havenwood>
colonolGron: tons of jobs in Ruby, Rails and otherwise
<|RicharD|>
I do something like this: token = OAuth2::AccessToken.from_hash(client, auth_hash[:credentials])
zipper has joined #ruby
devdazed has joined #ruby
tylersmith has joined #ruby
zipper has left #ruby [#ruby]
madhatter has joined #ruby
Clooth has quit [Ping timeout: 245 seconds]
Clooth_ has quit [Client Quit]
<|RicharD|>
the problem is that create an object with params @params=
<|RicharD|>
{"token"=>
<|RicharD|>
"XXXXXXXXXXXXXXXXX"},
mojjojo has quit [Client Quit]
<|RicharD|>
instead the service want access_ token like params and not token, how i can do ?
alexfreidah has joined #ruby
<|RicharD|>
i tried to create the object with .from_hash(client, :access_token => token)
<colonolGron>
havenwood: so you suggest to learn rails only?
<|RicharD|>
but not work
shaunbaker has joined #ruby
mojjojo has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
LulzonAway is now known as Lulzon
<|RicharD|>
colonolGron: learn rails without ruby is the wrong way of work ;)
nwertman has quit [Quit: Lost terminal]
<havenwood>
well, I'd say learn Ruby well - then you have access to Rails, Sinatra, Chef, Puppet, all types of work.
linguini has joined #ruby
tyl has joined #ruby
<havenwood>
colonolGron: But Rails isn't my favorite Ruby framework to work with.
vlad_starkov has quit [Remote host closed the connection]
<havenwood>
colonolGron: Others love it. ;)
<colonolGron>
hmm i see
<colonolGron>
well the company i apply for asked for it
vlad_starkov has joined #ruby
yfeldblu_ has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
carraroj has joined #ruby
<colonolGron>
i am going to move to another city, and its the only company i found that does something besides ph
<colonolGron>
*php
iamjarvo has joined #ruby
zeropx has joined #ruby
<|RicharD|>
Where you move?
zeropx has quit [Client Quit]
zeropx has joined #ruby
zeropx has left #ruby [#ruby]
<colonolGron>
|RicharD|: to Mannheim, Germany
<|RicharD|>
and where you from ?
<b00stfr3ak>
Has any one used prawn/graph before?
alexfreidah has quit [Ping timeout: 252 seconds]
<colonolGron>
|RicharD|: from Freiburg, also Germany ;)
pixelgremlins has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
butc has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
rdark has quit [Quit: leaving]
coderhs has quit [Read error: Connection timed out]
benzrf has left #ruby [#ruby]
tt1187 has quit [Ping timeout: 265 seconds]
apples_ has joined #ruby
coderhs has joined #ruby
senayar_ has quit [Remote host closed the connection]
<shevy>
is there a simple way to shift down a hash? example: hash = { 'foo' => { bla: 5, ble: 6 } } <--- remove 'foo', shift the value of foo down to the main hash
wereHamster has quit [Remote host closed the connection]
senayar has joined #ruby
spider-mario has joined #ruby
huttan has quit [Quit: leaving]
<|RicharD|>
any expert of oauth2 ?
RaCx has joined #ruby
huttan has joined #ruby
Macaveli has joined #ruby
arturaz has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
nanoyak has joined #ruby
ahmedelgabri has quit []
IceDragon has quit [Quit: Space~~~]
zeropx has joined #ruby
matchaw_ has joined #ruby
maroloccio has quit [Ping timeout: 252 seconds]
<havenwood>
shevy: #values
matchaw has quit [Ping timeout: 245 seconds]
<shevy>
cool
dukz has quit [Remote host closed the connection]
io_syl has joined #ruby
dukz has joined #ruby
rosssssssss has quit [Remote host closed the connection]
Thanatermesis has quit [Read error: Operation timed out]
duggiefresh has joined #ruby
ndrei has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
no that wouldn't be proper
butc has left #ruby ["PART #bitcoin :PONG :hobana.freenode.net"]
Bira has joined #ruby
<shevy>
shift down one level of the whole, 'something' is on the same level as 'foo' so it would be discarded
Macaveli has quit [Ping timeout: 260 seconds]
<shevy>
and I wouldn't know the name 'foo' beforehand anyway
<shevy>
.values[0] works nicely
coffeina has joined #ruby
<shevy>
next question!
<shevy>
easy way to change all string keys in a hash to symbol keys? (The initial dataset I have to load from a yaml file, and it is easier to use string keys in yaml so I cant change that easily)
olivier_bK has quit [Ping timeout: 248 seconds]
hiall has quit [Ping timeout: 252 seconds]
thesheff17 has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
aantix has joined #ruby
ineb has joined #ruby
po10 has quit [Quit: /]
Thanatermesis has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.2]
Senjai has quit [Ping timeout: 276 seconds]
mocfive has quit [Ping timeout: 246 seconds]
larissa has quit [Quit: Leaving]
ghr has joined #ruby
<ineb>
hello, short question how to do that in ruby: i have a collection and want to iterate over a subset of that collection. my approach is foo = collection.select { criteria } and then foo.each. is there a more ruby-like way?
ndrei has quit [Ping timeout: 272 seconds]
thesheff17 has joined #ruby
alexherbo2 has joined #ruby
<waxjar>
that is superduper ruby ineb
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cantonic has joined #ruby
<shevy>
ineb can't get much shorter than that can it
Zai00 has quit [Quit: Zai00]
<Morrolan>
Chain!
mordocai has quit [Remote host closed the connection]
<shevy>
:P
<Morrolan>
Unless you're doing something with the intermediate collection, there's no real reason to store it somewhere.
<Morrolan>
Unless the line would get horribly long, of course. ;)
<ineb>
Morrolan: yes, that would be the case
<ineb>
but cool. thanks
<Morrolan>
Yea, then I understand the temporary variable. :)
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bjhaid has joined #ruby
sumark has quit [Remote host closed the connection]
<waxjar>
it's not very pretty, but at least its clear
Oog has joined #ruby
<Oog>
IO.readline with a limit seems to cause a broken pipe if the line does not end before the limit....
<Oog>
is there something analogous that would not cause a broken pipe?
Virtualize has joined #ruby
cbetta is now known as cbetta_afk
pixelgremlins has joined #ruby
<ineb>
waxjar: i kinda like it. the map makes it a bit messy, but i only need the .each here, so i think its fine
venkat has joined #ruby
Senjai has joined #ruby
zigomir has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has joined #ruby
ReachingFarr has joined #ruby
senayar_ has joined #ruby
synergy_ has joined #ruby
<ReachingFarr>
I have RDoc installed (twice: once in the system gem path and once in my local GEM_HOME) and can require it from IRB, but when I try and install a new gem I get the following error: RDoc is not installed: cannot load such file -- rdoc/rdoc
sassamo has quit [Remote host closed the connection]
<ReachingFarr>
Does anyone know why this might be?
venkat has quit [Remote host closed the connection]
<dlibanori>
I am running on a VM with 256mb
<apeiros>
dlibanori: you can have 2 files in 1 gist
mklappstuhl has quit [Remote host closed the connection]
<dlibanori>
apeiros: ;) you are right
lkba has quit [Read error: Connection reset by peer]
venkat has joined #ruby
AndChat| has joined #ruby
Wixy has joined #ruby
<Wixy>
Hi guys
<dlibanori>
centrx: you can see, it still has free memory
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
carraroj has joined #ruby
<Wixy>
I know I can do Thread.current[:foo] = "and save some value.."
sambao21 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Ping timeout: 246 seconds]
nfisher has quit [Quit: Good-bye all!]
<Wixy>
but how do you do the same with a thread in a variable?
vlad_sta_ has quit [Remote host closed the connection]
carraroj has quit [Client Quit]
<apeiros>
Wixy: Thread.current returns a Thread instance
<Wixy>
for example: t = Thread.new do t.current[:foo] = 123; end; puts t.current[:foo]
<apeiros>
Wixy: your variable returns a Thread instance
vlad_starkov has joined #ruby
<dlibanori>
centrx: the first gist works perfectly without backtick
<centrx>
Interesting
<Wixy>
I supposed it should work but it doesn't, apeiros
<apeiros>
Wixy: why t.current?
<dlibanori>
centrx: it happens on ruby 1.9.3, 2.0.0 and 2.10
<Wixy>
ahhhhh, wait a sec
cj3kim has joined #ruby
<Wixy>
the .current is somehow global
<apeiros>
Wixy: nooo
mikepack has quit [Read error: Operation timed out]
dkamioka has quit [Remote host closed the connection]
<apeiros>
Thread.current means "call the method `current` on `Thread`"
mehlah has joined #ruby
rootshift has joined #ruby
<dlibanori>
I think ruby is invalidating VM memory before change process binary
fijimunkii has joined #ruby
<apeiros>
like Array.new means "call the method `new` on `Array`"
<Wixy>
apeiros, yeah, I meant, it's the same thing for all threads
sambao21 has joined #ruby
<Wixy>
what I intended to do was to save :foo in a local environment available only for this thread
<centrx>
dlibanori, It sure looks like the problem is being caused by str.next! not the ``
<dlibanori>
in another words: it is not CoW friendly when forking
<apeiros>
Wixy: Thread.current is not somehow global. it returns the current thread. it makes no sense if it works differently.
<dlibanori>
centrx: but it works perfectly if I remove `
venkat has quit [Ping timeout: 248 seconds]
havenwood has joined #ruby
<centrx>
dlibanori, It is the array that is causing you to run out of memory
<centrx>
dlibanori, creating an array with 20 million elements in memory
<dlibanori>
centrx: It works perfectly without backtick
<Wixy>
look. I think this example is pretty clear: t1 = Thread.new do t.current[:foo] = 10; end \n t2 = Thread.new do t.current[:foo] = 5; end \n puts t1.current[:foo] + t2.current[:foo]
klaut has joined #ruby
<Wixy>
I'm expecting "15"
e62 has joined #ruby
<Wixy>
argh, never mind, the example is wrong. let me rewrite it in a pastebin
<dlibanori>
centrx: if I comment line #5, everything goes right
cj3kim has quit [Ping timeout: 260 seconds]
<apeiros>
Wixy: t.current *makes no sense*
rudisimo has joined #ruby
<Wixy>
apeiros, I know it doesn't work, but just to get the idea..
<TheLarkInn>
so has anyone tried to run ruby on a RaspberryPi, I'm interested to hear about success stories
<dlibanori>
havenwood: I can try to use popen, but I think Ruby is trying to allocate memory before change its binary
mikepack has joined #ruby
thumpba_ has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<havenwood>
TheLarkInn: Yeah, i'm working on a RaspberryPi project right now in Ruby.
<MrZYX>
TheLarkInn: it just works ;)
freerobby has joined #ruby
<shevy>
ruby just works (tm)
<TheLarkInn>
OH awesome. Well, I've heard because of size constraints and speed that you have to buy some fancy stage 10 flash card as your storage, and that takes a special distro of ruby
<shevy>
there are special distros of ruby?
<shevy>
I wanna get one!
<TheLarkInn>
lol shush
aryaching has quit [Ping timeout: 272 seconds]
<shevy>
python has gentoo
<shevy>
we got nothing :(
sambao21 has quit [Quit: Computer has gone to sleep.]
<TheLarkInn>
DOn't make fun of me.
<shevy>
perl has debian
<MrZYX>
it depends on what you want to do with ruby, but that's more a general concern
<DanBoy>
what does yellow dog have
<TheLarkInn>
What Ruby v are you guys using on your apps for it?
<DanBoy>
:P
mlpinit has quit [Remote host closed the connection]
<TheLarkInn>
Ruby works 1.9
<ReachingFarr>
It appears that gem is installing gems in $GEM_HOME/ruby/gems. Is this correct?
<havenwood>
TheLarkInn: Actually, right now were running Raspbian apt-get's Ruby 1.9.3. Though we'll probably switch to a ruby-install of 2.1.0 very soon.
<apeiros>
havenwood: ruby or mruby?
<shevy>
TheLarkInn I am still on 1.9 but I will probably switch to 2.1 soon though I'll probably stop using yaml files for my config, may have to start from scratch with a new format
<havenwood>
apeiros: ruby
terrellt has left #ruby [#ruby]
<havenwood>
I wasn't able to get JRuby working. But Ruby works great.
<TheLarkInn>
anyone try Rubinius?
<havenwood>
have to check back on JRuby, because it would be nice to have access to SWIG on a Pi
vlad_starkov has joined #ruby
Ergon has quit []
prc has joined #ruby
<havenwood>
TheLarkInn: Nope, haven't tried on Pi.
ctp has joined #ruby
<TheLarkInn>
I kind of want to buy one and write a few apps to control the doors and lighting in my chicken coop lol
postmodern has joined #ruby
<TheLarkInn>
simply time based stuff,
<TheLarkInn>
YES I OWN CHICKENS don't judge.
Jdubs has joined #ruby
<shevy>
lol
mlpinit has joined #ruby
<shevy>
if it walks like a duck
<shevy>
if it quacks like a duck
<shevy>
and if it shits like a duck
<RubyPanther>
TheLarkInn: The Pi isn't the best for that, there are others with built-in motor control
<shevy>
it may be some chicken
<shevy>
at least something birdy
<TheLarkInn>
Really? What do you recommend RubyPanther?
<RubyPanther>
Lots of people own chickens in my town, my mom and brother both do
<havenwood>
TheLarkInn: No internal clock, so you'll have to get a RTC module for your Pi, or give it internet access so it can get time from an NTP server.
<shevy>
Hanmac qt4 built fine, now I am building the latest kde, and soon glibc and THEN ruby 2.1
<RubyPanther>
TheLarkInn: beagleboard
<TheLarkInn>
What os does it run on
<TheLarkInn>
or should I say what linux does it run on
<havenwood>
TheLarkInn: Could even do an Arduino Yun.
<TheLarkInn>
Wow all these things are so exciting.
derebos has quit [Ping timeout: 272 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Ping timeout: 260 seconds]
aspires has joined #ruby
jtdowney has quit [Remote host closed the connection]
Matriks has quit [Read error: Connection reset by peer]
<TheLarkInn>
Now if we could only get Xcode to work with MacRuby again, my life would be complete.
jtdowney has joined #ruby
jtdowney has quit [Client Quit]
<TheLarkInn>
xCode5 + Mavericks*
Matriks has joined #ruby
jcarouth has left #ruby [#ruby]
ctp has quit [Ping timeout: 252 seconds]
<havenwood>
apeiros: I saw the mruby on pi talk at RubyConf this year, but they just did it purely for fun (i think they had mruby with 16gb space extra)
w4pm has joined #ruby
<TheLarkInn>
lol
<havenwood>
apeiros: Pi is about same system specs as my PC in undergrad. :O
<apeiros>
yeah, progress of hardware is amazing
<apeiros>
my iphone has 1000x more space in ram than my first computer had space on its hard drive
ktosiek has joined #ruby
rezzack has joined #ruby
<apeiros>
ah, wait, only 50x actually :)
pu22l3r has quit [Remote host closed the connection]
<wmoxam>
apeiros: your first computer had a hard drive?!
<havenwood>
mmm, back when floppy disks flopped
<wmoxam>
fancy
pu22l3r has joined #ruby
aryaching has quit [Ping timeout: 272 seconds]
yalue has quit [Quit: Leaving]
<TheLarkInn>
yeah but the real question is, when does the plateau happen?
<apeiros>
yes, a 20MB HD. and a 9" monochrome monitor with 512x384 pixel resolution. and 2.5MB ram (at that time, most PCs had around 256KB ram)
* wmoxam
remembers loading programs off of cassette tapes
<TheLarkInn>
beacuse at the rate things are going, in 10 years we will have petabyte flashdrives the size of pinky fingers
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<wmoxam>
apeiros: super fancy!
<apeiros>
wmoxam: yeah, totally :)
<wmoxam>
my first was a TRS 80
<wmoxam>
and we had Commodore PETs at school
<TheLarkInn>
mine was a Tandy Windows 3.1
<apeiros>
and technically it wasn't mine 0:-)
<TheLarkInn>
92'
asteve has joined #ruby
<TheLarkInn>
'92*
<apeiros>
(I was in elementary school back then)
<wmoxam>
:D
venkat has joined #ruby
<asteve>
so I'm writing a test, I need to verify that the returned record, which is a Json object which contains a record field which points to an array of other json objects
yfeldblu_ has quit [Remote host closed the connection]
<asteve>
I need to verify that the interior json object contains specific ids
<wmoxam>
my first PC (well, my family's first PC) was a 486 DX4-100 with 4MB RAM! I forget how big the hard drive was
<havenwood>
shoulda kept it, prolly worth more now >.>
<apeiros>
I think I started with "System 4" (classic mac os)
deception has quit [Quit: Goodbye]
<apeiros>
lode runner was my favorite game :)
<ddd>
commodore 64+
<asteve>
{:records => [{:other => "stuff", :id => 1},{:more => "stuff", :id => 2]}; how do I assert that both id 1 and id 2 are in the interior?
Seich has quit [Quit: Computer has gone to sleep.]
justsee has joined #ruby
justsee has joined #ruby
<havenwood>
the Kaypro 2000 really was an odd beast
kobain has joined #ruby
davidhq has quit [Read error: Connection reset by peer]
<havenwood>
WordStar
Seich has joined #ruby
<wmoxam>
Kaypro 2000 looks sweet
<apeiros>
and I was super proud when I wrote my first game, memory, and managed to reduce the time to shuffle the cards from ~17min down to ~5s in a couple of iterations.
<wmoxam>
complete with a mechanical keyboard!
<ddd>
wow, haven't even heard the name WordStar in years!
timonv has quit [Remote host closed the connection]
jtdowney has joined #ruby
_maes_ has joined #ruby
<TheLarkInn>
I'm sure that can be refactoreed even more just reading the reduntant typing
Seich has quit [Ping timeout: 272 seconds]
lorelei_ has quit [Quit: TTFN]
Zenreich has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Ping timeout: 252 seconds]
jtdowney has quit [Client Quit]
agjacome has quit [Read error: Operation timed out]
asteve has joined #ruby
jtdowney has joined #ruby
<ktosiek>
oh, I was saying it looked like he wanted it to fail on [{:id => 1}, {:id => 1}] (as the id 2 is missing)
cbetta is now known as cbetta_afk
<TheLarkInn>
so fail if both exist
<asteve>
is it possible to loop over variable names, say I have var1, var2, var3; in a for loop can I do something like var#{i} = "this is not going to work"
<ktosiek>
asteve: you still here? Can you say if the given solutions are ok?
lmickh_ has joined #ruby
shaunbaker has joined #ruby
<asteve>
I missed any solutions, sorry
<TheLarkInn>
-_- rofl
RaCx has quit [Quit: Computer has gone to sleep.]
* TheLarkInn
thinks its the last time he tries to contribute
kreantos has joined #ruby
<asteve>
is there a .to_var or something?
<asteve>
"blah".constantize?
<TheLarkInn>
erm, there kinda is
ivom has quit [Quit: leaving]
gja has quit [Quit: This computer has gone to sleep]
apples_ has quit [Ping timeout: 245 seconds]
<centrx>
asteve, What are the variables used for?
zeropx has quit [Quit: has left the room … Or did he?]
yfeldblu_ has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
lmickh has quit [Ping timeout: 245 seconds]
<asteve>
centrx: well, they store json objects
<centrx>
asteve, Right but I am not clear why you need the variable names. Why not just loop over the variables?
<asteve>
I would like to do something like `for i in 0..100 { "var#{i}".constantize = value }
krawchyk has quit []
<centrx>
asteve, That is not good practice
<havenwood>
asteve: `method(:puts).call 'hi'` or `send(:puts, 'hi')` for example
clamstar has quit [Quit: Computer has gone to sleep.]
<asteve>
centrx: yes, I figured as much
<centrx>
asteve, Why not use an array?
<asteve>
I was hoping for an easier way out
lmickh_ has quit [Ping timeout: 272 seconds]
fire has quit [Quit: WeeChat 0.4.1]
end_guy has quit [Remote host closed the connection]
<centrx>
asteve, Use an array or a hash
<asteve>
ya, that's the best answer
Jdubs has quit [Remote host closed the connection]
<TheLarkInn>
isnt there a method off of Class Object which lets you do instance_variable_set
<havenwood>
asteve: This would define 100 methods that return `:whatev`: 1.upto(100).map { |n| define_method("var#{n}") { :whatev } }
davidhq_ has joined #ruby
chipotle has joined #ruby
<havenwood>
oh, you said variable, i dunno why i was thinking method
kate_r has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<chipotle>
hi, i'm learning ruby but would like to hire a mentor to help me out as i go through the well grounded rubyist. anybody here interested?
<centrx>
TheLarkInn, Yes
<TheLarkInn>
I'm sure if you were wanting to take some strings or something and make instance vars out of them that would be the way to do it
<TheLarkInn>
I forget how it works
<centrx>
chipotle, And here I was wasting my time helping people for free!
* TheLarkInn
looks it up
<chipotle>
centrx: well, free would be nice, but i assume people would want to be paid
DrShoggoth has joined #ruby
<chipotle>
i'm looking for a mentor that can help me when i get stuck and encourage me
<wtfitsme>
Hello I am new to Ruby and trying to understand the following statement: inline.map{ |js| js[/new Highcharts\.Chart\((.+?\})\);/m,1] }.compact[0] - specifically I an wondering what the the significance of "js[/new Highcharts\.Chart\((.+?\})\);/m,1]" in the block.
Hobogrammer has joined #ruby
<LadyRainicorn>
(Unlike Python, we looooove upgrades. ;p0
<shevy>
ktosiek I use 1.9.3
<ktosiek>
LadyRainicorn: yeah, I know, like with 1.8 -> 1.9 migration
zigomir has joined #ruby
<centrx>
wtfitsme, It is using regex to select from an array
<DouweM>
I'm on 1.9.3 as well, but there's no reason not to go with 2.1 if you're starting now
<DouweM>
it's not like Python 2/3
<shevy>
ohhh
<shevy>
why are you not on 2.1 DouweM?
<wtfitsme>
I understand it is a regex match but I dont under stand the [ ]'s
<DouweM>
shevy: laziness I guess
<ktosiek>
(I hope 1.8 is dead now?)
<wtfitsme>
ah because it is an array?
phinfonet has quit [Read error: Connection reset by peer]
<shevy>
wtfitsme the [] ? is a method on a string I reckon
<apeiros>
ktosiek: [] is a method in ruby
<centrx>
wtfitsme, Yes, the basic usage would be array[0] (or maybe it is a string)
phinfonet has joined #ruby
<LadyRainicorn>
1.8 is dead except for that one person who never turned off their work computer here earlier.
<shevy>
centrx man I want to see a movie with Samurai Yukihiro Matsumoto slicing monster python apart with a red katana
<atmosx>
shevy: it's not Kutcher, it's the whole thing... It's not a movie, doesn't feel like it, nor as a documentary. And it's all wrong no idea why did it.
rootshift has joined #ruby
graft has quit [Ping timeout: 264 seconds]
<shevy>
hehehe
thumpba_ has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
thumpba_ has joined #ruby
<sickweezle>
cbetta is now known as cbetta_afk
cbetta_afk is now known as cbetta
achru has quit [Remote host closed the connection]
thesheff17 has joined #ruby
ctp has joined #ruby
claymore has quit [Ping timeout: 260 seconds]
asteros has joined #ruby
sassamo has quit [Read error: Connection reset by peer]
sassamo has joined #ruby
burlyscudd has quit [Quit: Leaving.]
thumpba_ has quit [Remote host closed the connection]
fijimunkii has joined #ruby
ehc has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
OdNairy has joined #ruby
claymore has joined #ruby
dayepa has quit [Quit: dayepa]
vlad_sta_ has quit [Remote host closed the connection]
deens has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
ctp has quit [Ping timeout: 272 seconds]
tannerburson has quit [Quit: tannerburson]
mocfive_ has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
graft has joined #ruby
mocfive has joined #ruby
cbetta is now known as cbetta_afk
Megtastique has quit []
yfeldblum has joined #ruby
frog0909_ has joined #ruby
<atmosx>
Oh, that was extremely easy.. hm
tjbiddle has joined #ruby
shaunbaker has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
asteros has quit [Quit: asteros]
mradmacher has quit [Quit: leaving]
EngierkO has quit [Ping timeout: 252 seconds]
e62 has joined #ruby
frog0909 has quit [Ping timeout: 246 seconds]
mocfive has quit [Ping timeout: 260 seconds]
stryek has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
cbetta_afk is now known as cbetta
ndrei has quit [Ping timeout: 252 seconds]
claymore has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
Megtastique has joined #ruby
kotk has joined #ruby
claymore has joined #ruby
philtr has left #ruby [#ruby]
LadyRainicorn has quit [Ping timeout: 252 seconds]
pushpak_ has joined #ruby
pushpak_ has quit [Client Quit]
freerobby has quit [Ping timeout: 252 seconds]
philtr has joined #ruby
apples_ has joined #ruby
pushpak has quit [Ping timeout: 265 seconds]
Al1_andre has quit [Quit: Ex-Chat Timed out]
sailias has quit [Quit: Leaving.]
asteros has joined #ruby
mocfive has joined #ruby
<MrZYX>
sickweezle: try checking LinkHandler.method(:describe).source_location inside the test, maybe rspec overwrites it
mhenrixon|afk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peregrin_ has quit []
asteros has quit [Client Quit]
wchun has quit [Quit: Leaving]
Zenreich has quit [Ping timeout: 252 seconds]
cgore has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 252 seconds]
aryaching has joined #ruby
nanoyak has joined #ruby
nobitanobi has joined #ruby
Deele has quit [Ping timeout: 260 seconds]
<nobitanobi>
hi guys.
<nobitanobi>
I am confused about this method: http://www.imagemagick.org/RMagick/doc/image1.html#new -- It says I can pass optional parameters in { }. But how do I separate each parameter? Right now I have Image.new(width,height) { self.background_color => 'black' } And I would like to add depth => 8
ReachingFarr has left #ruby [#ruby]
frog0909_ has quit [Ping timeout: 246 seconds]
<nobitanobi>
sorry I have { self.background_color = 'black' }
jtdowney has quit []
nisstyre has quit [Read error: Connection reset by peer]
deens has joined #ruby
<MrZYX>
it's ruby code
<MrZYX>
just separate it by newlines
nateberkopec has quit [Quit: Leaving...]
ukd1 has quit [Read error: Connection reset by peer]
<nobitanobi>
oh, new lines?
<MrZYX>
it's a normal block, yes
<nobitanobi>
hum, that's new to me
<nobitanobi>
I didn't know that. Thanks MrZYX
ukd1 has joined #ruby
<MrZYX>
like when you do some_array.each do |item|
<MrZYX>
nothing else
Jake232 has joined #ruby
Jake232 has quit [Client Quit]
nateberkopec has joined #ruby
<TheLarkInn>
meh I like one liners, blocks seem so unruby to me
coda23 has joined #ruby
wallerdev has quit [Quit: wallerdev]
<bnagy>
that's a really crap initialisation API imho
<nobitanobi>
MrZYX, i SEE :)
<nobitanobi>
*ups I see
<TheLarkInn>
array.map{|x| x.map{|y| y + y + 4; y / y;}}
<bnagy>
Image.new(blah) { BLOCK THAT ACCESSES CLASS METHODS LOL I READ TOO MUCH _WHY }
mary5030 has quit [Remote host closed the connection]
mordocai has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
v0n has quit [Quit: WeeChat 0.4.3-dev]
IcyDragon has joined #ruby
IceDragon has quit [Ping timeout: 264 seconds]
devdazed has quit [Quit: Bye]
kirun has quit [Quit: Client exiting]
ndrei has joined #ruby
brianpWi1s has joined #ruby
pu22l3r has joined #ruby
trinode has joined #ruby
<sickweezle>
MrZYX: Will do. Thank you! That gives me a good place to start.
interactionjaxsn has quit [Remote host closed the connection]
<trinode>
in rubymine, if **/features/{*_test,test_*}.rb matches my feature tests, and **/controllers/{*_test,test_*}.rb matches my controller tests, how do I write one expression to cover both?
<trinode>
oh that was easy
<trinode>
I never work it out until I ask
<centrx>
Glad we could help
<trinode>
:)
<shevy>
our hive brain helped you
<shevy>
it's like the zen of ruby
IcyDragon is now known as IceDragon
<shevy>
as individual you don't see the individual tree anymore
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mhenrixon has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
mhenrixon has joined #ruby
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Soda has quit [Quit: Soda]
coderhs has quit [Ping timeout: 265 seconds]
coder_neo has quit [Quit: Leaving]
vinse has joined #ruby
vinse has left #ruby [#ruby]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fijimunkii has quit [Ping timeout: 252 seconds]
fedesilv_ has quit [Ping timeout: 246 seconds]
ldcicconi has joined #ruby
thumpba__ has quit [Remote host closed the connection]
cj3kim has joined #ruby
OdNairy has joined #ruby
OdNairy has quit [Client Quit]
maroloccio has quit [Quit: WeeChat 0.4.2]
mlpinit has quit [Remote host closed the connection]
baordog_ has quit [Remote host closed the connection]
<ldcicconi>
when I run bundle install, the installation will get to json and exit and print an error statement. any ideas?
vlad_starkov has joined #ruby
havenwood has quit [Remote host closed the connection]
nifty has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Remote host closed the connection]
spider-mario has quit [Read error: Connection reset by peer]
heftig has joined #ruby
freezey has joined #ruby
cj3kim has quit [Ping timeout: 248 seconds]
senayar_ has quit [Remote host closed the connection]
senayar has joined #ruby
cantonic has quit [Quit: cantonic]
aspires has quit [Remote host closed the connection]
jarileskinen has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
<sickweezle>
MrZYX: Dead on. 'puts LinkHandler.method(:describe).source_location' inside the test resultes in -> ...lib/rspec/core/dsl.rb\n17
<shevy>
I swear
<shevy>
KDE and GNOME...
nateberkopec has quit [Quit: Leaving...]
<MrZYX>
ldcicconi: reading the error message generally helps
<MrZYX>
sickweezle: since you're nowhere using subject or described_class, I'd check if just not doing describe LinkHelper fixes that