<buzzybron>
is there a transaction method in pg gem which i can use?
bradhe has joined #ruby
yxhuvud has joined #ruby
fgo has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 245 seconds]
davedev24 has quit [Remote host closed the connection]
cmhobbs has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sethetter has joined #ruby
<sethetter>
when i try to launch irb i get 'Illegal instruction 4', I'm on mac os, if that makes a difference. Any clues? I use rvm and it does the same thing in 1.8.7, 1.9.3, and 2.0.0
huoxito has quit [Quit: Leaving]
jjbohn has joined #ruby
lastk has joined #ruby
kadoo has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
<lastk>
hi guys, how can I use this method: URI::regexp(%w(http https)) with a string? to validates if the string is a url?
marcgg_ has joined #ruby
marcgg has quit [Read error: No route to host]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spooner has quit [Remote host closed the connection]
mansi has quit [Ping timeout: 245 seconds]
jjbohn has quit [Read error: Connection reset by peer]
jjbohn_ has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
jamesaanderson has joined #ruby
<sethetter>
momomomomo: thanks
huoxito has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
arya_ has joined #ruby
cantonic has quit [Quit: cantonic]
choobie has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jztech101_ has quit [Ping timeout: 248 seconds]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
finges has quit [Quit: WeeChat 0.4.1]
jimg has joined #ruby
ukd1 has quit [Remote host closed the connection]
mansi has joined #ruby
jimg has quit [Read error: Connection reset by peer]
finges has joined #ruby
vlad_starkov has joined #ruby
jimg has joined #ruby
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
kadoo has joined #ruby
jimg has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 245 seconds]
<krainboltgreene>
If you had to keep track of a specifc set of classes, a group of classes, would you dynamically search for them or would you store them in an array at the beginning of load?
Hanmac1 has joined #ruby
jimg has joined #ruby
rezzack has joined #ruby
rezzack has quit [Changing host]
rezzack has joined #ruby
jimg has quit [Read error: Connection reset by peer]
viszu has quit [Quit: Leaving.]
vlad_starkov has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
jimg has quit [Remote host closed the connection]
DanKnox_away is now known as DanKnox
michaeldeol has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
BrianJ has joined #ruby
tatsuya__ has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
DeanH has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
anonymuse has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
tatsuya_o has quit [Ping timeout: 264 seconds]
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arya_ has quit [Ping timeout: 260 seconds]
maroloccio has quit [Quit: WeeChat 0.4.0]
maroloccio has joined #ruby
kasper has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
arya_ has joined #ruby
sethetter has quit [Ping timeout: 256 seconds]
mansi has quit [Remote host closed the connection]
kadoo has joined #ruby
Domon has joined #ruby
hogeo has quit [Remote host closed the connection]
mmitchell has joined #ruby
nari has joined #ruby
GeissT has joined #ruby
momomomomo has quit [Quit: momomomomo]
blarghmatey has joined #ruby
smathieu has quit [Remote host closed the connection]
sambao21 has joined #ruby
hamakn has joined #ruby
DanKnox is now known as DanKnox_away
kadoo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Client Quit]
smathieu has joined #ruby
arya_ has quit [Ping timeout: 246 seconds]
binw has quit [Read error: Connection reset by peer]
sethetter has joined #ruby
DanKnox_away is now known as DanKnox
hakunin has quit [Remote host closed the connection]
hakunin has joined #ruby
arya_ has joined #ruby
airlok has joined #ruby
smathieu has quit [Ping timeout: 276 seconds]
binw has joined #ruby
hakunin has quit [Ping timeout: 256 seconds]
kevinykchan has quit [Quit: Computer has gone to sleep.]
bigmac has joined #ruby
inimit has joined #ruby
nettoweb has quit [Quit: nettoweb]
jkline has quit [Quit: jkline]
mansi has joined #ruby
<bnagy>
why would you have to keep track of classes?
Voodoofish430 has quit [Quit: Leaving.]
arya_ has quit [Ping timeout: 256 seconds]
mansi has quit [Remote host closed the connection]
banghouse has quit [Read error: Connection reset by peer]
banghous_ has joined #ruby
radic__ has quit [Ping timeout: 245 seconds]
arya_ has quit [Ping timeout: 248 seconds]
smathieu has quit [Ping timeout: 264 seconds]
Iszak_ has quit [Quit: Computer has gone to sleep.]
hogeo has joined #ruby
airlok has quit [Remote host closed the connection]
Guest66032 is now known as ned
ned is now known as Guest53987
Hanmac1 has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
twoism has quit [Remote host closed the connection]
jimg has joined #ruby
twoism has joined #ruby
nettoweb has joined #ruby
Xuerian_ is now known as Xuerian
__sowcow__ has joined #ruby
Hanmac1 has quit [Ping timeout: 246 seconds]
<bnagy>
krainboltgreene: well it does, because it's a code smell
<krainboltgreene>
No, it's not.
<bnagy>
and if you say stuff like 'how would you shut your nuts in a desk drawer' most people will say 'well actually I wouldn't'
cj3kim has joined #ruby
<sevenseacat>
lol
jimg has quit [Ping timeout: 246 seconds]
Mars` has quit [Quit: WeeChat 0.4.1]
nettoweb has quit [Read error: Connection reset by peer]
nbouscal has joined #ruby
<sevenseacat>
good call.
kindjal has joined #ruby
<krainboltgreene>
Don't be a dick, seriously.
<krainboltgreene>
I asked a question about practice, and you're telling me I'm asking a dumb question.
<krainboltgreene>
That's neither nice or helpful.
krainboltgreene has left #ruby [#ruby]
<bnagy>
well actually I started by asking why you'd do that
<bnagy>
but you were disinclined to answer
<bnagy>
_then_ I said it was a dumb question
<sevenseacat>
meh, he left
<bnagy>
prima facie, anyway
<bnagy>
day's tally: I
hoyang has joined #ruby
<sevenseacat>
lol
hogeo has quit [Remote host closed the connection]
<bnagy>
bigmac: I have never worked with PF_PACKET
<bnagy>
my advice is actually to find some C code that uses the same part of the API, the Socket class is about as thin a wrapper as there is in stdlib
zeromodulus has quit [Remote host closed the connection]
jimg has joined #ruby
michaeldeol has quit [Remote host closed the connection]
<bnagy>
that's what I've done in the past, PF_INET
jlast has joined #ruby
jimg has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 264 seconds]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
mansi has joined #ruby
jimg has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
hoyang has joined #ruby
mansi has quit [Remote host closed the connection]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
mansi has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jamesaanderson has joined #ruby
jimg has joined #ruby
jjbohn_ has quit [Quit: Leaving...]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
anay has joined #ruby
splittingred has joined #ruby
splittingred has quit [Client Quit]
jimg has quit [Read error: Connection reset by peer]
splittingred has joined #ruby
jimg has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
jimg has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
jimg has joined #ruby
ntus1017 has quit [Remote host closed the connection]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
Anarch_ is now known as Anarch
maroloccio has quit [Quit: WeeChat 0.4.0]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Remote host closed the connection]
anay has quit [Remote host closed the connection]
hakunin has joined #ruby
<blarghmatey>
I'm taking a poll: how many of you would want to do business with a company named Boundless Notions if it was a consulting firm. How about if you were getting a software product from them?
mmitchell has joined #ruby
<sevenseacat>
uh... what?
GeissT_ has joined #ruby
<sevenseacat>
is this a 'critique the company name'?
rosario has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
<blarghmatey>
Trying to figure out if it's a viable name for a business.
<bnagy>
WE SAIL THE BOUNDLESS NOTIONS, YARR, AND FLY THE JOLLY ROGER!
<sevenseacat>
lol
GeissT has quit [Ping timeout: 240 seconds]
<blarghmatey>
I'll take that as a down vote.
<sevenseacat>
seems like a meh name to me
<sevenseacat>
but would it affect me doing business with them, no
Gooder has joined #ruby
tbn` has joined #ruby
<blarghmatey>
Yeah, it was the best I've been able to come up with in a while.
kofno has quit [Remote host closed the connection]
tbn has quit [Ping timeout: 245 seconds]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
Shirakawasuna has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg_ has joined #ruby
hogeo has joined #ruby
deallocate has quit [Quit: WeeChat 0.4.1]
eldariof has joined #ruby
jimg_ has quit [Read error: Connection reset by peer]
jimg has joined #ruby
io_syl_ has quit [Ping timeout: 246 seconds]
saarinen has quit [Quit: saarinen]
jimg has quit [Read error: Connection reset by peer]
__sowcow__ has left #ruby [#ruby]
jimg_ has joined #ruby
jimg_ has quit [Read error: Connection reset by peer]
jimg_ has joined #ruby
anonymuse has quit [Remote host closed the connection]
Cyrus has joined #ruby
anonymuse has joined #ruby
renderful has joined #ruby
jimg_ has quit [Read error: Connection reset by peer]
dallasm has joined #ruby
jimg_ has joined #ruby
jimg_ has quit [Read error: Connection reset by peer]
kindjal has quit [Ping timeout: 260 seconds]
jimg_ has joined #ruby
thams has joined #ruby
jimg_ has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
jimg has joined #ruby
jimg has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
anonymuse has quit [Ping timeout: 248 seconds]
Mendon has joined #ruby
hogeo has joined #ruby
swordsmanz has quit [Quit: swordsmanz]
freerobby has joined #ruby
nettoweb has quit [Quit: nettoweb]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
banghous_ is now known as banghouse
smathieu has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
bzitzow has quit [Ping timeout: 240 seconds]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
cofin has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
smathieu has quit [Ping timeout: 246 seconds]
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
jimg has joined #ruby
Tsagadai has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
doritostains has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
cj3kim has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
dallasm has quit [Remote host closed the connection]
jimg has joined #ruby
jimg has quit [Read error: Connection reset by peer]
jimg has joined #ruby
Guga_ has quit [Quit: ~]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimg has quit [Read error: Connection reset by peer]
jonkri_ has joined #ruby
rosario has quit [Ping timeout: 246 seconds]
jimg has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
marcgg_ has quit [Read error: No route to host]
jonkri has quit [Ping timeout: 240 seconds]
jimg has quit [Read error: Connection reset by peer]
kasper has quit [Remote host closed the connection]
marcgg has joined #ruby
jimg has joined #ruby
jlast has quit [Remote host closed the connection]
jimg has quit [Read error: Connection reset by peer]
Yakko has quit [Remote host closed the connection]
Tsagadai has quit [Ping timeout: 250 seconds]
ssvo has joined #ruby
blarghmatey has quit [Ping timeout: 240 seconds]
jimg has joined #ruby
steve0341 has joined #ruby
<steve0341>
greetings
Brando753 has joined #ruby
<steve0341>
Anyone new to Ruby Program wants to pair up?
bradhe has joined #ruby
cyong has joined #ruby
jimg has quit [Ping timeout: 246 seconds]
jonahR has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
maxmanders has joined #ruby
freerobby has quit [Quit: Leaving.]
fredjean has joined #ruby
bradhe_ has joined #ruby
io_syl has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
blarghmatey_ has joined #ruby
hogeo has quit [Remote host closed the connection]
jonkri_ has quit [Quit: jonkri_]
bradhe has quit [Ping timeout: 246 seconds]
maxmanders has quit [Ping timeout: 256 seconds]
dagen has quit []
twoism has quit [Remote host closed the connection]
mansi has joined #ruby
finges has quit [Quit: WeeChat 0.4.1]
browndawg has joined #ruby
Bry8Star{T2 has quit [Quit:]
bradhe_ has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 256 seconds]
skogis_ has quit [Ping timeout: 248 seconds]
skogis has joined #ruby
kofno has joined #ruby
anekos has quit [Remote host closed the connection]
Deele has joined #ruby
bradhe has joined #ruby
kasper has joined #ruby
roadt has quit [Ping timeout: 248 seconds]
blarghmatey_ has quit [Ping timeout: 264 seconds]
Bry8Star{T2 has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
djbkd has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
kasper has quit [Read error: Connection reset by peer]
bakingbread has quit [Ping timeout: 245 seconds]
steve0341 has quit [Quit: steve0341]
hogeo has joined #ruby
DanKnox is now known as DanKnox_away
anay has joined #ruby
anekos has joined #ruby
bakingbread has joined #ruby
wesside has joined #ruby
wmoxam has quit [Ping timeout: 246 seconds]
saarinen has joined #ruby
ehaliewicz has quit [Read error: No route to host]
krz has joined #ruby
arya__ has quit [Ping timeout: 248 seconds]
mmitchell has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
bionoid has joined #ruby
mary5030 has joined #ruby
ananthakumaran has joined #ruby
sayan has joined #ruby
lastk has quit [Quit: Leaving]
arya_ has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
Hanmac1 has joined #ruby
jonathanwallace has joined #ruby
roadt has joined #ruby
rsahae has joined #ruby
hogeo has quit [Ping timeout: 240 seconds]
eldariof has quit [Ping timeout: 246 seconds]
LimitSupremum has joined #ruby
Domon has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 256 seconds]
cj3kim has joined #ruby
cj3kim has quit [Read error: Connection reset by peer]
darth_chatri has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
arietis has joined #ruby
BizarreCake has joined #ruby
hogeo has joined #ruby
dhruvasagar has joined #ruby
mary5030 has quit [Remote host closed the connection]
krz has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
apeiros has joined #ruby
tonini has joined #ruby
cofin has quit [Quit: cofin]
ssvo has quit [Ping timeout: 240 seconds]
zeade has quit [Quit: Leaving.]
ssvo has joined #ruby
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
txdv has joined #ruby
ruby-lang605 has joined #ruby
jlast has joined #ruby
<ruby-lang605>
Can somebody tell me why I am getting "ruby syntax error, unexpected ':', expecting '}'" LIne 10 on this piece of code http://pastie.org/8133598
txdv_ has quit [Read error: Connection reset by peer]
[narcan] has quit [Read error: Connection reset by peer]
ybart has joined #ruby
atmosx has quit [Remote host closed the connection]
erry has quit [Read error: Operation timed out]
joshu_ has quit [Ping timeout: 240 seconds]
germanstudent has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
diegok has quit [Ping timeout: 240 seconds]
xsdg_ has quit [Quit: Reconnecting]
atmosx has joined #ruby
xsdg has joined #ruby
DanKnox has quit [Ping timeout: 245 seconds]
dash_ has quit [Ping timeout: 240 seconds]
Guest36719 has quit [Ping timeout: 240 seconds]
autumn has quit [Ping timeout: 240 seconds]
_Andres has quit [Ping timeout: 245 seconds]
alup has joined #ruby
rouss has quit [Ping timeout: 240 seconds]
apeiros has quit [Ping timeout: 240 seconds]
dumdedum has quit [Ping timeout: 240 seconds]
yosafbridge` has quit [Ping timeout: 240 seconds]
denken has quit [Ping timeout: 240 seconds]
wang has quit [Ping timeout: 240 seconds]
mnaser has quit [Ping timeout: 240 seconds]
jbpros has joined #ruby
destructure has quit [Ping timeout: 264 seconds]
echevemaster has quit [Ping timeout: 240 seconds]
AlSquire has quit [Ping timeout: 240 seconds]
thelamest has quit [Ping timeout: 240 seconds]
Guest57220 has quit [Ping timeout: 240 seconds]
blitz has quit [Ping timeout: 240 seconds]
Schmidt has quit [Ping timeout: 240 seconds]
sn0wb1rdz has quit [Ping timeout: 264 seconds]
diegok has joined #ruby
Kovensky has quit [Ping timeout: 245 seconds]
coaster has quit [Ping timeout: 276 seconds]
destructure has joined #ruby
daniel has joined #ruby
wang has joined #ruby
denken has joined #ruby
monban has joined #ruby
daniel is now known as Guest93558
thelamest has joined #ruby
joshu has joined #ruby
_Andres has joined #ruby
dash_ has joined #ruby
renderful has quit [Remote host closed the connection]
coaster has joined #ruby
graydot has joined #ruby
erry has joined #ruby
Schmidt has joined #ruby
echevemaster has joined #ruby
DanKnox has joined #ruby
Kovensky has joined #ruby
mnaser has joined #ruby
germanstudent has joined #ruby
sn0wb1rdz has joined #ruby
dhruvasagar has joined #ruby
himsin has quit [Quit: himsin]
cads has quit [Quit: Leaving]
autumn has joined #ruby
himsin has joined #ruby
bradhe has quit [Remote host closed the connection]
dumdedum has joined #ruby
yosafbridge has joined #ruby
bradhe has joined #ruby
<maloik>
Anyone happen to know how to use Thor with subcommands? The homepage gives an example using git remote, but it's not completely clear to me how the classes are invoked
Guest57220 has joined #ruby
jkline has joined #ruby
robbyoconnor has quit [Ping timeout: 248 seconds]
DanKnox is now known as DanKnox_away
bradhe has quit [Ping timeout: 264 seconds]
Mars` has quit [Ping timeout: 260 seconds]
denver has joined #ruby
horofox_ has quit [Quit: horofox_]
cads has joined #ruby
krainbol_ has joined #ruby
denver has quit [Remote host closed the connection]
timonv has quit [Read error: Connection reset by peer]
timonv has joined #ruby
krainboltgreene has quit [Ping timeout: 240 seconds]
passcod has left #ruby ["Leaving"]
jarray52 has quit [Quit: Leaving.]
goshakkk has joined #ruby
anay has quit [Remote host closed the connection]
djbkd has quit [Quit: Leaving]
jefflyne has joined #ruby
renderful has joined #ruby
GeneralKosh is now known as Dekade
Dekade has left #ruby [#ruby]
Dekade has joined #ruby
jkline has quit [Quit: jkline]
Skelz0r has quit [Ping timeout: 240 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
Skelz0r has joined #ruby
renderful has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
zeel has joined #ruby
timonv has quit [Remote host closed the connection]
erdos has quit [Remote host closed the connection]
bionoid has quit [Remote host closed the connection]
nari has quit [Quit: Ex-Chat]
havenwood has joined #ruby
camilasan has joined #ruby
nomenkun has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
seraph has quit [Remote host closed the connection]
osvico has joined #ruby
seraph has joined #ruby
browndawg has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
v0n has joined #ruby
Xeago has joined #ruby
yacks has joined #ruby
dhruvasagar has joined #ruby
khushildep has joined #ruby
MrZYX|off is now known as MrZYX
mansi has joined #ruby
bradhe has joined #ruby
elaptics`away is now known as elaptics
saarinen has quit [Quit: saarinen]
sayd has joined #ruby
ephemerian has joined #ruby
jbpros has quit [Quit: jbpros]
filipe_ has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 240 seconds]
bradhe has quit [Ping timeout: 276 seconds]
krz has quit [Read error: Connection reset by peer]
io_syl has quit [Quit: io_syl]
v0n has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
Bauer2 has quit [Ping timeout: 246 seconds]
realDAB has joined #ruby
bbunny has joined #ruby
realDAB has quit [Client Quit]
krz has joined #ruby
colonolGron has joined #ruby
marr has joined #ruby
timonv has joined #ruby
rdark has joined #ruby
noname001 has joined #ruby
tatsuya_o has joined #ruby
kevinykchan has joined #ruby
noop has quit [Ping timeout: 246 seconds]
byprdct has joined #ruby
badquanta has joined #ruby
mklappstuhl has joined #ruby
ghr has joined #ruby
vlad_starkov has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
adambeynon has joined #ruby
filipe_ has joined #ruby
shaunbaker has joined #ruby
kevinykchan has joined #ruby
mercwithamouth has joined #ruby
S0da has joined #ruby
agjacome has quit [Quit: leaving]
clocKwize has quit [Quit: clocKwize]
blackmesa has quit [Ping timeout: 240 seconds]
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
S0da has quit [Remote host closed the connection]
cha1tanya has quit [Ping timeout: 256 seconds]
S0da has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
Zai00 has joined #ruby
renderful has joined #ruby
bbunny has quit [Remote host closed the connection]
dayepa has quit [Quit: dayepa]
jds has joined #ruby
lancepantz has quit [Ping timeout: 245 seconds]
epochwolf has quit [Ping timeout: 245 seconds]
faulkner has quit [Ping timeout: 260 seconds]
Gooder`` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
Gooder has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
sayd has quit [Ping timeout: 240 seconds]
Gooder has joined #ruby
dumdedum has quit [Quit: foo]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
wykydtron has quit [Read error: Operation timed out]
<keeguon>
hey guys I have a weird problem w/ bundler when I do the following: "$ jruby -S bundle check" I get this: "The Gemfile's dependencies are satisfied" but when I try this: "jruby -S bundle exec rake -T" it tells me: "Your Ruby engine is ruby, but your Gemfile specified jruby", I have tried various things with my Gemfile and currently it looks like this: https://gist.github.com/Keeguon/fdfcdb8bbd2827cc9c1d if any of you guys has
<keeguon>
an idea that would be great
<AzizLight>
for some reason, when I install a gem, it only installs the ri documentation, not the rdoc. Anybody knows why please?
<sebastianb>
AzizLight: maybe you have something in your .gemrc?
<sebastianb>
something like --no-rdoc
<AzizLight>
sebastianb: I deleted my .gemrc
<AzizLight>
should I reopen a new terminal as well?
blackmesa has joined #ruby
<sebastianb>
you can try that
thibauts_ has quit [Ping timeout: 264 seconds]
<AzizLight>
ok will do, I will also try to add --rdoc in my .gemrc file
ayaz has joined #ruby
<AzizLight>
sebastianb: anyway, thanks ;)
<sebastianb>
if you want rdoc only for some specific gem you can try the 'gem rdoc gem-name' command
thibauts has joined #ruby
<AzizLight>
sebastianb: I tried that, but it still only installs the ri docs (oddly)
bbunny has joined #ruby
threesome has quit [Read error: Connection reset by peer]
kevinfagan has joined #ruby
tvw has joined #ruby
threesome has joined #ruby
<AzizLight>
is there a way to generate documentation using yard but for installed gems?
<waxjar>
AzizLight: what does gem environment say?
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
shaunbaker has quit [Remote host closed the connection]
cj3kim has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
diego_k has joined #ruby
Zai00_ has joined #ruby
codecop_ has joined #ruby
coaster has quit [Ping timeout: 276 seconds]
diegok has quit [Ping timeout: 276 seconds]
_Andres has quit [Ping timeout: 276 seconds]
Zai00 has quit [Ping timeout: 276 seconds]
Zai00_ is now known as Zai00
joshu has quit [Ping timeout: 276 seconds]
ahawkins has quit [Ping timeout: 276 seconds]
jalcine_ has quit [Ping timeout: 276 seconds]
mklappst_ has quit [Ping timeout: 276 seconds]
yacks has quit [Ping timeout: 276 seconds]
yosafbridge has quit [Ping timeout: 276 seconds]
axeman- has quit [Ping timeout: 276 seconds]
obs has quit [Ping timeout: 276 seconds]
codecop has quit [Ping timeout: 276 seconds]
binw_ has quit [Ping timeout: 276 seconds]
doritostains has quit [Ping timeout: 276 seconds]
Mendon has quit [Ping timeout: 276 seconds]
WhereIsMySpoon has quit [Ping timeout: 276 seconds]
matchaw has quit [Ping timeout: 276 seconds]
coaster has joined #ruby
coaster has joined #ruby
madnificent has quit [Ping timeout: 276 seconds]
coaster has quit [Changing host]
axeman- has joined #ruby
yosafbridge has joined #ruby
yacks has joined #ruby
<seriously_random>
never mind, got it: "calculate(1 + 2)" or "calculate(1 - 2)"
emergion has quit [Quit: Computer has gone to sleep.]
nari_ has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
niklasb has joined #ruby
BizarreCake has joined #ruby
enricostn has joined #ruby
krz has quit [Quit: krz]
<enricostn>
hi, is there a way to tell sprintf('%20s', 'string') to count the 20 chars from the start of the line instead of counting from the point it's invoked?
<enricostn>
It could be useful to print tabular data
<ChristianS>
enricostn: no, you'll have to do that yourself
hoyang has quit [Quit: 离开]
<enricostn>
ChristianS, hi, thanks! any hint?
mklappstuhl has quit [Remote host closed the connection]
denver has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
camilasan has quit [Ping timeout: 276 seconds]
nezumi has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
locriani has joined #ruby
krz has quit [Quit: krz]
relix has joined #ruby
razi has quit [Quit: Leaving.]
goodgame_ has quit [Quit: Quitte]
goodgame has quit [Quit: Quitte]
relix has quit [Client Quit]
graydot has joined #ruby
Guga_ has joined #ruby
goodgame has joined #ruby
bradhe has joined #ruby
denver has joined #ruby
Guga_ has quit [Client Quit]
Guga_ has joined #ruby
KevinSjoberg has joined #ruby
eaWPq4nU has joined #ruby
darth_chatri has quit [Quit: Leaving.]
locriani has quit [Ping timeout: 240 seconds]
htmiguel has joined #ruby
chase-work has joined #ruby
carloslopes has joined #ruby
graydot has quit [Quit: graydot]
bradhe has quit [Ping timeout: 240 seconds]
htmiguel has quit [Ping timeout: 264 seconds]
bcarrell has joined #ruby
pipework has quit [Remote host closed the connection]
yxhuvud has joined #ruby
ravster has joined #ruby
pipework has joined #ruby
avril14th has joined #ruby
sailias has quit [Ping timeout: 245 seconds]
jbpros has joined #ruby
northelks has quit [Quit: ..]
krisfremen-home has quit [Ping timeout: 260 seconds]
northelks has joined #ruby
tonini has quit [Remote host closed the connection]
camilasan has joined #ruby
<avril14th>
Hello, is there a memory IO class in ruby?
<avril14th>
I'm lookinf for something similar to File
<avril14th>
except with no File :)
tonini has joined #ruby
<mstksg>
avril14th: do you want something persistent?
<avril14th>
no
<Hanmac1>
avril14th: use StringIO
camilasan has quit [Remote host closed the connection]
<avril14th>
I can pass it binary data?
Uranio has joined #ruby
<avril14th>
doesn't have to be interepreted as string?
sambao21 has joined #ruby
<avril14th>
hmm, StringIO isn't an IO
stretchlimo_ has joined #ruby
<Hanmac1>
avril14th: no but it looks like an IO
<avril14th>
ok let's try it
<Hanmac1>
and you can still pass everything into it
Ry0_ has joined #ruby
<avril14th>
I have a gem interface expecting "traditionaly" an opened File as arg to which it will read some stuffs
stretchlimo_ is now known as stretchlimo
jbpros has quit [Quit: jbpros]
<avril14th>
trying to see if I can give it something else
<Hanmac1>
ah, then that gem it to dump
<avril14th>
pardon me?
<avril14th>
don't get what you jsut said sorry
blackmesa has quit [Ping timeout: 240 seconds]
<Hanmac1>
normaly the gem should check if its an instance of IO, or does look like an IO (have a write method), thats what called "ducktyping"
<avril14th>
ok
jbpros has joined #ruby
<avril14th>
I'm going to places I don't know here
monkegjinni has quit [Read error: No route to host]
elux has joined #ruby
<avril14th>
on one side I have a pdf generator (Prawn gem) and on the other I have a Fog gem to access remote storages
<avril14th>
trying to see if I can't just write straight pdfs to remote location
breakingthings has joined #ruby
<avril14th>
Not even sure if that's a good idea, but looks fun
<Hanmac1>
you can use "tempfile"
gyre007 has quit [Remote host closed the connection]
jerius has joined #ruby
sethetter has joined #ruby
<avril14th>
ok let me check this too :)
anderson has quit [Ping timeout: 240 seconds]
<avril14th>
hmm, looks good
<avril14th>
will try to go this way
<avril14th>
thx hanmac1
pipework has quit [Remote host closed the connection]
monkegjinni has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
elux has quit [Ping timeout: 248 seconds]
mary5030 has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
banghouse has joined #ruby
banghouse is now known as Guest27012
mary5030 has quit [Remote host closed the connection]
sethetter has quit [Ping timeout: 246 seconds]
postmodern has quit [Remote host closed the connection]
julweber_ has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
elux has joined #ruby
colonolGron has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
fernandoaleman has joined #ruby
banister has joined #ruby
Zeeraw has joined #ruby
lscott3 has joined #ruby
angusiguess has joined #ruby
splittingred has joined #ruby
kofno has joined #ruby
burlyscudd has joined #ruby
io_syl has joined #ruby
tatsuya_o has quit [Ping timeout: 276 seconds]
mljsimone|away is now known as mljsimone
relix has joined #ruby
jlebrech has joined #ruby
<jlebrech>
how do I iterate through one dimension in a multidimensional array?
gyre007 has joined #ruby
workmad3 has joined #ruby
viszu has quit [Quit: Leaving.]
mmitchell has joined #ruby
<Nakilon>
[14:24:25] <enricostn> hi, is there a way to tell sprintf('%20s', 'string') to count the 20 chars from the start of the line instead of counting from the point it's invoked?
banister has quit [Ping timeout: 276 seconds]
<Nakilon>
sprintf('\r%20s', 'string') ?
MrZYX is now known as MrZYX|off
KRF_ is now known as kfunk
<apeiros>
jlebrech: there is no such thing as a multidimensional array. there's only nested arrays.
<apeiros>
you iterate the same as through any other array: #each or any of its derivatives.
<Nakilon>
jlebrech u may find useful to .transpose it
<apeiros>
Nakilon: '\r' == "\r", I assume you meant " instead of '
<Nakilon>
sure
<Nakilon>
hm sprintf prints into string, not console, so it doesn't make sense
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
mansi has joined #ruby
kevinykc_ has joined #ruby
gyre007 has quit [Remote host closed the connection]
blackmesa has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
tonini has quit [Remote host closed the connection]
abstrusenick has joined #ruby
sevenseacat has joined #ruby
kobain has joined #ruby
tatsuya_o has joined #ruby
kevinykchan has quit [Ping timeout: 246 seconds]
wallerdev has joined #ruby
ezkl has joined #ruby
Fire-Dragon-DoL has quit [Quit: bye]
lutfidem_ has quit [Remote host closed the connection]
zchrykng has joined #ruby
Ry0_ has joined #ruby
monkegjinni has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Read error: No route to host]
jjbohn has joined #ruby
nickelcitymario has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
mklappstuhl has joined #ruby
nickelcitymario has joined #ruby
darth_chatri has quit [Quit: Leaving.]
cj3kim has joined #ruby
gyre007 has quit [Remote host closed the connection]
jjbohn has quit [Ping timeout: 240 seconds]
cj3kim has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
viszu has joined #ruby
MrZYX|off is now known as MrZYX
kofno has joined #ruby
pranny has joined #ruby
pranny has quit [Client Quit]
ravster has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 240 seconds]
monkegji_ has joined #ruby
dragonfist has quit [Read error: Connection reset by peer]
julweber has quit [Remote host closed the connection]
fredjean has joined #ruby
shaunbaker has quit [Remote host closed the connection]
mary5030 has joined #ruby
michael_mbp is now known as zz_michael_mbp
monkegjinni has quit [Ping timeout: 260 seconds]
jjbohn has joined #ruby
jjbohn has quit [Client Quit]
DanKnox is now known as DanKnox_away
S0da has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Remote host closed the connection]
jlebrech has quit [Quit: Page closed]
<asteve>
so what's the proper way to format a line that's over 80 chars and has an unless? "this_thing = Some.incredibly.long.method(with_params[:bunch_of_junk]) unless with_params[:how_do_I_format_this].exist?"
<mjc_>
asteve: if the line does one thing maybe it's fine long, it indicates that it's complex
<asteve>
mjc_: I like to keep my lines no longer than 80 chars
shaunbaker has joined #ruby
<mjc_>
asteve: after years of feeling like long lines were evil I realized that many rubyists use long lines to say "here be dragons"
sambao21 has quit [Quit: Quitter]
Astralum has joined #ruby
<mjc_>
asteve: you can use \ or break up at the . I'm pretty sure though
badquanta has quit [Ping timeout: 248 seconds]
badquanta has joined #ruby
<asteve>
mjc_: I like to keep my dragons no larger than komodo
<asteve>
:)
<mjc_>
asteve: :)
<ghr>
I think you can just drop down to the new line after unless (perhaps even before)
vlad_starkov has joined #ruby
<asteve>
right but would be the most visibly understanding? unless then \n and 2 indented spaces?
carloslopes has quit [Remote host closed the connection]
<ghr>
You might wonder if you can break up said incredibly long method though :D
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ericwood>
break up with the method
<asteve>
I could create intermediary vars to store some of it but that's just adding junk
<ericwood>
"it's not you, it's me"
<mjc_>
ericwood: :D
pitzips has joined #ruby
cofin has quit [Quit: cofin]
theRoUS has quit [Ping timeout: 240 seconds]
<ghr>
Yeah ymmv. Don't know the full context of it
Ry0_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
darth_chatri has joined #ruby
LimitSupremum has joined #ruby
dash_ has quit [Quit: Time to beer :)]
apeiros has joined #ruby
shemerey has joined #ruby
andikr has joined #ruby
atyz has joined #ruby
ybart has joined #ruby
anay has joined #ruby
Cyrus has quit [Quit: Cyrus.sleep()]
banister has joined #ruby
sevenseacat has quit [Quit: Leaving.]
anderson has joined #ruby
headius has joined #ruby
alcoder has joined #ruby
Ry0_ has joined #ruby
geggam has joined #ruby
axl_ has joined #ruby
cj3kim has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
<axl_>
is there a way I can write a 'require' for a gem but print a message to stdout if the file is not found ?
<hoelzro>
wrap it in a begin/rescue?
dhruvasagar has joined #ruby
thesheff17 has quit [Read error: Connection reset by peer]
<axl_>
ok sounds good. do you know off hand what exception i look for ?
<alcoder>
installed r2.0.0-p247, via source compilation, is there a way to know what all features of ruby got disabled, as it didn't find the library ? eg: Readline / Libedit wasn't found, i had to parse hard to find why history never worked with irb. It there an option to see disabled features?
byprdct has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hoelzro>
heh
<axl_>
hoelzro: :)
<axl_>
thanks
* terrellt
was hoping that was going to be true.
cj3kim has quit [Ping timeout: 246 seconds]
thebastl has joined #ruby
mary5030 has joined #ruby
axeman- has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 246 seconds]
scrollback1 has quit [Remote host closed the connection]
yashshah has quit [Quit: Konversation terminated!]
scrollback has joined #ruby
nomenkun has quit [Remote host closed the connection]
<alcoder>
hoelzro: i mean the configure summery or compilation summery
DrCode has quit [Remote host closed the connection]
cofin has joined #ruby
<alcoder>
eg: gstreamer configure script list, list of codecs that will be build, and that was excluded
kdaigle has joined #ruby
<alcoder>
due to failed dependency
jtcoon has quit [Read error: Operation timed out]
Kruppe has joined #ruby
byprdct has joined #ruby
justsee has joined #ruby
baroquebobcat has joined #ruby
justsee has quit [Client Quit]
s0ber has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
sepp2k has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
monkegji_ has quit [Remote host closed the connection]
cortexman1 has joined #ruby
cortexman1 has quit [Max SendQ exceeded]
freerobby has quit [Quit: Leaving.]
amaltson has joined #ruby
javiferrer has joined #ruby
Rennex_ has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has joined #ruby
carloslopes has joined #ruby
splitpin has joined #ruby
freerobby has joined #ruby
splitpin has quit []
justsee has joined #ruby
justsee has joined #ruby
amaltson has quit [Client Quit]
alup has quit [Quit: Leaving]
r0bgleeson has joined #ruby
justsee has quit [Client Quit]
justsee has joined #ruby
justsee has quit [Client Quit]
burlyscudd has quit [Quit: Leaving.]
justsee has joined #ruby
Rennex has joined #ruby
yekta has joined #ruby
axeman- has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
<axl_>
is there a way i can install a gem that is not submitted to rubygems but exists on github without using bundler but using the 'gem install' command ? ?
KevinSjoberg has joined #ruby
io_syl has joined #ruby
chase-work has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nveselinov has left #ruby ["Leaving"]
Zolo has joined #ruby
hogeo has joined #ruby
fernandoaleman has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
lkba has quit [Ping timeout: 240 seconds]
fernandoaleman has joined #ruby
<terrellt>
axl_: Yeah, just do what bundler and rubygems does. Pull the repo down, gem build GEMNAME.gemspec, gem install gemname-version.gem
vlad_starkov has joined #ruby
peter_ss has quit [Quit: Leaving.]
yacks has quit [Ping timeout: 246 seconds]
jeremy_c is now known as jeremy_c_
<axl_>
terrellt: thanks
shouya1 has joined #ruby
ffio_ has quit [Quit: WeeChat 0.4.1]
xavier23 has joined #ruby
mercwithamouth has joined #ruby
shouya has quit [Ping timeout: 240 seconds]
ssvo has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
rtl_ is now known as rtl
haxrbyte has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
c0rn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
c0rn has quit [Client Quit]
ffio has joined #ruby
rgreen has joined #ruby
peter_ss has joined #ruby
peter_ss has quit [Client Quit]
justsee has quit [Quit: Lost terminal]
derf- has joined #ruby
freerobby has quit [Quit: Leaving.]
Guest93558 has quit [Ping timeout: 248 seconds]
tundrax has quit [Remote host closed the connection]
Zeeraw has quit [Quit: Computer has gone to sleep.]
terrellt has quit [Ping timeout: 264 seconds]
mary5030_ has joined #ruby
locriani has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
statarb3 has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
statarb3 has quit [Changing host]
statarb3 has joined #ruby
goodgame has quit [Ping timeout: 264 seconds]
anay has quit [Remote host closed the connection]
anay has joined #ruby
alcoder has left #ruby [#ruby]
axeman- has quit [Remote host closed the connection]
<ghr>
Why might rbenv install not be available for root, but is available to vagrant after using a vagrant shell provision with http://pastie.org/8134889
<ziggles>
hey guys... What's the best way to "take over" a dead gem? Basically i've used a gem that is no longer maintained by the owner, i've forked it... made changes, submitted pull requests etc...
<Nakilon>
trying to fit into 80 chars is like trying to lose weight to 40kg
peter_ss has joined #ruby
<Nakilon>
totally pointless
freerobby has joined #ruby
ybart has quit [Quit: ybart]
mercwithamouth has quit [Ping timeout: 240 seconds]
<terrellt>
Nakilon: *Disagrees* If I have to scroll right then my productivity has just gone way down.
Speed has joined #ruby
tommylommykins has quit [Quit: leaving]
<waxjar>
ziggles, if the original maintainer doesnt respond to anything the only thing you can really do is release a fork i think :(
Ry0_ has quit [Remote host closed the connection]
tommylommykins has joined #ruby
rh1n0 has joined #ruby
mercwithamouth has joined #ruby
zeromodulus has joined #ruby
zeromodulus has joined #ruby
<Nakilon>
your productivity goes down if your IDE sucks so much, that cna't wrap words
zcreative has joined #ruby
zchrykng is now known as zch|food
kevinykchan has joined #ruby
ppppaul has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 256 seconds]
jalcine has quit [Excess Flood]
Voodoofish430 has joined #ruby
kofno has quit [Remote host closed the connection]
shosti has joined #ruby
ddv has joined #ruby
<ziggles>
waxjar: thanks for responding. i've been asking around in other channels and it seems like that's the general consensus
jalcine_ has joined #ruby
jalcine_ is now known as jalcine
bradhe has joined #ruby
peter_ss has quit [Ping timeout: 246 seconds]
rshetty has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
c0rn has joined #ruby
bradhe has joined #ruby
cmarques has quit [Ping timeout: 260 seconds]
bradhe_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
pskosinski has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
linduxed has quit [Read error: Operation timed out]
kdaigle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
linduxed has joined #ruby
shosti has quit [Ping timeout: 252 seconds]
<Nakilon>
also ur productivity goes down if you have 2 inch display
<Nakilon>
also if it doesn't have macintosh font smoothing
cha1tanya has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
brennanMKE has quit [Remote host closed the connection]
cj3kim has joined #ruby
<Nakilon>
both cases point that you are using some useless ssh or linux - so your productivity is already determined to be low
cj3kim has quit [Read error: Connection reset by peer]
Fire-Dragon-DoL has joined #ruby
sayan has joined #ruby
noname001 has joined #ruby
angusiguess has joined #ruby
tkuchiki has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
burlyscudd has quit [Quit: Leaving.]
mary5030_ has quit [Ping timeout: 256 seconds]
<waxjar>
the 80 chars / line thing helps with readability
Ziarkaen has joined #ruby
relix has joined #ruby
stonevil has joined #ruby
tylersmith has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
Ry0_ has joined #ruby
cofin has joined #ruby
vlad_starkov has joined #ruby
james_woods has joined #ruby
<james_woods>
Hi. I have problems installing mysql2 via bundler. I get this error: http://stackoverflow.com/questions/16657304/mysql-h-is-missing-ruby-on-rails-osx - and I have mysql installed via homebrew and tried to fix the flags as suggested there, but with no luck. The error remains.. has anyone an idea how to solve this?
tkuchiki has quit [Ping timeout: 260 seconds]
keeguon has quit [Quit: keeguon]
Es0teric has joined #ruby
<Sou|cutter>
james_woods: I had this problem recently
superscott[8] has joined #ruby
<Sou|cutter>
I think I had to downgrade my mysql installation
Kabaka has quit [Remote host closed the connection]
kenneth has joined #ruby
lkba has joined #ruby
apeiros has quit [Remote host closed the connection]
darth_chatri has quit [Quit: Leaving.]
Kabaka has joined #ruby
splittingred has joined #ruby
lele` has joined #ruby
undert has joined #ruby
obs has quit [Quit: Konversation terminated!]
inimit has joined #ruby
Es0teric has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
linduxed has quit [*.net *.split]
carloslopes has quit [*.net *.split]
havenwood has quit [*.net *.split]
michaeldeol has quit [*.net *.split]
Zolo has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
sepp2k has quit [*.net *.split]
seich- has quit [*.net *.split]
banister has quit [*.net *.split]
BillCriswell has quit [*.net *.split]
interactionjaxsn has quit [*.net *.split]
kasper has quit [*.net *.split]
bbunny has quit [*.net *.split]
sayd has quit [*.net *.split]
destructure has quit [*.net *.split]
monban has quit [*.net *.split]
prezJFK has quit [*.net *.split]
[0x1a] has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
vaicine has quit [*.net *.split]
keyvan has quit [*.net *.split]
blz37 has quit [*.net *.split]
invsblduck has quit [*.net *.split]
phasma has quit [*.net *.split]
AllStruck has quit [*.net *.split]
lunarjar has quit [*.net *.split]
Hien has quit [*.net *.split]
Liothen has quit [*.net *.split]
undert_ has quit [*.net *.split]
lele has quit [*.net *.split]
Paradox has quit [*.net *.split]
LBRapid has quit [*.net *.split]
heidar has quit [*.net *.split]
AllStruck_ is now known as AllStruck
LBRapid_ is now known as LBRapid
JaTochNietDan_ is now known as JaTochNietDan
Hien has joined #ruby
BrianJ has joined #ruby
Jalada has quit [Read error: Operation timed out]
Jalada has joined #ruby
LimitSupremum has quit [Quit: Leaving.]
graydot has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
camilasan has quit [Remote host closed the connection]
blz37 has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
invsblduck has joined #ruby
angusiguess has joined #ruby
xardas has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
linduxed has joined #ruby
sepp2k has joined #ruby
Nightmare has joined #ruby
sayd has joined #ruby
lunarjar has joined #ruby
seich- has joined #ruby
sayd has quit [Max SendQ exceeded]
lunarjar has quit [Max SendQ exceeded]
AlSquirikou has joined #ruby
lunarjar has joined #ruby
mengu has quit [Ping timeout: 248 seconds]
Paradox has joined #ruby
sayd has joined #ruby
smathieu has joined #ruby
mvangala_ has quit [Read error: Connection reset by peer]
mneorr_ has joined #ruby
freerobby1 has joined #ruby
cj3kim has joined #ruby
mvangala has joined #ruby
zchrykng_ has joined #ruby
zchrykng_ is now known as zchrykng
tatsuya__ has joined #ruby
axl__ has joined #ruby
c0rn has joined #ruby
undert_ has joined #ruby
anay_ has joined #ruby
saarinen_ has joined #ruby
smathieu has quit [Remote host closed the connection]
ahawkins has joined #ruby
headius_ has joined #ruby
locriani has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
rsahae has joined #ruby
bradhe has joined #ruby
smathieu has joined #ruby
Voodoofish4301 has joined #ruby
sepp2k1 has joined #ruby
erry_ has joined #ruby
locriani has joined #ruby
c0rn has quit [Client Quit]
Gugster has joined #ruby
michael_q has joined #ruby
c0rn has joined #ruby
michael_q is now known as michael_mbp
andr0m3da has joined #ruby
epochwolf|2 has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
axl_ has quit [Ping timeout: 246 seconds]
undert has quit [Ping timeout: 246 seconds]
matthieua has quit [Ping timeout: 246 seconds]
freerobby has quit [Ping timeout: 246 seconds]
zch|food has quit [Ping timeout: 246 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
saarinen has quit [Ping timeout: 246 seconds]
axl__ is now known as axl_
headius has quit [Ping timeout: 246 seconds]
adman65 has quit [Ping timeout: 246 seconds]
anay has quit [Ping timeout: 246 seconds]
vlad_sta_ has quit [Ping timeout: 246 seconds]
baroquebobcat has quit [Ping timeout: 246 seconds]
Guga_ has quit [Ping timeout: 246 seconds]
dEPy has quit [Ping timeout: 246 seconds]
zz_michael_mbp has quit [Ping timeout: 246 seconds]
DanKnox_away has quit [Ping timeout: 246 seconds]
codecop has quit [Ping timeout: 246 seconds]
mneorr has quit [Ping timeout: 246 seconds]
Voodoofish430 has quit [Ping timeout: 246 seconds]
tatsuya_o has quit [Ping timeout: 246 seconds]
darkc0met has quit [Ping timeout: 246 seconds]
epochwolf has quit [Ping timeout: 246 seconds]
AlSquirrel has quit [Ping timeout: 246 seconds]
jetblack has quit [Ping timeout: 246 seconds]
Dekade has quit [Ping timeout: 246 seconds]
bradhe_ has quit [Ping timeout: 246 seconds]
denken has quit [Ping timeout: 246 seconds]
erry has quit [Quit: Reconnecting]
Dekade has joined #ruby
headius_ is now known as headius
saarinen_ is now known as saarinen
epochwolf|2 is now known as epochwolf
jetblack_ has joined #ruby
denken_ has joined #ruby
robscomputer_ has joined #ruby
love_color_text has joined #ruby
vlad_starkov has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
rupee has joined #ruby
DanKnox_away has joined #ruby
codecop has joined #ruby
DanKnox_away is now known as DanKnox
locriani has quit [Ping timeout: 264 seconds]
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
kofno has joined #ruby
jefflyne has joined #ruby
blackmesa has joined #ruby
lnormous has joined #ruby
burlyscudd has joined #ruby
thebope has joined #ruby
sambao21 has joined #ruby
BillCris_ has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
spider-mario has joined #ruby
matematikaadit has quit [Quit: Leaving]
Shirakawasuna has quit [Quit: Leaving]
theRoUS has quit [Ping timeout: 240 seconds]
javiferrer has quit [Ping timeout: 240 seconds]
cmarques has joined #ruby
<thebope>
Hi, how exactly does the left shift operator work on hashes in Ruby? I've got "hash = Hash.new([])" which means undefined keys should return an empty array, but then running 'hash[:one] << "uno", hash[:two] << "dos"', and then "hash[:one]" I receive ["uno", "dos"] and I receive the same output for hash[:two] and even hash[:three] which is undefined
<thebope>
Does the left shift operator on a hash append to the default value?
rsahae has quit [Quit: rsahae]
<thebope>
creating a new hash and then left shifting a value in results in an error
<thebope>
undefined method for hash
prophile has quit [Changing host]
prophile has joined #ruby
viszu has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
<fryguy>
thebope: you'll have to show a full code example
<thebope>
okay, one moment
Es0teric_ has quit [Remote host closed the connection]
<waxjar>
<< is simply the name of a method, it isn't an operator, so it depends on the object stored in hash[:one] what << will do :)
Es0teric has joined #ruby
<waxjar>
for Arrays it simply adds the element you pass it to the Array
Kabaka has joined #ruby
fuzzyhorns has quit [Remote host closed the connection]
tylersmith has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
ffio_ has joined #ruby
robscomputer has joined #ruby
<waxjar>
the problem you're having is because you pass it an Array object, which will be the same for every undefined key. you can pass Hash.new a block i believe to generate a new Array object each time.
br0tat0chip has joined #ruby
<br0tat0chip>
so I'm looking for a way to get the mime-type for a file or url. is there a gem for this? filemagic wont work
robscomputer_ has quit [Ping timeout: 276 seconds]
ffio has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
<thebope>
for some reason gisthub wouldn't let me paste
<fryguy>
thebope: use Array, not []
<br0tat0chip>
type_for. that's what i want.
Marc_Online__ has joined #ruby
<fryguy>
thebope: [] is an instance of an array, so it will be copied for each one
<thebope>
waxjar: ahh, I think I understand but I'm a little confused. How come if I use << on hash[:one] it appends to the default object?
Marc_Online_ has quit [Remote host closed the connection]
Marc_Online__ has quit [Read error: Connection reset by peer]
<fryguy>
thebope: err, nope
chase-work has quit [Quit: Computer has gone to sleep.]
<thebope>
fryguy: ?
<waxjar>
thebope: the default value will be the same object for each key
ananthakumaran has joined #ruby
<thebope>
yes
locriani has joined #ruby
br0tat0chip has left #ruby [#ruby]
<thebope>
so hash[:three] originally returns []
max__ has joined #ruby
<thebope>
as would be expected
cha1tanya has quit [Ping timeout: 276 seconds]
<thebope>
but after running hash[:one] << "uno", then hash[:three] returns ["uno"]
<thebope>
which is what I'm finding a little confusing
therabidbanana has joined #ruby
<waxjar>
yes, it returns the object you passed to Hash.new
BillCris_ is now known as BillCriswell
<fryguy>
thebope: it's the default value for ALL things
<waxjar>
when you do hash[:one] << "uno", it appends uno to that object
<fryguy>
thebope: pass a block to new instead
<thebope>
this isn't actually like a coding error I need to resolve I'm just curious to understand what is going on behind the scenes, the ruby koans are a cool way to learn ruby
kevinykc_ has joined #ruby
Notte_ has quit [Remote host closed the connection]
<thebope>
waxjar: and it doesn't append it specifically to the symbol :uno, but to the object which is being referenced as the default value
KevinSjoberg has joined #ruby
ananthakumaran has quit [Client Quit]
<momomomomo>
thebope: Simple
<momomomomo>
Type hash[:one].object_id; hash[:two].object_id
<momomomomo>
is it the same? Then the hash symbols are both pointing to the same object
<momomomomo>
new_hash = Hash.new; new_hash[:one] = []; new_hash[:two] = []; produces two different objects in memory
kasper_ has quit [Remote host closed the connection]
<momomomomo>
Hash.new([]) instantiates every new hash key with the object_id reference of that initial array
kasper has joined #ruby
peter_ss has quit [Ping timeout: 264 seconds]
<thebope>
what I don't understand is why it would be pointing to the same object, shouldn't appending to the symbol :one create an object with key :one and value ["uno"], and then similarly for hash[:two]?
kevinykchan has quit [Ping timeout: 260 seconds]
<thebope>
momomomomo: yes
<thebope>
ahhh okay
radic has joined #ruby
kasper has quit [Read error: Connection reset by peer]
<momomomomo>
It's good to use, say, if you want to create a hash with a default value of an array
<momomomomo>
so that if you want to do blanket functions on all keys, but want to ensure that each value is at least an array - not nil
<thebope>
so hash[:uno] has been initialized to be that empty array and pushing into it affects all the objects which reference that array which is every key possible since that is the default value
kofno has quit [Remote host closed the connection]
codemannew has joined #ruby
<momomomomo>
I'm sure there are tons of other uses for that functionality too
swills has quit [Changing host]
swills has joined #ruby
anonymuse has joined #ruby
platzhirsch has joined #ruby
<codemannew>
is there a visual studio visual basic channel because im having question in my console application code
<momomomomo>
thebope: Think of Hash.new([]) as creating one single array, which all keys, declared or not, point to initially
<waxjar>
thebope: a hash is just a data structure that links one object (the key) with another object (the value) and allows you to look up values by their keys
<momomomomo>
codemannew: search in your IRC client
<platzhirsch>
What's this syntax... class: 'test' ? I thought instead of => you could use : as well, but this seems to be wrong
ananthakumaran has joined #ruby
interact_ is now known as interactionjaxsn
<thebope>
momomomomo: Ahh, I think I've got it
<codemannew>
im having trouble with my code in visual basic i was wondering if someone can help me
<waxjar>
it doesn't do anything with the :one Symbol, that's just what it uses as the key
<codemannew>
i been trying but im not sure whats it under
<platzhirsch>
terrellt: but {5: 3} does not work
<platzhirsch>
unexpected ':', expecting =>
<codemannew>
yes im asking here to get to the channel
<thebope>
to push into the symbol :uno and have it affect what :uno references alone one must create a specific array referenced by :uno and then shift into it
cj3kim has joined #ruby
<momomomomo>
You got it
<momomomomo>
that can be done by hash[:uno] = []
<waxjar>
platzhirsch: key: value is short for :key => value
<thebope>
when you shift into :uno without first explicitly declaring :uno to be its own array it pushes into the array :uno references which is the default value which affects every key's array
<platzhirsch>
waxjar: aahhhh :)
<thebope>
thanks waxjar and momomomomo
pskosinski has joined #ruby
mklappstuhl has joined #ruby
kdaigle has joined #ruby
<platzhirsch>
and since numbers are represented by :"5" it cannot be parsed like this
<momomomomo>
no problem thebope
kevinykc_ has quit [Ping timeout: 256 seconds]
<platzhirsch>
ok got it, I failed to understand this because out of laziness I always chose key numbers
radic has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Quit: Leaving.]
ddv has quit [Changing host]
ddv has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
max__ has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
s0ber has joined #ruby
kevinykchan has joined #ruby
apeiros has joined #ruby
rgreen has quit [Quit: Konversation terminated!]
C0C0 has joined #ruby
goshakkk has joined #ruby
mklappstuhl has quit [Read error: Connection reset by peer]
<C0C0>
Hey, I'm looking for a parsergenerator which has a decent performance
yacks has joined #ruby
cofin has quit [Quit: cofin]
thams has joined #ruby
<C0C0>
I'm currently using whittle but it eats about 99.5% of the time in the entire round trip from ruby to gdb and back again
<havenwood>
An amateur encryption gem using Ruby 2.0 experimental refinements. :O If that doesn't make someone's head explode dunno what will. >.> https://github.com/havenwood/encrypt
<C0C0>
I have used treetop in the past but found it quite anoying because it would reorder the grammar in ways that broke the ASTs
<C0C0>
havent used it since 2011 or so though
<havenwood>
not head explode in a good way...
lnemeth has joined #ruby
<havenwood>
C0C0: How bout racc?
Uranio has quit [Quit: while you reading this, a kitty dies]
<C0C0>
hmm havent looked into it, but seemed quit archaic and unfriendly
<havenwood>
C0C0: yeah, looks old
<C0C0>
looks a lot like yacc as well
<C0C0>
and I found working with yacc to be quite frustrating
tonini has quit [Remote host closed the connection]
yekta has joined #ruby
mark_locklear has quit [Read error: Connection reset by peer]
lump has quit [Quit: kablam!]
vdandre has quit [Ping timeout: 240 seconds]
mark_locklear has joined #ruby
fernandoaleman has left #ruby [#ruby]
mercwithamouth has quit [Ping timeout: 240 seconds]
breakingthings has quit [Quit: breakingthings]
peter_ss has joined #ruby
dash_ has joined #ruby
tvw has quit []
cofin has joined #ruby
breakingthings has joined #ruby
interactionjaxsn has joined #ruby
TMM has quit [Remote host closed the connection]
jkline has joined #ruby
peter_ss has quit [Ping timeout: 240 seconds]
rsahae has quit [Quit: rsahae]
TMM has joined #ruby
thams has quit [Quit: thams]
timonv has quit [Remote host closed the connection]
Ry0_ has quit [Remote host closed the connection]
mjc_ has quit [Quit: mjc_]
cj3kim has joined #ruby
bcarrell has quit [Quit: bcarrell]
kpshek has joined #ruby
jkline has quit [Client Quit]
jkline has joined #ruby
dash_ has quit [Ping timeout: 246 seconds]
yacks has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
burlyscudd has quit [Quit: Leaving.]
cj3kim_ has joined #ruby
cj3kim has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
goshakkk has joined #ruby
mjc_ has joined #ruby
dash_ has joined #ruby
sahoal has quit [Quit: sahoal]
doritostains has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DrShoggoth has quit [Quit: Leaving]
momomomomo has joined #ruby
kenneth has quit [Quit: kenneth]
keyvan has joined #ruby
heidar has joined #ruby
phasma has joined #ruby
v0yager has joined #ruby
[0x1a] has joined #ruby
ananthakumaran has quit [Ping timeout: 264 seconds]
froy has joined #ruby
SeySayux_ has quit [Remote host closed the connection]
Villadelfia has quit [Remote host closed the connection]
Ry0_ has joined #ruby
SeySayux has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Villadelfia has joined #ruby
cofin has quit [Quit: cofin]
axeman- has quit [Remote host closed the connection]
djbkd has joined #ruby
timonv has joined #ruby
kenneth has joined #ruby
brennanMKE has quit [Remote host closed the connection]
tatsuya__ has quit [Remote host closed the connection]
v0yager_ has joined #ruby
v0yager has quit [Ping timeout: 256 seconds]
DestinyAwaits has quit [Quit: Leaving]
bbunny_ has quit [Ping timeout: 276 seconds]
brotatos has left #ruby ["WeeChat 0.4.1"]
shosti has joined #ruby
rshetty has quit [Quit: Sleeping]
reset has quit [Ping timeout: 246 seconds]
_carloslopes has quit [Remote host closed the connection]
radic has joined #ruby
ezkl has quit [Ping timeout: 240 seconds]
ultimoo has joined #ruby
davedev24 has joined #ruby
seriously_random has quit [Ping timeout: 240 seconds]
ismlages has joined #ruby
JZTech101 has joined #ruby
aedorn has joined #ruby
jlast_ has joined #ruby
robbyoconnor has joined #ruby
tatsuya_o has joined #ruby
ananthakumaran has joined #ruby
jlast has quit [Ping timeout: 276 seconds]
browndawg has left #ruby [#ruby]
beneggett has joined #ruby
codemannew has quit [Ping timeout: 256 seconds]
rezzack has joined #ruby
wsterling has joined #ruby
cads has quit [Ping timeout: 276 seconds]
jbpros has joined #ruby
noop has joined #ruby
grn has quit [Quit: leaving]
cofin has joined #ruby
nbouscal has joined #ruby
tonini has joined #ruby
tonini has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 240 seconds]
_maes_ has joined #ruby
m8 has joined #ruby
fuhgeddaboudit has joined #ruby
kenneth has quit [Quit: kenneth]
codesoda has joined #ruby
dtcrshr has left #ruby [#ruby]
Ry0_ has quit [Remote host closed the connection]
marcdel has joined #ruby
cofin has quit [Client Quit]
Ry0_ has joined #ruby
vdandre has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
trepidaciousMBR has quit [Ping timeout: 240 seconds]
allaire has joined #ruby
dtcrshr has joined #ruby
<thebope>
Why does "Name:"[/(\w+)/] return "Name", and "Name: Gray"[/(\w+)/] return name, but "Name: Gray, James][/(\w+), (\w+)/] returns "Gray, James", and not "Name Gray"? and "Name: Gray"[/(\w+), (\w+)/] return nil? I'm having trouble finding out exactly the meaning of a comma in a regular expression
deol has quit [Remote host closed the connection]
redgirl has joined #ruby
codesoda has quit [Ping timeout: 252 seconds]
<thebope>
I figure it is something to do with the :, but a comma after Gray doesn't seem as if it would be in the word class
JohnBat26 has quit [Remote host closed the connection]
<thebope>
since "Gray,"[/(\w+)/] returns just "Gray"
dtcrshr has left #ruby [#ruby]
sarkis has quit [Ping timeout: 260 seconds]
pinage404 is now known as zz_pinage404
<ChristianS>
thebope: /,/ just matches itself, it's not a special char in a regex
<thebope>
ChristianS: Ahh, it all makes sense now
<thebope>
thanks
ehaliewicz has joined #ruby
bradhe has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
s0ber has quit [Read error: Operation timed out]
bradhe has joined #ruby
mark_locklear has quit [Ping timeout: 264 seconds]
crazysim has quit [Ping timeout: 264 seconds]
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
bcarrell has joined #ruby
jefflyne has joined #ruby
elaptics is now known as elaptics`away
tonini has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 264 seconds]
tonini has quit [Remote host closed the connection]
mark_locklear has joined #ruby
Kruppe has quit [Ping timeout: 264 seconds]
tonini has joined #ruby
reset has joined #ruby
carloslopes has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
flagg0204 has quit [Quit: leaving]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flagg0204 has joined #ruby
peter_ss has joined #ruby
Gugster is now known as Guga_
Guga_ has quit [Quit: ~]
Guga_ has joined #ruby
tonini has quit [Remote host closed the connection]
ananthakumaran has quit [Ping timeout: 259 seconds]
cofin has joined #ruby
peter_ss has quit [Ping timeout: 256 seconds]
ezkl has joined #ruby
thepumpk_ has joined #ruby
timonv has quit [Remote host closed the connection]
shosti has quit [Remote host closed the connection]
thepumpkin has quit [Ping timeout: 276 seconds]
<nettoweb>
I have and event that has a 'start_at' and 'end_at' date… how I check if it fit in Today, cause I'd like to list by: today, 'in this week', 'in this month'
shosti has joined #ruby
schickung has quit [Quit: schickung]
brennanMKE has joined #ruby
kenneth has joined #ruby
motto has joined #ruby
c0rn has joined #ruby
JMcAfreak has quit [Remote host closed the connection]
paissad_ has quit [Read error: Operation timed out]
lscott3 has joined #ruby
stonevil has joined #ruby
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
paissad_ has joined #ruby
adman65 has joined #ruby
mansi has quit [Remote host closed the connection]
ahawkins has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
michaeldeol has joined #ruby
mansi has quit [Read error: Connection reset by peer]
motto has joined #ruby
mansi has joined #ruby
dextrey has joined #ruby
bbunny has joined #ruby
reset has quit [Quit: Leaving...]
Tarential has quit [Excess Flood]
m8 has quit [Ping timeout: 256 seconds]
Tarential has joined #ruby
x1337807x has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
carloslopes has quit [Remote host closed the connection]
ssvo has joined #ruby
eldariof has quit [Ping timeout: 264 seconds]
m8tt8 has joined #ruby
michaeldeol has quit [Ping timeout: 260 seconds]
xbob has quit [Quit: Leaving]
ZenDruid has joined #ruby
krawchyk has quit [Read error: Connection reset by peer]
krainboltgreene has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
poga has quit [Read error: Connection reset by peer]
ZenDruid has quit [Client Quit]
mengu has joined #ruby
badelat has joined #ruby
motto has quit [Ping timeout: 264 seconds]
Synthead has quit [Ping timeout: 245 seconds]
davedev24 has quit [Remote host closed the connection]
workmad3 has joined #ruby
blitzkev is now known as blitz
crazysim has quit [Ping timeout: 276 seconds]
havenwood has quit [Ping timeout: 246 seconds]
m8tt8 has quit [Ping timeout: 276 seconds]
m8 has joined #ruby
horrror has joined #ruby
peter_ss has joined #ruby
carloslopes has joined #ruby
daidoji has joined #ruby
ssvo has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
<horrror>
I create array of hashes with h = {name: "name", rank: 123 }. When I dynamically add a new entry of hash to the array, I want to make sure that if the "name" is already in the array I should increase the rank value
aknagi has quit [Remote host closed the connection]
peter_ss has quit [Ping timeout: 256 seconds]
jibi has quit [Ping timeout: 256 seconds]
c0dy has quit [Quit: Leaving]
hogeo has quit [Ping timeout: 240 seconds]
jibi has joined #ruby
<Morrolan>
interactionjaxsn: That could be simplified to `h[:rank] += 1 if h.has_value?('name')`, but I am not sure whether that is exactly what horrror wants.
<horrror>
Actaully I meant that if value isn't there push to the array a new hash else increase rank
<Morrolan>
Is there a specific reason that you need an array of hashes, and not just one big hash of the form { 'name1' => 123, 'name2' => 456 } ?
<Morrolan>
Respectively something like { 'name1' => { :rank => 1, :foo => 'bar' }, ... } if you need to store more than just a rank.
Ry0_ has joined #ruby
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby
<interactionjaxsn>
Morrolan: i like that.
shosti has quit [Ping timeout: 264 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
marcgg_ has quit [Ping timeout: 248 seconds]
carloslopes has quit [Remote host closed the connection]
eaWPq4nU has quit [Ping timeout: 240 seconds]
<interactionjaxsn>
Morrolan: and from there you can do h.fetch('name1'){ do_something_if_not_found }
kasper has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monkegjinni has joined #ruby
dv_ has joined #ruby
dv_ has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
sarkis has joined #ruby
<Morrolan>
Mhm. Setting the hash's default value might work even better, depending on horrror's usecase.
yashshah has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
thebope has quit [Ping timeout: 260 seconds]
johnnyfuchs has quit [Remote host closed the connection]
anonymuse has quit [Ping timeout: 256 seconds]
eaWPq4nU has joined #ruby
anonymuse has joined #ruby
<horrror>
Morrolan: nice, used the first solution
<horrror>
setting default value; can u provide an example?
<Morrolan>
One thing which you should watch out for is that, when specifying the default value like this, the *same* object which you pass it as an argument will get used for any subsequent calls to undefined values. With mutable objects this might, err, be undesired.
<jkline>
pietr0: ah. ok. Is that the recommended way to cast in ruby? For example, I have a new class Slimey::Widget and I want to be able to say Slimey::Widget("foo")
<jkline>
sounds like I need to have module Slimey; def Widget() … end ; end
zchrykng has quit [Ping timeout: 256 seconds]
freerobby1 has quit [Quit: Leaving.]
zch|food has joined #ruby
<pietr0>
not really, Array() is provided by the language to makes things easir for users like '[]' or '{}'
<Squarepy>
cast?
interactionjaxsn has quit [Remote host closed the connection]
thams has quit [Quit: thams]
Davey has joined #ruby
interactionjaxsn has joined #ruby
JohnBat26 has quit [Ping timeout: 264 seconds]
scrollback has quit [Remote host closed the connection]
scrollback has joined #ruby
zchrykng has quit [Remote host closed the connection]
<graft>
man, ruby never impresses me with the range of available gems whenever i want to do something mathy
thams has joined #ruby
<MarcWeber>
graft: Well, then use python.
Liothen has joined #ruby
<MarcWeber>
graft: Maybe talk about what you want to do, then people have a chance to help you.
<jkline>
Squarepy: cast as in type conversion. For example, if I had def foo=(new_val); @foo = Float(new_val); end I would be casting all the arguments to ensure they were Float type
<jkline>
I can also do that with Array
<graft>
MarcWeber: i have been
<jkline>
I have two questions. 1. How do I do that with my own classes? 2. How do I store the type Array, or Float, in a variable and call the function later?
mengu has quit [Quit: This computer has gone to sleep]
breakingthings has quit [Quit: breakingthings]
monkegjinni has quit [Remote host closed the connection]
interactionjaxsn has quit [Ping timeout: 256 seconds]
<aedorn>
Probably because Ruby isn't considered fast enough for most intense mathematical operations when there's better tools for those out there (and why some people have opted to include extensions/calls out to other languages for it like R)
m8 has quit [Quit: Sto andando via]
elaptics`away is now known as elaptics
Ziarkaen has quit [Remote host closed the connection]
<graft>
the ruby R extensions are also pretty crappy
<MarcWeber>
jkline: I don't understand your quesntion. Try to write some code and paste it to dpaste.com, then talk about what you expect, and what you get.
<Squarepy>
^^
<MarcWeber>
graft: I didn't even cope with rake, finally implemented github.com/MarcWeber/rumake ..
mljsimone is now known as mljsimone|away
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
txdv_ has joined #ruby
txdv has quit [Read error: Connection reset by peer]
<Squarepy>
I agree on the python call
<MarcWeber>
Squarepy: Well - he should talk what i wants to do ..
<graft>
jkline: Casting isn't magic - most types have a casting function (e.g. to_f for floats) if it's possible. For your own classes, you have to write your own casting function
relix has quit [Client Quit]
<Squarepy>
MarcWeber, he wants a richer bitarray gem
<graft>
I can't just jump to python, i already have a huge amount of code written in ruby
redgirl has quit [Quit: This computer has gone to sleep]
<MarcWeber>
bitarray? Should'nt take long to use FFI, memory pointer and some || operations to get it?
<MarcWeber>
Or use C/asm to access bits ..
<MarcWeber>
bit array != math
mikewintermute has joined #ruby
<graft>
well, yes, obviously, i can write my own bitvector code, but the point is that i have to do that instead of just using someone else's library
<Squarepy>
it has scientific usecases MarcWeber
_br_- has quit [Remote host closed the connection]
<MarcWeber>
graft: Which interface do you expect?
_br_ has joined #ruby
<MarcWeber>
Again - which requirements do you have?
tvw has joined #ruby
<graft>
MarcWeber: something like the perl Bit::Vector one
Synthead has quit [Ping timeout: 245 seconds]
mmitchell has quit [Remote host closed the connection]
zigomir has joined #ruby
<MarcWeber>
graft: To do what?
<Squarepy>
read back
<Squarepy>
ha
mikewintermute has quit [Client Quit]
<MarcWeber>
Squarepy: You mean your wild guess "scientific use cases" ?
dextrey has quit [Quit: WeeChat 0.4.2-dev]
<graft>
MarcWeber: scroll back a little further. i said i wanted to use it to represent genomic intervals on chromosomes
pipework has quit [Quit: Leaving...]
cespare has quit [Quit: WeeChat 0.3.7]
<MarcWeber>
graft Can't you just write bindings to existing C libraries?
guilleiguaran_ has joined #ruby
<graft>
...
fuhgeddaboudit has quit [Ping timeout: 264 seconds]
<MarcWeber>
graft: How long do you expect your app to run - how heavy is the computation?
<MarcWeber>
How much data is involved?
<MarcWeber>
In which way is ruby involved in "processing" the data?
<MarcWeber>
Otherwise you could just write that part in another language, and pass the data to that other applacation.
pentameter has quit [Remote host closed the connection]
<aedorn>
eh.. I'd cheat and would use a Ruby-Python bridge and use the Genomic* classes
vdandre has quit [Quit: leaving]
hadees has joined #ruby
<aedorn>
Although it wouldn't take much to rewrite it all in pure Ruby for just that. Meh.
horofox_ has quit [Quit: horofox_]
<Squarepy>
or python
<Squarepy>
ha
<Squarepy>
sry
jbpros has quit [Quit: jbpros]
badquanta has quit [Remote host closed the connection]
smoothbutta has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
<aedorn>
On the flip side, it's probably long past due to get more scientific methods into Ruby directly.
n1x has joined #ruby
cj3kim has joined #ruby
c0rn has joined #ruby
<Squarepy>
yeah like a numeric array
arya_ has quit [Ping timeout: 248 seconds]
RyanHirsch has quit [Quit: Computer has gone to sleep.]
mengu has joined #ruby
splittingred has quit [Quit: splittingred]
<graft>
is there a project to do this already? I'd love to contribute to that sort of repository
<Squarepy>
isn't string converting an object usually done through implicit attribute like inspect? (not an expert but similar to __repr__ in python
<graft>
to get more scientific methods into Ruby, e.g. make some genomic intervals classes, or just general utilities like interval trees, bitvectors, etc.
thebastl has quit [Remote host closed the connection]
<graft>
Squarepy: ah nice... now i just wait a few years
<Squarepy>
:)
sambao21 has joined #ruby
<aedorn>
years? hmmm... well, I guess they are purely focusing on NMatrix for now. If there was a way to get every Ruby developer in the world to write a single line of code, it'd be done in a day. Then we could test it for a few years instead.
mikewintermute has joined #ruby
baordog has quit [Remote host closed the connection]
<Squarepy>
well their parent class should implement the right to_something
<Squarepy>
class of classes
milardovich has quit [Max SendQ exceeded]
milardovich has joined #ruby
fuhgeddaboudit has joined #ruby
michaeldeol has quit [Remote host closed the connection]
milardovich has quit [Max SendQ exceeded]
Spitfire is now known as Bkwrm
sambao21 has quit [Quit: Computer has gone to sleep.]
Ry0_ has joined #ruby
milardovich has joined #ruby
Bkwrm is now known as Spitfire
nezumi has joined #ruby
michaeldeol has joined #ruby
milardovich has quit [Max SendQ exceeded]
terrellt has quit [Ping timeout: 260 seconds]
jalcine has joined #ruby
milardovich has joined #ruby
renderful has quit [Remote host closed the connection]
utdemir has joined #ruby
milardovich has quit [Max SendQ exceeded]
milardovich has joined #ruby
clocKwize has quit [Quit: clocKwize]
<utdemir>
Hi. Ruby first timer here. I have a string like "21 342 41 ..." so, why does this code doesn't convert it to list of ints? s.split.each { |i| i.to_i }
cj3kim has quit [Remote host closed the connection]
milardovich has quit [Max SendQ exceeded]
jimmyjjames has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
kasper has quit [Remote host closed the connection]
<ccooke>
utdemir: because each doesn't care what your code returns
anonymuse has quit [Remote host closed the connection]
<utdemir>
oh, .map worked
devoldmx has joined #ruby
<utdemir>
thanks
bradhe has quit [Remote host closed the connection]
<ccooke>
utdemir: each just does something for each, then returns the object it ran on
kasper has joined #ruby
thams has quit [Quit: thams]
<utdemir>
ccooke: thank you. cool.
anonymuse has joined #ruby
bradhe has joined #ruby
milardovich has quit [Max SendQ exceeded]
vanamar has quit [Quit: vanamar]
milardovich has joined #ruby
kasper has quit [Read error: Connection reset by peer]
kasper has joined #ruby
elaptics is now known as elaptics`away
bradhe has quit [Read error: Connection reset by peer]
bradhe_ has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has quit [Max SendQ exceeded]
milardovich has joined #ruby
n1x has quit [Ping timeout: 264 seconds]
horofox_ has quit [Quit: horofox_]
jrendell has quit [Quit: jrendell]
milardovich has quit [Max SendQ exceeded]
ntus1017 has joined #ruby
end_guy has joined #ruby
milardovich has joined #ruby
ebobby has quit [Ping timeout: 256 seconds]
anonymuse has quit [Ping timeout: 276 seconds]
hogeo has quit [Remote host closed the connection]
pskosinski has joined #ruby
milardovich has quit [Max SendQ exceeded]
ebobby has joined #ruby
johnnyfuchs has joined #ruby
milardovich has joined #ruby
horofox_ has joined #ruby
milardovich has quit [Max SendQ exceeded]
swordsmanz is now known as words2
words2 is now known as hellobabby
milardovich has joined #ruby
hellobabby is now known as swordsmanz
c0rn has quit [Quit: Computer has gone to sleep.]
swordsmanz is now known as DenzaSmells
agent_white has quit [Quit: leaving]
milardovich has quit [Max SendQ exceeded]
smlgs has quit [Ping timeout: 246 seconds]
RORgasm has quit [Remote host closed the connection]
milardovich has joined #ruby
therabidbanana has quit [Quit: leaving]
tacos1de has joined #ruby
horofox_ has quit [Client Quit]
predator117 has joined #ruby
DenzaSmells is now known as DenzaSmellsLikeC
milardovich has quit [Max SendQ exceeded]
radic has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
tvw has quit []
DanKnox is now known as DanKnox_away
maxmanders has quit [Quit: Computer has gone to sleep.]
milardovich has quit [Max SendQ exceeded]
milardovich has joined #ruby
kasper has quit [Remote host closed the connection]
kasper has joined #ruby
predator217 has quit [Ping timeout: 248 seconds]
milardovich has quit [Max SendQ exceeded]
codesoda has quit [Remote host closed the connection]
milardovich has joined #ruby
tomzx_mac has joined #ruby
osvico has joined #ruby
milardovich has quit [Max SendQ exceeded]
michaeldeol has quit [Remote host closed the connection]
DenzaSmellsLikeC is now known as DenzaSmellsEww
milardovich has joined #ruby
Davey has joined #ruby
Fuzai has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
fridim_ has joined #ruby
milardovich has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
Davey has quit [Client Quit]
peter_ss has joined #ruby
kasper has quit [Ping timeout: 240 seconds]
Ry0_ has quit [Remote host closed the connection]
osvico has quit [Client Quit]
jds_ has joined #ruby
Bubodlack has joined #ruby
<Bubodlack>
hi all
<Squarepy>
<.>
pontiki has quit [Ping timeout: 252 seconds]
<havenwood>
helloooo
michaeldeol has joined #ruby
Kabaka has joined #ruby
sailias has joined #ruby
julweber has joined #ruby
peter_ss has quit [Ping timeout: 276 seconds]
jalcine has quit [Quit: Quit]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
jalcine has joined #ruby
pontiki has joined #ruby
cmarques has quit [Ping timeout: 256 seconds]
marcdel has joined #ruby
<aedorn>
bonjour
saarinen has quit [Quit: saarinen]
djbkd has quit [Quit: Leaving]
jds_ has quit [Remote host closed the connection]
fredjean has quit [Quit: Computer has gone to sleep.]
s_e has joined #ruby
sambao21 has joined #ruby
xardas has quit [Ping timeout: 276 seconds]
pskosinski has quit [Remote host closed the connection]
utdemir has quit [Remote host closed the connection]
lindenle has quit [Quit: This computer has gone to sleep]
emergion has joined #ruby
Fuzai has joined #ruby
RonScagz has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
emergion has quit [Ping timeout: 260 seconds]
julweber has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
tylersmith has quit [Remote host closed the connection]
wmoxam has joined #ruby
twoism has quit [Remote host closed the connection]
DenzaSmellsEww is now known as DenzaSmellswiffy
sambao21 has quit [Ping timeout: 256 seconds]
threesome has quit [Read error: Connection reset by peer]
otherj has joined #ruby
threesome has joined #ruby
colonolGron has quit [Quit: Lost terminal]
renderful has quit [Remote host closed the connection]
jimmyjjames has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
RORgasm has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
jrendell has joined #ruby
burz has joined #ruby
julweber has joined #ruby
badelat has joined #ruby
ssvo has joined #ruby
DenzaSmellswiffy is now known as DenzaSmellsPEE
devoldmx has quit [Read error: Connection reset by peer]