havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<csguest> ROFL
<csguest> cars and cooders can begone
<norc> csguest: Since you seem to be going back in time already, here is something for your career: http://www.theregister.co.uk/2015/10/31/brush_up_on_your_fortran/
<adaedra> mh, there could be a way to have a "-" in a Ruby variable, but that wouldn't be usable.
Kyuujitsu has joined #ruby
<norc> Didn't we use to have $- ?
<csguest> im so bad at recursion dude all those assignments were water torture
vdamewood has quit [Max SendQ exceeded]
<csguest> then whats the point
<csguest> like a define?
<csguest> #define dope-number 1337
<adaedra> But why would we use that, since we can have a variable named
<csguest> according to that no
vdamewood has joined #ruby
The_Phoenix1 has quit [Max SendQ exceeded]
<norc> adaedra: Thanks to Japan. :-)
bhorn1 has quit [Ping timeout: 244 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Changing host]
The_Phoenix has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
goodcodeguy has joined #ruby
<adaedra> what's the point of what?
ruid has quit [Ping timeout: 315 seconds]
Xiti has joined #ruby
stannard has quit [Remote host closed the connection]
bhorn1|away has joined #ruby
bhorn1|away is now known as bhorn1
karapety_ has quit [Remote host closed the connection]
JazzyVariable227 has joined #ruby
bkxd has joined #ruby
mattwildig has quit [Remote host closed the connection]
grill has quit [Excess Flood]
kirun has quit [Quit: Client exiting]
karapetyan has joined #ruby
DurstBurger has joined #ruby
Luna_Moonfang has quit [Quit: WeeChat 1.3]
csguest has quit [Quit: Leaving]
InvGhosttt has quit [Ping timeout: 264 seconds]
Luna_Moonfang has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
BrunoSaboia has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
BrunoSaboia has joined #ruby
Luna_Moonfang has quit [Client Quit]
Luna_Moonfang has joined #ruby
InvGhosttt has joined #ruby
karapetyan has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
skweek has joined #ruby
akem2 has quit [Ping timeout: 251 seconds]
tulak has quit [Ping timeout: 240 seconds]
vdamewood has quit [Read error: Connection reset by peer]
akem has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
Luna_Moonfang has quit [Client Quit]
dlitvak has joined #ruby
Luna_Moonfang has joined #ruby
blueOxigen has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
freerobby has joined #ruby
pawnbox has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
mmitchel_ has joined #ruby
axsuul has joined #ruby
grotewold has joined #ruby
bluOxigen has joined #ruby
user083 has quit [Quit: leaving]
solocshaw has joined #ruby
user083 has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
blueOxigen has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
freerobby has quit [Client Quit]
saddad has joined #ruby
freerobby has joined #ruby
yfeldblum has joined #ruby
user1138 has quit [Ping timeout: 246 seconds]
amclain_ has quit [Read error: Connection reset by peer]
it_tard has quit [Quit: yawn]
amclain_ has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
sanjayu has quit [Ping timeout: 246 seconds]
BSaboia has joined #ruby
TheBloke has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
JazzyVariable227 has joined #ruby
diegoaguilar_ has joined #ruby
BrunoSaboia has quit [Ping timeout: 240 seconds]
dimasg has quit [Ping timeout: 240 seconds]
diegoaguilar has quit [Ping timeout: 246 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lurch_ has quit [Quit: lurch_]
tubuliferous_ has quit [Ping timeout: 246 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
JazzyVariable227 has quit [Ping timeout: 240 seconds]
ytti has joined #ruby
tubuliferous_ has joined #ruby
norc has quit [Ping timeout: 246 seconds]
fedexo has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
mary5030 has joined #ruby
toretore has quit [Ping timeout: 246 seconds]
marr has quit [Ping timeout: 240 seconds]
SalviaNobile has quit [Ping timeout: 264 seconds]
moei has joined #ruby
pawnbox has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
adaedra has quit [Quit: Textual IRC Client: www.textualapp.com]
nso95- has joined #ruby
fp- has joined #ruby
User458764 has joined #ruby
Asher has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 246 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 240 seconds]
Kyuujitsu has quit [Quit: leaving]
tubuliferous_ has quit [Ping timeout: 240 seconds]
yoongkang has joined #ruby
asas has quit [Ping timeout: 264 seconds]
arescorpio has quit [Ping timeout: 264 seconds]
stannard has joined #ruby
mattwildig has joined #ruby
nso95- has quit [Ping timeout: 260 seconds]
yoongkang has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 1.3]
baweaver has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
rigsby has quit [Ping timeout: 264 seconds]
stannard has quit [Ping timeout: 260 seconds]
tubuliferous_ has joined #ruby
maloik has joined #ruby
careta has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<careta> hey
jhn has joined #ruby
<careta> I have an array of arrays [[1,2],[1,2,3],[1],[1,2],[1,2,3,4,5],[1],[1,2]] and I want to get all possible combinations
<careta> any clever tricks?
Rodya_ has joined #ruby
rigsby has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Radar> careta: >> [[1,2],[1,2,3],[1],[1,2],[1,2,3,4,5],[1],[1,2]].permutation.to_a
freerobby has joined #ruby
Azure has joined #ruby
user1138 has joined #ruby
maloik has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
peterhil has joined #ruby
<careta> Radar when I print that I only gives me the individual numbers
dlitvak has joined #ruby
<careta> letters in this case
<Radar> careta: "print"?
Gnut has quit [Ping timeout: 264 seconds]
<careta> what I mean is if I do this:
<Radar> careta: code plz
<careta> for i in char_array
<careta> puts "char " << i.to_s
<careta> end
<careta> char ["2", "4"]
<careta> char ["4", "5"]
<careta> that's the printout
<careta> but when I puts char_array, before or after your permutation, it just prints each char in a newline
<Radar> careta: Full code so that I can try to reproduce what you're seeing please.
<xybre> gist.github.com
dlitvak has quit [Ping timeout: 246 seconds]
teclator has quit [Ping timeout: 272 seconds]
<Radar> I don't understand.
<Radar> Where is .permutation in this example?
<Radar> What is happening, and what are you expecting to see?
neo_ has joined #ruby
gizmore has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
mary5030 has quit [Remote host closed the connection]
<careta> what I want to do is to have every possible combination of every element of the array in place. I want a string like 24e51b8, which is the combination of all the first elements of each sub array.
Rodya_ has joined #ruby
<careta> The next number should be 25e51b8, which is the same first elements of each array, except now I'm on the second choice of the second sub-array
htmldrum has joined #ruby
<Radar> ?xy
<ruboto> 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
<Radar> I'd like to know why you want to do this.
mary5030 has joined #ruby
bruce_lee has quit [Ping timeout: 264 seconds]
nso95- has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 260 seconds]
<careta> Radar, ok sure. I have a list of hex numbers with 7 "digits". For each position of the 7 digit long number I have calculated what are the possible values. Now I want to build a list of all the possible hex values of this 7 digit long number
mattwildig has quit []
<careta> so in the gist I gave you, the first sub array contains the possible hex digit values for the first character of a 7 digit long hex number
<careta> the 2nd for the 2nd digit, etc
<Radar> Oh I see.
<Radar> I don't know of a magical way to do that. I'd need to tinker for a bit.
moei has quit [Quit: Leaving...]
maloik has joined #ruby
<careta> I've been busting my head for a couple of hours, but then again I haven't programmed any serious algorithm for a while
<careta> so I'm stuck
Azure has quit [Ping timeout: 260 seconds]
moei has joined #ruby
Azure has joined #ruby
<careta> I thought maybe recursion is best in a case like this
maloik has quit [Ping timeout: 260 seconds]
krobzaur has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
<krobzaur> Just starting writing my first program in Ruby, I am very pleased
BlackCoyote has quit [Remote host closed the connection]
dimasg has joined #ruby
nso95- has quit [Ping timeout: 240 seconds]
<Radar> careta: yeah, I don't know how to do that. Sorry.
goodcodeguy has joined #ruby
InvGhosttt has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 240 seconds]
<krobzaur> However I do have a question. I have an array of hashes. I want to get every hash in the array that has a specific key:value pair. What is the best way to do that?
dascodeman has joined #ruby
dascodeman has quit [Max SendQ exceeded]
maloik has joined #ruby
dlitvak has joined #ruby
<Radar> krobzaur: .select
<krobzaur> Radar: thanks
Rodya_ has quit [Remote host closed the connection]
nickron has joined #ruby
Rodya_ has joined #ruby
nso95- has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
RobertBirnie has quit [Ping timeout: 264 seconds]
dlitvak has quit [Ping timeout: 260 seconds]
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
nickron has quit [Quit: leaving]
dascodeman has joined #ruby
Rodya_ has quit [Remote host closed the connection]
dascodeman has quit [Max SendQ exceeded]
nickron has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
dascodeman has joined #ruby
Rodya_ has joined #ruby
symm- has quit [Quit: Leaving...]
ElSif has joined #ruby
<shevy> if I have a string like "abc123", is there a trivial way to only keep the numbers? as in to return either 123 or "123"?
weemsledeux has joined #ruby
<shevy> found it
<shevy> "abc123".gsub(/\D/, '')
shinnya has quit [Ping timeout: 240 seconds]
yoongkang has joined #ruby
amclain_ has quit [Quit: Leaving]
amincd has joined #ruby
<amincd> hi! how do I use =~ to return the position of a regex pattern in a str?
<amincd> 200 bits to the first person who answers
<amincd> joking, that's only worth like 6 cents
scripore has quit [Quit: This computer has gone to sleep]
maloik has joined #ruby
yoongkang has quit [Ping timeout: 240 seconds]
<mozzarella> why not use index?
<Radar> amincd: example string and regex?
WatUpMyKnitta has joined #ruby
<amincd> ok I figured it out
<amincd> position_var = str_var =~ regex_pattern
nickron has quit [Quit: leaving]
<amincd> and the str_var and regex_pattern are interchangeable
tvw has quit [Ping timeout: 264 seconds]
<amincd> in terms of order
SCHAAP137 has quit [Quit: Leaving]
RobertBirnie has quit [Ping timeout: 240 seconds]
maloik has quit [Ping timeout: 260 seconds]
<jhass> shevy: "abc123[/\d+/]
RobertBirnie has joined #ruby
<jhass> er plus missing "
yfeldblum has joined #ruby
tulak has joined #ruby
saddad has quit [Ping timeout: 246 seconds]
tulak has quit [Ping timeout: 260 seconds]
calderonroberto has quit [Ping timeout: 246 seconds]
maloik has joined #ruby
pawnbox has joined #ruby
<blubjr> careta: did you get it working ? http://pastie.org/10585119 does what you want i think but its very ugly, im sure im missing something
dascodeman has quit [Quit: Textual IRC Client: www.textualapp.com]
<blubjr> its a fun problem
ss_much has quit [Quit: Connection closed for inactivity]
Scriptonaut has joined #ruby
<Scriptonaut> does anyone know of a good tutorial for using ncurses with ruby?
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
dascodeman has joined #ruby
maloik has quit [Ping timeout: 240 seconds]
<agent_white> Scriptonaut: I just found a "ncurses tutorial" and followed that. It's pretty much the same since the ncurses libs in ruby are just wrappers.
<Scriptonaut> awesome, would you mind linking?
<Scriptonaut> the problem is, I don't have much experience with curses in general
pawnbox has quit [Ping timeout: 246 seconds]
<agent_white> Scriptonaut: Oh I just used http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
<Scriptonaut> thanks agent_white
dlitvak has quit [Ping timeout: 246 seconds]
dascodeman has quit [Ping timeout: 240 seconds]
rigsby has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Ping timeout: 260 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
wildlander has quit [Quit: Saliendo]
<blubjr> careta: http://pastie.org/10585128 final answer
JazzyVariable227 has joined #ruby
maloik has joined #ruby
xcesariox has joined #ruby
nso95- has quit [Remote host closed the connection]
JazzyVariable227 has quit [Ping timeout: 240 seconds]
nso95- has joined #ruby
baweaver has quit [Remote host closed the connection]
<amincd> how does [obj].count work in Ruby?
maloik has quit [Ping timeout: 260 seconds]
N|GGERFRYDAY has joined #ruby
<N|GGERFRYDAY> WHITE POWER
RobertBirnie has joined #ruby
<N|GGERFRYDAY> THE GOD DAMNED NIGGERS ALWAYS FUCK UP EVERY BLACK FRIDAY
<demophoon> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
<N|GGERFRYDAY> STUPID MONKEYS
<N|GGERFRYDAY> WHITE POWER
<N|GGERFRYDAY> 0/
<N|GGERFRYDAY> I HATE NIGGERS
<havenwood> !mute N|GGERFRYDAY
<demophoon> ty
rigsby has joined #ruby
<blubjr> amincd: what are you confused about
<amincd> blubjr: how it works
<blubjr> amincd: what result does it get that you don't understand how its getting, do you have a concrete example
<amincd> blubjr: it seem to do different things when used in different contexts
<amincd> *seems
<shevy> jhass cool that is even shorter
myztic has quit [Ping timeout: 246 seconds]
<Radar> amincd: code plz
<Radar> bbl
pawnbox has joined #ruby
<amincd> Radar: I'll look it over again, try to figure it out
rigsby has quit [Ping timeout: 240 seconds]
jhn has joined #ruby
rigsby has joined #ruby
bkxd has joined #ruby
<blubjr> hm how do you tell if an optional parameter was supplied
nso95- has quit [Remote host closed the connection]
brt has quit [Ping timeout: 246 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
maloik has joined #ruby
<shevy> I think this information is stored somewhere
nso95- has joined #ruby
<shevy> I don't remember how or where though :-)
SlaytanicOne has joined #ruby
WatUpMyKnitta has quit [Ping timeout: 246 seconds]
<jhass> blubjr: why do you have to tell? Why is the default value you picked not good enough?
nso95- has quit [Remote host closed the connection]
ledestin has joined #ruby
maloik has quit [Ping timeout: 240 seconds]
<blubjr> jhass: well i was thinking how you would write Array#count
<jhass> blubjr: which part? whether a block was given nor not?
yoongkang has joined #ruby
nso95- has joined #ruby
<blubjr> jhass: whether the regular argument was given or not
<jhass> blubjr: mh, don't think you can reliably in Ruby land for this case
<jhass> except taking a splat and raising ArgumentError when more than one was passed I guess
xxneolithicxx has quit [Ping timeout: 240 seconds]
<blubjr> thats disappointing
stannard has joined #ruby
yoongkang has quit [Ping timeout: 260 seconds]
nso95- has quit [Ping timeout: 240 seconds]
stannard has quit [Ping timeout: 246 seconds]
yqt has quit [Ping timeout: 260 seconds]
N|GGERFRYDAY has quit [Ping timeout: 246 seconds]
fedexo has quit [Read error: Connection reset by peer]
JazzyVariable227 has joined #ruby
agent_white has quit [Ping timeout: 240 seconds]
VeryBewitching has quit [Quit: Konversation terminated!]
agent_white has joined #ruby
asas has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
maloik has joined #ruby
peteyg_ has quit [Read error: Connection reset by peer]
peteyg has joined #ruby
agent_white has joined #ruby
yfeldblum has joined #ruby
pawnbox has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
Rollabunna has left #ruby ["Leaving..."]
peteyg has quit [Ping timeout: 240 seconds]
peteyg has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
grill has joined #ruby
xxneolithicxx has joined #ruby
fp- has quit [Read error: Connection reset by peer]
fp- has joined #ruby
SlaytanicOne has quit [Quit: ThrashIRC v2.9 sic populo comunicated]
BlackCoyote has joined #ruby
allcentury has joined #ruby
SlaytanicOne has joined #ruby
dlitvak has joined #ruby
BlackCoyote has quit [Remote host closed the connection]
gambl0re has joined #ruby
SlaytanicOne has left #ruby [#ruby]
maloik has joined #ruby
The_Phoenix has quit [Ping timeout: 240 seconds]
ss_much has joined #ruby
maloik has quit [Ping timeout: 240 seconds]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
loincloth has quit [Read error: Connection reset by peer]
TheBloke has joined #ruby
loincloth has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
BrunoSaboia has joined #ruby
axsuul has quit [Ping timeout: 246 seconds]
cyb3rspy has quit [Ping timeout: 246 seconds]
BSaboia has quit [Ping timeout: 260 seconds]
saddad has joined #ruby
baweaver has joined #ruby
JazzyVariable227 has quit [Remote host closed the connection]
pawnbox has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
elton has joined #ruby
allcentury has quit [Ping timeout: 260 seconds]
maloik has joined #ruby
dimasg has joined #ruby
elton has quit [Client Quit]
pawnbox has quit [Ping timeout: 246 seconds]
rigsby has quit [Ping timeout: 240 seconds]
johnny56_ is now known as johnny56
rigsby has joined #ruby
axsuul has joined #ruby
careta has quit [Ping timeout: 240 seconds]
maloik has quit [Ping timeout: 240 seconds]
colegatron has quit [Ping timeout: 240 seconds]
agent_white has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 240 seconds]
maloik has joined #ruby
agent_white has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
cmoneylulz has joined #ruby
maloik has quit [Ping timeout: 246 seconds]
braincrash has quit [Quit: bye bye]
grill has joined #ruby
<DurstBurger> exit
peteyg has quit [Read error: Connection reset by peer]
DurstBurger has quit [Quit: leaving]
braincrash has joined #ruby
<agent_white> EXIT!!!
centrx has joined #ruby
colegatron has joined #ruby
asccigcc has joined #ruby
shinnya has joined #ruby
peteyg has joined #ruby
amincd has quit [Quit: Page closed]
maloik has joined #ruby
rehat has joined #ruby
tulak has joined #ruby
<asccigcc> hello
asccigcc has quit [Quit: The computer fell asleep]
<blubjr> hi asccigcc
<blubjr> oh
maloik has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 246 seconds]
mattarse has quit [Ping timeout: 264 seconds]
maloik has joined #ruby
rigsby has quit [Quit: Leaving]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
maloik has quit [Ping timeout: 240 seconds]
Oog has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
cmoneylulz has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
krobzaur has quit [Ping timeout: 264 seconds]
malconis has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
dlitvak has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 240 seconds]
diegoaguilar_ has quit [Remote host closed the connection]
solocshaw has joined #ruby
gix has quit [Ping timeout: 260 seconds]
dimasg has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has quit [Remote host closed the connection]
agent_white has joined #ruby
gix has joined #ruby
gambl0re has quit []
axsuul has quit [Ping timeout: 240 seconds]
bnizzle has quit [Read error: Connection reset by peer]
darkf has joined #ruby
ramortegui has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/]
peterhil has quit [Ping timeout: 260 seconds]
pdoherty has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dmcp_ has joined #ruby
dmcp_ has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
pawnbox has joined #ruby
peterhil has joined #ruby
pawnbox has quit [Ping timeout: 246 seconds]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
Rickmasta has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
diegoaguilar has quit [Max SendQ exceeded]
diegoaguilar has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ruby
arup_r has joined #ruby
blubjr` has joined #ruby
abbe_ has joined #ruby
bkxd has joined #ruby
Rodya_ has joined #ruby
jmhmccr_ has joined #ruby
revengeofbigd_ has joined #ruby
ohaibbq_ has joined #ruby
davedev24 has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
th0m_ has joined #ruby
Nightmare is now known as HaythamKenway
trosborn has joined #ruby
amoeba has quit [Ping timeout: 265 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
ramortegui has quit [Ping timeout: 265 seconds]
Coraline has quit [Ping timeout: 265 seconds]
marsjaninzmarsa has quit [Ping timeout: 265 seconds]
Kharma has quit [Ping timeout: 265 seconds]
trosborn has quit [Client Quit]
ajafo has joined #ruby
vifino has quit [Ping timeout: 246 seconds]
ajafo has quit [Ping timeout: 246 seconds]
marsjaninzmarsa has joined #ruby
vifino has joined #ruby
johnny56 has quit [Ping timeout: 265 seconds]
atomical has quit [Ping timeout: 265 seconds]
rvchangue_ has joined #ruby
kadoppe_ has joined #ruby
FastJack_ has joined #ruby
revengeofbigd has quit [*.net *.split]
rvchangue has quit [*.net *.split]
rehat has quit [*.net *.split]
blubjr has quit [*.net *.split]
weaksauce has quit [*.net *.split]
existensil has quit [*.net *.split]
ohaibbq has quit [*.net *.split]
joast has quit [*.net *.split]
BTRE has quit [*.net *.split]
kadoppe has quit [*.net *.split]
psy_ has quit [*.net *.split]
zotherst1 has quit [*.net *.split]
davedev2_ has quit [*.net *.split]
gregf__ has quit [*.net *.split]
snapcase has quit [*.net *.split]
jmhmccr has quit [*.net *.split]
abbe has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
Blaguvest has quit [*.net *.split]
ricer2 has quit [*.net *.split]
FastJack has quit [*.net *.split]
rvchangue_ is now known as rvchangue
jmhmccr_ is now known as jmhmccr
zack6849 has quit [*.net *.split]
nirix has quit [*.net *.split]
aredridel has quit [*.net *.split]
closer has quit [*.net *.split]
cibs has quit [*.net *.split]
eshy has quit [*.net *.split]
voxxit has quit [*.net *.split]
timmow has quit [*.net *.split]
fulgore_ has quit [*.net *.split]
nfsnobody has quit [*.net *.split]
bhorn1 has quit [*.net *.split]
allomov has quit [*.net *.split]
pestle has quit [*.net *.split]
bodie_ has quit [*.net *.split]
jayne has quit [*.net *.split]
irk has quit [*.net *.split]
brainslug has quit [*.net *.split]
sshuff|gone has quit [*.net *.split]
csmb has quit [*.net *.split]
allomov_ has joined #ruby
gregf_ has joined #ruby
nertzy has joined #ruby
peterhil_ has joined #ruby
RandyT_ has joined #ruby
BSab has joined #ruby
matled- has joined #ruby
allomov has joined #ruby
klaas_ has joined #ruby
wldcordeiro has joined #ruby
patronus_ has joined #ruby
user1138_ has joined #ruby
BTRE has joined #ruby
zotherst1 has joined #ruby
yaewa has joined #ruby
psy_ has joined #ruby
MiracleBlue_ has joined #ruby
pmarreck_ has joined #ruby
djbender_ has joined #ruby
charles81_ has joined #ruby
artmann_ has joined #ruby
Killerkeksdose_ has joined #ruby
cardoni_ has joined #ruby
rfv_ has joined #ruby
eboaz has joined #ruby
manveru_ has joined #ruby
zeljkof_ has joined #ruby
abra0_ has joined #ruby
troter______ has joined #ruby
ir2ivps3__ has joined #ruby
bestie_ has joined #ruby
dukedave_ has joined #ruby
voker57_ has joined #ruby
TheBloke_ has joined #ruby
jevs_ has joined #ruby
wnd_ has joined #ruby
existensil has joined #ruby
pipecloud has joined #ruby
mic_e_ has joined #ruby
devyn_ has joined #ruby
Ray`_ has joined #ruby
Pro|_ has joined #ruby
Azure|dc has joined #ruby
cfloare_ has joined #ruby
matti_ has joined #ruby
Rickmast_ has joined #ruby
sts__ has joined #ruby
tommylom1ykins has joined #ruby
gregf__ has joined #ruby
ekleog_ has joined #ruby
adamholt_ has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
new_student has quit [Ping timeout: 246 seconds]
Bish_ has joined #ruby
Qantouri1c has joined #ruby
x0f_ has joined #ruby
bihi_ has joined #ruby
havenn has joined #ruby
havenn has joined #ruby
Nilium_ has joined #ruby
nizmow- has joined #ruby
linc01n_ has joined #ruby
pjaspers_ has joined #ruby
edwardly_ has joined #ruby
Armand has joined #ruby
edwardly_ has quit [Changing host]
edwardly_ has joined #ruby
b3nt_pin has joined #ruby
shum has joined #ruby
g3funk has joined #ruby
xMopxShe- has joined #ruby
samuelkadolph_ has joined #ruby
rvchangue_ has joined #ruby
varesa- has joined #ruby
chridal_ has joined #ruby
mistym- has joined #ruby
pragmatism_ has joined #ruby
z3uS| has joined #ruby
b3nt_pin is now known as Guest64064
Lorn_ has joined #ruby
Armand is now known as Guest132
xnr_ has joined #ruby
Amnez777- has joined #ruby
martinbjeldbak_ has joined #ruby
gregf_ has quit [*.net *.split]
allomov_ has quit [*.net *.split]
FastJack_ has quit [*.net *.split]
rvchangue has quit [*.net *.split]
Rickmasta has quit [*.net *.split]
pdoherty has quit [*.net *.split]
peterhil has quit [*.net *.split]
BrunoSaboia has quit [*.net *.split]
TheBloke has quit [*.net *.split]
xcesariox has quit [*.net *.split]
Azure has quit [*.net *.split]
moei has quit [*.net *.split]
user1138 has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
Luna_Moonfang has quit [*.net *.split]
mrtomme has quit [*.net *.split]
abra0 has quit [*.net *.split]
haasn has quit [*.net *.split]
xnr has quit [*.net *.split]
Outlastsheep has quit [*.net *.split]
pmarreck has quit [*.net *.split]
jokester has quit [*.net *.split]
programmerq has quit [*.net *.split]
Lorn has quit [*.net *.split]
mistym has quit [*.net *.split]
DEac- has quit [*.net *.split]
djbender has quit [*.net *.split]
x0f has quit [*.net *.split]
rcs has quit [*.net *.split]
Amnez777 has quit [*.net *.split]
cardoni has quit [*.net *.split]
charles81 has quit [*.net *.split]
Platini has quit [*.net *.split]
ekleog has quit [*.net *.split]
mmasaki has quit [*.net *.split]
svkurowski has quit [*.net *.split]
jevs has quit [*.net *.split]
vondruch has quit [*.net *.split]
zeljkof has quit [*.net *.split]
cgfbee has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
Nilium has quit [*.net *.split]
omegahm has quit [*.net *.split]
pjaspers has quit [*.net *.split]
entropie has quit [*.net *.split]
imajes has quit [*.net *.split]
troter_____ has quit [*.net *.split]
manveru has quit [*.net *.split]
chridal has quit [*.net *.split]
KramerC has quit [*.net *.split]
nlsun has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
pipework has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
pragmatism has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
matti has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
maxmanders has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
nizmow has quit [*.net *.split]
Killerkeksdose has quit [*.net *.split]
beagles has quit [*.net *.split]
MiracleBlue has quit [*.net *.split]
passcod has quit [*.net *.split]
wjimenez5271 has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
havenwood has quit [*.net *.split]
__main__ has quit [*.net *.split]
linc01n has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
braidn has quit [*.net *.split]
edwardly has quit [*.net *.split]
z3uS has quit [*.net *.split]
bier has quit [*.net *.split]
varesa has quit [*.net *.split]
adamholt has quit [*.net *.split]
tuor has quit [*.net *.split]
mgorbach has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
NET||abuse has quit [*.net *.split]
patronus has quit [*.net *.split]
Bish has quit [*.net *.split]
mic_e has quit [*.net *.split]
Voker57 has quit [*.net *.split]
cfloare has quit [*.net *.split]
Qantourisc has quit [*.net *.split]
wnd has quit [*.net *.split]
chris2 has quit [*.net *.split]
eboaz_ has quit [*.net *.split]
EnginA has quit [*.net *.split]
sdothum has quit [*.net *.split]
Ray` has quit [*.net *.split]
jericon has quit [*.net *.split]
devyn has quit [*.net *.split]
artmann has quit [*.net *.split]
bestie has quit [*.net *.split]
xybre has quit [*.net *.split]
gbailey has quit [*.net *.split]
dukedave has quit [*.net *.split]
rfv has quit [*.net *.split]
segy has quit [*.net *.split]
Aww has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
bihi has quit [*.net *.split]
sts_ has quit [*.net *.split]
euoia has quit [*.net *.split]
Pro| has quit [*.net *.split]
zeroDivisible has quit [*.net *.split]
mame2 has quit [*.net *.split]
ir2ivps3_ has quit [*.net *.split]
fumk has quit [*.net *.split]
matled has quit [*.net *.split]
RandyT has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
forgot has quit [*.net *.split]
Kero has quit [*.net *.split]
hectortrope has quit [*.net *.split]
p8952 has quit [*.net *.split]
hypnosb has quit [*.net *.split]
_mh_ has quit [*.net *.split]
klaas has quit [*.net *.split]
KillerFox has quit [*.net *.split]
abra0_ is now known as abra0
Brando753-o_O_o has joined #ruby
FIGO_ has joined #ruby
pipecloud is now known as pipework
samuelkadolph_ is now known as samuelkadolph
<jackcom> how can i delete previouse all line on vim
xnr_ is now known as xnr
mhenrixon has joined #ruby
martinbjeldbak_ has quit [Excess Flood]
M-Kodo has quit [Write error: Connection reset by peer]
M-mistake1 has quit [Write error: Connection reset by peer]
bihi_ is now known as bihi
matti_ is now known as matti
Nilium_ is now known as Nilium
rvchangue_ is now known as rvchangue
<baweaver> jackcom: rephrase that
matled- is now known as matled
z3uS| is now known as z3uS
<jackcom> d+G delete next all line on vim
havenn is now known as havenwood
Guest132 is now known as Apocalypse
edwardly_ is now known as edwardly
Guest64064 has quit [Max SendQ exceeded]
M-prosodyContext has quit [Write error: Broken pipe]
omegahm has joined #ruby
djbender_ is now known as djbender
xMopxShe- is now known as xMopxShell
bier_ has joined #ruby
<jackcom> how can i delete previouse all line on vim? and d+G delete next all line on vim baweaver
nlsun has joined #ruby
fluchtreflex has joined #ruby
DEac- has joined #ruby
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby
svkurowski has joined #ruby
jevs_ is now known as jevs
haasn` has joined #ruby
<baweaver> Remember this is #ruby
segy has joined #ruby
bestie_ is now known as bestie
pmarreck_ is now known as pmarreck
cardoni_ is now known as cardoni
rcs has joined #ruby
charles81_ is now known as charles81
__main__ has joined #ruby
beagles has joined #ruby
beagles is now known as Guest66483
<jackcom> baweaver: yeah, i use vim when i study ruby
imajes has joined #ruby
FIGO_ is now known as Platini
bkxd has quit [Ping timeout: 255 seconds]
passcod has joined #ruby
p8952 has joined #ruby
gbailey has joined #ruby
Kero has joined #ruby
martinbjeldbak has joined #ruby
maxmanders has joined #ruby
<baweaver> what have you tried?
zeljkof_ is now known as zeljkof
yfeldblum has quit [Ping timeout: 240 seconds]
wnd_ is now known as wnd
solocshaw has quit [Ping timeout: 240 seconds]
<jackcom> i try to write ruby code now
<baweaver> in regards to finding out how to delete all previous lines
<jackcom> yes
<baweaver> and realize that you're very unlikely to get Vim support in here
mgorbach has joined #ruby
Mission-Critical has joined #ruby
manveru_ is now known as manveru
fp- has quit [Quit: Lingo: www.lingoirc.com]
jokester has joined #ruby
pawnbox has joined #ruby
<pontiki> there's probably dozens of vim users in here
hectortrope has joined #ruby
KramerC has joined #ruby
<pontiki> i'm not one of them, tho
EnginA has joined #ruby
Aww has joined #ruby
vondruch has joined #ruby
solocshaw has joined #ruby
Emmanuel_Chanel has joined #ruby
Luna_Moonfang has joined #ruby
spectra has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
Brando753 has quit [*.net *.split]
Brando753-o_O_o is now known as Brando753
pdoherty has joined #ruby
<jackcom> yes right pontiki
<jackcom> :)
th0m_ has quit [Quit: Leaving]
<pontiki> but if i wanted to delete all the lines in a file, and didn't want to leave vim, remove the file, and recreate it, i'd do :1,$d
chris2 has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
cgfbee has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
euoia has joined #ruby
<baweaver> it's dgg to delete all above a point
rfv_ is now known as rfv
TheBloke_ is now known as TheBloke
spectra has joined #ruby
AlexRussia has joined #ruby
bkxd has joined #ruby
tuor has joined #ruby
th0m_ has joined #ruby
mary5030 has quit [Remote host closed the connection]
dukedave_ is now known as dukedave
mmasaki has joined #ruby
xybre has joined #ruby
lockdown has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
programmerq has joined #ruby
NET||abuse has joined #ruby
Sp4rKy has joined #ruby
allomov has quit [Remote host closed the connection]
zeroDivisible has joined #ruby
saddad has joined #ruby
jericon has joined #ruby
<jackcom> d + gg ok baweaver
lockdown has quit [Ping timeout: 240 seconds]
allomov has joined #ruby
pawnbox has joined #ruby
lxsameer has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
wjimenez5271 has joined #ruby
allomov has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
driftig has quit [Quit: leaving]
xcesariox has joined #ruby
skweek has joined #ruby
xcesariox has quit [Client Quit]
codecop has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
TheBloke is now known as TheBloke-Away
bkxd has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
agent_wh1te has joined #ruby
agent_white has quit [Disconnected by services]
agent_wh1te is now known as agent_white
yfeldblum has joined #ruby
snapcase has joined #ruby
heinrich5991 has joined #ruby
FastJack has joined #ruby
dionysus69 has joined #ruby
M-mistake has joined #ruby
norc has joined #ruby
norc is now known as Guest42460
Guest42460 has quit [Client Quit]
ss_much has quit [Quit: Connection closed for inactivity]
lubarch has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 260 seconds]
M-Kodo has joined #ruby
axsuul has joined #ruby
skweek has joined #ruby
dimasg has joined #ruby
bkxd has joined #ruby
yfeldblum has quit [Remote host closed the connection]
duncannz has joined #ruby
calderonroberto has joined #ruby
claw has quit [Ping timeout: 240 seconds]
M-prosodyContext has joined #ruby
claw has joined #ruby
Jackneill has joined #ruby
Symbiosisz has joined #ruby
reoring has joined #ruby
Rodya_ has quit [Quit: Leaving...]
houhoulis has joined #ruby
teclator has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
edj has joined #ruby
<edj> what is the best book for learning everything i need to know about ruby after ive already finished the treehouse track and code academy
jarray52 has joined #ruby
<edj> will the well grounded rubyist teach me the rest ?
emanuelfarias has joined #ruby
A124 has joined #ruby
krz has joined #ruby
emanuelfarias has quit [Quit: Leaving]
<edj> anyone have a recommendation for an all inclusive ruby book?
<edj> one that will teach me enough to learn rails?
<ja> edj: other's can't teach you programming
<ja> sure, they can help
<ja> , but… ^__^
<shevy> long live ruby! \o/
cwong_on_irc has joined #ruby
<ja> edj: have you read why’s (poignant) guide to ruby?
<edj> ja: no only treehouse and codeacademy
ramadoka has joined #ruby
<ja> it's the best! here: http://poignant.guide
<ja> yay, they even have a cool new hipster TLD domain now!
<ja> bear with it, edj
CloCkWeRX has joined #ruby
<ja> it takes a tad getting used to but it's an utterly epic read
<ja> no code is even showed until chapter 3 ^-^
User458764 has joined #ruby
<edj> ja: ok im just looking to buy a ton of books right now
<edj> preferabley all that ill need to make my apps
<ja> this one's free
<edj> oh
<edj> wow
<ja> but really I recommend learning by doing
<edj> i think i want the paperback
<ja> experimenting while you read
<edj> yea i do
<ja> ya, I got it too ages ago
KillerFox has joined #ruby
_mh_ has joined #ruby
hypnosb has joined #ruby
fumk has joined #ruby
mame2 has joined #ruby
forgot has joined #ruby
<ja> this book even has a soundtrack, edj
<ja> if you can believe that
<edj> thats kind of awesome lmao
forgot has quit [Max SendQ exceeded]
hypnosb has quit [Max SendQ exceeded]
_mh_ has quit [Changing host]
_mh_ has joined #ruby
revengeofbigd_ has quit [Quit: Connection closed for inactivity]
mrtomme has joined #ruby
hypnosb has joined #ruby
<ja> edj: it's the first — and only ¯\_(ツ)_/¯ — Ruby book I've read
<ja> edj: are you listening to the soundtrack?
<edj> ja: i would but im in the middle of peaky blinders
lxsameer has quit [Remote host closed the connection]
<edj> ja: how long did it take to go through?
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
forgot has joined #ruby
<ja> edj: i had never heard of that show. looks cool though. how highly would you recommend/rate it?
<ja> edj: uhh, a week or so, and then another two weeks for me to truly begin grasping ruby's metaprogramming
<edj> ja: its dark, 20s gangsters, well done, 9/10 for my taste.
<edj> ja: yea im kind of eh with metaprograming
<edj> ja: is this good for it?
fantazo has joined #ruby
<ja> sounds great! and 20s even, jeez
<ja> edj: I'd say so, yeah
Oog has quit []
<edj> ja: alright ill order the paperback and get to work on it in the meantime
<edj> ja: thank you
<ja> although the examples are a bit weird and although his parenthesis style is odd (`foo( args )` — I think it's for newcomer clarity), it's the best programming book I've ever seen
<ja> no problem
<ja> but remember I warned you it's weird ( ͡° ͜ʖ ͡°)
<edj> I'm weird
Guest43214 has quit [Ping timeout: 264 seconds]
<ja> great
<edj> actually ill have to get to work on it tommorow. its my bed time
<edj> but thank you so much
<edj> see you later
<ja> right on!
<ja> see you around, edj
CloCkWeRX has quit [Quit: Leaving.]
edj has quit [Quit: Page closed]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Outlastsheep has joined #ruby
CloCkWeRX has joined #ruby
yfeldblum has joined #ruby
Gnut has joined #ruby
ramadoka has quit [Quit: Page closed]
haasn` is now known as haasn
tubuliferous_ has quit [Ping timeout: 240 seconds]
krz has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
Outlastsheep has quit [Quit: ZNC - http://znc.in]
yaewa has quit [Quit: Leaving...]
moei has joined #ruby
Gnut has quit [Ping timeout: 240 seconds]
darkxploit has joined #ruby
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
darkxploit has quit [Remote host closed the connection]
darkxploit has joined #ruby
baweaver has quit [Remote host closed the connection]
diegoaguilar_ has joined #ruby
diegoaguilar has quit [Ping timeout: 240 seconds]
wet88 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
asas is now known as Dimik
saddad has quit [Quit: WeeChat 1.4-dev]
lxsameer has quit [Remote host closed the connection]
lxsameer has joined #ruby
allomov has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
jud has quit [Quit: Leaving]
allomov has quit [Ping timeout: 240 seconds]
xnr has quit [Quit: ರ_ರ]
xnr has joined #ruby
skweek has joined #ruby
Toxo has joined #ruby
Toxo has left #ruby [#ruby]
colegatron has quit [Ping timeout: 240 seconds]
<apeiros> pontiki, havenwood: updated. moved it from Range to Regexp (where the procs can now be proper class methods), implemented anchor: argument. seems the generated regex was correct yesterday already :) (tested for 0-9999)
<apeiros> though, I only did the positive tests, not the negative ones
<apeiros> oh, lol, and I fucked up @ anchor
<apeiros> forgot to wrap it into a group
kp666 has joined #ruby
Outlastsheep has joined #ruby
axsuul has quit [Ping timeout: 240 seconds]
<apeiros> updated :)
scripore has joined #ruby
arup_r has quit []
Amnez777- has quit [Changing host]
Amnez777- has joined #ruby
Amnez777- is now known as Amnez777
scripore has quit [Client Quit]
dimasg has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trautwein has joined #ruby
trautwein has quit [Client Quit]
weemsledeux has joined #ruby
krz has joined #ruby
exadeci has joined #ruby
otherj has joined #ruby
agent_white has quit [Changing host]
agent_white has joined #ruby
irk has joined #ruby
jayne has joined #ruby
brainslug has joined #ruby
csmb has joined #ruby
bhorn1 has joined #ruby
sshuff|gone has joined #ruby
otherj has quit [Remote host closed the connection]
otherj has joined #ruby
mistym- is now known as mistym
mistym has quit [Changing host]
mistym has joined #ruby
otherj has quit [Remote host closed the connection]
zack6849 has joined #ruby
nirix has joined #ruby
aredridel has joined #ruby
closer has joined #ruby
voxxit has joined #ruby
cibs has joined #ruby
fulgore_ has joined #ruby
timmow has joined #ruby
eshy has joined #ruby
nfsnobody has joined #ruby
pestle has joined #ruby
bodie_ has joined #ruby
otherj has joined #ruby
howdoicomputer has quit [Ping timeout: 264 seconds]
M-mistake has quit [Changing host]
M-mistake has joined #ruby
M-prosodyContext has quit [Changing host]
M-prosodyContext has joined #ruby
M-Kodo has joined #ruby
M-Kodo has quit [Changing host]
Jackneill has quit [Changing host]
Jackneill has joined #ruby
lurch_ has joined #ruby
exadeci has quit [Changing host]
exadeci has joined #ruby
Kartikay has joined #ruby
<jackcom> what editor is good for ruby?
<Kartikay> jackcom: I support sublime.
<jackcom> subime
<jackcom> how about eclipse?
<Kartikay> No idea
calderonroberto has quit [Ping timeout: 240 seconds]
<jackcom> then emacs? Kartikay
<Kartikay> jackcom: But I'm sure you should check this out once http://www.sublimetext.com/
<Kartikay> You will forget all other editors
<jackcom> Kartikay: sublime is $70 lol
<jackcom> :|
<Kartikay> jackcom: You can use it for free
<jackcom> how?
<Kartikay> The Unregistered version is free
<Kartikay> And its unlimited
<jackcom> unregistered version is different with registered version?
otherj has quit [Quit: .]
<apeiros> it makes you feel bad for not paying
<apeiros> other than that, no difference afaik
<jackcom> oh
<jackcom> ok thanks then i will use another
<Kartikay> apeiros: It makes you feel bad only if you feel it
<apeiros> sure
TheHodge has joined #ruby
<apeiros> but I guess those who don't feel it wouldn't mind using a cracked version of a paid product either
skweek has quit [Ping timeout: 240 seconds]
<Kartikay> jackcom: Otherwise second option is to use vim
<jackcom> cracked version.
<jackcom> :(
<jackcom> vim is good for ruby?
<apeiros> jackcom: if "free" is relevant to you, maybe add it to your question.
<apeiros> yes. vim is good for all kinds of text.
<apeiros> as is emacs.
<jackcom> ok
<jackcom> apeiros:
<jackcom> i can use vim, but i don’t know emacs
<apeiros> jackcom: serously, the next time you do a line consisting only of a nick I will kick you.
<Kartikay> jackcom: Same here.
<jackcom> ok. i understand it apeiros
<jackcom> ok good Kartikay i understand it
skweek has joined #ruby
<jackcom> i made 892 line programming code today
diegoaguilar_ has quit [Remote host closed the connection]
<jackcom> i m too tired for 892 line code
blubjr` is now known as blubjr
<shevy> jackcom can you use a line consisting only of a nick alone please :)))
<apeiros> shevy's up to no good :D
<shevy> jackcom what IRC client do you use?
<jackcom> i use hex chat
<shevy> hmm
<jackcom> heh
<shevy> I remember I often mistyped when I used weechat
<shevy> and mispasted
<jackcom> https://pidgin.im <— shevy i use it
dionysus69 has joined #ruby
ohaibbq_ has quit [Quit: Leaving...]
<Kartikay> I use this : https://kiwiirc.com/client
<shevy> I remember that... their ICQ-like messenger was ok but their IRC variant that was just awful
mmitchell has joined #ruby
reoring has quit [Remote host closed the connection]
<jackcom> https://pidgin.im <— shevy this is very good
mmitchel_ has quit [Ping timeout: 240 seconds]
<shevy> now you are in your loop again jackcom :P
tildes has joined #ruby
shinnya has joined #ruby
<jackcom> pidgin
<shevy> I know!!!
<jackcom> what you use irc client?
<shevy> xchat
<jackcom> shevy: i want know it
<jackcom> oh
<jackcom> windows user
<shevy> I tried hexchat but it was less stable at the time
kerunaru has joined #ruby
<jackcom> yeah
ta has quit [Remote host closed the connection]
tulak has joined #ruby
dlitvak has joined #ruby
tulak has quit [Client Quit]
zotherst1 has quit [Quit: WeeChat 1.3]
dlitvak has quit [Remote host closed the connection]
<jackcom> shevy: anyway, you can do c#?
Tempesta has joined #ruby
arup_r has joined #ruby
<jackcom> shevy: are you busy?
wldcordeiro has quit [Quit: WeeChat 1.3]
wldcordeiro has joined #ruby
subscope has joined #ruby
lurch_ has quit [Quit: lurch_]
WhitePrideWorldw has joined #ruby
<WhitePrideWorldw> what is a good Ruby boiler plate for web dev?
BSab has quit [Read error: Connection reset by peer]
BSab has joined #ruby
nolic has joined #ruby
<apeiros> WhitePrideWorldw: 30s to change your nick
djellemah_ is now known as djellemah
<WhitePrideWorldw> I can't be proud of my heritage
<WhitePrideWorldw> wow that s oppressive
<apeiros> I'm not discussing this
<apeiros> 10s
<WhitePrideWorldw> fuck you oppressive asshole
<apeiros> !ban WhitePrideWorldw !P bad nick
WhitePrideWorldw was kicked from #ruby by ChanServ [Banned: bad nick]
<apeiros> good riddance.
Kartikay has left #ruby [#ruby]
Kartikay has joined #ruby
<apeiros> always the same asshole anyway… so boring.
ricer2 has joined #ruby
<Kartikay> Challange: Write a IRC client in ruby which connects to freenode #ruby in less than 50 characters.
<djellemah> apeiros: thanks
Ray`_ is now known as Ray`
devbug has joined #ruby
<apeiros> Kartikay: you can't call that "irc client", as it won't possibly be an irc client :-p
<Kartikay> apeiros: Whatever it would be ..... You know what I mean
WPWW1488 has joined #ruby
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
nolic has quit [Quit: leaving]
<apeiros> I somewhat doubt that's possible. require"socket";i=TCPSocket.open("irc.freenode.net",6667) already exceeds 50 chars.
<Kartikay> Lets make it 200 chars then
bersimoes has joined #ruby
nolic has joined #ruby
<shevy> jackcom I can't write C# possibly save for hello world example. I am semi-idling, mostly learning from some .pdf unrelated to computers/programming
<jackcom> ok good
<jackcom> shevy: :) hello
WPWW1488 has quit [Remote host closed the connection]
spider-mario has joined #ruby
arup_r has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
lavros_ has joined #ruby
skade has joined #ruby
skade has quit [Client Quit]
stannard has joined #ruby
Kartikay_ has joined #ruby
Kartikay_ has left #ruby [#ruby]
Kartikay has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xet7 has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
Kartikay has joined #ruby
zapata has quit [Quit: WeeChat 1.3]
Guest2346 has joined #ruby
varunwachaspati has joined #ruby
maloik has joined #ruby
joast has joined #ruby
skade has joined #ruby
zapata has joined #ruby
arup_r has joined #ruby
nolic has quit [Ping timeout: 240 seconds]
davedev24 has quit []
lavros has joined #ruby
lavros_ has quit [Ping timeout: 240 seconds]
jud has joined #ruby
kp666 has quit [Ping timeout: 240 seconds]
marr has joined #ruby
codecop has quit [Remote host closed the connection]
yoongkang has joined #ruby
baweaver has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
kp666 has joined #ruby
allomov has joined #ruby
dreinull has joined #ruby
kp666 has quit [Max SendQ exceeded]
<dreinull> Has anybody tried Ruby + Electron here before?
kp666 has joined #ruby
<dreinull> Opal could be an option but I have a Sequel dependency which makes it non-trivial.
dionysus69 has quit [Ping timeout: 246 seconds]
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
<dreinull> not saying opal+electron is trivial...
kp666 has joined #ruby
<marahin> Hello. I'm looking for an effortless-in-coding, easy-to-use, rather fast storage for an IRC bot, so it can store RSS feeds, user memos, definition of words, some statistics. I originally thought of using SQLite, however as far as I see it's not the easiest way around. What would you suggest? Most effortless way would be to use some key/val storage for me
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
allomov has quit [Ping timeout: 240 seconds]
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
kp666 has quit [Max SendQ exceeded]
<apeiros> marahin: what troubles did you have with sqlite?
kp666 has joined #ruby
<marahin> apeiros, not really troubles, but it's not as effortless as I would want it to be!
<zenspider> effortless in coding? echo factoid >> database.txt
wet88 has quit [Quit: Quiting the chat]
<apeiros> marahin: *sob*, ok, let me rephrase that: what was too much effort about it for you?
kp666 has quit [Max SendQ exceeded]
<marahin> In order to make it effortless, I would have to define some methods that would make it effortless to store data under key, receive it under value :)
brunto has joined #ruby
<apeiros> why do you have a key if you use the value to receive it? o0
<zenspider> effortless in coding? echo key factoid >> database.txt; grep key database.txt
<marahin> apeiros, writing raw-SQL syntax! But really now, it's not that I can't do that. I'm really asking here because I wonder what's usually being used around with this kind of cases
<marahin> apeiros, I got it wrong, sorry
<apeiros> marahin: sequel allows you to use sqlite and you don't have to use raw sql.
<marahin> oh. I'll check it out, thank you
<apeiros> depending on what you do, maybe also take a look at PStore (stdlib)
<zenspider> if you just want key/value store, gdbm is easier
tagrudev has joined #ruby
Log1x has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 240 seconds]
duncannz has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
dionysus69 has joined #ruby
sandstrom has joined #ruby
<apeiros> and hi zenspider :) long time since I've last seen you
<blubjr> hi zenspider
karapetyan has joined #ruby
TheBloke-Away is now known as TheBloke
<zenspider> hey hey. yeah. I've been ... busy. ;)
<apeiros> heh, don't I know it :D
marr has quit [Ping timeout: 260 seconds]
BaroMeter has joined #ruby
DexterLB has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
maloik has quit [Ping timeout: 240 seconds]
bersimoes has quit [Remote host closed the connection]
bersimoes has joined #ruby
bersimoes has quit [Ping timeout: 240 seconds]
trautwein has joined #ruby
elaptics`away is now known as elaptics
pandaant has joined #ruby
sepp2k has joined #ruby
linocisco has joined #ruby
lubarch has quit [Quit: leaving]
howdoicomputer has joined #ruby
sameerynho has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
howdoicomputer has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
decoponio has joined #ruby
colegatron has quit [Ping timeout: 240 seconds]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sameerynho has quit [Remote host closed the connection]
jarray52 has left #ruby [#ruby]
lxsameer has joined #ruby
BaroMeter has quit [Ping timeout: 246 seconds]
lurch_ has joined #ruby
krz has quit [Ping timeout: 246 seconds]
lurch_ has quit [Client Quit]
sanjayu has joined #ruby
xaitec has joined #ruby
toretore has joined #ruby
xaitec has quit [Client Quit]
maloik has joined #ruby
bersimoes has joined #ruby
karapetyan has joined #ruby
colegatron has joined #ruby
Outlastsheep has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
skade has joined #ruby
skade has quit [Client Quit]
Kartikay has quit [Quit: Page closed]
Kartikay has joined #ruby
bersimoes has quit [Read error: Connection reset by peer]
devbug has quit [Read error: Connection reset by peer]
bersimoes has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
reoring has joined #ruby
bersimoes has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
devbug has joined #ruby
Vitor has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
BaroMeter has joined #ruby
adaedra has joined #ruby
karapetyan has joined #ruby
JazzyVariable227 has joined #ruby
SalviaNobile has joined #ruby
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
JazzyVariable227 has quit [Quit: Leaving...]
SenpaiSilver has joined #ruby
akkad has quit [Excess Flood]
brunto has quit [Ping timeout: 240 seconds]
zotherstupidguy has joined #ruby
akkad has joined #ruby
joneshf-laptop has quit [Quit: Leaving]
joneshf-laptop has joined #ruby
adaedra has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
napcae has joined #ruby
napcae has quit [Changing host]
napcae has joined #ruby
TheBloke has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
adaedra has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
adaedra has quit [Client Quit]
howdoicomputer has joined #ruby
jjeb has joined #ruby
jjeb has quit [Client Quit]
jjeb has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
jjeb has left #ruby [#ruby]
rodfersou has joined #ruby
brt has joined #ruby
tvw has quit []
subscope has quit [Quit: Leaving]
sonOfRa has joined #ruby
codecop has joined #ruby
maloik has quit [Ping timeout: 260 seconds]
houhoulis has quit [Remote host closed the connection]
maloik has joined #ruby
Azure|dc has quit [Quit: Oops.]
kerunaru has quit [Ping timeout: 264 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
The_Phoenix has joined #ruby
baweaver has joined #ruby
TheBloke is now known as TheBloke-Away
ekleog_ is now known as ekleog
devbug has quit [Ping timeout: 260 seconds]
devbug has joined #ruby
maloik has quit [Ping timeout: 246 seconds]
Ox0dea has joined #ruby
maloik has joined #ruby
devbug has quit [Read error: Connection reset by peer]
InvGhosttt has joined #ruby
devbug has joined #ruby
baweaver has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
skade has joined #ruby
L1nuX has joined #ruby
L1nuX has quit [Client Quit]
bb010g has quit [Quit: Connection closed for inactivity]
Vitor has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
blueOxigen has joined #ruby
TheBloke-Away is now known as TheBloke
Kartikay has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bluOxigen has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: leaving]
minimalism has joined #ruby
Kartikay has joined #ruby
<Ox0dea> >> require 'fiddle'; n = 2 ** 62; Fiddle::Pointer.new(n.__id__ * 2)[15, 1] = "\0"; [n, n.class]
<ruboto> Ox0dea # => [0, Bignum] (https://eval.in/477164)
sandstrom has joined #ruby
workmad3 has joined #ruby
<Ox0dea> Thinkin' about makin' Mr. Mackowiak's day. https://bugs.ruby-lang.org/issues/11745#note-4
<blubjr> hi ox0dea
<Ox0dea> Hello, blubjr.
<shevy> the big old ox has arrived
<Ox0dea> Bignums are totally mutable without hitting segfaults. ^_^
<shevy> avoiding segfaults is good
TheBloke has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> Symbols are also "mutable" without segfaulting, but that's very naughty.
<Ox0dea> I'm considering releasing a little thing that adds Bignum#[]=, but the assymetry with Fixnum isn't great. :<
bluOxigen has joined #ruby
hackeron has joined #ruby
blueOxigen has quit [Ping timeout: 260 seconds]
hackeron_ has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
Kartikay has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Kartikay has joined #ruby
Kartikay has quit [Client Quit]
User458764 has joined #ruby
minimalism has quit [Quit: leaving]
moloch has left #ruby [#ruby]
<linocisco> does somebody use http://rubykoans.com/?
zly has joined #ruby
howdoicomputer has joined #ruby
kerunaru has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
agent_white is now known as agent_w
yoongkang has quit [Remote host closed the connection]
agent_w is now known as agent_white
<Ox0dea> linocisco: You?
careta has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 246 seconds]
sanjayu has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> I have a weird question... both lines seem to be synonymous to one another (same output) https://gist.github.com/shevegen/0704695f43cee60d5b62 - but I assume that the first variant will always be faster right?
RegulationD has joined #ruby
freerobby has joined #ruby
<Ox0dea> Right.
<Ox0dea> Method invocation is much slower than parse-time concatenation.
jud has quit [Quit: Leaving]
RegulationD has quit [Ping timeout: 240 seconds]
<shevy> this is funny because rubocop pointed to that
<shevy> perhaps I should let the autocop run and correct every offending line of code
Outlastsheep has joined #ruby
<Ox0dea> Perhaps you should sprinkle a little anarchism into your daily routine.
<Papierkorb> I have this expectation: expect(Haml::Compiler).to receive(:new).with(include ugly: true).and_call_original
careta has quit [Quit: Leaving]
<Papierkorb> It fails because the argument passed to ::new is not a Hash, but something else. Now, if I'd write ..receive(:new){|opts| ...}, how can I call the original implementation from that block?
sanjayu has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
devbug has quit [Ping timeout: 240 seconds]
adaedra has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
kirun has joined #ruby
Xeago has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 260 seconds]
reoring has quit [Remote host closed the connection]
moeabdol has joined #ruby
TheBloke has joined #ruby
Outlastsheep has quit [Quit: ZNC - http://znc.in]
karapetyan has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
allcentury has joined #ruby
arup_r has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
<linocisco> Ox0dea, do you know me?
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> linocisco: I know that you've endeavored to learn Ruby via the Koans, which seems to me to be a sufficient amount of knowledge of you for current purposes. Please ask your question.
agent_white has quit [Quit: gnight]
SCHAAP137 has joined #ruby
Kendos-Kenlen has joined #ruby
d0lph1n98 has joined #ruby
jud has quit [Quit: Leaving]
<linocisco> Ox0dea, I have no idea what ruby koans is . I am just looking for daily ruby exercise that can help me learn ruby quicker
goodcodeguy has joined #ruby
<TheBloke> Koans are ruby exercises that can help you learn ruby quicker.
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
scripore has joined #ruby
Outlastsheep has joined #ruby
Vitor has quit [Ping timeout: 260 seconds]
bhaveshletter has joined #ruby
allomov has joined #ruby
jackcom has left #ruby [#ruby]
lxsameer has quit [Ping timeout: 240 seconds]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
Outlastsheep has quit [Quit: ZNC - http://znc.in]
lxsameer has joined #ruby
lxsameer has quit [Client Quit]
adaedra has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<blubjr> um i want to split an array at an index, like def split_at(l, i); [l[0...i], l[i..-1]]; end
<blubjr> is there a bif for that
Ilyes512 has joined #ruby
Coral has joined #ruby
Coral is now known as Guest83911
Ilyes512 has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby
Ilyes512 has joined #ruby
howdoicomputer has joined #ruby
<Ox0dea> blubjr: front, back = ary[something], ary[else]
<Ox0dea> Where `something` and `else` are derived from some index you've got hold of.
<Ox0dea> But no, there's no "bif".
<apeiros> Ox0dea: blubjr already showed that solution
<apeiros> blubjr: no, there's nothing which does that already. your solution is fine.
<Ox0dea> blubjr: You might also consider #take and #drop for symmetry's sake.
arup_r has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
yoongkang has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
Outlastsheep has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
xaitec has joined #ruby
xaitec has quit [Client Quit]
linocisco has quit [Ping timeout: 260 seconds]
yoongkang has quit [Ping timeout: 240 seconds]
EnginA has left #ruby ["WeeChat 0.3.7"]
freerobby has quit [Quit: Leaving.]
pdoherty has quit [Remote host closed the connection]
scripore has quit [Quit: Leaving]
davedev24 has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
fantazo has joined #ruby
ta has joined #ruby
St1gma has quit [Quit: Leaving]
linocisco has joined #ruby
ferr has joined #ruby
adaedra has joined #ruby
abd_h_ has joined #ruby
abd_h_ has quit [Client Quit]
brunto has joined #ruby
chouhoulis has joined #ruby
Xiti has quit [Quit: Xiti]
Jackneill has quit [Ping timeout: 260 seconds]
akkad has quit [Excess Flood]
akkad has joined #ruby
<ferr> any suggestions to refactor this https://gist.github.com/Fercell/e93e24dd6445c793513f ?
<shevy> turn it into a class!
d0lph1n98 has quit [Quit: leaving]
linocisco has quit [Ping timeout: 240 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ferr> shevy: but why?
bkxd has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
davedev24 has quit []
<Ox0dea> ferr: Why did you bother to extract the `things_to_like` method if you only need its value once?
roshanavand has joined #ruby
freerobby has joined #ruby
Jackneill has joined #ruby
freerobby has quit [Client Quit]
<ferr> Ox0dea: Because I put all driver actions into methods, no specific reason
<Ox0dea> But there must be something to it?
<shevy> ferr it'll be cleaner than just putting everything into top
aryaching has joined #ruby
freerobby has joined #ruby
<ferr> Okay, thanks
<jhass> ferr: you don't need require "rubygems" anymore, it's done for you
akkad has quit [Excess Flood]
bkxd has quit [Ping timeout: 240 seconds]
goodcodeguy has joined #ruby
xet7 has quit [Quit: Leaving]
beast has joined #ruby
karapetyan has joined #ruby
akkad has joined #ruby
NeverDie has joined #ruby
freerobby has quit [Quit: Leaving.]
d0lph1n98 has joined #ruby
adaedra has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adaedra has joined #ruby
linocisco has joined #ruby
d0lph1n98 has quit [Client Quit]
freerobby has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
sandstrom has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
gustav has joined #ruby
freerobby has quit [Client Quit]
linocisco has quit [Ping timeout: 246 seconds]
nertzy has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
kerunaru has quit [Ping timeout: 240 seconds]
howdoicomputer has joined #ruby
ta has quit [Remote host closed the connection]
Guest83911 has quit [Ping timeout: 246 seconds]
vikas027 has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
xaitec has joined #ruby
vikas027 has quit [Client Quit]
xaitec has quit [Client Quit]
howdoicomputer has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
gustav has quit [Remote host closed the connection]
yoongkang has joined #ruby
moeabdol has quit [Quit: WeeChat 1.3]
roshanavand has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
ferr has quit [Quit: WeeChat 1.3]
nertzy has quit [Quit: This computer has gone to sleep]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kerunaru has joined #ruby
<shevy> hmm "clear" ... does ruby stdlib have that method?
sandstrom has quit [Quit: My computer has gone to sleep.]
<shevy> >> "abc".clear
<ruboto> shevy # => "" (https://eval.in/477183)
<shevy> hmm
s2013 has joined #ruby
cdg has joined #ruby
roshanavand has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
darkxploit has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
chouhoulis has joined #ruby
banister has joined #ruby
Wsewolod has joined #ruby
Coraline has joined #ruby
voodo has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
Bellthoven has joined #ruby
BlackCoyote has joined #ruby
AlexRussia has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
j5s7 has joined #ruby
j5s7 has quit [Client Quit]
j5s7 has joined #ruby
Kendos-Kenlen has quit [Quit: Konversation terminated!]
darkxploit has joined #ruby
<Ox0dea> >> ObjectSpace.each_object(Class).select { |c| c.instance_methods.include? :clear } # shevy
<ruboto> Ox0dea # => [Hash, Array, String, Thread::SizedQueue, Thread::Queue] (https://eval.in/477185)
sankaber has joined #ruby
DoubleMalt has joined #ruby
<shevy> I also have system 'clear' !
<shevy> and now I was thinking...
<shevy> "if I have module Foo; end ... in order to clear my screen... should I add a Foo.clear ..."
j5s7 has quit [Client Quit]
mary5030 has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
freerobby has joined #ruby
kerunaru has quit [Ping timeout: 240 seconds]
brunto has quit [Ping timeout: 260 seconds]
spider-mario has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
spider-mario has joined #ruby
Xiti has joined #ruby
<ricer2> Ηagbard:german-elite.net plays hot or not?! "jailbait" - Vote with: ,votepoll 11 (1–10).
<Ox0dea> ,votepoll 11 3.14
<ricer2> Ox0dea: Your vote has been counted.
Coldblackice has quit [Ping timeout: 264 seconds]
rodfersou has quit [Quit: leaving]
tagrudev has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> !mute ricer2
tildes has joined #ruby
j5s7 has joined #ruby
allomov has quit [Remote host closed the connection]
j5s7 has quit [Client Quit]
howdoicomputer has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
allomov has joined #ruby
greister has quit [Ping timeout: 276 seconds]
Gnut has joined #ruby
tubuliferous_ has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
howdoicomputer has quit [Ping timeout: 260 seconds]
Gnut has quit [Ping timeout: 246 seconds]
skade has joined #ruby
agent_white has joined #ruby
bhaveshletter has quit [Quit: Leaving]
<agent_white> Mornin.
<Wsewolod> Morning.
roshanavand has joined #ruby
InvGhostt has joined #ruby
mary5030 has quit [Remote host closed the connection]
InvGhosttt has quit [Ping timeout: 240 seconds]
lubarch has joined #ruby
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
arup_r has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
zotherstupidguy has joined #ruby
ebbflowgo has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
lockdown has joined #ruby
roshanavand has joined #ruby
grotewold has joined #ruby
baweaver has joined #ruby
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
mengu has quit []
gustav has joined #ruby
chouhoulis has joined #ruby
th0m_ has quit [Ping timeout: 240 seconds]
test_user17 has joined #ruby
baweaver has quit [Ping timeout: 240 seconds]
gustav has quit [Remote host closed the connection]
greister has joined #ruby
dimasg has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
test_user17 has left #ruby [#ruby]
cdg has quit [Remote host closed the connection]
lady3bean has joined #ruby
greister has quit [Ping timeout: 240 seconds]
dotix has joined #ruby
User458764 has joined #ruby
lubarch has quit [Quit: leaving]
weemsledeux has joined #ruby
brunto has joined #ruby
gustav has joined #ruby
freerobby has joined #ruby
xaitec has joined #ruby
futilegames has joined #ruby
th0m_ has joined #ruby
gustav has quit [Ping timeout: 260 seconds]
gustav has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Helheim has joined #ruby
TheBloke is now known as TheBloke-Away
aryaching has quit []
Bugboy1028 has quit [Ping timeout: 272 seconds]
dangerousdave has joined #ruby
cyberfawkes has quit [Ping timeout: 272 seconds]
lavros has quit [Quit: leaving]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
cornerma1 has joined #ruby
Bugboy1028 has joined #ruby
<havenwood> g'morn
gizmore has joined #ruby
CyberAssassin has joined #ruby
Ilyes512 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CyberAssassin is now known as Guest44274
teclator has quit [Ping timeout: 240 seconds]
cornerman has quit [Ping timeout: 240 seconds]
cornerma1 is now known as cornerman
Helheim has quit [Max SendQ exceeded]
Helheim has joined #ruby
myztic has joined #ruby
voodo is now known as voodo|away
ebbflowgo has quit [Quit: ebbflowgo]
yoongkang has quit [Remote host closed the connection]
greister has joined #ruby
strcmp1 has joined #ruby
strcmp1 was kicked from #ruby by ChanServ [Banned: good bye]
howdoicomputer has joined #ruby
mary5030 has joined #ruby
MarkRenton has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
mattarse has joined #ruby
mmitchel_ has joined #ruby
MarkRenton has left #ruby ["return(function() { return function() { return function {} }}}}}}}}}}}}}}}}}. Bye"]
voodo|away is now known as voodo
voodo has quit [Quit: Leaving...]
stannard has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
howdoicomputer has quit [Ping timeout: 246 seconds]
xaitec has quit [Ping timeout: 240 seconds]
Zackio has quit [Quit: C-x C-c]
dangerousdave has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lockdown has quit [Ping timeout: 246 seconds]
dangerousdave has joined #ruby
Zackio has joined #ruby
RobertBirnie has joined #ruby
stannard has quit [Ping timeout: 240 seconds]
railswebdev has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
mattarse has quit [Ping timeout: 260 seconds]
zenguy_pc has joined #ruby
RobertBirnie has quit [Client Quit]
xaitec has joined #ruby
lockdown has joined #ruby
xaitec has quit [Client Quit]
mattarse has joined #ruby
dlitvak has joined #ruby
<Diabolik> is there a faster way of checking the number of consonants in a string than just using straight up regex?
NeverDie has joined #ruby
colegatron has joined #ruby
Zackio has quit [Remote host closed the connection]
DexterLB has quit [Quit: So long and thanks for all the fish]
kith has quit [Quit: kith]
ponga has joined #ruby
ergosum has joined #ruby
mattarse has quit [Ping timeout: 246 seconds]
Log1x has quit [Ping timeout: 240 seconds]
tomchapin has joined #ruby
DexterLB has joined #ruby
<bougyman> >> 'is there a faster way of checking the number of consonants in a string than just using straight up regex?'.each_char.inject(0) { |a,b| 'aeiou'.include?(b) ? a : a + 1 }
<ruboto> bougyman # => 76 (https://eval.in/477228)
Zackio has joined #ruby
<bougyman> I don't know if that's faster
<bougyman> but it doesn't use a regex
tubuliferous_ has quit [Ping timeout: 240 seconds]
<havenwood> bougyman counts spaces, ya?
<havenwood> Diabolik: count 'a-z', '^aeiou'
<banister> >> "abcdefgh".each_char.count { |v| !%w[a e i o u].include?(v) }
<ruboto> banister # => 6 (https://eval.in/477230)
<havenwood> Diabolik: ^ lowercase only
<bougyman> yeah, need to put spaces in the list, too
<bougyman> or strip them
<havenwood> >> 'is there a faster way of checking the number of consonants in a string than just using straight up regex?'.count 'a-z', '^aeiou'
<ruboto> havenwood # => 56 (https://eval.in/477233)
<bougyman> >> 'is there a faster way of checking the number of consonants in a string than just using straight up regex?'.each_char.inject(0) { |a,b| ' aeiou'.include?(b) ? a : a + 1 }
<ruboto> bougyman # => 57 (https://eval.in/477234)
gustav has quit [Remote host closed the connection]
<banister> havenwood holy?
tubuliferous_ has joined #ruby
<banister> havenwood awesome, i had no idea String had its own magic #count method
<bougyman> but then there's punctuation and stuff.
<havenwood> banister: aye! :)
<bougyman> probably have to actually use consonants in the string to compare.
pwnd_ has quit [Ping timeout: 240 seconds]
Log1x has joined #ruby
GraveLlama has joined #ruby
<GraveLlama> Can arrays hold only one type of data or can you mix them
Zackio has quit [Remote host closed the connection]
<bougyman> >> 'is there a faster way of checking the number of consonants in a string than just using straight up regex?'.each_char.count { |a| 'bcdfghjklmnpqrstvwxyz'.include?(a) }
<ruboto> bougyman # => 56 (https://eval.in/477235)
<adaedra> GraveLlama: anything.
chouhoulis has joined #ruby
<adaedra> >> [1, 'a string', true, [ 'another array' ], { 'why not' => 'zoidberg' }, Class.new ]
<ruboto> adaedra # => [1, "a string", true, ["another array"], {"why not"=>"zoidberg"}, #<Class:0x412abf84>] (https://eval.in/477236)
Zackio has joined #ruby
Log1x has quit [Read error: Connection reset by peer]
<Diabolik> havenwood
<Diabolik> to adapt .count 'a-z', '^aeiou' to include uppercase
<Diabolik> i would just need to add the upper case characters to the second string
<Diabolik> ?
Blaguvest has joined #ruby
brunto has quit [Ping timeout: 260 seconds]
<havenwood> Diabolik: downcase.count
Moeh has joined #ruby
linocisco has joined #ruby
<havenwood> Diabolik: if you only care about ASCII chars
grotewold has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> Diabolik: or: 'a-zA-Z', '^aeiouAEIOU'
<havenwood> it's just ASCII chars anyways
mary5030 has quit [Remote host closed the connection]
<bougyman> >> 'is there a faster way of checking the number of consonants in a string than just using straight up regex?'.each_char.count { |a| 'bcdfghjklmnpqrstvwxyz'.include?(a.downcase) }
<ruboto> bougyman # => 56 (https://eval.in/477237)
<Moeh> Say I have a string like "SELECT * FROM users" and I would like to replace the word users in it, but only if it is preceded by the word "FROM", could I still do that with gsub?
<adaedra> måtçh thîs
<bougyman> yes, musl
<bougyman> er Moeh
Log1x has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
brunto has joined #ruby
mjuszczak has quit []
<Diabolik> i need to allow for nil
Bellthoven has quit [Ping timeout: 240 seconds]
<jhass> Moeh: really hope what you're replacing it with isn't user input of any kind
<Moeh> jhass: No, it is not.
<bougyman> why wouldn't you do this with a builder?
<bougyman> Sequel, for instance.
<bougyman> DB[:users].where(name: 'bougyman').sql or what-not.
<havenwood> Moeh: gsub /(?<=FROM )users/, 'admin'
<bougyman> so changing :users is programattic and not string matching.
mjuszczak has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
Bellthoven has joined #ruby
mattarse has joined #ruby
<Moeh> Ox0dea: What that directed towards me?
<Moeh> *was
<apeiros> ah, havenwood - when will you show me yours? :)
* apeiros curious
<GraveLlama> Does ruby support inline assembler?
dimasg has quit [Ping timeout: 240 seconds]
<apeiros> GraveLlama: sure
<apeiros> via gem
<apeiros> I think one's name is wilson. not sure.
<apeiros> ?toolbox GraveLlama
<ruboto> GraveLlama, https://www.ruby-toolbox.com is a website which lists lots of gems, topically organized
<apeiros> & google, of course
<Moeh> bougyman: The problem is that we allow users to run sql against their own database. I haven't found a nice way to parse sql in ruby and change it programmatically.
kith has joined #ruby
<Ox0dea> So you are sticking "user" input in SQL statements.
<Moeh> I am not sure what you mean. AFAIK I don't "stick" user input in SQL statements but rather let users execute arbitrary sql statements.
<havenwood> apeiros: Good question! I was thinking of trying to support arbitrary ranges. :O Really enjoyed looking at your code, thank you!!
niftylettuce has joined #ruby
dotix has quit [Ping timeout: 260 seconds]
<apeiros> havenwood: butbutbut… I don't want to wait seeing your code until you support arbitrary ranges! :(
<apeiros> :<
mary5030 has joined #ruby
pwnd_ has joined #ruby
<apeiros> :-{
<havenwood> apeiros: Mine is in a state of shambles but I have code to share. I'll put something together to share later today since I have to relocate right now.
<apeiros> huzzah! ok havenwood :)
krobzaur has joined #ruby
diegoaguilar has joined #ruby
mjuszczak has quit []
Kis3k1 has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
krobzaur has quit [Ping timeout: 240 seconds]
brunto has quit [Ping timeout: 260 seconds]
Zackio has quit [Quit: C-x C-c]
Zackio has joined #ruby
baweaver has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
agit0 has joined #ruby
sideshowcoder_ has joined #ruby
linocisco has quit [Ping timeout: 246 seconds]
yoongkang has joined #ruby
davedev24 has joined #ruby
howdoicomputer has joined #ruby
mary5030 has quit [Remote host closed the connection]
<Diabolik> how can i modify this to a) optimize it and b) allow for nil?
mary5030 has joined #ruby
<apeiros> Diabolik: why do you once use .scan and once .count?
woven has joined #ruby
<tobiasvl> Diabolik: although a Hash is obviously an object, are hash keys "properties"? sure the assignment isn't asking you to create your own class?
<jhass> words=nil
howdoicomputer has quit [Ping timeout: 240 seconds]
xaitec has joined #ruby
freerobby has joined #ruby
xaitec has quit [Client Quit]
<apeiros> and I'm not sure why you'd want to allow for nil, but a common way to deal with edge-cases like that is early return: `def …; return {"vowels" => 0, …} unless words; …`
yoongkang has quit [Ping timeout: 246 seconds]
<apeiros> last but not least: "vowels" and "consonants" should be symbols there IMO.
<Diabolik> apeiros i agree but im matching the test spec
<Diabolik> thats the spec
<apeiros> Diabolik: as for a), I'd probably use .delete('^A-Za-z') + .count('aeiouAEIOU') + .size - vowels
<apeiros> not sure whether you can get faster in pure ruby.
mary5030 has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
banister has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
bb010g has joined #ruby
linocisco has joined #ruby
adaedra has quit [Quit: Textual IRC Client: www.textualapp.com]
lockdown has quit [Ping timeout: 246 seconds]
Bellthoven has quit []
bronson has joined #ruby
houhoulis has joined #ruby
darkf has quit [Quit: Leaving]
ss_much has joined #ruby
<Diabolik> hmm
<Diabolik> apeiros my problem is when i run this test
<Diabolik> Test.assert_equals(get_count(nil),{"vowels"=>0,"consonants"=>0},'Should return 5 vowel and 0 consonants')
<Diabolik> i get
<Diabolik> `get_count': wrong number of arguments (0 for 1) (ArgumentError)
<Diabolik> from `
<Diabolik> '
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 264 seconds]
cpup has joined #ruby
<apeiros> Diabolik: you're mixing up stuff there.
<apeiros> make sure you actually paste the right error with the right code.
<apeiros> because 0 for 1 says you are not passing an argument. but the code you show does pass an argument.
<Diabolik> ah ofc
<Diabolik> sorry
<Diabolik> Test.assert_equals(get_count(),{"vowels"=>0,"consonants"=>0},'Should return 0 vowel and 0 consonants')
<apeiros> good. and that'd be because your get_count requires an argument. the argument isn't optional.
<apeiros> foo(nil) is not the same as foo()
elaptics is now known as elaptics`away
<Diabolik> so it should be def get_count(*words)?
asas has joined #ruby
patrick has joined #ruby
Azure has joined #ruby
patrick is now known as Guest34190
pandaant has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 264 seconds]
<Ox0dea> Diabolik: You could also just use the empty string as the default argument.
bttf has quit [Read error: Connection reset by peer]
<apeiros> Diabolik: that makes get_count accept *any number* of arguments. that's almost certainly not what you want.
<apeiros> Diabolik: you probably want a default value for the single argument it takes.
<Ox0dea> (Somebody else tell Diabolik he should use a default argument.)
<apeiros> Ox0dea: if it should take nil (IMO bad, but well…), then the default should IMO be nil too.
<apeiros> IMO it shouldn't have a default value either. get_count() is silly.
<apeiros> either this is homework or a horrible spec.
<apeiros> (even with as homework it's a horrible spec - shouldn't use bad code to teach)
<apeiros> -with
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
<Ox0dea> Perhaps the intent of the exercise is to teach defensive programming.
Emmanuel_Chanel has joined #ruby
chouhoulis has joined #ruby
<apeiros> s/defensive/stupid/
brt has quit [Ping timeout: 246 seconds]
<apeiros> exploding early at nonsensical input is a perfectly sane defense.
<apeiros> swallowing all kinds of shit is rather silly defense.
Jardayn has joined #ruby
cpup has quit [Ping timeout: 240 seconds]
<linocisco> hi all
<apeiros> hi linocisco
thesheff17 has joined #ruby
<linocisco> I have install ruby. Can I still install rbenv?
<linocisco> I have install ruby 1.9 using apt-get install ruby on ubuntu. Can I still install rbenv?
<apeiros> linocisco: look at the rbenv website and see what they say?
<Ox0dea> I think people who do this don't realize they're on camera.
<linocisco> apeiros, thanks.
cpup has joined #ruby
bttf has joined #ruby
TheBloke-Away is now known as TheBloke
chouhoulis has quit [Ping timeout: 246 seconds]
RobertBirnie has joined #ruby
darkxploit has quit [Ping timeout: 260 seconds]
cpup has quit [Ping timeout: 240 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
houhoulis has quit [Remote host closed the connection]
User458764 has joined #ruby
momo-reina has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
krobzaur has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
yqt has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
banister has joined #ruby
krobzaur has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
TheBloke is now known as TheBloke-Away
darkxploit has joined #ruby
asas is now known as Dimik
tmtwd has joined #ruby
last_staff has joined #ruby
akkad has quit [Excess Flood]
colegatron has joined #ruby
greister has quit [Ping timeout: 260 seconds]
TheHodge has joined #ruby
akkad has joined #ruby
woven has quit [Ping timeout: 260 seconds]
dangerousdave has joined #ruby
howdoicomputer has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
karapetyan has joined #ruby
yoongkang has joined #ruby
tildes has joined #ruby
TheBloke-Away is now known as TheBloke
stannard has joined #ruby
GraveLlama has quit [Read error: Connection reset by peer]
GraveLlama has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
roshanavand has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 240 seconds]
stannard has quit [Ping timeout: 240 seconds]
xaitec has joined #ruby
howdoicomputer has joined #ruby
woven has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
InvGhostt has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
crowell has quit [Changing host]
crowell has joined #ruby
mary5030 has joined #ruby
Kis3k1 has quit [Quit: Leaving]
brunto has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greister has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
dimasg has joined #ruby
xaitec has quit [Quit: Xaitec]
momo-reina has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
chouhoulis has joined #ruby
Bubaphex has joined #ruby
Bubaphex has quit [Client Quit]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<linocisco> hi all
VeryBewitching has joined #ruby
dimasg has quit [Ping timeout: 240 seconds]
<linocisco> before installation of RVM, i installed ruby on ubuntu using apt-get install ruby and which installed 1.9 automatically.
<VeryBewitching> G'day folks.
<Diabolik> apeiros its not homework
<Diabolik> its on codewars
Rickmast_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krobzaur has joined #ruby
<linocisco> when I install rvm using \curl -sSL https://get.rvm.io | bash -s stable --ruby. it installed rvm with ruby version 2.2.1 in specific directory. and I can't find version 1.9 using rvm use 1.9
chouhoulis has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
<havenwood> linocisco: For system Ruby: rvm use system
dotix has joined #ruby
dotix has joined #ruby
dotix has quit [Changing host]
dotix has quit [Remote host closed the connection]
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
<havenwood> linocisco: If you're looking for a switcher lighter than RVM use chruby not rbenv.
<linocisco> havenwood, I was not aware of that
Xeago has joined #ruby
<linocisco> havenwood, i m not using rbenv, i am using rvm
<havenwood> linocisco: I only mention it because you said rbenv earlier then RVM.
<apeiros> linocisco: with rvm, you generally use rvm to install your ruby. not apt.
<apeiros> i.e., rvm install ruby-2.2.3; rvm use 2.2.3 --default
<linocisco> havenwood, yes. it was right.. but I didn't install rbenv which installation is complicated
<havenwood> linocisco: Use the command apeiros showed above to install 2.2.3 and set it as the RVM default Ruby.
<linocisco> apeiros, yes. I see. I installed ruby simply via apt-get install ruby first before I know other options
<havenwood> linocisco: To switch back to system Ruby: rvm use system
myztic has quit [Ping timeout: 246 seconds]
<linocisco> havenwood, that is easier
<linocisco> havenwood, apeiros thanks all
BTRE has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 260 seconds]
varunwachaspati has quit [Quit: Connection closed for inactivity]
myztic has joined #ruby
myztic has quit [Client Quit]
Xeago has quit [Ping timeout: 260 seconds]
ereslibre_laptop has quit [Ping timeout: 276 seconds]
BTRE has joined #ruby
myztic has joined #ruby
<linocisco> havenwood, apeiros some_guy = { :name => "Tony", :age => 21 } is not working in version 1.9
<linocisco> havenwood, apeiros now.ok with version 2.2.3 which is latest
<apeiros> linocisco: "not working" is a useless problem description
<Ox0dea> 19>> some_guy = { :name => "Tony", :age => 21 } # linocisco
<apeiros> and yes, that's working just fine in 1.9:
<ruboto> Ox0dea # => {:name=>"Tony", :age=>21} (https://eval.in/477276)
voodo has joined #ruby
<apeiros> oh, Ox0dea was faster
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruid has joined #ruby
cpup has joined #ruby
<linocisco> apeiros, ruboto is robot which can type and process faster
<apeiros> o0
Gnut has joined #ruby
<linocisco> I didn't know why my previous attempts with system ruby 1.9 were not ok
jetpackjoe has joined #ruby
<linocisco> another_guy = { name: "Ben", age: 20 } is also another way
<linocisco> ruby is complicated with different versions to me
BaroMeter has quit [Quit: Leaving]
linocisco has quit [Quit: Leaving]
<havenwood> linocisco: Ruby 1.9 is past End-of-Life. Please use Ruby 2.1 or better-yet Ruby 2.2.
tubuliferous_ has quit [Ping timeout: 240 seconds]
<apeiros> they left.
<apeiros> hm, could be a feature for ruboto. informing about people who left.
<apeiros> and maybe even auto-memo.
banister has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Would that be opt-in or -out?
<havenwood> I usually defer to <tab> completion but sometime people leave between <tab> and <enter>.
<apeiros> auto-memo probably opt-out for the receiver. tell about left people would be always on.
<apeiros> havenwood: yeah, same for me. and then I won't notice they're gone :)
ta has joined #ruby
kerunaru has joined #ruby
tubuliferous_ has joined #ruby
Guest44274 is now known as cyberfawkes
cyberfawkes has quit [Changing host]
cyberfawkes has joined #ruby
cyberfawkes has joined #ruby
peterhil_ has quit [Ping timeout: 260 seconds]
Ox0dea has quit [Quit: WeeChat 1.4-dev]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brt has joined #ruby
<apeiros> havenwood: does that mean you've relocated and can gist code now? :D
<havenwood> apeiros: Ha, I had just thought of doing that but I'm watching my niece. If I stare at code she'll wander off and fall off a cliff.
fantazo has joined #ruby
<apeiros> where the hell are you? :D
ereslibre has joined #ruby
<havenwood> apeiros: The Santa Monica mountains. ;)
jud has joined #ruby
crazydiamond has joined #ruby
Guest34190 has quit [Quit: Leaving]
daffy_duck has joined #ruby
gustav has joined #ruby
yoongkang has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
PlasmaStar has quit [Ping timeout: 240 seconds]
tmtwd has joined #ruby
* apeiros blinks
<apeiros> ooookay…
kadoppe_ has quit [Ping timeout: 240 seconds]
kadoppe has joined #ruby
daffy_duck has quit [Client Quit]
daffy_duck has joined #ruby
daffy_duck has quit [Client Quit]
weemsledeux has joined #ruby
PlasmaStar has joined #ruby
weemsledeux has quit [Client Quit]
baweaver has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 246 seconds]
sideshowcoder_ has quit [Quit: Connection closed for inactivity]
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
<VeryBewitching> Generally not toddler territory I hear.
weemsledeux has joined #ruby
akem has quit [Remote host closed the connection]
setient has quit [Ping timeout: 276 seconds]
akem has joined #ruby
ohaibbq has joined #ruby
setient has joined #ruby
roshanavand has joined #ruby
jbrhbr has joined #ruby
roshanavand has quit [Read error: No route to host]
roshanavand has joined #ruby
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has quit [Quit: futilegames]
d0nn1e has quit [Ping timeout: 240 seconds]
darkxploit has quit [Ping timeout: 246 seconds]
psy_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
d0nn1e has joined #ruby
cwong_on_irc has joined #ruby
ruid_ has joined #ruby
ta has quit [Remote host closed the connection]
InvGhostt has joined #ruby
banister has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
nso95- has joined #ruby
nso95- has joined #ruby
ruid_ has quit [Client Quit]
ruid_ has joined #ruby
nso95- has quit [Remote host closed the connection]
danielpclark has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
kerunaru has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
calderonroberto has joined #ruby
darkxploit has joined #ruby
zotherstupidguy has quit [Quit: WeeChat 1.3]
axsuul has joined #ruby
jetpackjoe has joined #ruby
lockdown has joined #ruby
weemsledeux has quit [Max SendQ exceeded]
dikaio has joined #ruby
ruid_ has quit [Quit: Leaving]
darkxploit has quit [Quit: Leaving]
s2013 has joined #ruby
<pontiki> havenwood: that your home? i miss SM a lot
Kis3k1 has joined #ruby
freerobby has quit [Quit: Leaving.]
krobzaur has quit [Quit: WeeChat 1.2]
<Kis3k1> hi, what is this ?E in'Example'.include?(?E)
<Kis3k1> what does it mean?
tmtwd has quit [Ping timeout: 260 seconds]
ruid has quit [Changing host]
ruid has joined #ruby
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
armyriad has joined #ruby
<apeiros> >> ?E # < Kis3k1
<ruboto> apeiros # => "E" (https://eval.in/477377)
<apeiros> Kis3k1: in general, try to use pry (or irb) to answer such questions.
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
<Kis3k1> alright, thanks
<apeiros> IMO ?<char> literals is syntax which you should know about, but not use.
wet88 has joined #ruby
<pontiki> Postel's Principle
GarethAdams has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
<blubjr> oh weird
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
agent_white is now known as agent_fake
Jackneill has quit [Ping timeout: 260 seconds]
BSaboia has joined #ruby
agent_fake is now known as agent_bob
dangerousdave has joined #ruby
dangerousdave has quit [Max SendQ exceeded]
agent_bob is now known as agent_white
dangerousdave has joined #ruby
BSab has quit [Ping timeout: 240 seconds]
<apeiros> postel's law. one of my pet peeves.
<apeiros> not because it's wrong, but because it's almost always applied/understood wrongly
<blubjr> how do you mean
<pontiki> yeah, kinda like scripture
<apeiros> postel's law (robustness principle) is "Be conservative in what you do, be liberal in what you accept from others"
<apeiros> and some people take it as "your stuff must be able to deal with every kind of incoming crap".
GarethAdams has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
<apeiros> though, actually I do strongly disagree with one of its parts, specifically the "silently discard invalid input". I'm a fan of "explode early and loudly". With some (rare) exceptions.
cmoneylulz has joined #ruby
Kis3k1 has quit [Quit: Leaving]
<blubjr> hear hear
amoeba has joined #ruby
<apeiros> ah, somehow omitted to send a line. re "some people take it as":
<pontiki> that's one of the reasons i don't refer to it as a law
<pontiki> apeiros: i saw that here...
atomical has joined #ruby
scottstamp has joined #ruby
yoongkang has joined #ruby
<apeiros> and that's not what it means. postel clarified that he meant "within the spec". i.e. implement the whole spec for incoming. but only use what's necessary for outgoing.
<pontiki> exactly
<pontiki> and pretty specifically at that for the TCP spec
peterhil_ has joined #ruby
jbrhbr has quit [Quit: Leaving.]
Kharma has joined #ruby
dikaio has quit [Read error: Connection reset by peer]
GraveLlama has quit [Ping timeout: 240 seconds]
agent_white is now known as agent_fake
lockdown has quit [Ping timeout: 240 seconds]
agent_fake is now known as agent_white
BraddPitt has joined #ruby
nso95- has joined #ruby
yoongkang has quit [Ping timeout: 240 seconds]
johnny56 has joined #ruby
peterhil_ has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
gustav has quit [Remote host closed the connection]
colegatron has quit [Ping timeout: 240 seconds]
lockdown has joined #ruby
sonOfRa_ has joined #ruby
scottstamp has quit [Ping timeout: 265 seconds]
Kharma has quit [Ping timeout: 265 seconds]
johnny56 has quit [Ping timeout: 265 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
amoeba has quit [Ping timeout: 265 seconds]
last_staff has quit [Quit: last_staff]
FastJack_ has joined #ruby
BrunoSaboia has joined #ruby
baweaver has quit [Remote host closed the connection]
zack6849 has quit [Ping timeout: 272 seconds]
atomical has quit [Ping timeout: 265 seconds]
sonOfRa has quit [*.net *.split]
FastJack has quit [*.net *.split]
snapcase has quit [*.net *.split]
dlitvak has joined #ruby
Coraline has quit [*.net *.split]
pestle has quit [*.net *.split]
bodie_ has quit [*.net *.split]
irk has quit [*.net *.split]
jayne has quit [*.net *.split]
brainslug has quit [*.net *.split]
csmb has quit [*.net *.split]
bhorn1 has quit [*.net *.split]
sshuff|gone has quit [*.net *.split]
BSaboia has quit [Ping timeout: 240 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
FooMunki has joined #ruby
vifino has quit [*.net *.split]
tsunamie has quit [*.net *.split]
ajafo has quit [*.net *.split]
cmoneylulz has quit [Ping timeout: 240 seconds]
BSaboia has joined #ruby
GraveLlama has joined #ruby
calderonroberto has quit [Ping timeout: 240 seconds]
BrunoSaboia has quit [Ping timeout: 240 seconds]
zotherstupidguy has joined #ruby
baweaver has joined #ruby
Wsewolod has quit [Ping timeout: 240 seconds]
colegatron has joined #ruby
chouhoulis has joined #ruby
Helheim has quit [Read error: Connection reset by peer]
manolo1 has joined #ruby
Marcon has joined #ruby
lxsameer has quit [Quit: Leaving]
roshanavand has quit [Remote host closed the connection]
<Marcon> marco
<Marcon> ..
ruid has quit [Ping timeout: 260 seconds]
Marcon has quit [Client Quit]
voodo is now known as voodo|away
marno has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
calderonroberto has joined #ruby
voodo|away is now known as voodo
voodo has quit [Quit: Leaving...]
marno has quit [Client Quit]
tomdp_ has quit [Quit: ZNC - http://znc.in]
tomdp has joined #ruby
lockdown has quit [Ping timeout: 240 seconds]
Coldblackice has joined #ruby
lockdown has joined #ruby
BrunoSaboia has joined #ruby
Wsewolod has joined #ruby
th0m__ has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
BSaboia has quit [Ping timeout: 260 seconds]
ruid has joined #ruby
ruid has quit [Changing host]
ruid has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Helheim has joined #ruby
karapetyan has joined #ruby
calderonroberto has quit [Ping timeout: 246 seconds]
manolo1 has quit [Quit: WeeChat 1.3]
bkxd has joined #ruby
FooMunki has quit [Quit: FooMunki]
maneco has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
roshanavand has joined #ruby
sepp2k has joined #ruby
s2013 has joined #ruby
kerunaru has joined #ruby
weaksauce has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.4-dev]
testaa has joined #ruby
roshanavand has quit [Ping timeout: 246 seconds]
AlexRussia has joined #ruby
* testaa slaps maneco around a bit with a large fishbot
Xeago has joined #ruby
Coraline has joined #ruby
karapetyan has quit [Remote host closed the connection]
maneco has quit [Quit: WeeChat 1.3]
dotix has quit [Ping timeout: 246 seconds]
cosmicfires has joined #ruby
akem has quit [Quit: Bye]
Coldblackice has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
Xeago has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Textual IRC Client: www.textualapp.com]
bkxd has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
beast has quit [Quit: Leaving]
nso95- has left #ruby [#ruby]
<apeiros> havenwood! code!
Xeago has joined #ruby
BlackCoyote has quit [Remote host closed the connection]
roshanavand has joined #ruby
Asher has joined #ruby
landry has joined #ruby
bkxd has joined #ruby
lockdown has quit [Quit: leaving]
codecop has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
myeyesareblind has joined #ruby
Coldblackice has joined #ruby
yoongkang has joined #ruby
<blubjr> so um how do you get tco working in ruby
<blubjr> i asked before and i got pointed to RubyVM::InstructionSequence, but its not really clear what to do with it to me
roshanavand has quit [Ping timeout: 240 seconds]
<apeiros> oh wow, rackup doesn't like it if you put a space between -I and its value
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
* apeiros stabs chris2, but only lightly
<havenwood> apeiros: Ack, I don't have a dynamic version working yet. It's too ugly.
<havenwood> apeiros: Here's my stab at looking for patterns: https://gist.github.com/havenwood/fe4efe47604b32214a60
<apeiros> :D thanks
<havenwood> apeiros: It may be incredibly naive, but hey at least I have 501500 passing assertions! :P
<apeiros> ^^
<crankharder> Is there any tool that will visualize all subclasses of a given class? trying to trace through a new-to-me app with a pile of inheritance everywhere. basically just want it to output a pyramid of sorts
<apeiros> not sure whether I added my tiny pathetic test code to the gist
<havenwood> blubjr: Compile Ruby with this patch: https://gist.github.com/havenwood/d958268d0ab896373af6
<havenwood> blubjr: Then you have TCO.
<havenwood> crankharder: So not #ancestors but #ancestry_tree?
yoongkang has quit [Ping timeout: 260 seconds]
A124 has quit [Quit: '']
<apeiros> sounded like #descendants (if that existed)
<apeiros> crankharder: rdoc can generate diagrams of classes
<apeiros> not sure, I'd hope yard can too, but I never tried/looked
<apeiros> for rdoc, I think you need graphviz installed
dlitvak has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
<crankharder> actually, looks like I can really get what I want just from #subclasses
dlitvak has quit [Remote host closed the connection]
<apeiros> crankharder: you *probably* should have told us that it's rails.
<apeiros> s/probably/absolutely/
<apeiros> you know, kinda relevant.
<havenwood> blubjr: You can use RubyVM::InstructionSequence to run certain code with TCO when it's not enabled. But are you using the trace info? Why not just enable TCO?
crazydiamond has quit [Remote host closed the connection]
dikaio has joined #ruby
<havenwood> crankharder: Rails!!
djbkd has joined #ruby
* havenwood searches in vain for a pitchfork
* apeiros gets the torches
roshanavand has joined #ruby
saddad has joined #ruby
<havenwood> blubjr: Want to compile Ruby with TCO? Yell if you want help.
<blubjr> havenwood: will do, im just looking into it now
<havenwood> blubjr: RVM, chruby/ruby-install or compiling yourself?
<havenwood> (It's easy to patch whatever way.)
<apeiros> havenwood: thanks for your code, it was an interesting read :)
<blubjr> compiling myself
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Ping timeout: 246 seconds]
krobzaur has joined #ruby
ruid has quit [Ping timeout: 246 seconds]
Asher has quit [Quit: Leaving.]
arup_r has quit []
pwnd_ has quit [Ping timeout: 240 seconds]
spt0 has quit [Ping timeout: 264 seconds]
djbkd has quit [Quit: My people need me...]
dimasg has joined #ruby
mary5030 has joined #ruby
<havenwood> blubjr: patch -p1 -d . < tco.patch
myeyesareblind has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
chouhoulis has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
dimasg has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 240 seconds]
testaa has quit [Changing host]
testaa has joined #ruby
nofxx has joined #ruby
roshanavand has joined #ruby
testaa has quit [Ping timeout: 246 seconds]
jetpackjoe has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
<atmosx> hello
kerunaru has quit [Ping timeout: 260 seconds]
brunto has quit [Ping timeout: 240 seconds]
testetest has joined #ruby
smokey has joined #ruby
<havenwood> atmosx: hi
<testetest> hey
<atmosx> :-)
<testetest> <.<
pwnd_ has joined #ruby
testetest has left #ruby [#ruby]
rainmanjam has joined #ruby
sandstrom has joined #ruby
<havenwood> two beached sharks? the humanity!
johnzorn has quit [Ping timeout: 272 seconds]
<havenwood> I like that &. is the lonely person operator.
<Coraline> I thought that was pretty cute, too.
<havenwood> :)
sankaber has joined #ruby
allomov has quit [Remote host closed the connection]
<nofxx> trying to run a jar here, 'already activated rack 1.6.4, requires bla bla la shit' how to bundle run this correctly? http://tabula.technology/
<nofxx> how I wish versions problems were just warnings... call me 'too much optimistic' if you will
mary5030 has quit [Remote host closed the connection]
smokey has quit [Read error: Connection reset by peer]
smokey has joined #ruby
colegatron has quit [Ping timeout: 246 seconds]
testetest has joined #ruby
brunto has joined #ruby
saddad has quit [Ping timeout: 240 seconds]
lethjakman-l has joined #ruby
lethjakman-l has left #ruby ["WeeChat 1.2"]
marr has joined #ruby
dangerousdave has joined #ruby
dotix has joined #ruby
krobzaur has quit [Quit: WeeChat 1.2]
smokey has quit [Read error: Connection reset by peer]
smokey has joined #ruby
krobzaur has joined #ruby
csguest has joined #ruby
roshanavand has quit [Remote host closed the connection]
<csguest> how would I tokenizer a string word by word?
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dangerousdave has quit [Client Quit]
<nofxx> csguest, split words?
<csguest> well like
<csguest> "this is a sentence"
<apeiros> csguest: see String#split and #scan
<nofxx> split(/\s+/)
<csguest> how can I go through the string and compare each word to the word im looking for
<csguest> oh okay
<csguest> is there a way to like
<apeiros> how to precisely do it depends entirely on your definition of "word"
<csguest> car and cdr it?
<csguest> get first word, return rest of word
<apeiros> yeah, well, this is not lisp, car & cdr mean little here ;-)
<apeiros> take a look at the docs of Array
<csguest> :)
<nofxx> head recursion? that's just an iterator
kerunaru has joined #ruby
<apeiros> specifically Array#[] with range argument
h99h9h88 has joined #ruby
<apeiros> alternatively you can use the splat syntax:
<apeiros> >> ary = [1,2,3,4]; first, *rest = *ary; {first: first, rest: rest}
<ruboto> apeiros # => {:first=>1, :rest=>[2, 3, 4]} (https://eval.in/477415)
dorei has joined #ruby
<nofxx> what's the gem <arg> to list all installed files from a gem?
dotix has quit [Ping timeout: 246 seconds]
<nofxx> csguest, but for word matching the scan would be a better option... you can //i , go case insensitive
<blubjr> csguest: doing it like they said will produce the same results, but it has very different performance characteristics from cdring down a list, remember
<csguest> :)
<csguest> but i like cdring down a list
<blubjr> me too, its just much slower in ruby :)
roshanavand has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
spt0 has joined #ruby
<Coraline> nofxx: you're looking for gem contents
kerunaru has quit [Ping timeout: 260 seconds]
<nofxx> Coraline, thank you!
<Coraline> Sure
vdamewood has joined #ruby
smokey has quit [Read error: Connection reset by peer]
testetest has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yeticry has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 260 seconds]
<csguest> what does that mean in english
yeticry has joined #ruby
<blubjr> csguest: what does what mean
woven has quit [Ping timeout: 240 seconds]
<csguest> lmao
<csguest> "/\s+/)"
<csguest> didnt realize it did not paste
vifino has joined #ruby
tsunamie has joined #ruby
ajafo has joined #ruby
<blubjr> one or more whitespace chars
<csguest> String.scan(/\s+/)?
snapcase has joined #ruby
<csguest> is that what you mean to use?
<nofxx> csguest, if you want to scan for whitespaces
<csguest> oh
<csguest> string.scan(string.split(/\s+/))?
<csguest> is that what you mean?
<nofxx> nope, two distinct options... split words like you wanted
<nofxx> or scan for a word
<nofxx> read a lil about regex
<Coraline> split returns an array, not a string
<csguest> how do I say scan for all words
<apeiros> csguest: in your command line, you have a tool `ri`, it allows you to access ruby docs.
<apeiros> type `ri String#split` to get info about split.
<apeiros> alternatively you can use online docs:
yoongkang has joined #ruby
<apeiros> &ri String#split @csguest
<apeiros> meep?
<apeiros> `ri String#split @csguest
<apeiros> oh, derpy is offline :(
sandstrom has quit [Quit: My computer has gone to sleep.]
<apeiros> heh, Coraline was faster than I :)
xblade has joined #ruby
<apeiros> ah right, adaedra's server is out. I assume derpy was on it.
jetpackjoe has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Coraline> I've been having a lot of trouble with freenode today.
<Coraline> DDoS apparently
yoongkang has quit [Ping timeout: 246 seconds]
<Coraline> Finally had to go through a Finnish server.
<blubjr> hi coraline
<Coraline> Heya
<apeiros> yeah, freenode had quite some issues the last ~2 days or so
xblade has quit []
krobzaur has quit [Ping timeout: 260 seconds]
ta has joined #ruby
<csguest> what the fuck
<csguest> curse you ruby
kfpratt has joined #ruby
<csguest> why is "if costellos_line.empty" \n "return old_context not working
<csguest> nexpected end-of-input, expecting keyword_end
<Xeago> csguest: because you need to close your if
<blubjr> do you have an 'end' to close the if
<csguest> oh
<csguest> LOL
<Xeago> or you need to inverse the ordering
griffindy has joined #ruby
<Xeago> is an alternative form`statement if conditional`
h99h9h88 has quit [Remote host closed the connection]
woven has joined #ruby
brunto has quit [Ping timeout: 246 seconds]
<csguest> ty it was the lack of an end and that explains everything
h99h9h88 has joined #ruby
gusrub has joined #ruby
framling has quit [Remote host closed the connection]
BSaboia has joined #ruby
roshanavand has joined #ruby
BrunoSaboia has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
axsuul has quit [Ping timeout: 240 seconds]
vikas027 has joined #ruby
yoongkang has joined #ruby
gambl0re has joined #ruby
chouhoulis has joined #ruby
ergosum has quit [Quit: Textual IRC Client: www.textualapp.com]
<csguest> while string != "quit"
<csguest> string = gets
<csguest> why that not work
pawnbox has quit [Remote host closed the connection]
Vitor has joined #ruby
<apeiros> csguest: it does work.
<apeiros> but gets includes the newline.
<apeiros> so if you type "quit"+enter, it'll be "quit\n" != "quit", which is true.
tubuliferous_ has quit [Ping timeout: 240 seconds]
<Coraline> csguest: you need to chomp
<apeiros> for future reference "does not work" is a useless problem description. instead state what you expect something to do, and what it does instead. if you get an exception, paste (on gist.github.com) the full exception.
chouhoulis has quit [Ping timeout: 240 seconds]
myztic has quit [Quit: leaving]
<apeiros> or compare to "quit\n"
snapcase has quit [Ping timeout: 246 seconds]
nso95- has joined #ruby
snapcase has joined #ruby
th0m__ has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 240 seconds]
codecop has quit [Remote host closed the connection]
<csguest> can i gets
<csguest> without a newline
Vitor has quit [Ping timeout: 260 seconds]
<Coraline> Like I said, use chomp
CloCkWeRX has quit [Ping timeout: 240 seconds]
<csguest> heh heh. chomping strings
nso95- has quit [Remote host closed the connection]
<apeiros> csguest: also, you probably want $stdin.gets, not toplevel gets
<csguest> whats the difference
<apeiros> toplevel gets is Kernel#gets, which is ARGF.gets, which in turn means it'll consider all arguments given to your script as files to read from, and after having read them, move on to $stdin.
tubuliferous_ has joined #ruby
<csguest> oh
<csguest> cool it works now
<csguest> if you input dicks, itll print out cats
<cats> no it won't
<csguest> if you say anything else itll print out dogs
<csguest> now it will
<csguest> my programming skills are off the charts
pawnbox has joined #ruby
<cats> I stt
<cats> see*
<csguest> is there a better way to check equivalence
<csguest> instead of ==
<blubjr> apeiros: oh huh, so if you just use normal gets it automatically works like a normal unix program ?
shum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
CloCkWeRX has joined #ruby
<apeiros> blubjr: like some, yes
<blubjr> neat
bronson has quit [Remote host closed the connection]
sdothum has joined #ruby
spider-mario has quit [Remote host closed the connection]
BlackCoyote has joined #ruby
sdothum has quit [Client Quit]
pawnbox has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
sdothum has joined #ruby
bronson has joined #ruby
landry has quit [Quit: landry]
devbug has joined #ruby
yoongkang has quit [Remote host closed the connection]
jhn has joined #ruby
sdothum has quit [Client Quit]
roshanavand has quit [Ping timeout: 246 seconds]
<csguest> yo
th0m__ has joined #ruby
sdothum has joined #ruby
dotix has joined #ruby
th0m_ has quit [Quit: Leaving]
yoongkang has joined #ruby
nso95- has joined #ruby
snapcase has quit [*.net *.split]
mary5030 has joined #ruby
<csguest> did I do it right
dotix has quit [Ping timeout: 246 seconds]
nso95- has left #ruby [#ruby]
<apeiros> what on earth did you do to the indention? :-S
<apeiros> you know, convention in ruby is 2 spaces, not 2 tabs…
calderonroberto has joined #ruby
<apeiros> (I don't know anything where you'd use 2 tabs…)
<csguest> its vim
<apeiros> no
<apeiros> vim does what you tell it to do.
mary5030 has quit [Ping timeout: 246 seconds]
<csguest> fixed it
<csguest> but is that right?
Rickmasta has joined #ruby
cajone is now known as cajone_afk
Xeago has quit [Remote host closed the connection]
BrunoSaboia has joined #ruby
spt0 has quit [Ping timeout: 260 seconds]
BSaboia has quit [Ping timeout: 260 seconds]
<csguest> i fixed my dicks