smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lildirt has joined #ruby
djbkd has quit [Remote host closed the connection]
weaksauce has joined #ruby
arooni has joined #ruby
<razer_>
This is sort of off topic, but I've been thinking of making a ruby world introduction that explains all the concepts of the ruby world without any code. Only after understanding the ruby world would I show people how to write ruby to interact with the ruby world.
duckpuppy has joined #ruby
eljimador has quit [Quit: Leaving]
eljimador has joined #ruby
JesseH has joined #ruby
MrBusiness2 has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
LoneHerm_ has quit [Remote host closed the connection]
MrBusiness3 has quit [Ping timeout: 250 seconds]
TomyLobo has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice_ has joined #ruby
Coldblackice_ has quit [Client Quit]
hahuang65 has joined #ruby
karmatr0n has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has quit [Ping timeout: 240 seconds]
braincras has quit [Quit: bye bye]
hahuang65 has quit [Ping timeout: 240 seconds]
sharkman has quit [Quit: Leaving]
<kraken_>
Hey guys, ruby noob here having a tough time. I have two files that are in the same directory, a board.rb file and a player.rb file, and I'm trying to create a player object within the board file, but I can't. Don't I need to ((( require 'player' ))) at the top of my Board class? I've already done this and I'm getting "cannot load such file --- player"
<kraken_>
Alright I just fixed it with require './player'
<kraken_>
not sure why I needed the './'
longfeet has quit [Read error: Connection reset by peer]
<Radar>
kraken_: because you're referencing it relative to the board file
<Radar>
You can do require_relative 'player'
braincrash has joined #ruby
<Radar>
"./" is shorthand for "this current directory"
<kraken_>
ohhhh
<kraken_>
I though ./ would mean one directory down
daed has quit [Quit: .]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Radar>
no, that's ../
k3rn31 has joined #ruby
<kraken_>
Radar: huh? When I $cd .. it brings me one directory up
<Radar>
that's what I just said.
nando294021 has quit [Ping timeout: 246 seconds]
agit0 has quit [Quit: zzzZZZ….]
<kraken_>
ahh
<Radar>
one directory "back" would be a better word.
N1njturt1e has joined #ruby
maletor3 has joined #ruby
<kraken_>
True that!
maletor3 has quit [Ping timeout: 244 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
Vingador has joined #ruby
r_rios has joined #ruby
<buddhabrot_>
what no, one directory back is 'cd -'
<Radar>
That goes back to the last directory you visited, not one directory "back" from where you are now
Yzguy has joined #ruby
<Radar>
For instance, I'm at ~/Projects/elixir. If I do "cd -" it will take me back to ~ because that's where I was before I got here.
<Radar>
"cd .." will take me back to ~/Projects
olspookishmagus has quit [Ping timeout: 250 seconds]
<buddhabrot_>
is the directory tree oriented horizontal or vertical?
olspookishmagus has joined #ruby
<buddhabrot_>
I always thought of it, like a tree, vertically
<buddhabrot_>
so why back, and not up?
olspookishmagus is now known as Guest69434
djbkd has joined #ruby
CloCkWeRX has joined #ruby
<pilne>
is there a good place to learn about what is going to be coming to ruby 3?
hahuang65 has joined #ruby
<pilne>
and i always saw it as the concept of a directory that is inside another being a "subdirectory" sub is "lower" so you go "up" when you go "back".
jaguarmagenta has joined #ruby
jenrzzz has joined #ruby
duckpuppy has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
Guest70615 has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
jaguarmagenta has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 252 seconds]
nibbo has quit [Ping timeout: 240 seconds]
nemish has quit [Ping timeout: 276 seconds]
arescorpio has quit [Ping timeout: 272 seconds]
gix- has quit [Ping timeout: 244 seconds]
duckpuppy has quit [Ping timeout: 258 seconds]
RushPL has quit [Quit: No Ping reply in 180 seconds.]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
bauruine has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
soahccc has quit [Ping timeout: 260 seconds]
ohcibi has joined #ruby
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
jaguarmagenta has joined #ruby
soahccc has joined #ruby
RushPL has joined #ruby
bauruine has joined #ruby
contradictioned has joined #ruby
gix has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Ping timeout: 258 seconds]
N1njturt1e has quit [Remote host closed the connection]
7GHAA9N4L has joined #ruby
Yiota has quit [Client Quit]
c355e3b has quit [Quit: Connection closed for inactivity]
<Radar>
metateck: the method is called start_with?
<Radar>
On Ruby 2.3, it'll tell you that
<Radar>
NoMethodError: undefined method `starts_with?' for "Ghent":String
<Radar>
Did you mean? start_with?
<metateck>
yes thanks
<metateck>
that was 2 hours well spent
jaguarmagenta has joined #ruby
<metateck>
thanks radar i got it now
CloCkWeRX has quit [Ping timeout: 260 seconds]
flashpoint9 has quit [Ping timeout: 272 seconds]
hahuang65 has quit [Ping timeout: 272 seconds]
arkore has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
<arkore>
hello, how do i configure ruby on windows to use the git i already have installed, so that i dont receive an error "You need Git installed to get started."
<arkore>
or maybe it doesn't matter, but i figured it'd be normal and natural that my git in ruby be the git i already have.
jaguarmagenta has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
d0lph1n98 has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
d0lph1n98 has joined #ruby
hk238 has joined #ruby
<xpt>
arkore: I don't have an access to my windows box today, but I think you just need to set ENV path to point to your git directory
<arkore>
xpt, yeah, thx. im trying it now after adding C:\Users\...\AppData\Local\Programs\Git\bin to PATH
statelesscode has quit [Ping timeout: 244 seconds]
<arkore>
yeah, that fixed it.
jancel has quit [Ping timeout: 276 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jerematic has joined #ruby
dh64 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nando293921 has joined #ruby
jerematic has quit [Ping timeout: 272 seconds]
jaguarmagenta has joined #ruby
jaguarma_ has joined #ruby
maletor3 has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
maletor3 has quit [Ping timeout: 244 seconds]
Sammichmaker has joined #ruby
tatsuo has joined #ruby
<metateck>
i was just cleaning up tabs and this is like the 20th tab im closing that i opened because of my start_with? typo
<metateck>
good night and thanks Radar
<tatsuo>
hello
hahuang65 has joined #ruby
<Radar>
metateck: see ya
tildes_ has joined #ruby
metateck has quit [Quit: Page closed]
bnjf has quit [Ping timeout: 264 seconds]
blackgoat has joined #ruby
phredus has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 244 seconds]
beilabs has joined #ruby
Cohedrin has joined #ruby
pilne has quit [Quit: Quitting!]
duckpuppy has joined #ruby
beilabs_ has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 250 seconds]
bnjf has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
bnjf has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
7GHAA9N4L has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
sneakerhax has quit [Ping timeout: 240 seconds]
bnjf has joined #ruby
karmatr0n has joined #ruby
blockchan has joined #ruby
nando293921 has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
jud has quit [Quit: Leaving]
moeabdol has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
blockchan has quit [Ping timeout: 260 seconds]
allcentury has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
giz|work|2 has joined #ruby
kareeoleez has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
allcentury has quit [Ping timeout: 246 seconds]
pepee has quit [Quit: bye $IRC]
djbkd has joined #ruby
Caerus|Away is now known as Caerus
Vingador has quit [Ping timeout: 260 seconds]
maletor3 has joined #ruby
duncannz has quit [Remote host closed the connection]
Hyuk has joined #ruby
jud has joined #ruby
maletor3 has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Devalo has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
elementaru has joined #ruby
symm- has joined #ruby
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
agit0 has joined #ruby
tildes_ has quit [Ping timeout: 252 seconds]
Gasher has joined #ruby
tildes_ has joined #ruby
blockchan has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
unvexp has quit [Quit: Leaving]
scepticulous has joined #ruby
tildes_ has quit [Ping timeout: 244 seconds]
blockchan has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
TomyLobo has joined #ruby
blockchan has quit [Ping timeout: 240 seconds]
Nawn has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 246 seconds]
maletor3 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LoneHermit has joined #ruby
blockchan has joined #ruby
r_rios has quit [Ping timeout: 244 seconds]
mdw has joined #ruby
pawnbox has quit [Remote host closed the connection]
maletor3 has quit [Ping timeout: 260 seconds]
Tempesta has quit [Quit: See ya!]
allcentury has joined #ruby
LoneHermit has quit [Ping timeout: 260 seconds]
Tempesta has joined #ruby
kareeoleez has joined #ruby
allcentury has quit [Ping timeout: 258 seconds]
domgetter has joined #ruby
pawnbox has joined #ruby
Coldblackice has quit [Ping timeout: 272 seconds]
kareeoleez has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
blockchan has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
phredus has quit [Remote host closed the connection]
duckpuppy has joined #ruby
xcesariox has joined #ruby
CJKinni has joined #ruby
noobsu_ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
duckpuppy has quit [Ping timeout: 272 seconds]
spider-mario has joined #ruby
CJKinni has quit [Ping timeout: 276 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
phredus has joined #ruby
Gasher has quit [Ping timeout: 244 seconds]
N1njturt1e has joined #ruby
dionysus69 has joined #ruby
vjacob has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
N1njturt1e has joined #ruby
Mon_Ouie has joined #ruby
beilabs has joined #ruby
beilabs has quit [Remote host closed the connection]
<jokke>
hey
<jokke>
about celluloid: i have an actor that listens to a topic via subscribe and triggers a callback when it receives a message. This callback is blocking. I need the actor to be able to receive messages asynchronously (so that multiple blocking callbacks can be triggered simultaniously)
N1njturt1e has quit [Remote host closed the connection]
<jokke>
how can i do this?
CJKinni has joined #ruby
<jokke>
hm maybe with a future
tjohnson has quit [Quit: Connection closed for inactivity]
nerium has joined #ruby
hays has quit [Read error: Connection reset by peer]
hays has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
banister has joined #ruby
CJKinni has quit [Ping timeout: 252 seconds]
<shevy>
solve all problems in the future!
maletor3 has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor3 has quit [Ping timeout: 246 seconds]
allcentury has joined #ruby
noobsu_ has quit [Remote host closed the connection]
noobsu has joined #ruby
noobsu has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
allcentury has quit [Ping timeout: 260 seconds]
Hyuk has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
_whitelogger_ has joined #ruby
ohcibi_ has joined #ruby
contradictioned_ has joined #ruby
voker57_ has joined #ruby
kalleth_ has joined #ruby
Madplatypus_ has joined #ruby
Rush_ has joined #ruby
Rush_ is now known as Guest78503
Rush__ has joined #ruby
DefV_ has joined #ruby
[ace]_ has joined #ruby
nano-_ has joined #ruby
queequeg2 has joined #ruby
blackgoat_ has joined #ruby
stevenxl_ has joined #ruby
genpaku_ has joined #ruby
prooftechnique_ has joined #ruby
M-Techni1 has joined #ruby
vqrs_ has joined #ruby
rgs_ has joined #ruby
bauruine has quit [Ping timeout: 260 seconds]
knowtheory has quit [Ping timeout: 260 seconds]
kapowaz has quit [Ping timeout: 260 seconds]
digitalfiz has quit [Ping timeout: 260 seconds]
lipoqil has quit [Ping timeout: 260 seconds]
drPoggs has quit [Ping timeout: 260 seconds]
nemesit|znc has quit [Ping timeout: 260 seconds]
Lord_of_Life has quit [Ping timeout: 260 seconds]
Arcaire has quit [Ping timeout: 260 seconds]
LoganG has quit [Ping timeout: 260 seconds]
soahccc has quit [Ping timeout: 260 seconds]
adgtl has quit [Ping timeout: 260 seconds]
JStoker has quit [Ping timeout: 260 seconds]
dellavg has quit [Ping timeout: 260 seconds]
Madplatypus has quit [Ping timeout: 260 seconds]
chrismytton has quit [Ping timeout: 260 seconds]
moss has quit [Ping timeout: 260 seconds]
Nanuq has quit [Ping timeout: 260 seconds]
SegFaultAX has quit [Ping timeout: 260 seconds]
heyimwill has quit [Ping timeout: 260 seconds]
ohcibi has quit [Ping timeout: 260 seconds]
RushPL has quit [Ping timeout: 260 seconds]
Rush has quit [Ping timeout: 260 seconds]
kalleth has quit [Ping timeout: 260 seconds]
eljimador has quit [Ping timeout: 260 seconds]
lele has quit [Ping timeout: 260 seconds]
zapata has quit [Ping timeout: 260 seconds]
jokke has quit [Ping timeout: 260 seconds]
SuperTux88 has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has quit [Ping timeout: 260 seconds]
tabakhase has quit [Ping timeout: 260 seconds]
monoprotic has quit [Ping timeout: 260 seconds]
edavis has quit [Ping timeout: 260 seconds]
exchgr has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Ping timeout: 260 seconds]
humd1ng3r has quit [Ping timeout: 260 seconds]
bathtub_shark has quit [Ping timeout: 260 seconds]
eggoez has quit [Ping timeout: 260 seconds]
llua has quit [Ping timeout: 260 seconds]
jolamb has quit [Ping timeout: 260 seconds]
shevy has quit [Ping timeout: 260 seconds]
fnux has quit [Ping timeout: 260 seconds]
lstanley has quit [Ping timeout: 260 seconds]
gremax has quit [Ping timeout: 260 seconds]
deavid has quit [Ping timeout: 260 seconds]
ddfreyne_ has quit [Ping timeout: 260 seconds]
contradictioned has quit [Ping timeout: 260 seconds]
Hobbyboy|BNC has quit [Ping timeout: 260 seconds]
irick_ has quit [Ping timeout: 260 seconds]
voker57 has quit [Ping timeout: 260 seconds]
crayfishx has quit [Ping timeout: 260 seconds]
DarkBushido has quit [Ping timeout: 260 seconds]
imajes has quit [Ping timeout: 260 seconds]
razer_ has quit [Ping timeout: 260 seconds]
Rasi has quit [Ping timeout: 260 seconds]
heinrich5991 has quit [Ping timeout: 260 seconds]
illusionmedic has quit [Ping timeout: 260 seconds]
Skelz0r has quit [Ping timeout: 260 seconds]
speakingcode has quit [Ping timeout: 260 seconds]
existensil has quit [Ping timeout: 260 seconds]
rgs has quit [Ping timeout: 260 seconds]
bazzy has quit [Ping timeout: 260 seconds]
prooftechnique has quit [Ping timeout: 260 seconds]
vqrs has quit [Ping timeout: 260 seconds]
M-Technic has quit [Ping timeout: 260 seconds]
epitron has quit [Ping timeout: 260 seconds]
stevenxl has quit [Ping timeout: 260 seconds]
gregf has quit [Ping timeout: 260 seconds]
genpaku has quit [Ping timeout: 260 seconds]
nano- has quit [Ping timeout: 260 seconds]
queequeg1 has quit [Ping timeout: 260 seconds]
TheBrayn has quit [Ping timeout: 260 seconds]
[ace] has quit [Ping timeout: 260 seconds]
Sp4rKy has quit [Ping timeout: 260 seconds]
nisstyre has quit [Ping timeout: 260 seconds]
krasnus has quit [Ping timeout: 260 seconds]
DefV has quit [Ping timeout: 260 seconds]
mrgrieves has quit [Remote host closed the connection]
connor_goodwolf has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
blackgoat has quit [Ping timeout: 260 seconds]
tatsuo has quit [Ping timeout: 260 seconds]
nano-_ is now known as nano-
LoganG_ is now known as LoganG
speaking1ode has joined #ruby
Sp4rKy_ has joined #ruby
tabakhase__ has joined #ruby
genpaku_ is now known as genpaku
humd1ng3r has joined #ruby
mrgrieves has joined #ruby
imajes has joined #ruby
jolamb_ has joined #ruby
eljimador has joined #ruby
bazzy has joined #ruby
DarkBushido has joined #ruby
DarkBushido has quit [Changing host]
DarkBushido has joined #ruby
existensil has joined #ruby
irick has joined #ruby
ELLIOTTCABLE_ has joined #ruby
eggoez has joined #ruby
Lord_of_- has joined #ruby
chrismytton_ is now known as chrismytton
pelegreno_ has joined #ruby
adgtl has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
lele has joined #ruby
Arcaire has joined #ruby
Madplatypus_ is now known as Madplatypus
llua has joined #ruby
hahuang65 has joined #ruby
nisstyre has joined #ruby
SegFaultAX has joined #ruby
heinrich5991 has joined #ruby
Liam` has joined #ruby
nankyokusei has quit [Remote host closed the connection]
Skelz0r has joined #ruby
spudowiar has quit [Ping timeout: 250 seconds]
fnux has joined #ruby
JStoker has joined #ruby
connor_goodwolf has joined #ruby
ICantCook has quit [Quit: bye]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exchgr has joined #ruby
yasu___ has joined #ruby
agentmeerkat has quit [Ping timeout: 260 seconds]
pelegreno has quit [Ping timeout: 260 seconds]
danieli_ has quit [Ping timeout: 260 seconds]
yasu__ has quit [Ping timeout: 260 seconds]
mrgrieves has quit [Remote host closed the connection]
epitron has joined #ruby
epitron has quit [Changing host]
epitron has joined #ruby
Nanuq has joined #ruby
mrgrieves has joined #ruby
gregf has joined #ruby
danieli has joined #ruby
shevy has joined #ruby
cajone has joined #ruby
kapowaz has joined #ruby
Rasi has joined #ruby
digitalfiz has joined #ruby
lipoqil has joined #ruby
blaxter has joined #ruby
jokke has joined #ruby
ddfreyne_ has joined #ruby
zapata has joined #ruby
knowtheory has joined #ruby
moss has joined #ruby
illusionmedic has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
vjacob has quit [Ping timeout: 260 seconds]
dellavg has joined #ruby
CloCkWeRX has joined #ruby
ICantCook has joined #ruby
nerium has joined #ruby
nerium has quit [Client Quit]
spudowiar has joined #ruby
gremax has joined #ruby
banister has joined #ruby
crayfishx has joined #ruby
araujo has joined #ruby
ohcibi_ has quit [Remote host closed the connection]
Azure|dc has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
Azure has quit [Ping timeout: 276 seconds]
toretore has joined #ruby
TheBrayn has joined #ruby
jerematic has joined #ruby
davedev24 has joined #ruby
ohcibi has joined #ruby
sepp2k has joined #ruby
CJKinni has joined #ruby
jerematic has quit [Ping timeout: 246 seconds]
Azure|dc has quit [Remote host closed the connection]
danieli has quit [Changing host]
danieli has joined #ruby
maletor3 has joined #ruby
CJKinni has quit [Ping timeout: 250 seconds]
maletor3 has quit [Ping timeout: 260 seconds]
CloCkWeRX has left #ruby [#ruby]
c355e3b has joined #ruby
crdpink2 has joined #ruby
hahuang65 has joined #ruby
crdpink has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
marr has quit [Ping timeout: 258 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heyimwill has joined #ruby
nemesit|znc has joined #ruby
symm- has quit [Quit: Leaving...]
drPoggs has joined #ruby
kareeoleez has joined #ruby
allcentury has joined #ruby
soahccc has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
Hobbyboy|BNC has joined #ruby
bauruine has joined #ruby
hahuang65 has quit [Ping timeout: 260 seconds]
SuperTux88 has joined #ruby
<jokke>
how can i perform a blocking gets on a fifo?
kareeoleez has quit [Ping timeout: 264 seconds]
<jhass>
it is blocking?
Hyuk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gheegh has joined #ruby
duckpuppy has joined #ruby
d0lph1n98 has joined #ruby
arif__ has joined #ruby
<jokke>
jhass: no
<jhass>
stdlib gets is
<jhass>
perhaps yours is overriden
<arif__>
how would i go about replacing multiple characters in a string using .tr?
<arif__>
for instance, i want to replace all "a" and "b" from a string with a hyphen
Es0teric has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 264 seconds]
d0lph1n98 has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
ponga has joined #ruby
symm- has joined #ruby
zapata has quit [Ping timeout: 260 seconds]
shevy has quit [Ping timeout: 260 seconds]
Nanuq has quit [Ping timeout: 260 seconds]
xcesariox has quit [Client Quit]
shevy has joined #ruby
Nanuq has joined #ruby
zapata has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
Hyuk has joined #ruby
charliesome has joined #ruby
karmatr0n has joined #ruby
davedev24 has quit [Remote host closed the connection]
hahuang65 has joined #ruby
d0lph1n98 has joined #ruby
Mon_Ouie has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
helpa has quit [Remote host closed the connection]
helpa-bot has joined #ruby
helpa-bot has quit [Changing host]
helpa-bot has joined #ruby
lupine has quit [Ping timeout: 260 seconds]
arif__ has joined #ruby
moredhel has quit [Excess Flood]
moredhel has joined #ruby
solocshaw has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
<arif__>
how can i selectively delete occurrences of a particular word from a string?
<arif__>
for example
<arif__>
str = "the quick the brown the fox jumped over the lazy dog"
<arif__>
here, i'd like to do two things
<arif__>
1. delete only the third "the"
<arif__>
2. delete every third "the"
CJKinni has joined #ruby
ensyde has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
<arif__>
anyone?
maletor3 has joined #ruby
CJKinni has quit [Ping timeout: 240 seconds]
lupine has joined #ruby
nofxx has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maletor3 has quit [Ping timeout: 264 seconds]
agit0 has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
c0mrad3 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
arif__: maybe there's an easier pattern in your real values
millerti has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
watersoul has quit [Remote host closed the connection]
<arif__>
jhass: this is just an example sentence
<arif__>
jhass: what i want to know is if i can delete nth character from a string
<arif__>
jhass: is there a way to do that?
<jhass>
?xy
<jhass>
is my point
* jhass
slaps ruby[bot]
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
<arif__>
well then :/
<apeiros>
arif__: yes you can, no there's no built-in method to do it without any additional effort
<apeiros>
easiest would probably be to use gsub with a block
CJKinni has joined #ruby
<apeiros>
but I concur with jhass - this smells of xy
bathtub_shark has joined #ruby
<domgetter>
arif__ so you'd want "a the b the c the d the e the f the g the h the i the j the k" to become "a the b the c d the e the f g the h the i j the k" ?
watersoul has joined #ruby
Caerus is now known as Caerus|Away
<arif__>
sorry guys, i'm new to this and i had no idea what xy was prior to this day
<arif__>
domgetter: yes that's exactly what i'm trying to do
Vingador has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
aryaching has joined #ruby
duckpuppy has joined #ruby
m_antis has joined #ruby
mdw_ has joined #ruby
chipotle has quit [Quit: cheerio]
m_antis has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
arif__ has quit [Ping timeout: 250 seconds]
miqlas-H has joined #ruby
lxsameer has joined #ruby
lupine has quit [Ping timeout: 260 seconds]
haraigo has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
crystal77 has joined #ruby
nankyokusei has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
haraigo has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
araujo_ has joined #ruby
hahuang65 has joined #ruby
beilabs has joined #ruby
araujo_ has quit [Max SendQ exceeded]
JJM has joined #ruby
araujo_ has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat_ has quit [Quit: WeeChat 1.5]
araujo has quit [Ping timeout: 244 seconds]
thejamespinto has joined #ruby
davedev24 has joined #ruby
<shevy>
my head aches after domgetter's statement
LoneHermit has joined #ruby
araujo_ has quit [Max SendQ exceeded]
Pumukel has joined #ruby
<shevy>
what is with those "ask-a-question-then-insta-quit" :)
<domgetter>
I was gonna help them, but they ran off...
araujo_ has joined #ruby
CJKinni has quit [Ping timeout: 246 seconds]
beilabs has quit [Ping timeout: 246 seconds]
araujo_ has quit [Max SendQ exceeded]
araujo_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
nankyokusei has joined #ruby
tudor123 has joined #ruby
araujo_ has quit [Max SendQ exceeded]
nankyokusei has quit [Read error: Connection reset by peer]
<tudor123>
Hello, I have a question. How can I check the proxy type if it is http/s or socks4/5 with net/http ?
nankyokusei has joined #ruby
LoneHermit has quit [Ping timeout: 250 seconds]
valkyr1e has quit [Quit: Bye.]
araujo_ has joined #ruby
weemsledeux has joined #ruby
allcentury has joined #ruby
araujo_ has quit [Max SendQ exceeded]
valkyr1e has joined #ruby
vjacob has joined #ruby
araujo_ has joined #ruby
araujo_ has quit [Max SendQ exceeded]
tudor123 is now known as l1meon
hahuang65 has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
hahuang65 has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
qasaur has joined #ruby
araujo_ has quit [Max SendQ exceeded]
<jhass>
does net/http even support a socks proxy? I don't think so
<kspencer>
ok i'm trying to loop through a hash and check each keys value, with each value if the value is 1 then i want to change the value to true, anything else, make it false, but i seem to be drawing a blank
haxrbyte has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
haxrbyte has joined #ruby
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
<jhass>
hash.each do |k, v| hash[k] = true if v == 1 end
<Soraroxasxion>
Having trouble with one of my scripts :/ need to get the error to pop up again really quickly to make sure it isn't a one off thing.
<jhass>
arkore: shevy please just !ops on such stuff, thanks ;)
allcentury has quit [Ping timeout: 276 seconds]
maletor3 has quit [Ping timeout: 260 seconds]
<Soraroxasxion>
How do I open the debug console?
hahuang65 has quit [Ping timeout: 246 seconds]
<jhass>
?pry
<ruby[bot]>
Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
zotherstupidguy has joined #ruby
noodle has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Remote host closed the connection]
arlek has joined #ruby
zotherstupidguy has quit [Ping timeout: 258 seconds]
zotherstupidguy has joined #ruby
Alazoral has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
That's not any standard Ruby error message
moeabdol has joined #ruby
mdw has joined #ruby
<Soraroxasxion>
It's a script for rpg maker vx ace, the original author has not been online for, a couple years, they had made a pack where you just move the scripts and resources to a new script, would it be better to seek help elsewhere, If so, sorry for bothering you.
Ranoppinsky has joined #ruby
<jhass>
no worries
<Soraroxasxion>
Would it be better to seek help elsewhere?
<jhass>
doesn't look like freenode has a specific channel
<ruby[bot]>
nexace: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
pilne has joined #ruby
<nexace>
sorry
the_drow has quit [Read error: Connection reset by peer]
<jhass>
nexace: install ruby-dev or ruby-devel, whatever it is on your distro
<nexace>
k thanks
<nexace>
worked
<nexace>
jhass: thanks a lot
UserInNeed has quit [Quit: Goodbye suckas]
<lalalaaa>
jhass: I thought it looked innocent ;)
nanoz has quit [Read error: Connection reset by peer]
Rodya__ has joined #ruby
Xentil has quit [Ping timeout: 252 seconds]
bollullera has joined #ruby
bollullera has left #ruby [#ruby]
Rodya__ has quit [Remote host closed the connection]
Vingador has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 258 seconds]
Rodya__ has joined #ruby
<mc_fail>
anyone?
duckpuppy has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
<nofxx>
mc_fail, LOG = your log, you knowyou can use syslog? very cool
<nofxx>
and just use LOG everywhere... LOG.info, LOG.warn...
<mc_fail>
nofxx the question was about changing log level
N1njturt1e has quit [Remote host closed the connection]
<nofxx>
mc_fail, it's a cli app? Use env vars
<mc_fail>
i have class1, in which i can change log level to 'debug' for example, but if i create instance of class2 inside class1, in class2 log level resets back to default