Portos- has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
emergion has joined #ruby
mikestok has quit [Client Quit]
emergion has quit [Max SendQ exceeded]
Spami_ has quit [Quit: This computer has gone to sleep]
dmiller has joined #ruby
emergion has joined #ruby
dmiller has quit [Remote host closed the connection]
yoshie902a has joined #ruby
ehaliewicz has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
ehaliewicz has joined #ruby
Palantir has joined #ruby
jacktrick has quit [Quit: Leaving]
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
Vivekananda has joined #ruby
mercwithamouth has quit [Ping timeout: 268 seconds]
<yoshie902a>
can someone tell me how to fix my syntax? filings.map {|r| r if ((r['form']==form if form else True) and (r['cik']==cik if cik else True))}.compact, I get a syntax error, unexpected keyword_else, expecting ')' ... ((r['form']==form if form else True) and (r['cik']==cik if ...
Kricir has joined #ruby
ggordan has quit [Remote host closed the connection]
<yoshie902a>
I think it has to do with the if else statement
kunday has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
Z_Mass has joined #ruby
estan has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
akashj87_ has joined #ruby
threesome has quit [Ping timeout: 256 seconds]
visof has quit [Quit: Leaving]
visof has joined #ruby
swex has quit [Ping timeout: 256 seconds]
akashj87 has quit [Ping timeout: 264 seconds]
mklappstuhl has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
jduan1981 has joined #ruby
Kricir has joined #ruby
phipes has joined #ruby
Olipro has quit [Quit: Don't flap your BGP at me sonny]
ferdev has quit [Ping timeout: 258 seconds]
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
arya has joined #ruby
ctienrsg has joined #ruby
peta_ has quit [Quit: peta_]
atyz has joined #ruby
nhhagen has joined #ruby
_br_ has quit [Ping timeout: 256 seconds]
newTech has quit [Quit: newTech]
Guest97176 has joined #ruby
nhhagen has quit [Remote host closed the connection]
newTech has joined #ruby
twoism has joined #ruby
estan has quit [Read error: Connection reset by peer]
pilgo has joined #ruby
Leighton has joined #ruby
pkrnj has quit [Read error: Operation timed out]
pskosinski has quit [Quit: pskosinski]
Guest97176 has quit [Changing host]
Guest97176 has joined #ruby
lyanchih has joined #ruby
teclator has quit [Ping timeout: 264 seconds]
subbyyy has quit [Ping timeout: 256 seconds]
estan has joined #ruby
Guest97176 has quit [Quit: Don't flap your BGP at me sonny]
arya has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
tyl has joined #ruby
infecto has quit [Ping timeout: 252 seconds]
infecto has joined #ruby
twoism has quit [Remote host closed the connection]
kofno has joined #ruby
arya has joined #ruby
pkrnj has joined #ruby
pkrnj has quit [Remote host closed the connection]
benlieb has joined #ruby
slainer68 has quit [Remote host closed the connection]
CamonZ has joined #ruby
Olipro has joined #ruby
<linduxed>
in a stuation where i know how a sequence will progress, but not for how many elements, what would the best way be to express this?
Olipro has quit [Excess Flood]
mercwithamouth has quit [Ping timeout: 256 seconds]
<linduxed>
an example would be "what's the first number in the fibonacci sequence that is a multiple of 100?"
mklappstuhl has joined #ruby
<linduxed>
or something like that
<linduxed>
i don't know how many elements i'll need from the fib sequence
<linduxed>
my immediate guess is a while loop, but that might not be idiomatically correct
Olipro has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
nomenkun has joined #ruby
nomenkun has quit [Read error: Operation timed out]
estan has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
mockra has quit [Remote host closed the connection]
mr0wl has joined #ruby
mr0wl has quit [Client Quit]
mockra has joined #ruby
peter_lee has joined #ruby
<peter_lee>
Hey, can anyone recommend potential interview questions for a Ruby Automation Engineer? They aren't saying and not much online, it's a 3 hour interview with problems.
nhhagen has joined #ruby
pilgo has quit [Quit: pilgo]
skoovdebo has joined #ruby
iMadper has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Domon has joined #ruby
Palantir has quit [Ping timeout: 260 seconds]
ubuu has joined #ruby
idkazuma has quit [Remote host closed the connection]
peter_lee has quit [Remote host closed the connection]
estan has joined #ruby
iMadper has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
wroathe has quit [Ping timeout: 272 seconds]
richcollins has joined #ruby
lyanchih has quit [Quit: lyanchih]
nhhagen has quit [Remote host closed the connection]
lyanchih has joined #ruby
josedonizetti has joined #ruby
subbyyy has joined #ruby
gyre007 has joined #ruby
chipotle_ has quit [Quit: cya]
jamesfung14 has quit [Ping timeout: 272 seconds]
sleetdrop has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
gyre007 has quit [Ping timeout: 264 seconds]
<havenwood>
peteyg: Are you the interviewer or the interviewee?
Hanmac has joined #ruby
estan has quit [Read error: Connection reset by peer]
<havenwood>
linduxed: (^ just an example using Ruby 2's #lazy)
arya has quit [Ping timeout: 248 seconds]
nhhagen has joined #ruby
Kricir has quit [Remote host closed the connection]
akashj87_ has quit [Quit: Leaving]
cout_ is now known as cout
atyz has quit [Ping timeout: 272 seconds]
bigmac has joined #ruby
bigmac has quit [Remote host closed the connection]
arya has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
havenwood has quit [Remote host closed the connection]
cout is now known as cout_
cout_ is now known as cout
nhhagen has quit [Ping timeout: 264 seconds]
cout is now known as cout_
cout_ is now known as cout
jamesfung14 has joined #ruby
hadees has quit [Quit: hadees]
bubblehead has quit [Remote host closed the connection]
wesside_ has joined #ruby
wesside_ has quit [Remote host closed the connection]
DerBoki has quit []
kunday has joined #ruby
Kricir has joined #ruby
cha1tanya has quit [Quit: Leaving]
newTech has joined #ruby
estan has quit [Read error: Connection reset by peer]
pevjan has joined #ruby
snuglepuss has quit [Remote host closed the connection]
cofin has quit [Quit: cofin]
pevjan has quit [Read error: Connection reset by peer]
pevjan_ has joined #ruby
estan has joined #ruby
kunday has quit [Ping timeout: 272 seconds]
arya has quit [Ping timeout: 248 seconds]
Hanmac1 has joined #ruby
io_syl has joined #ruby
DrShoggoth has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
mr0wl has joined #ruby
infecto has quit [Ping timeout: 255 seconds]
arya has joined #ruby
sailias has quit [Quit: Leaving.]
richcollins has quit [Quit: richcollins]
ZachBeta has joined #ruby
brianherman has joined #ruby
huoxito has quit [Quit: Leaving]
estan has quit [Read error: Connection reset by peer]
joofsh has quit [Remote host closed the connection]
cofin has joined #ruby
josedonizetti has quit [Quit: josedonizetti]
krz has quit [Quit: krz]
lyanchih has quit [Quit: lyanchih]
pevjan_ has quit [Remote host closed the connection]
pevjan has joined #ruby
joofsh has joined #ruby
bricker`LA has joined #ruby
Kricir has quit [Remote host closed the connection]
brianherman has quit [Read error: Connection reset by peer]
bricker`LA has quit [Client Quit]
IceDragon has quit [Quit: Space~~~]
krz has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
bricker`LA has joined #ruby
mmitchell has joined #ruby
Heero has joined #ruby
arietis has joined #ruby
wroathe has quit [Ping timeout: 264 seconds]
Hobogrammer has joined #ruby
joofsh has quit [Remote host closed the connection]
Hobogrammer has quit [Client Quit]
estan has joined #ruby
banjara has joined #ruby
mishke has joined #ruby
<mishke>
guys
<mishke>
im newbie in ruby
<mishke>
can i do this
mmitchell has quit [Ping timeout: 276 seconds]
<mishke>
name = gets.chomp.downcase
<mishke>
2 metods?
cooldman224 has joined #ruby
mockra has quit [Remote host closed the connection]
Guest32784 has quit [Ping timeout: 245 seconds]
insel has quit []
mockra has joined #ruby
digifiv5e has joined #ruby
Hanmac1 is now known as Hanmac
skoovdebo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
digifiv5e is now known as Guest83823
<Hanmac>
mishke: yes you can ;P in ruby you can chain as much methods as you want, but you need to be careful with methods that ends with !, they can return nil and break your chain
<mishke>
Hanmac: thx ppl from community :)
atyz has joined #ruby
mockra has quit [Remote host closed the connection]
tealmage has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 264 seconds]
bricker`LA has quit [Read error: Connection reset by peer]
kofno has quit [Remote host closed the connection]
Domon has quit [Read error: Connection reset by peer]
Domon has joined #ruby
lyanchih has joined #ruby
lyanchih has quit [Client Quit]
emptymag00 has quit [Ping timeout: 256 seconds]
jhn has quit [Ping timeout: 276 seconds]
estan has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
sayan has quit [Ping timeout: 272 seconds]
hiyakashi has joined #ruby
arya has joined #ruby
pilgo has joined #ruby
wroathe has joined #ruby
Kricir has joined #ruby
freerobby has joined #ruby
corehook has joined #ruby
iMadper has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bricker`LA has joined #ruby
emptymag00 has joined #ruby
estan has joined #ruby
retnuh has quit [Remote host closed the connection]
wroathe has quit [Ping timeout: 252 seconds]
mogsy has joined #ruby
splittingred has quit [Quit: splittingred]
richcollins has joined #ruby
mockra has joined #ruby
c0rn has joined #ruby
Mattix has quit [Ping timeout: 264 seconds]
banjara has joined #ruby
chandankumar has joined #ruby
alexgordon has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
c0rn has quit [Client Quit]
tealmage has joined #ruby
rakl has quit [Quit: sleeping]
yakko has quit [Remote host closed the connection]
cooldman224 has quit [Remote host closed the connection]
linoge has joined #ruby
danieldocki has quit [Quit: Leaving...]
bricker`1A has joined #ruby
sandGorgon has joined #ruby
tommyvyo has joined #ruby
chandankumar has quit [Quit: Leaving]
idkazuma has joined #ruby
banjara has quit [Ping timeout: 272 seconds]
bricker`LA has quit [Ping timeout: 264 seconds]
Domon has quit [Ping timeout: 264 seconds]
Domon has joined #ruby
estan has quit [Read error: Connection reset by peer]
tealmage has quit [Ping timeout: 252 seconds]
ZachBeta has quit [Read error: Connection reset by peer]
ariedler has quit [Remote host closed the connection]
wroathe has joined #ruby
ZachBeta has joined #ruby
nobitanobi has joined #ruby
ARCADIVS has joined #ruby
v2px has quit [Ping timeout: 256 seconds]
Opettaja has quit [Quit: WeeChat 0.4.0]
<nobitanobi>
Hi guys, I am trying to install ruby 2.0.0-p0 under my Ubuntu 12.04, and I keep having troubles. It seems it can't find binary rubies, as I get "No binary rubies available for: ubuntu/12.10/i386/ruby-2.0.0-p0." - What can I do?
v2px has joined #ruby
Domon has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
jamesfung14 has quit [Ping timeout: 272 seconds]
altivec has joined #ruby
cofin has quit [Quit: cofin]
estan has joined #ruby
wsterling has joined #ruby
jdunck has joined #ruby
zph has joined #ruby
zph has quit [Excess Flood]
cyong has quit [Quit: Leaving.]
mockra has quit [Remote host closed the connection]
tommyvyo has quit [Quit:]
rickruby has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
ZachBeta has joined #ruby
miroatme_ has joined #ruby
<miroatme_>
hey question..
<miroatme_>
getting error on
atyz has joined #ruby
<miroatme_>
target = File.open(filename, 'w')
<miroatme_>
puts "Truncating the file. Goodbye!"
<miroatme_>
target.truncate(target.size)
<miroatme_>
target.size
<miroatme_>
NoMethodError
danieldocki has joined #ruby
<miroatme_>
hrm
<miroatme_>
could 1.8 be the issue here?
Faris9 has joined #ruby
kunday has joined #ruby
hamakn has quit [Remote host closed the connection]
pilgo has quit [Quit: pilgo]
hamakn has joined #ruby
jhn has joined #ruby
tylersmith has quit [Remote host closed the connection]
atyz has quit [Ping timeout: 264 seconds]
asdfbmnv3451242 has quit [Read error: Connection reset by peer]
banjara has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
philcrissman has quit [Read error: Connection reset by peer]
pevjan has quit [Remote host closed the connection]
tonini has quit [Ping timeout: 248 seconds]
Hanmac2 has joined #ruby
Hanmac has quit [Ping timeout: 256 seconds]
Jeff_D has quit [Quit: JMP $]
ZachBeta_ has quit [Read error: Connection reset by peer]
tjbiddle has quit [Quit: tjbiddle]
ZachBeta has joined #ruby
tjbiddle has joined #ruby
fasta is now known as fasta_
dhruvasagar has quit [Read error: Connection reset by peer]
tjbiddle_ has joined #ruby
marr has joined #ruby
katherinem13 has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
katherinem13 has joined #ruby
timonv has quit [Remote host closed the connection]
DouweM has joined #ruby
tjbiddle has quit [Ping timeout: 268 seconds]
atyz has joined #ruby
jimg has joined #ruby
tjbiddle_ has quit [Ping timeout: 252 seconds]
mneorr has quit [Remote host closed the connection]
atyz has quit [Ping timeout: 260 seconds]
brandon has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
estan has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 264 seconds]
zavier has left #ruby ["WeeChat 0.4.0"]
m8 has joined #ruby
troessner has joined #ruby
jimg has quit [Ping timeout: 272 seconds]
obs has joined #ruby
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
idkazuma has quit [Remote host closed the connection]
haxrbyte has joined #ruby
haxrbyte_ has quit [Ping timeout: 252 seconds]
asellus has joined #ruby
Vivekananda has quit [Remote host closed the connection]
tonini has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
Astralum has quit [Ping timeout: 276 seconds]
estan has joined #ruby
jimg has joined #ruby
krainboltgreene has quit [Quit: krainboltgreene]
daidoji has joined #ruby
Portos- has joined #ruby
<daidoji>
sup
girija has joined #ruby
nhhagen has joined #ruby
AgentWillyWonka has quit [Read error: Connection reset by peer]
AgentWillyWonka has joined #ruby
DementedInsanity has joined #ruby
DementedInsanity has quit [Changing host]
DementedInsanity has joined #ruby
chandankumar has joined #ruby
jenrzzz has joined #ruby
nhhagen has quit [Ping timeout: 256 seconds]
ferdev has quit [Ping timeout: 252 seconds]
mr0wl has quit [Ping timeout: 276 seconds]
monkegjinni has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
generalissimo has quit [Remote host closed the connection]
Macaveli has joined #ruby
DementedInsanity has quit [Ping timeout: 246 seconds]
jbpros has joined #ruby
jbpros has quit [Client Quit]
gasbakid has quit [Remote host closed the connection]
hamed_r has quit [Quit: Leaving]
DouweM has quit [Read error: Connection reset by peer]
wroathe has joined #ruby
DouweM has joined #ruby
fasta_ is now known as fasta
lessless has joined #ruby
jenrzzz has quit [Quit: leaving]
altivec has quit [Quit: Computer has gone to sleep.]
nobitanobi has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby
wroathe has quit [Ping timeout: 264 seconds]
hiyakash_ has joined #ruby
d11wtq has quit [Ping timeout: 256 seconds]
sayan has quit [Read error: Connection reset by peer]
swh has joined #ruby
<lessless>
is anybody here familiar with Grape? I need an overview of how do I separate my settings from api code: like database connection, models, external services, etc...
estan has quit [Read error: Connection reset by peer]
atyz has joined #ruby
hiyakashi has quit [Ping timeout: 252 seconds]
ARCADIVS has quit [Ping timeout: 264 seconds]
lushious has quit [Ping timeout: 252 seconds]
m8 has quit [Read error: Connection reset by peer]
m8 has joined #ruby
swh has quit [Remote host closed the connection]
d2dchat has quit [Remote host closed the connection]
ARCADIVS has joined #ruby
apeiros has joined #ruby
estan has joined #ruby
DouweM has quit [Ping timeout: 272 seconds]
Spooner has joined #ruby
sambao21 has joined #ruby
jimg has quit [Remote host closed the connection]
rickruby has joined #ruby
Spami_ has joined #ruby
nomenkun has joined #ruby
finnomenon has quit [Ping timeout: 240 seconds]
sambao21 has quit [Read error: Operation timed out]
timonv has joined #ruby
SAUCYSALAMANDER has quit [Read error: Connection reset by peer]
SAUCYSALAMANDER has joined #ruby
Nanuq has quit [Read error: Operation timed out]
rickruby has quit [Ping timeout: 276 seconds]
Nanuq has joined #ruby
workmad3 has quit [Ping timeout: 272 seconds]
sonofzeus has joined #ruby
<sonofzeus>
Hi there
d3ijw3l has joined #ruby
monkegjinni has quit [Remote host closed the connection]
luisalima has joined #ruby
<sonofzeus>
I've tried to learn some programming languages in the past and read some tuts and catched up fine so I'm not a complete noob.
<sonofzeus>
How many hours will it take me to learn ruby?
timonv has quit [Read error: Connection reset by peer]
<sonofzeus>
I'm not an expert programmer but obviously not a anoob.
timonv has joined #ruby
<sonofzeus>
Can I learn ruby perfectly in 24 learning hours?
wookiehangover has quit [Ping timeout: 256 seconds]
Jalada has quit [Ping timeout: 256 seconds]
<bnagy>
perfectly? no
Jalada has joined #ruby
wookiehangover has joined #ruby
estan has quit [Read error: Connection reset by peer]
<bnagy>
that's like 3 days fulltime, don't be silly
niklasb has joined #ruby
<tobiasvl>
sonofzeus: what do you mean by "perfectly"? the syntax? yes, sure
<tobiasvl>
all semantics and idioms and quirks and gotchas? no way jose
<tobiasvl>
is that possible with any language?
luisalima has left #ruby ["WeeChat 0.3.9"]
<sonofzeus>
Yeah the syntax part.
<sonofzeus>
And I mentioned 24 learnin hours .
yashshah- has joined #ruby
gstudent2 is now known as germanstudent
<sonofzeus>
Just sayin
<tobiasvl>
oh, THAT part. the syntax part.
<tobiasvl>
well sure
<tobiasvl>
that should be possible. ruby has a fair bit of synta{x,ctic sugar}, but it shouldn't be that hard
<bnagy>
if you were already a solid programmer you could probably learn enough in 24 hours to write really bad ruby to approach small problems
Criztian has joined #ruby
yashshah_ has quit [Ping timeout: 272 seconds]
persand has quit [Quit: persand]
<bnagy>
which is about what I'd expect if I tried to go learn python from scratch
Spami__ has joined #ruby
<hoelzro>
they say it takes 10000 hours to learn anything well.
<tobiasvl>
sonofzeus: what languages do you know? it helps if you're used to both functional and object oriented paradigms (ruby uses both extensively)
Spami_ has quit [Ping timeout: 264 seconds]
sonofzeus has quit [Quit: Page closed]
<bnagy>
hoelzro: that sounds like 'expert' to me :)
<bnagy>
that's like 6 years of doing something fulltime
<tobiasvl>
ten THOOOOOUUUUSAND HOURS
<tobiasvl>
over 9000
Hanmac1 has joined #ruby
virtuose has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
Hanmac2 has quit [Ping timeout: 272 seconds]
altivec has joined #ruby
MrZYX|off is now known as MrZYX
estan has joined #ruby
buscon has joined #ruby
lushious has joined #ruby
virtuose has joined #ruby
altivec has quit [Ping timeout: 252 seconds]
ZachBeta has quit [Read error: Connection reset by peer]
peta_ has joined #ruby
ZachBeta has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
megha has joined #ruby
d3ijw3l has quit [Quit: leaving]
chandankumar has quit [Quit: Leaving]
jimg has joined #ruby
blaxter has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
caveat- has quit [Ping timeout: 252 seconds]
persand has joined #ruby
yacks has quit [Ping timeout: 246 seconds]
yacks has joined #ruby
pcarrier has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
caveat- has joined #ruby
Heero has quit [Ping timeout: 260 seconds]
arietis has joined #ruby
estan has quit [Read error: Connection reset by peer]
_br_ has joined #ruby
Neomex has joined #ruby
pcarrier has joined #ruby
timmow has joined #ruby
<ctienrsg>
that's why in china they start training their kids at 3 years in all kinds of stuff…
jenrzzz has quit [Quit: leaving]
niklasb has quit [Ping timeout: 252 seconds]
tealmage has joined #ruby
_br_ has quit [Quit: leaving]
AndChat| has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
tealmage has quit [Ping timeout: 256 seconds]
jovy88 has quit [Read error: Connection reset by peer]
estan has joined #ruby
jovy88 has joined #ruby
Nanuq has quit [Read error: Operation timed out]
Hanmac has joined #ruby
iamlacroix has joined #ruby
<Hanmac>
ping shevy
ZuzzleBuzzer has joined #ruby
MrZYX is now known as MrZYX|off
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
AndChat| has quit [Ping timeout: 264 seconds]
alanp has quit [Quit: No Ping reply in 180 seconds.]
kimteq has quit [Remote host closed the connection]
tonini has joined #ruby
invisime has joined #ruby
kil0byte has quit [Ping timeout: 255 seconds]
pandy has quit [Ping timeout: 256 seconds]
yannis has joined #ruby
rton has joined #ruby
thejoecarroll has joined #ruby
kiri has joined #ruby
nezumi has quit [Ping timeout: 245 seconds]
timmow has quit [Remote host closed the connection]
timmow has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
bubblehead has joined #ruby
<thejoecarroll>
i'm just starting to migrate from using rvm to rbenv, mainly because of boxen. i finally managed to get veewee working once i figured out how to get the gems to install properly, but what i'd like to know is whether ther is a way to invoke the command from anywhere so that it operates in the correct environment without havieng to cd into its folder and use "rbenv exec bundle exec bin/veewee". can anyone help me?
anonymuse has joined #ruby
nahiluhmot has joined #ruby
kiri has quit [Read error: Operation timed out]
kiri has joined #ruby
<TTilus>
.ruby-version in the app folder saves you from rbenv exec afaik
<TTilus>
thejoecarroll: have you tried chruby? it does not have that shim thing, works simply by managing PATH
blaxter has quit [Ping timeout: 246 seconds]
timmow has quit [Ping timeout: 252 seconds]
ravster has joined #ruby
aryasam has quit [Read error: Connection reset by peer]
splittingred has joined #ruby
<TTilus>
thejoecarroll: is your problem the `cd` or the `rbenv exec` part of it? or both?
<thejoecarroll>
no, i haven't tried chruby and, unless it plays well with this, i don't think i will: http://boxen.github.com
<thejoecarroll>
the only reason i'm abandoning rvm is because it's incompatible with boxen
timonv has quit [Remote host closed the connection]
<thejoecarroll>
but my problem is basically both of those parts
wolcanus has joined #ruby
<thejoecarroll>
what i'd like to know is how i can tel rbenv and bundler what environments to create/use regardless of pwd
<thejoecarroll>
in other words, with bundler, is there a way to make it use a gemfile in another folder?
arietis has joined #ruby
<thejoecarroll>
what i'd like to do is to create a bash alias or a simple shell script that would allow me to run veewee just by invoking the command "veewee"
yalue has joined #ruby
fermion has joined #ruby
<thejoecarroll>
right now, the only way i can get it work, since it requires a gem that requires a later version of ruby that the system one included with os x 10.8, is to cd into the folder that i cloned it into and run "rbenv exec bundle exec bin/veewee"
jerius has quit []
estan has quit [Ping timeout: 255 seconds]
rton has left #ruby [#ruby]
Coolhand|afk is now known as Coolhand
<TTilus>
how about alias veewee='cd /the/path; rbenv exec bundle exec bin/veewee'
jbpros has joined #ruby
khismetix has joined #ruby
yfeldblum has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
<thejoecarroll>
TTilus: well, that would do it, although it would also change my pwd, which i'd prefer not to do :-) i'm also interested in whether what i'd like to do is possible or what's the correct way to do it, rather than a workaround per se.
rton has joined #ruby
blaxter has joined #ruby
<TTilus>
thejoecarroll: if you want to keep your current shell intact, use subshell
altivec has joined #ruby
ariedler has joined #ruby
<TTilus>
thejoecarroll: and i don't really know boxen other than it wants to control mostly everything so it is highly likely it won't play well with existing installations of dev tools
<TTilus>
at least thats my impression
nateberkopec has joined #ruby
estan has joined #ruby
josedonizetti has quit [Quit: josedonizetti]
persand has quit [Quit: persand]
s2013 has joined #ruby
m8 has quit [Quit: Sto andando via]
`p has quit [Remote host closed the connection]
persand has joined #ruby
s00pcan_ has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
justsee has quit [Ping timeout: 256 seconds]
camilasa_ has quit [Remote host closed the connection]
willob has joined #ruby
krawchyk has joined #ruby
philcrissman has joined #ruby
altivec has quit [Quit: Computer has gone to sleep.]
<thejoecarroll>
yeah, it doesn't play well with existing installations, but i've decided it's worth the pain and effort to transition everthing into my own boxen/puppet configs so i can easily set things up on a new mac any time i need to
TH34D has joined #ruby
chandankumar has joined #ruby
<Olipro>
how do I upgrade from Ruby 2.0 to Python 3.2 ?
aryasam has joined #ruby
<Olipro>
I kid, I kid ;)
kpshek has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
TH34D has quit [Client Quit]
Criztian has quit [Remote host closed the connection]
yakko has joined #ruby
_nitti has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
nahiluhmot has quit [Remote host closed the connection]
jbpros has quit [Quit: jbpros]
joofsh has joined #ruby
tomzx_mac_ has quit [Read error: Operation timed out]
rton has left #ruby [#ruby]
sandGorgon has quit [Ping timeout: 260 seconds]
cat22 has joined #ruby
carloslopes has joined #ruby
lele has quit [Quit: Coyote finally caught me]
rton has joined #ruby
io_syl has joined #ruby
atno has quit [Ping timeout: 246 seconds]
alexwh has quit [Ping timeout: 252 seconds]
daidoji has joined #ruby
johnmilton has joined #ruby
Tricon has joined #ruby
nobuoka has joined #ruby
tealmage_ has joined #ruby
estan has quit [Read error: Connection reset by peer]
rton has left #ruby [#ruby]
aptx4869 has quit [Remote host closed the connection]
freerobby has joined #ruby
johnmilton has quit [Client Quit]
alexwh has joined #ruby
browndawg has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
johnmilton has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
hiroyuki has quit [Read error: Connection reset by peer]
atno has joined #ruby
<cat22>
Can you unset a variable?
mikestok has joined #ruby
Spami__ has quit [Quit: Leaving]
d2dchat has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<ericwood>
set it to nil
axl_ has joined #ruby
wroathe has joined #ruby
<cat22>
I want to extinguish it.
<ericwood>
cat22: basically, set it to nil and let the garbage collector handle it
icecandy has quit [Remote host closed the connection]
wedgex has joined #ruby
wsterling has joined #ruby
mneorr has quit [Ping timeout: 252 seconds]
tesuki has quit [Ping timeout: 248 seconds]
malkomalko has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jovy88 has quit [Read error: Connection reset by peer]
Macaveli has quit [Read error: Connection reset by peer]
aryasam_ has quit [Read error: Connection reset by peer]
aryasam has joined #ruby
jovy88 has joined #ruby
Spami_ has joined #ruby
Spami has quit [Ping timeout: 248 seconds]
Spami_ has quit [Max SendQ exceeded]
aaronmcadam has quit [Quit: Leaving...]
arturaz has quit [Ping timeout: 272 seconds]
<whowantstolivefo>
guys, i've done play with the ruby koans, whats my next stage to understand better ruby fundamentals ?
Spami_ has joined #ruby
jtharris has joined #ruby
estan has joined #ruby
Todd- has joined #ruby
Macaveli has joined #ruby
arietis has joined #ruby
faceless has joined #ruby
nwertman has joined #ruby
<ChristianS>
whowantstolivefo: write some programs in ruby?
JohnBat26 has quit [Ping timeout: 268 seconds]
tonini has quit [Quit: leaving]
carloslopes has quit [Ping timeout: 258 seconds]
sayan has quit [Read error: Connection reset by peer]
lyanchih has joined #ruby
arietis has quit [Client Quit]
halfie|bbl is now known as halfie
_nitti has joined #ruby
dmiller_ has quit [Ping timeout: 258 seconds]
BizarreCake has joined #ruby
jprovazn has quit [Quit: Leaving]
vlad_starkov has joined #ruby
AlSquire has quit [Ping timeout: 256 seconds]
teclator has quit [Ping timeout: 276 seconds]
BSaboia has joined #ruby
shock_one has joined #ruby
newUser1234 has joined #ruby
sayan has joined #ruby
carloslopes has joined #ruby
faceless is now known as phacele55
phacele55 has quit [Changing host]
phacele55 has joined #ruby
freerobby has quit [Quit: Leaving.]
nahiluhmot has joined #ruby
freerobby has joined #ruby
yoshie902a has joined #ruby
sleetdrop has joined #ruby
<yoshie902a>
I'm trying to run ruby from textmate, and using rbenv. keep getting an "env: ruby: No such file or directory" is there someone that can help and if so, what information can I provide to help?
mmitchell has quit [Remote host closed the connection]
shock_one has joined #ruby
atyz has quit [Quit: Leaving...]
kreantos has quit [Ping timeout: 246 seconds]
joofsh has quit [Remote host closed the connection]
<_br_>
Does anyone remember a gem that checks if your currently used gems have security issues ? I remember there was something you could include in your gemfile but I can't remember the name...
wolcanus has quit [Ping timeout: 245 seconds]
icecandy has joined #ruby
jcromartie has joined #ruby
<MrZYX>
I know only a service that does that
estan has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
<sethetter>
Does anyone know what version of rubygems works with ruby 1.8.7?
KevinSjoberg has joined #ruby
phacele55 has quit [Ping timeout: 258 seconds]
cloke has joined #ruby
<MrZYX>
consider upgrading ruby, not downgrading rubygems
<sethetter>
I don't have a choice, I'm on an old system. 1.8.7 is the most current compatible version
<Hanmac>
ruby1.8.7 works?? that is new for me ;P
marr has joined #ruby
<sethetter>
Well, maybe I've spoken too soon. I'm still in the proof of concept phase
<sethetter>
lol
Davey has quit [Quit: Computer has gone to sleep.]
khismetix has joined #ruby
jblack has joined #ruby
<Hanmac>
newer systems should have 1.9.1 as default or similar, its better than 1.8 ... if your system does not provide that packages, i am feel sorry for you ;P
sayan has quit [Read error: Connection reset by peer]
<MrZYX>
support for 1.8 will end very soon, starting new projects on it is ridiculous, also given 1.9 is around so many years now I don't want know what other libraries run on that system and what security issues they might have in that versions....
<sethetter>
Well my personal system is fine, the system that this particular program is going to run on is very very old
mark_locklear has quit [Ping timeout: 246 seconds]
arietis has joined #ruby
wroathe has joined #ruby
kuzushi has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
banjara has joined #ruby
vlad_starkov has joined #ruby
carlyle has joined #ruby
<otters>
haha
estan has joined #ruby
pablonvz has quit [Ping timeout: 245 seconds]
benlieb has joined #ruby
<shevy>
thanks
_br_ has quit [Quit: leaving]
cat22 has quit [Quit: cat22]
jamie_ca_ has quit [Ping timeout: 245 seconds]
cat22 has joined #ruby
mrsolo has joined #ruby
dignati has quit [Ping timeout: 256 seconds]
yalue has joined #ruby
mr0wl has joined #ruby
teddyp1cker has joined #ruby
mklappstuhl has joined #ruby
wroathe has quit [Ping timeout: 256 seconds]
jamie_ca_ has joined #ruby
cloke has joined #ruby
timonv has joined #ruby
forrest has joined #ruby
zigomir has joined #ruby
timonv has quit [Remote host closed the connection]
tonini has joined #ruby
Mattix has joined #ruby
<shevy>
omg
<shevy>
the english language has the word "politburo" ???
vlad_starkov has quit [Remote host closed the connection]
<injekt>
of course
Guest____ has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
sayan has joined #ruby
<shevy>
that's so strange
<shevy>
it's like the german word, but missing the ~ stuff over the u, the umlaut... "politbüro"
icole has joined #ruby
MouseTheLuckyDog has joined #ruby
<otters>
ü
<otters>
?
<shevy>
hmm
mklappstuhl has quit [Read error: Connection reset by peer]
marr has quit []
mklappstuhl has joined #ruby
<MrZYX>
y u send no unicode shevy
<otters>
yeah I saw politb?ro
<shevy>
"\303\266"
<yxhuvud>
shevy: you got it wrong. both english and german took it from russian.
<shevy>
MrZYX I dont need it :D
<otters>
\303\266?
<otters>
heh
<yxhuvud>
and russian doesn't have umlauts.
workmad3 has joined #ruby
<otters>
you would not believe the number of people that tell me "maybe it's just your client"
<otters>
no, I'm pretty sure my client can display UTF-8 characters just fine
<shevy>
yxhuvud how is it written in cyrilic?
icole_ has joined #ruby
<MouseTheLuckyDog>
I have standard case state: case c when 'a' ... but I also want to add a case where '0'<=c<='9'
<otters>
shevy: it's spelled Политбюро
<shevy>
MouseTheLuckyDog try '0'..'9' perhaps
corehook has joined #ruby
<shevy>
otters I cant read that :(
<otters>
me neither
<injekt>
MouseTheLuckyDog: case '0'..'9'
<injekt>
blah
vlad_starkov has joined #ruby
<MouseTheLuckyDog>
injekt, don't you mean: when '0'..'9'?
<shevy>
yxhuvud yeah, I did not know that... the translation says that the word mostly refers to communism (i.e. apparatschik politburo)... though it reminds me of Orwell's 1984 too
invisime has quit [Quit: Leaving.]
<shevy>
the english language is really a skillful thief, first the kindergarten, now the politburo...
<injekt>
MouseTheLuckyDog: I do :)
<injekt>
MouseTheLuckyDog: been writing lots of Go today :/
<shevy>
I want to play Go
dhruvasagar has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
Ontolog has joined #ruby
<MouseTheLuckyDog>
I klost two games today. Sigh.
toquonce has quit [Ping timeout: 252 seconds]
bean has quit [Quit: Computer has gone to sleep.]
icole has quit [Ping timeout: 268 seconds]
interact_ has quit [Remote host closed the connection]
<MouseTheLuckyDog>
What word refers to communism?
interactionjaxsn has joined #ruby
krainboltgreene has joined #ruby
<shevy>
MouseTheLuckyDog politburo
<shevy>
if I can't send ö, even though it prints nicely for my screen, I could write it as "politbuero" which is a bit better phonetically than "politburo" alone
bluOxigen has joined #ruby
<shevy>
the english language always kills the umlauts!
<shevy>
well actually
jkamenik has joined #ruby
jkamenik has quit [Client Quit]
estan has quit [Remote host closed the connection]
<shevy>
dictionary gives two translations
jkamenik has joined #ruby
rdark has joined #ruby
DouweM has joined #ruby
<yxhuvud>
even english have some words that have umlauts, like coöperation.
<MouseTheLuckyDog>
Well yeah becauswe the Politburo was the organizing comittee for the Bolsevicks. So naturally it would reffer to comunism.
<shevy>
"politburo" and "politbureau" and another dictionary... "polit office"
a_a_g has quit [Quit: This computer has gone to sleep]
<shevy>
yxhuvud damn, I can't read that either :(
<shevy>
MouseTheLuckyDog I see
jkamenik has left #ruby [#ruby]
<MouseTheLuckyDog>
I hate umlats. Umlats remind of the Gilmore Girls.
<shevy>
*umlauts
<shevy>
:D
<shevy>
I am going to dig into wikipedia now... need to find out more about the politburo
mumblerit has quit [Ping timeout: 256 seconds]
<shevy>
???????????? ????
<MouseTheLuckyDog>
Nothing Orwellian about it.
interactionjaxsn has quit [Ping timeout: 258 seconds]
<shevy>
Politicheskoye Byuro
<shevy>
cool
<Eiam>
hmm, this has to have been a common problem
<shevy>
there usually is
<shevy>
like "what am I going to eat today?"
<Eiam>
i have an input file where the first line defines the columns of data below it. I don't want to check when I read through the file if the line is teh first line to do something different to it
<injekt>
Eiam: is it a csv file?
<Eiam>
tsv
<injekt>
Eiam: Ruby csv library can parse than
<injekt>
that*
halfie has left #ruby ["Leaving"]
<MouseTheLuckyDog>
shevy wha?
rdark has quit [Quit: leaving]
Z_Mass has quit [Ping timeout: 264 seconds]
dr_bob has joined #ruby
<shevy>
MouseTheLuckyDog that Eiam had a "common problem" :D
mklappstuhl has quit [Remote host closed the connection]
<Eiam>
injekt: nothing I suppose, i'll just have to remap it again into something actionable =p
<Eiam>
i was going to map it before reading it in
<Eiam>
but, doesn't really matter
slainer68 has quit [Remote host closed the connection]
tesuki_ has quit [Remote host closed the connection]
<injekt>
Eiam: it's a hash per row, feed than into an array, I don't see any issues
khismetix has quit [Quit: Computer has gone to sleep.]
mark_locklear has joined #ruby
arietis has joined #ruby
BizarreCake has quit [Quit: Leaving]
blandflakes has joined #ruby
osvico has joined #ruby
DouweM_ has quit [Ping timeout: 246 seconds]
graft has quit [Ping timeout: 252 seconds]
nwertman has joined #ruby
<Eiam>
yes, its fine there is not
Leighton has joined #ruby
tealmage has joined #ruby
Z_Mass has joined #ruby
troessner has quit [Ping timeout: 252 seconds]
jdunck has joined #ruby
bsaboia_ has quit [Ping timeout: 245 seconds]
baba has joined #ruby
freerobby has joined #ruby
nhhagen has quit [Remote host closed the connection]
megha has quit [Ping timeout: 256 seconds]
forlin has quit [Ping timeout: 276 seconds]
forlin has joined #ruby
tealmage has quit [Ping timeout: 264 seconds]
nhhagen has joined #ruby
philcrissman is now known as philcrissman|afk
philcrissman|afk has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
aryasam has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
frem has joined #ruby
stkowski has quit [Quit: stkowski]
infecto has joined #ruby
interactionjaxsn has joined #ruby
mklappst_ has joined #ruby
sethetter has left #ruby [#ruby]
mklappstuhl has quit [Read error: Connection reset by peer]
estan has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
pablonvz1 has left #ruby [#ruby]
aryasam has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
mikestok has joined #ruby
<Eiam>
shevy: weird, I saw a bunch iof ??????? too
<MrZYX>
it's not weird, he just fails to send unicode
<MrZYX>
I've seen this many times before ,)
<Eiam>
well forget that guy! (┛ò__ó)┛彡┻━┻
pcarrier has quit [Ping timeout: 264 seconds]
mikestok has quit [Client Quit]
mikestok has joined #ruby
zommi has joined #ruby
Ontolog_ has joined #ruby
Ontolog has quit [Read error: Connection reset by peer]
philcrissman|afk has joined #ruby
tspike has quit [Ping timeout: 264 seconds]
pcarrier has joined #ruby
xardas has quit [Ping timeout: 260 seconds]
pcarrier has quit [Client Quit]
jlast_ has joined #ruby
elaptics is now known as elaptics`away
headius has quit [Quit: headius]
bean has joined #ruby
jlast has quit [Ping timeout: 248 seconds]
elaptics`away is now known as elaptics
khismetix has joined #ruby
c0rn has quit [Ping timeout: 264 seconds]
mneorr_ has quit [Remote host closed the connection]
athst has joined #ruby
estan has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Z_Mass has quit [Ping timeout: 258 seconds]
khismetix has quit [Client Quit]
Ontolog_ has quit [Remote host closed the connection]
Ontolog has joined #ruby
tspike has joined #ruby
rezzack has joined #ruby
c0rn has joined #ruby
fmcgeough has joined #ruby
sambao21 has joined #ruby
Ontolog_ has joined #ruby
yxhuvud2 has joined #ruby
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
yxhuvud has quit [Ping timeout: 246 seconds]
<otters>
shevy needs to fix his client :D
<otters>
ಠ_ಠ
persand has joined #ruby
huoxito has joined #ruby
<Hanmac>
Eiam beware or i flop the pig ;P
krainboltgreene has quit [Ping timeout: 248 seconds]
ecart has joined #ruby
Ontolog has quit [Ping timeout: 258 seconds]
<ecart>
hello!
<waxjar>
hi
huoxito has quit [Client Quit]
<ecart>
i need a freelance
<Eiam>
Hanmac: ?
huoxito has joined #ruby
ossareh has joined #ruby
<Eiam>
injekt: ah, some jack ass fucked up the source file
<Eiam>
its got an intermix of \t and \t\t
<Eiam>
sigh, i hate people
Guest83823 has quit [Ping timeout: 272 seconds]
krainboltgreene has joined #ruby
<ecart>
i need a freelance
<Eiam>
ecart: I heard you 2 minutes ago
<Eiam>
so did everyone else
<ecart>
sorry
<mnemon>
ecart: to do what?
digifiv5e has joined #ruby
digifiv5e is now known as Guest79055
<ecart>
is ready.
<ecart>
need someone to debug errors
DouweM has quit [Read error: Connection reset by peer]
philcrissman|afk has quit [Remote host closed the connection]
<shevy>
lol
<shevy>
he is like an incomplete AI
<waxjar>
you're probably better off advertising on some freelance board ecart
akells` has quit [Remote host closed the connection]
DouweM has joined #ruby
<ecart>
;/
<ecart>
need someone to fix some errors in my script
Ontolog has joined #ruby
sayan has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
willob has quit [Ping timeout: 256 seconds]
axl_ has quit [Quit: axl_]
dgaffney has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
<injekt>
ecart: if you need help with a question, ask your question
<dgaffney>
hello humans
<injekt>
but if you want to hire someone, advertise on a website like waxjar suggests
<Virunga>
dgaffney: racist!
<dgaffney>
heh
Ontolog_ has quit [Ping timeout: 248 seconds]
philcrissman|afk has joined #ruby
freakazoid0223 has joined #ruby
philcrissman|afk is now known as philcrissman
estan has quit [Read error: Connection reset by peer]
<dgaffney>
I am hitting a stack level too deep error, which is everyone's favorite bug I assume. I have been dancing around with this section of code the past few weeks, and finally came to the undeniable fact that if I want to actually solve this, I need a much more intimate understanding of the stack level too deep error than I have right now. I get the _gist_ of the error, but, you know, I want to know more. Anyone have a good link
<dgaffney>
really any good definition on hand? Not seeing anything on StackOverflow or other boards :(
willob has joined #ruby
willob has quit [Max SendQ exceeded]
nhhagen has quit [Remote host closed the connection]
<injekt>
>> def foo; foo; end; foo
<eval-in>
injekt => /tmp/execpad-e2eed4b1a6b6/source-e2eed4b1a6b6:2: stack level too deep (SystemStackError) (http://eval.in/22376)
willob has joined #ruby
tspike has quit [Ping timeout: 246 seconds]
<injekt>
dgaffney: ^
pkrnj has quit [Quit: Computer has gone to sleep.]
willob has quit [Max SendQ exceeded]
a_a_g has joined #ruby
<dgaffney>
meh
willob has joined #ruby
willob has quit [Max SendQ exceeded]
<dgaffney>
but when does it actually decide that its too deep?
<injekt>
very early
nhhagen has joined #ruby
<dgaffney>
10? 100? 1000?
<injekt>
because it's not ambiguous
<dgaffney>
hrm.
<injekt>
there are probably cases where it's alittle more ambiguous
<dgaffney>
Are you familiar with typhoeus/hydra?
<injekt>
dgaffney: sort-of
<dgaffney>
its a realllllly cool way to grab lots of content quickly
tspike has joined #ruby
<injekt>
sure it's all parallel execution stuff
<dgaffney>
but I *suspect* that queuing up 5,000 websites to process than unleashing all the requests together is the root cause
<injekt>
dgaffney: do you have a short snippet to reproduce your issue?
<dgaffney>
for a stack level error - sort of like a false positive on the error
willob has joined #ruby
nfk has quit [Remote host closed the connection]
<dgaffney>
hrm...
willob has quit [Max SendQ exceeded]
<dgaffney>
sure
<dgaffney>
let me cook something up real quick
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<dgaffney>
the other bit here is that its pretty rare to actually hit this in production
Criztian has quit [Remote host closed the connection]
<injekt>
that's unhelpful :D
<dgaffney>
1/20 ish, and only when its these monstrous calls for lots of pages (not causation, but correlation)
<pandy>
Could someone please explain what's happening inside the method 'add_room', specifically, the '@rooms << Room' bit? What does the '<<' mean exactly? Thanks all
jimeh has joined #ruby
vlad_starkov has joined #ruby
<slash_nick>
pandy: Shovel operator... it's like Array#push
<graft>
<< is the same as @rooms.push(Room.new(etc))
icecandy has quit [Remote host closed the connection]
freerobby has joined #ruby
nik_-_ has joined #ruby
xardas has joined #ruby
estan has quit [Read error: Connection reset by peer]
aryasam has quit [Read error: Connection reset by peer]
aryasam has joined #ruby
huoxito has quit [Quit: Leaving]
<injekt>
pandy: appends room to the @rooms, like push but they're not identical
vlad_starkov has quit [Ping timeout: 245 seconds]
Snugug has joined #ruby
Snugug has left #ruby [#ruby]
markalanevans has quit [Quit: markalanevans]
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
pkrnj has joined #ruby
khismetix has joined #ruby
jbpros has joined #ruby
tspike has joined #ruby
willob has quit [Ping timeout: 245 seconds]
wsterling has joined #ruby
<pandy>
Thanks!
elaptics is now known as elaptics`away
tealmage has joined #ruby
elaptics`away is now known as elaptics
leonidlm has quit [Ping timeout: 252 seconds]
DouweM has quit [Read error: Connection reset by peer]
estan has joined #ruby
Macaveli has quit [Quit: This computer has gone to sleep]
geekbri_ has joined #ruby
hogeo_ has joined #ruby
tspike has quit [Ping timeout: 256 seconds]
<pandy>
So every time the 'add_room' method is called, the parameters are passed into the array initialised on line 6?
<pandy>
What does the method 'find_room_in_direction' on line 26 do?
moos3 has quit [Quit: Computer has gone to sleep.]
guitsaru has joined #ruby
<waxjar>
pitzips, Hash.[] takes an array in the form of [[key, value], [key, value]] and returns a Hash
benlieb has joined #ruby
SDr is now known as DrS
<workmad3>
waxjar: it'll also take arguments in the form '[k1,val,k2,val,k3,val,...]'
<waxjar>
and hashes convert nicely to json
rakun has quit [Quit: Saliendo]
<pitzips>
awesome, you guys rock, testing now
<waxjar>
cool, didnt know that workmad3
chipotle_ has joined #ruby
Criztian has quit [Remote host closed the connection]
guitsaru_ has quit [Ping timeout: 256 seconds]
sailias has quit [Ping timeout: 258 seconds]
asteve has joined #ruby
<workmad3>
waxjar: yeah, it's nice as it'll let you splat an array in if it's already in a flat key-value form, without having to map it into a nested array form first :)
moos3 has joined #ruby
<asteve>
I need to add the individual elements of an array from index 10 to index 20
<asteve>
what's the best way to do that in ruby?
<workmad3>
asteve: not quite sure what you mean... any example of what you want as input and expect as output?
estan has joined #ruby
Eldariof-ru has quit [Ping timeout: 246 seconds]
<asteve>
[1, 2, 3, 4, 5], I need to add index 3 + index 4 + index 5
Z_Mass has joined #ruby
<asteve>
result = 12
DrS is now known as SDr
<waxjar>
asteve: array[10..20].reduce :+
<waxjar>
eh, &:+
<workmad3>
^^ (although I prefer using inject, and using &:+ for consistency with map)
wsterling has quit [Remote host closed the connection]
foxiness has joined #ruby
<apeiros>
:+ works fine
<workmad3>
apeiros: does it work with map in 2.0?
<apeiros>
no idea
<apeiros>
I was refering to waxjar
zekefast has joined #ruby
bradhe has joined #ruby
<asteve>
thanks!
<workmad3>
apeiros: fair enough :) answer is 'no' though :(
zommi has quit [Read error: Connection reset by peer]
geekbri_ has quit [Remote host closed the connection]
jduan1981 has quit [Quit: jduan1981]
a_a_g_1 has joined #ruby
jonconley has quit [Quit: Computer has gone to sleep.]
newTech has joined #ruby
<apeiros>
who has a waxjar? o0
<waxjar>
i have several :D
<Hanmac>
waxjar: .reduce :+ is faster than .reduce &:+
<waxjar>
i didnt know it took just a symbol
<Hanmac>
but i prefer :inject
teddyp1cker has quit [Remote host closed the connection]
* apeiros
prefers inject too
a_a_g_0 has quit [Ping timeout: 256 seconds]
<apeiros>
but probably only because I'm too lazy to learn a new name
jonconley has joined #ruby
jonconley has quit [Max SendQ exceeded]
persand has joined #ruby
<waxjar>
when i first read about the concept they called it reduce, i just stuck with that i guess
wgosling has quit [Quit: Konversation terminated!]
mneorr has joined #ruby
persand has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
<workmad3>
Hanmac: apeiros claimed the speed increase before btw... and it turned out to be not true
DouweM has quit [Read error: Connection reset by peer]
sayan has joined #ruby
<Hanmac>
reduce sounds so "reducing" ... and when i use :+ or :* i get "more" so inject sounds better
<Hanmac>
workmad3: yeah? dam i need to read the logs about ... (PS: i still wonder why symbol should be more slower than block ... )
wroathe has joined #ruby
<waxjar>
but.. but.. you make a lot of values into one value, reduce sounds better.
<waxjar>
:p
codecop has quit [Remote host closed the connection]
<workmad3>
yeah, it's a place I'm inconsistent tbh
johnmilton has quit [Remote host closed the connection]
<workmad3>
I prefer map to collect, but tend to use inject over reduce
<workmad3>
so I'm functional with map, but smalltalk-ey with inject
codecop has joined #ruby
<Hanmac>
workmad3: there is select and find_all but they are not the same for all classes
robbyoconnor has quit [Max SendQ exceeded]
r0bby has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
sent_hil has joined #ruby
sideshowcoder has quit [Ping timeout: 256 seconds]
<waxjar>
that's unfortunate :/
aryasam has quit [Read error: Connection reset by peer]
aryasam has joined #ruby
estan has quit [Read error: Connection reset by peer]
sayan has quit [Read error: Connection reset by peer]
<shevy>
what is the difference, functionality-wise, between "extend self", and "module_function" ?
<shevy>
both ways work for that module btw
<shevy>
if I won't use either of these two, however, the method test() won't work
<Hanmac>
module_function copys the method, extend links them
<shevy>
so now I try to have my poor brain understand this all...
<shevy>
hmm
dustint has quit [Quit: Leaving]
<shevy>
can you say that again
<shevy>
:D
<Eiam>
can someone mention how .inject(:+) works and why you don't have to do .inject(&:+)?
cloke has joined #ruby
<Eiam>
i know & converts it to a proc...
<Eiam>
so + is already a proc?
<shevy>
Eiam :+ is a symbol
<Sou|cutter>
extend self will apply to all methods defined there also, not just e(), correct?
<shevy>
I think so Sou|cutter yeah
monkegjinni has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 256 seconds]
codezombie has joined #ruby
<shevy>
I wonder what the difference to module_function for every method is though, compared to do it in a full extend self style
<Spooner>
Eiam, Symbol#to_proc is called, which makes a proc for you.
Bry8Star has joined #ruby
<canton7>
Eiam, #inject is special. it accepts symbols as its argument
<Eiam>
right, but &:downcase is a symbol too..
<Eiam>
:downcase -> to proc
<canton7>
Eiam, when Symbol#to_proc was added, it accepted them too
<canton7>
Eiam, &:downcase is a proc. :downcase is a symbol
chrishough has quit [Quit: chrishough]
philcrissman has quit [Remote host closed the connection]
<Eiam>
okay, so why don't I have to do &:+
<Eiam>
but I do have to do &:downcase
<Sou|cutter>
shevy: I think the fact that extend self applies to all methods is a fairly major difference. I guess it changes the method lookup hierarchy, whereas module_function does not
spalenza has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
I kinda like control though
<shevy>
I suppose I will use module_function from now on
<canton7>
Eiam, because #inject is special. it was written to accept a symbolas its argument
slyv has joined #ruby
tommyvyo has quit [Quit:]
<canton7>
(because it's often used for summing/multiplying arrays, etc)
<Hanmac>
shevy when you overwrite the instance method inside the module, the static method that you copy with module_function is not affected
tealmage has quit [Remote host closed the connection]
<shevy>
hmm
leonidlm has joined #ruby
philcrissman_ has joined #ruby
khismetix has joined #ruby
estan has joined #ruby
wmoxam has quit [Ping timeout: 258 seconds]
jnoob22 has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 248 seconds]
DouweM has quit [Read error: Connection reset by peer]
<shevy>
I think I will need a simpler programming language
<Eiam>
canton7: I see.. I think
<Eiam>
=)
jnoob22 has joined #ruby
ozzloy has quit [Ping timeout: 245 seconds]
akhet has quit [Remote host closed the connection]
<shevy>
but you think I would figure out how to do that?
<shevy>
so my genious plan was to do: module_function :some_method_name in that module
wroathe has quit [Ping timeout: 256 seconds]
johnnyfuchs1 has joined #ruby
daniel_- has quit [Quit: WeeChat 0.4.0]
bean has quit [Quit: Computer has gone to sleep.]
<shevy>
the really sad part is - there are not that many scripting languages, and most of them are rather ugly
ToApolytoXaos has joined #ruby
DouweM has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
f0ster has quit [Read error: Operation timed out]
wsterling has quit [Remote host closed the connection]
johnnyfuchs has quit [Ping timeout: 260 seconds]
cmarques has joined #ruby
havenwood has quit [Remote host closed the connection]
joofsh has joined #ruby
<shevy>
hey
<shevy>
is this here:
<shevy>
@foo = nil
<shevy>
@bar = nil
<shevy>
technically the same as:
<shevy>
@foo = @bar = nil
<shevy>
?
<Fenne>
sure
sambao21 has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
ozzloy has joined #ruby
dp has joined #ruby
<dp>
if I have an array of strings, and I want to create an associative array of word counts, shouldn't words.each do |word| word_map{word}++ end give me that?
<Eiam>
canton7: weird that they'd do that =p
<Eiam>
but I get it
<Eiam>
seems like they should just do the same for map & such
mneorr has quit [Remote host closed the connection]
<neci>
sooo....
ozzloy has quit [Ping timeout: 255 seconds]
joofsh has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
estan has joined #ruby
interactionjaxsn has joined #ruby
xardas has quit [Ping timeout: 260 seconds]
thone has joined #ruby
<neci>
can someone help me about something
DementedInsanity has quit [Read error: Connection reset by peer]
Astralum has quit [Ping timeout: 256 seconds]
neci has quit [Client Quit]
wedgex has joined #ruby
chrishough has quit [Quit: chrishough]
forrest has quit [Quit: Leaving]
asteve has quit [Quit: Computer has gone to sleep.]
splittingred has quit [Quit: splittingred]
thone_ has quit [Ping timeout: 264 seconds]
newTech has quit [Quit: newTech]
interactionjaxsn has quit [Ping timeout: 272 seconds]
breakingthings has quit [Quit: breakingthings]
aryasam has joined #ruby
icole has quit [Remote host closed the connection]
wedgex has quit [Ping timeout: 255 seconds]
theRoUS has quit [Ping timeout: 255 seconds]
ixti has quit [Quit: WeeChat 0.4.0]
johnnyfuchs1 has quit [Remote host closed the connection]
wedgex has joined #ruby
icole has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
blacktulip has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
wsterling has quit [Remote host closed the connection]
wsterling has joined #ruby
platzhirsch has joined #ruby
<platzhirsch>
sidekiq -> is anyone aware of the possibility of registering a method or so for a worker which gets executed after the task has been processed?
Astralum has joined #ruby
hackintoit has joined #ruby
airtonix_ has joined #ruby
elliottc1ble is now known as elliottcable
seich is now known as Seich
johnnyfuchs has joined #ruby
tvw has quit []
Seich is now known as Seichleon
Seichleon is now known as Seich
gaahrdner has quit [Remote host closed the connection]
airtonix has quit [Ping timeout: 256 seconds]
skattyadz has left #ruby [#ruby]
gaahrdner has joined #ruby
hackintoit has quit [Client Quit]
haxrbyte_ has quit [Read error: Connection reset by peer]
_Amaan_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
gaahrdner has quit [Read error: Connection reset by peer]
gaahrdner has joined #ruby
wedgex has quit [Remote host closed the connection]
kpshek has quit []
_Amaan has quit [Ping timeout: 245 seconds]
_Amaan_ is now known as _Amaan
mmitchell has quit [Ping timeout: 258 seconds]
nahiluhmot has quit [Remote host closed the connection]
<MrZYX>
platzhirsch: a specific worker or all workers?
estan has quit [Read error: Connection reset by peer]
robscomputer has quit [Read error: Connection reset by peer]
<platzhirsch>
MrZYX: all workers of the same type. The thing is, I am executing HTTP header requests with these workers and I want to compare the result with a value in the calling code. In the end, all I want is to increment a counter
gaahrdner has quit [Remote host closed the connection]
robscomputer has joined #ruby
freerobby has quit [Quit: Leaving.]
<platzhirsch>
until now I updated database entries inside the worker's perform method, but now I am startled how to solve this
gaahrdner has joined #ruby
niceguyjames has joined #ruby
josedonizetti has quit [Quit: josedonizetti]
wsterling has quit [Remote host closed the connection]
<MrZYX>
oh so you want to call a method in the process calling the perform_async method
<MrZYX>
they are distinct processes
trent1 is now known as trent
Dreamer3 has joined #ruby
<MrZYX>
sidekiq is to dispatch jobs into the background, not to make your application parallel
Seich is now known as seich
<MrZYX>
you have no guarantee over when and in what order jobs are run
carlyle has quit [Remote host closed the connection]
<platzhirsch>
MrZYX: yes, I feared so. Do you have an idea what is more fit to my task?
<MrZYX>
if you want to block your application until you have a value, simply do not make it a sidekiq job
<MrZYX>
or any sort of background operation at all
<platzhirsch>
but I wanted to exploit the concurrent aspect, as it consumes too much time every time it blocks for I/O reasons
gaahrdner has quit [Ping timeout: 255 seconds]
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
<MrZYX>
if you're doing parallel http requests look into typhoeus
estan has joined #ruby
pithagorians has quit [Ping timeout: 255 seconds]
johnnyfuchs has quit [Remote host closed the connection]
<platzhirsch>
MrZYX: nice, just stumbled over this after googling my question
chipotle_ has quit [Quit: cya]
<platzhirsch>
this might be better, since I've been using curb so far, which makes it a lot slower than pure net/http
kil0byte has joined #ruby
ariedler has joined #ruby
Umren has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
kpshek has joined #ruby
gyre007 has quit [Ping timeout: 256 seconds]
aryasam has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
ZachBeta has joined #ruby
monkegjinni has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
ariedler has quit [Remote host closed the connection]
Z_Mass has joined #ruby
<platzhirsch>
it's super fast, rollercoaster
dmiller has quit [Read error: Connection reset by peer]
elaptics is now known as elaptics`away
nhhagen has quit [Remote host closed the connection]
dmiller has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
ozzloy has quit [Ping timeout: 258 seconds]
lessless has quit [Read error: Connection reset by peer]
jtharris has quit [Quit: WeeChat 0.4.0]
Hanmac2 has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
nhhagen has joined #ruby
chrisja has joined #ruby
teclator has joined #ruby
kpshek has quit []
emergion has joined #ruby
m8 has quit [Quit: Sto andando via]
johnnyfuchs has joined #ruby
tommyvyo has quit [Quit:]
unflores has joined #ruby
zigomir has quit [Ping timeout: 258 seconds]
estan has quit [Read error: Connection reset by peer]
khismetix has quit [Quit: Computer has gone to sleep.]
greenarrow has quit [Quit: IRC is just multiplayer notepad.]
greenarrow has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
MrZYX: thanks again for the tip, this is much better :)
<MrZYX>
the right tool is always better than trying to apply the wrong one :P
idkazuma has joined #ruby
nfk has quit [Quit: yawn]
bean has joined #ruby
bean has quit [Max SendQ exceeded]
ipalaus has joined #ruby
jnoob22 has joined #ruby
bean has joined #ruby
<platzhirsch>
MrZYX: Hey! Sidekiq made an excellent hammer for laminating the floor