apeiros changed the topic of #ruby-lang to: Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste code on https://gist.github.com
joaomdmoura has joined #ruby-lang
sankaber has joined #ruby-lang
CaptainCibai has quit [Remote host closed the connection]
joaomdmoura has quit [Remote host closed the connection]
nick has joined #ruby-lang
nick is now known as Guest99239
Guest99239 is now known as CaptainCibai
malconis has joined #ruby-lang
dented42 has joined #ruby-lang
snsei has quit [Remote host closed the connection]
j0n3 has quit [Read error: Connection reset by peer]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snsei has joined #ruby-lang
marr has quit []
joaomdmoura has joined #ruby-lang
vmatiyko has quit [Ping timeout: 265 seconds]
snsei has quit [Remote host closed the connection]
snsei_ has joined #ruby-lang
snsei_ has quit [Remote host closed the connection]
snsei_ has joined #ruby-lang
tibig has quit [Ping timeout: 258 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joaomdmoura has quit [Remote host closed the connection]
bungoman has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
haraoka has joined #ruby-lang
slawrence00 has joined #ruby-lang
shinnya has quit [Ping timeout: 264 seconds]
bahar has quit [Ping timeout: 265 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bahar has joined #ruby-lang
Asher has quit [Read error: No route to host]
fedexo has joined #ruby-lang
Asher has joined #ruby-lang
Asher has quit [Remote host closed the connection]
Asher has joined #ruby-lang
bruno- has quit [Ping timeout: 272 seconds]
snsei_ has quit [Remote host closed the connection]
Pathfinder has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
bungoman has joined #ruby-lang
howdoicomputer_ has joined #ruby-lang
stardiviner has quit [Ping timeout: 276 seconds]
michaeldeol has joined #ruby-lang
charliesome has joined #ruby-lang
_djbkd has joined #ruby-lang
tkuchiki has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
JakFrist_ has joined #ruby-lang
stardiviner has joined #ruby-lang
charliesome has quit [Quit: zzz]
howdoicomputer_ has quit [Quit: howdoicomputer_]
ledestin has joined #ruby-lang
charliesome has joined #ruby-lang
nux443 has quit [Ping timeout: 246 seconds]
ryba has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
BanzaiJoe has joined #ruby-lang
kfpratt has joined #ruby-lang
bruno- has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
rawrmons_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
caseypatrickdris has quit [Remote host closed the connection]
snsei has joined #ruby-lang
symm- has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 256 seconds]
Respek has joined #ruby-lang
snsei has quit [Ping timeout: 240 seconds]
lovecraft has joined #ruby-lang
lovecraft is now known as Guest25128
kfpratt has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
Respek has quit [Quit: Textual IRC Client: www.textualapp.com]
bahar has quit [Ping timeout: 245 seconds]
amclain has quit [Quit: Leaving]
caseypatrickdris has joined #ruby-lang
bahar has joined #ruby-lang
dorei has quit []
kfpratt has quit [Read error: Connection reset by peer]
kfpratt has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby-lang
fujimura has joined #ruby-lang
pgatt has joined #ruby-lang
cb__ has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
kfpratt has joined #ruby-lang
ruby-lang007 has joined #ruby-lang
ruby-lang007 has quit [Client Quit]
j4cknewt has joined #ruby-lang
kfpratt has quit [Remote host closed the connection]
tenderlove has quit [Quit: Leaving...]
auzty has joined #ruby-lang
JakFrist_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seank_ has quit []
palar has quit [Remote host closed the connection]
snsei has joined #ruby-lang
nertzy has joined #ruby-lang
rbowlby has joined #ruby-lang
seank_ has joined #ruby-lang
seank_ has quit []
ubernil has joined #ruby-lang
seank_ has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
slumos[away] has left #ruby-lang [#ruby-lang]
gix has quit [Ping timeout: 276 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
gix has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
pepperbreath has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 255 seconds]
araujo has joined #ruby-lang
t_ has quit [Ping timeout: 265 seconds]
pepperbreath has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rawrmonstar has joined #ruby-lang
snsei has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
gianlucadv has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
snsei has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
slawrence00 has joined #ruby-lang
rawrmonstar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
cb__ has quit [Remote host closed the connection]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ur5us has joined #ruby-lang
crdpink has quit [Quit: q term]
charliesome has joined #ruby-lang
crdpink has joined #ruby-lang
nertzy has joined #ruby-lang
nertzy has quit [Client Quit]
j4cknewt has joined #ruby-lang
ur5us has quit [Ping timeout: 264 seconds]
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
j4cknewt has joined #ruby-lang
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby-lang
riotjones has quit [Read error: Connection reset by peer]
micmus has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby-lang
kwd has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 272 seconds]
revath has joined #ruby-lang
revath1 has joined #ruby-lang
snsei has quit [Remote host closed the connection]
revath has quit [Ping timeout: 244 seconds]
postmodern has joined #ruby-lang
revath has joined #ruby-lang
revath1 has quit [Ping timeout: 256 seconds]
rippa has joined #ruby-lang
djbkd_ has joined #ruby-lang
ubernil has quit [Ping timeout: 240 seconds]
djbkd_ has quit [Client Quit]
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pathfinder has joined #ruby-lang
Guest25128 has quit [Quit: Leaving]
ubernil has joined #ruby-lang
Senjai has quit [Ping timeout: 255 seconds]
A124 has quit [Remote host closed the connection]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
riotjones has joined #ruby-lang
riotjones has quit [Read error: Connection reset by peer]
riotjones has joined #ruby-lang
riotjones has quit [Read error: Connection reset by peer]
A124 has joined #ruby-lang
Senjai has joined #ruby-lang
riotjones has joined #ruby-lang
VinnyBoy has quit [Read error: Connection reset by peer]
cb__ has joined #ruby-lang
riotjones has quit [Ping timeout: 256 seconds]
snsei has joined #ruby-lang
cb__ has quit [Remote host closed the connection]
snsei has quit [Ping timeout: 246 seconds]
dented42 has joined #ruby-lang
chinmay_dd has joined #ruby-lang
riotjones has joined #ruby-lang
bahar has quit [Ping timeout: 256 seconds]
BanzaiJoe has quit [Read error: Connection reset by peer]
BanzaiJoe has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clauswitt has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
bahar has joined #ruby-lang
marr has joined #ruby-lang
clauswitt has quit [Max SendQ exceeded]
arBmind has joined #ruby-lang
tsujp has joined #ruby-lang
clauswitt has joined #ruby-lang
ta has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
tibig has joined #ruby-lang
Guest24 is now known as lele
futilegames has joined #ruby-lang
vondruch has quit [Ping timeout: 244 seconds]
futilegames has left #ruby-lang [#ruby-lang]
ta has quit [Remote host closed the connection]
elia has joined #ruby-lang
snsei has joined #ruby-lang
snsei has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 276 seconds]
fluchtreflex has quit [Quit: ZNC - http://znc.in]
j4cknewt has joined #ruby-lang
|jemc| has quit [Ping timeout: 244 seconds]
solars has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
solars has quit [Client Quit]
bruno- has joined #ruby-lang
kwd has joined #ruby-lang
solars has joined #ruby-lang
chadrien_ is now known as chadrien
bruno- has quit [Ping timeout: 240 seconds]
tomaz_b has joined #ruby-lang
dede has joined #ruby-lang
kerunaru has joined #ruby-lang
tibig has quit [Ping timeout: 250 seconds]
ryba has joined #ruby-lang
rikkipitt has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
revath has quit [Ping timeout: 250 seconds]
stan has joined #ruby-lang
achamian has joined #ruby-lang
ttilley has joined #ruby-lang
fedexo has quit [Ping timeout: 256 seconds]
ttilley has quit [Changing host]
ttilley has joined #ruby-lang
revath has joined #ruby-lang
ta has joined #ruby-lang
achamian has quit []
marr has quit []
achamian has joined #ruby-lang
rbowlby has joined #ruby-lang
marr has joined #ruby-lang
dhjondoh has joined #ruby-lang
ur5us has joined #ruby-lang
dhjondoh has quit [Client Quit]
ta has quit [Remote host closed the connection]
achamian has quit []
ta has joined #ruby-lang
rikkipitt has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 245 seconds]
k3asd` has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 265 seconds]
skade has joined #ruby-lang
kr3ssh has joined #ruby-lang
hahuang65 has joined #ruby-lang
charliesome has quit [Quit: zzz]
hahuang65 has quit [Ping timeout: 256 seconds]
ryba has quit [Ping timeout: 244 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fujimura has quit [Remote host closed the connection]
vondruch has joined #ruby-lang
vondruch has quit [Client Quit]
vondruch has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
myork80 has joined #ruby-lang
charliesome has joined #ruby-lang
chinmay_dd has joined #ruby-lang
rflot has quit [Ping timeout: 276 seconds]
ryba has joined #ruby-lang
wasnotrice has quit [Quit: ZNC - http://znc.sourceforge.net]
t-richards has quit [Ping timeout: 276 seconds]
wasnotrice has joined #ruby-lang
rflot has joined #ruby-lang
manveru has quit [Ping timeout: 276 seconds]
t-richards has joined #ruby-lang
manveru has joined #ruby-lang
fujimura has joined #ruby-lang
Obfuscate has quit [Ping timeout: 276 seconds]
tsujp has quit [Quit: tsujp is snoozing]
Obfuscate has joined #ruby-lang
vmatiyko has joined #ruby-lang
alxndr has quit [Ping timeout: 276 seconds]
arBmind has joined #ruby-lang
alxndr has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
TheMoonMaster has quit [Ping timeout: 276 seconds]
chrisseaton has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby-lang
chrisseaton has joined #ruby-lang
jas02 has joined #ruby-lang
<yorickpeterse> morning
<ljarvis> moin
TheMoonMaster has joined #ruby-lang
ta has joined #ruby-lang
ta has quit [Remote host closed the connection]
ta has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
lele is now known as Guest24
datanoise has joined #ruby-lang
araujo_ has joined #ruby-lang
araujo has quit [Ping timeout: 258 seconds]
fluchtreflex has joined #ruby-lang
fluchtreflex has quit [Changing host]
fluchtreflex has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang074 has quit [Ping timeout: 246 seconds]
araujo_ has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
jas02 has quit [Quit: jas02]
datanoise has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
iamninja_ has quit [Read error: Connection reset by peer]
skade has joined #ruby-lang
intinig has joined #ruby-lang
clauswitt has quit [Ping timeout: 256 seconds]
stardiviner has quit [Ping timeout: 256 seconds]
pgatt has quit [Quit: Connection closed for inactivity]
stardiviner has joined #ruby-lang
postmodern has quit [Quit: Leaving]
palar has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
nedp has quit [Remote host closed the connection]
dhjondoh has joined #ruby-lang
kr3ssh has quit [Ping timeout: 276 seconds]
kr3ssh has joined #ruby-lang
bruno- has joined #ruby-lang
jas02 has joined #ruby-lang
skade has joined #ruby-lang
myork80 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 265 seconds]
cornerma1 is now known as cornerman
vmatiyko has quit [Ping timeout: 272 seconds]
kr3ssh has quit [Ping timeout: 272 seconds]
jas02 has quit [Quit: jas02]
workmad3 has quit [Quit: Lost terminal]
nedp has joined #ruby-lang
nedp_ has joined #ruby-lang
nedp has quit [Ping timeout: 255 seconds]
tsujp has joined #ruby-lang
tkuchiki has quit [Ping timeout: 250 seconds]
jas02 has joined #ruby-lang
auzty has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
snsei has joined #ruby-lang
<oddmunds> MORN
vmatiyko has joined #ruby-lang
chinmay_dd has quit [Remote host closed the connection]
rikkipitt has joined #ruby-lang
snsei has quit [Ping timeout: 240 seconds]
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
stardiviner has quit [Ping timeout: 256 seconds]
stamina has joined #ruby-lang
fujimura has quit [Ping timeout: 256 seconds]
tsujp has quit [Quit: tsujp is snoozing]
b_hoffman has joined #ruby-lang
dagda1 has joined #ruby-lang
chinmay_dd has joined #ruby-lang
charliesome has quit [Quit: zzz]
skade has quit [Quit: Computer has gone to sleep.]
charliesome has joined #ruby-lang
<ljarvis> oh node
bahar has quit [Ping timeout: 272 seconds]
vmatiyko has quit [Quit: leaving]
ta has quit [Read error: Connection reset by peer]
elia has quit [Quit: Computer has gone to sleep.]
ta has joined #ruby-lang
Musashi007 has joined #ruby-lang
womble has quit [Quit: Coyote finally caught me]
<yorickpeterse> ljarvis: what, you don't like single threaded applications?
<yorickpeterse> how dare you, have some more callbacks
alestuber has joined #ruby-lang
* workmad3 wraps yorickpeterse's callbacks in promises
<workmad3> there we go, much better :P
skade has joined #ruby-lang
<yorickpeterse> But when will they be fulfilled?
<workmad3> who cares? :D
womble has joined #ruby-lang
<ljarvis> herp derp
<ljarvis> sometimes I just don't understand js and then i get angry and then i remember it's not my fault
ldnunes has joined #ruby-lang
<ljarvis> then i get angry again because it exists and it's okay that it's bad
aberator has joined #ruby-lang
<yorickpeterse> yet here you are using it
<ljarvis> sometimes you can't avoid it
<ljarvis> which leads to more anger
<yorickpeterse> Guess I've been lucky in avoiding it thus far
ledestin has joined #ruby-lang
<yorickpeterse> then again there's only 3 devs here and all 3 hate JS equally
<yorickpeterse> I can stand JS mainly because of jshint, without it I'd hate to write even a single line
<ljarvis> heh
<workmad3> so then... es6, good or bad? :D
<ljarvis> i just opened node repl and absolutely failed in about 4 lines because nothing worked
<yorickpeterse> es6 makes JS a bit nicer
<ljarvis> es6 is late, maybe too late. But it's welcome
<yorickpeterse> I find the addition of classes odd though
<yorickpeterse> especially since they're not really classes but just syntax sugar around Object.create IIRC
<ljarvis> because oop bro
<ljarvis> if you dont oop, you noop
rob____ is now known as rob_
<workmad3> I'm guessing that's because one of the most common things that frameworks and things like coffeescript adds in are some form of class system that provides some wrapper around Object.create :)
<workmad3> kinda makes sense to at least move it into first-class syntax sugar with a single supported syntax, rather than having to figure out multiple class systems implemented in different frameworks
Musashi007 has quit [Quit: Musashi007]
<yorickpeterse> well yeah, I know people have been crying about it ever since JS first came around
<ljarvis> meh those frameworks will create their own class system for years to come
<yorickpeterse> But it really doesn't fit in a prototype language in the first place
nedp_ has quit [Remote host closed the connection]
<yorickpeterse> I mean the whole point of prototyped languages is to just create objects on the fly without classes
<yorickpeterse> Which is both extremely elegant and super stupid
sepp2k has joined #ruby-lang
<yorickpeterse> it's elegant because you can just create an object without having to worry about inheritence trees and what not. It's super stupid because it promotes mutability and makes it harder to re-use code
<yorickpeterse> Also if you ever want to implement a language, creating a prototyped language isn't too difficult
<workmad3> it was elegant for the type of stuff JS started out doing, it's super-stupid for the kind of stuff JS is now doing
slawrence00 has joined #ruby-lang
<yorickpeterse> I'd say that for JS today you'd either want it to be full on functional, or standard OO
<yorickpeterse> but not this crazy thing in between
<yorickpeterse> but since JS doesn't do concurrency nobody cares about functional anyway :D
aberator has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<yorickpeterse> hihi, haskell or lisp in the browser, that would be something
<yorickpeterse> (haskell probably doesn't really work since it's compiled)
<ljarvis> lisp in the browser would be delightful
Ropeney has joined #ruby-lang
elia has joined #ruby-lang
<tbuehlmann> had to learn scheme in university :<
<ljarvis> sometimes I'm glad I didn't go to uni
<ljarvis> and other times I'm really glad I didn't go to uni
<yorickpeterse> Same here, looks like all I missed was the classes on how to read papers
<yorickpeterse> well, I did 6 months of art academy
<yorickpeterse> then I ran away in fear
<ljarvis> creative.
<ljarvis> I was a carpenter.. so yeah
<workmad3> heh :) my first year of uni was great... I almost completed KOTOR1 in it at one point
<workmad3> then my HDD died and I lost my save game :(
<yorickpeterse> I actually studied photography, naively thinking one can earn money with that
<yorickpeterse> also the hippies really killed it for me
<workmad3> yorickpeterse: I never got any classes on how to read papers :(
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kr3ssh has joined #ruby-lang
<workmad3> for me, most of my uni experience was theoretical stuff that was kinda interesting, but rarely of use in day to day software engineering, IME, and a fair bit of spare time where I could figure stuff out, play games, get that sort of thing out my system
Pathfinder has quit [Ping timeout: 256 seconds]
<yorickpeterse> heh, I did that while working :P
<yorickpeterse> ljarvis: so....I take it you had a lot of cases of wood in the morning?
<yorickpeterse> ( •_•) ( •_•)>⌐■-■ (⌐■_■)
<ljarvis> harr
kerunaru has joined #ruby-lang
<yorickpeterse> must've been....a hard job
<yorickpeterse> ok I'll stop
Ropeney has quit [Max SendQ exceeded]
Pathfinder has joined #ruby-lang
ta has quit [Remote host closed the connection]
alestuber has quit [Remote host closed the connection]
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
k3asd` has quit [Ping timeout: 256 seconds]
rikkipitt has quit [Quit: Leaving...]
workmad3 has quit [Ping timeout: 258 seconds]
alestuber has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
sgambino has joined #ruby-lang
symm- has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
tsujp has joined #ruby-lang
skade has joined #ruby-lang
alestuber has quit [Ping timeout: 250 seconds]
tsujp has quit [Quit: tsujp is snoozing]
sankaber has joined #ruby-lang
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alestuber has joined #ruby-lang
shazaum has joined #ruby-lang
shazaum has quit [Changing host]
shazaum has joined #ruby-lang
centrx has joined #ruby-lang
kerunaru has quit [Quit: Textual IRC Client: www.textualapp.com]
joaomdmoura has joined #ruby-lang
JoshuaPaling has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsujp has joined #ruby-lang
atomical has joined #ruby-lang
JakFrist_ has joined #ruby-lang
iamninja_ has joined #ruby-lang
ta has joined #ruby-lang
kr3ssh has quit [Ping timeout: 240 seconds]
<ljarvis> any suggestions for creating short hashes for strings, doesn't necessarily need to be reversable but should be unique
<canton7> how short?
<canton7> and "should be unique" begs the question "how unique?"
<ljarvis> ideally less than ~5 characters. The strings are generally no more than 30 characters long. There are ~5-10 strings in a set and the result must only be unique across the set
tsujp has quit [Quit: tsujp is snoozing]
<canton7> if there's just a set of them, I'd call them "str01", "str02", etc :P
<ljarvis> they're not ordered and I need to be able to identify them again from a different set
<canton7> so they need to be unique across more than just your little set?
victortyau has joined #ruby-lang
<canton7> ...since they also need to be unique across that different set
<ljarvis> yeah but the margin of error can be small because it's expected that the different set will mostly contain the same results... :D
<ljarvis> i need to rethink this
<canton7> tbh, take the first n chars of the md5/sha1 hash
alestuber has quit [Remote host closed the connection]
<ljarvis> yeah that's the way my head is going right now
<canton7> but make sure you read up on the maths of the birthday paradox, and check how quicky you can expect collisions using only 5 chars
<canton7> (hint: it's a lot sooner than you expect)
Ropeney has joined #ruby-lang
<yorickpeterse> ljarvis: is this supposed to be secure?
<apeiros> I still wish there was a seedable Object#hash
<ljarvis> no
[k- has joined #ruby-lang
<yorickpeterse> ljarvis: https://github.com/matiaskorhonen/radix62 we've used this in the past
<yorickpeterse> it's reversable, but short enough
imperator has joined #ruby-lang
<yorickpeterse> oh hrm, that's for numbers only I think
<yorickpeterse> derp
<apeiros> ljarvis: I've used a slightly modified murmur in C for that in the past. not sure I'd still find the code, though. but murmur is quite easy to copy & adapt.
<ljarvis> yeah I would just use the methods on String if it were for integers
<ljarvis> apeiros: alright ta
workmad3 has joined #ruby-lang
hinbody has joined #ruby-lang
gambl0re has quit [Ping timeout: 250 seconds]
kfpratt has joined #ruby-lang
malconis has joined #ruby-lang
airdisa has joined #ruby-lang
akrgn has joined #ruby-lang
datanoise has joined #ruby-lang
sarkyniin has joined #ruby-lang
akrgn has quit [Client Quit]
alestuber has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend has quit [Read error: Connection reset by peer]
_ht has joined #ruby-lang
bungoman has joined #ruby-lang
datanoise has quit [Ping timeout: 250 seconds]
Voker57 has quit [Read error: Connection reset by peer]
<_ht> Ant recommendations for GUI programming with Ruby?
<_ht> I've used Qt and Shoes in the past
marr has quit [Ping timeout: 256 seconds]
<_ht> But they always fell short with respect to "rubyness" or deployability
<yorickpeterse> There's nothing really better than qt/gtk
<yorickpeterse> shoes is, with all respect, more of a toy thing
fujimura has joined #ruby-lang
<_ht> Is gtk better than qt with respect to ruby integration?
<yorickpeterse> The Gems are better last I checked, but they're not strictly easier to use or deploy
<_ht> I also ask, because I seem to be unable to find a Qt5 binding
kfpratt has quit [Remote host closed the connection]
<yorickpeterse> https://github.com/YorickPeterse/sql-gui e.g. this uses GTK
jas02 has quit [Quit: jas02]
<yorickpeterse> (via FFI)
<_ht> What's FFI?
b_hoffman has quit [Quit: b_hoffman]
<yorickpeterse> Foreign Function Interface, it lets you bind C code to Ruby without having to compile anything
<_ht> Ah, yes
<_ht> And binding to C is easier than to C++
<yorickpeterse> Yes, binding to C++ using FFI is next to impossible
Tennis has quit [Remote host closed the connection]
<_ht> I see you were the maintainer of the gtk-ruby binding
<_ht> Thanks for your work!
apofis has quit [Ping timeout: 244 seconds]
<yorickpeterse> Not really a maintainer, I did some initial hacking as the ruby-gnome team at the time only supported gtk2
<yorickpeterse> They then added gtk3 support and took over the Gem name
<yorickpeterse> (since I realized maintaining it was a PITA)
<_ht> :-)
<_ht> How do gtk3 apps integrate in a Qt environment?
fujimura has quit [Ping timeout: 276 seconds]
* _ht is a KDE user since 1990s
<yorickpeterse> I think Qt has a compatibility layer for them
<yorickpeterse> Same goes for the other way around, Qt apps run in a Gnome/Gtk environment, although they typically look a bit out of place
momomomomo has joined #ruby-lang
<_ht> Probably, yes
myork80 has joined #ruby-lang
<apeiros> oh ljarvis, re string hash - if you have unicode chars in the string, you may have to consider normalizing first
_1_karthik4 has joined #ruby-lang
<_1_karthik4> hi
imperator2 has joined #ruby-lang
<_ht> Unrelated, does http://ruby-doc.org/core-2.2.2/ cover all of ruby or does give only a thorough overview of the language?
_1_karthik4 has quit [Excess Flood]
chinmay_dd has quit [Remote host closed the connection]
Pathfinder has quit [Ping timeout: 276 seconds]
chinmay_dd has joined #ruby-lang
<yorickpeterse> That only covers the core library
<yorickpeterse> and some parts of the language itself
<[k-> i like ruby-doc
<[k-> but i would prefer if they change to yard
* _ht 's looking at ruby-doc and wonders: is there a reference on Ruby?
momomomomo_ has joined #ruby-lang
kr3ssh has joined #ruby-lang
<yorickpeterse> _ht: what kind of reference are you looking for?
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
chinmay_dd has quit [Ping timeout: 258 seconds]
<_ht> I'm looking for alternatives to implement basic patterns in Ruby
snsei has joined #ruby-lang
<_ht> I feel like I'm stuck in my way of doing things and would like to get some new perspective
<yorickpeterse> Hm, not sure if there's any actual reference for that out there
<ljarvis> apeiros: yeah that's the first thing I noticed heh
<[k-> fizzbuzz!
centrx has quit [Quit: Shutting down, Please wait...]
<[k-> the tom dalling article
<_ht> :-)
VinnyBoy has joined #ruby-lang
<_ht> But seriously, for example, if I'd build some application to automate, say, editing a tree of files, would I create a class, a module, or just a file (which is an implicit module, I guess) to separate the treewalking and editing from the UI-code?
|jemc| has joined #ruby-lang
<yorickpeterse> _ht: that's not really specific to Ruby though, that's a more general architectual problem
<ljarvis> this isn't analogous to ruby
<[k-> you should separate them, many classes
<_ht> I know, but what facilities does Ruby actually offer to solve these architectural problems?
<_ht> I almost never use just Modules, but opt for classes instead because I'm familiar with them.
<[k-> Modules are for when you don't want to keep state
<_ht> Then I often end up using a class that's all functionality and no state
<yorickpeterse> Language wise there are classes and modules. Modules are mixins, which can be used to inject methods/contants/etc into an existing class/module
<yorickpeterse> whereas inheritance is something you'd use if you actually want to inherit behaviour and slightly alter it
<yorickpeterse> Most cases where you see inheritence being used you really want modules instead
<yorickpeterse> e.g. most ORMs are probably the biggest offenders of this
<ljarvis> inject modules like yorickpeterse injects opinions
<yorickpeterse> heh
DCameronMauch has joined #ruby-lang
<yorickpeterse> well, the rule of thumb is generally: if you can't use a class on its own in a meaningful value it really should've been a module instead
<yorickpeterse> errr s/value/way
_ht has quit [Remote host closed the connection]
_ht has joined #ruby-lang
<ljarvis> I generally agree though that inheritance is mostly overused in Ruby. Many beginners see it as a silver bullet and don't realise how powerful mixins are
nertzy has joined #ruby-lang
<yorickpeterse> it would be nice though if modules were actual traits :/
k3asd` has joined #ruby-lang
<[k-> refinements destroys mixins ¯\_(ツ)_/¯
<ljarvis> but that happens a lot. Java has it everywhere too
<yorickpeterse> e.g. renaming methods upon import can be really nice
<yorickpeterse> [k-: thou shall not speak about refinements
<[k-> you can rename methods in java?
<[k-> but refinements are HUGE
DCameronMauch has left #ruby-lang [#ruby-lang]
DCameronMauch has joined #ruby-lang
<yorickpeterse> refinements are an atrocity
<yorickpeterse> They solve a non existing problem
<yorickpeterse> well, they don't even solve that
<DCameronMauch> got an rspec question
<DCameronMauch> is there a way to do something like this:
<yorickpeterse> Instead they introduce a slightly blunter knife to gut yourself with
<[k-> this whole project is using refinements
<DCameronMauch> let(:foo) {double 'whatever', method: ->(&block){yield block}}
<DCameronMauch> I want the double to receive a method with a block and yield the block
<DCameronMauch> like actually yield it
<DCameronMauch> not just return a value of what the yield should have returned
<[k-> wait, what are you writing?
<[k-> is double a method?
<yorickpeterse> It's an rspec helper
<ljarvis> it's a stub in rspec
<[k-> what on earth is let?
<DCameronMauch> also rspec
<[k-> :o
iamninja_ has quit [Ping timeout: 276 seconds]
<DCameronMauch> that didn't help me
<ljarvis> DCameronMauch: what do you mean 'receive a method', what method?
bungoman has quit [Remote host closed the connection]
<ljarvis> any method?
<DCameronMauch> to be specific, my class is taking an ActiveRecord model as an argument
<DCameronMauch> and I am doing some stuff with that model inside a transaction block
bungoman has joined #ruby-lang
<DCameronMauch> so I need to test what happens inside that transaction block
<DCameronMauch> I figured out how to do it with a except to receive :transaction
<ljarvis> eh, move it into a method and test that method directly?
bungoman has quit [Remote host closed the connection]
<DCameronMauch> there is a form that takes a block
bungoman has joined #ruby-lang
<ljarvis> using mocks and stubs for this kind of thing is a bad idea
gamename has joined #ruby-lang
<ljarvis> you might as well not test it
gamename has quit [Remote host closed the connection]
<ljarvis> if it cares about transactions you're writing an integration spec, so test on real data
<[k-> a lambda within a block o_O
gamename has joined #ruby-lang
<DCameronMauch> from this test, I am choosing to assume that the AR transaction method works properly
<DCameronMauch> so I don't want to test taht
<DCameronMauch> I only want to test what happens inside the block
<ljarvis> exactly..
<ljarvis> again, my 2 responses both solve that
<DCameronMauch> I can't visualize what "move it into a method" would look like
<ljarvis> transaction { do_x }
<ljarvis> test do_x
<DCameronMauch> okay, thanks
DCameronMauch has quit [Quit: Leaving...]
<yorickpeterse> ljarvis: but DHH said that if you do this you're a baddie!
tomaz_b has quit [Ping timeout: 255 seconds]
ubernil has quit [Ping timeout: 255 seconds]
<ljarvis> I would really just write an integration test and forget about stubs and mocks..
<ljarvis> if you have to change your test because it's running in a SQL transaction, you have a problem
snsei has quit [Remote host closed the connection]
<ljarvis> unless the test tests that difference specifically in which case i would give some rant about over testing
<ljarvis> yorickpeterse: even more reason to do it!
* yorickpeterse usually tests his DB stuff integration style
* yorickpeterse also has fast tests
<ljarvis> as it should be tested
alestuber has quit [Ping timeout: 252 seconds]
snsei has joined #ruby-lang
riotjones has quit [Remote host closed the connection]
<maloik> our entire suite is somewhere between 2 and 3 minutes :(
<maloik> I wish it was blazing fast
haraoka has quit [Ping timeout: 264 seconds]
<yorickpeterse> lol wat
<yorickpeterse> Finished in 15.35 seconds (files took 1.79 seconds to load)
<yorickpeterse> 1421 examples, 0 failures, 1 pending
<[k-> wattt
<yorickpeterse> ^ granted there are a bunch of "old" tests as we're in the process of moving this API from V1 to V2
<yorickpeterse> So the total test count will be a bit smaller once the V1 code is sent to /dev/null
<yorickpeterse> (this is a Sinatra app)
<ljarvis> this still remains my best test example https://gist.github.com/leejarvis/6007347
<maloik> we have a ton of tests that require associations to be set, so we actually save them in the db for those... i suppose that's causing it all
<maloik> or most of the slowness anyway
Miphix has joined #ruby-lang
<ljarvis> at work we have some big fat full stack tests that add on time. Everything else is super fast though
<yorickpeterse> maloik: do you wrap your tests in a transaction?
<maloik> using db cleaner, so yes
<yorickpeterse> If not, do eet
<yorickpeterse> oh
<yorickpeterse> heh
<yorickpeterse> db cleaner
<ljarvis> uh oh
<ljarvis> he's gonna blow
<yorickpeterse> I nuked that from a bunch of old Rails apps, made things a lot faster
snsei has quit [Remote host closed the connection]
<yorickpeterse> sadly fixing all the tests was a total PITA
<yorickpeterse> Sequel based apps just use its transaction system
<ljarvis> my 1.5sec tests are on all of my models and controllers
<ljarvis> because unit testing is dah bomb
<yorickpeterse> which is basically just config.around :each { |example| Sequel::Model.db.transaction(:rollback => :always) { example.run } }
mikecmpbll has joined #ruby-lang
<maloik> 1343 examples, 3min20
<yorickpeterse> maybe soonish we're 100% Rails free
<yorickpeterse> one can only dream
<maloik> how did you fix non-sequel apps?
<yorickpeterse> maloik: I nuked DB cleaner then spent a month fixing all tests because none of them cleaned up after themselves
<yorickpeterse> not something you can do on a Friday afternoon
<maloik> I think an even bigger change would be getting rid of all callbacks and putting them into service objects
<maloik> but that's a huge task as well
myork80 has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> Even better, move it into separate applications
<yorickpeterse> put some APIs up that pig
<yorickpeterse> of the many things we've done wrong over the past few years, aggressively keeping things in separate apps was not one of them
<yorickpeterse> although it can be a bit tedious to jump between a handful of apps to get a certain feature out at times
<ljarvis> you handle auth across them?
<[k-> microservice?
<ljarvis> i get nervous about a single app handling my schema whilst others drink from it
<yorickpeterse> ljarvis: only 1 app communicates via HTTP
<yorickpeterse> Everything else uses queues in between
<yorickpeterse> For our API we're using per application credentials
<yorickpeterse> e.g. for scraping reviews we basically use this flow: scheduler -> scraper -> persister -> sentiment analysis -> metadata extraction -> ranking
<yorickpeterse> for every "->" there's basically a queue
symm- has quit [Ping timeout: 256 seconds]
<yorickpeterse> though "sentiment analysis" is made up out of 8 or so apps/queues
<yorickpeterse> each doing just one specific bit
<yorickpeterse> currently we have 147 SQS queues
<yorickpeterse> (that includes dev/staging queues though)
<maloik> yorickpeterse: I honestly don't think splitting it into services would help us much
shinnya has joined #ruby-lang
alestuber has joined #ruby-lang
<maloik> we just have associations that go something like server -> virtual server -> account -> application, mix in some customers, domains, dns records in there and you can quickly see the "problem"
<yorickpeterse> ah
<[k-> too much geog, i thought sentiment analysis was sediment analysis
<yorickpeterse> [k-: eh?
<[k-> beach sediments
<yorickpeterse> aah
<yorickpeterse> No, we don't do sediment analysis :P
nedp has joined #ruby-lang
revath has quit [Ping timeout: 258 seconds]
kfpratt has joined #ruby-lang
k3asd` has quit [Read error: Connection reset by peer]
whippythellama has joined #ruby-lang
<[k-> you collect samples of sand at different locations
<[k-> and then you sieve it
<[k-> and you calculate the proportion of the diff types of sediments
<[k-> you have the fine sand, coarse sand, silt, clay, fine gravel, coarse gravel etc
k3asd` has joined #ruby-lang
shazaum has quit [Read error: Connection reset by peer]
<yorickpeterse> I'm aware of what sediment analysis is :P
<yorickpeterse> also interesting: I have a test that tests a controller, said controller uses an undefined constant, said test passes fine
<yorickpeterse> wtf
<yorickpeterse> Oh no, I misread it
<yorickpeterse> derp
ogpastaling has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
b_hoffman has joined #ruby-lang
BanzaiJoe has quit [Ping timeout: 272 seconds]
sarkyniin has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby-lang
gamename has quit [Remote host closed the connection]
gamename has joined #ruby-lang
alestuber has joined #ruby-lang
momomomomo has quit [Ping timeout: 276 seconds]
k3asd`_ has joined #ruby-lang
chinmay_dd has joined #ruby-lang
yfeldblum has joined #ruby-lang
<imperator> so much easier to use gvim with a working left shift key :)
<rio> you could map any other key to left shift in vim :>
k3asd` has quit [Ping timeout: 245 seconds]
kfpratt has quit [Remote host closed the connection]
<imperator> get out of here with your power user knowledge
<yorickpeterse> just clone janus, it probably already did that for you
<yorickpeterse> along with 19238712931023 other things you of course always want
<ljarvis> yeah seriously, that thing is like an os download
<[k-> u mean, emacs?
<[k-> emacs the real os
chouhoulis has joined #ruby-lang
momomomomo has joined #ruby-lang
<yorickpeterse> [k-: No, https://github.com/carlhuda/janus
<[k-> as in sarcasm
nertzy has quit [Quit: This computer has gone to sleep]
<yorickpeterse> This is worse, since it's as big as an OS but not an actual OS
slawrence00 has joined #ruby-lang
kfpratt has joined #ruby-lang
konr has joined #ruby-lang
thang_ is now known as thang
Obfuscate has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
airdisa has quit []
ubernil has joined #ruby-lang
datanoise has joined #ruby-lang
|jemc|_ has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
cb_ has joined #ruby-lang
cb_ has joined #ruby-lang
riotjones has joined #ruby-lang
|jemc| has quit [Ping timeout: 272 seconds]
datanoise has quit [Ping timeout: 250 seconds]
riotjones has quit [Read error: No route to host]
palar has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
banister has joined #ruby-lang
fujimura has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
gmcintire has quit [Remote host closed the connection]
symm- has joined #ruby-lang
rcvalle has joined #ruby-lang
ascarter_ has joined #ruby-lang
intinig has quit [Remote host closed the connection]
fujimura has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
centrx has joined #ruby-lang
dhjondoh has quit [Quit: dhjondoh]
gmci has joined #ruby-lang
centrx has quit [Client Quit]
gmci is now known as Guest14567
momomomomo has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
BanzaiJoe has joined #ruby-lang
charliesome has quit [Quit: zzz]
revath has joined #ruby-lang
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
araujo has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby-lang
datanoise has joined #ruby-lang
Pathfinder has joined #ruby-lang
Pathfinder has quit [Remote host closed the connection]
DivineEntity has quit [Quit: Lost terminal]
marr has joined #ruby-lang
cb_ has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
ecnalyr has joined #ruby-lang
skade has joined #ruby-lang
Steve_Jobs has quit [Read error: Connection reset by peer]
mdarby has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
Steve_Jobs has joined #ruby-lang
b_hoffman has joined #ruby-lang
Pathfinder has joined #ruby-lang
b_hoffman has quit [Ping timeout: 240 seconds]
nedp has quit [Remote host closed the connection]
setanta_ has joined #ruby-lang
vondruch has quit [Quit: Ex-Chat]
j4cknewt has joined #ruby-lang
momomomomo has joined #ruby-lang
joaomdmo_ has joined #ruby-lang
b_hoffman has joined #ruby-lang
joaomdmoura has quit [Ping timeout: 272 seconds]
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby-lang
arBmind has quit [Quit: Leaving.]
momomomomo_ has joined #ruby-lang
theta888 has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
alestuber has joined #ruby-lang
_djbkd has joined #ruby-lang
alestuber has quit [Ping timeout: 264 seconds]
ogpastaling has quit [Remote host closed the connection]
nertzy has joined #ruby-lang
mdarby has quit [Remote host closed the connection]
mdarby has joined #ruby-lang
ascarter_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 256 seconds]
ogpastaling has joined #ruby-lang
airdisa has joined #ruby-lang
alestuber has joined #ruby-lang
shazaum has joined #ruby-lang
k3asd`_ has quit [Ping timeout: 264 seconds]
<theta888> what are some of your favorite built in/standard methods?
<jhass> all of Enumerable
<Pathfinder> theta888: I use array.select and string.match alot
<theta888> jhass: understandably
alestuber has quit [Ping timeout: 250 seconds]
will___ has joined #ruby-lang
alestuber has joined #ruby-lang
mikecmpbll has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
bungoman has quit [Remote host closed the connection]
niemcu has joined #ruby-lang
ecnalyr has quit []
symm- has quit [Ping timeout: 258 seconds]
alestuber has quit [Ping timeout: 256 seconds]
[k- has quit [Quit: Lingo: www.lingoirc.com]
nertzy has quit [Quit: This computer has gone to sleep]
elia has quit [Quit: Computer has gone to sleep.]
momomomomo_ has joined #ruby-lang
theta888 has quit [Quit: leaving]
souvikd has joined #ruby-lang
momomomomo has quit [Ping timeout: 272 seconds]
momomomomo_ is now known as momomomomo
<souvikd> hi..
<souvikd> i am new to ruby, and i just finished a simple project. i would like someone's views if anyone's up for it :)
alestuber has joined #ruby-lang
rbowlby has joined #ruby-lang
<souvikd> The project can be viewed at https://github.com/svk007/Gadget_Finder/
jwaldrip has joined #ruby-lang
mdarby has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
ogpastaling has quit [Remote host closed the connection]
billy_ran_away has quit [Ping timeout: 256 seconds]
elev has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
<Pathfinder> souvikd: Other than the many comments.....if that was your first program..i think its splendid
<elev> I have a file with some questions. I want each question to come up. and then a gets.chomp
<elev> how can I do that? thanks for answers :)
<Pathfinder> souvikd: .. just check on the indentation please...it breaks my heart
ogpastaling has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
<elev> can someone help me with the question?
<elev> I got a file with some questions. I want it to print out 1 and 1 question
<souvikd> Pathfinder: actually, I just finished learning, and the tutorials walked me through constructing a similar application. in this one, i had my own inputs and references from that as well.
<elev> and then you have to answer
fujimura has joined #ruby-lang
<souvikd> Pathfinder: I will surely check your comments and work on it. thank you :)
konr has quit [Quit: Connection closed for inactivity]
<elev> souvikd?
<souvikd> yes elev..?
<elev> I have a code
<elev> in sublime
<elev> can you help me with it?
<elev> It print out 8 questions
<souvikd> yes i am checking on ur link. please wait a minute.
<elev> ok thanks
<souvikd> elev
<souvikd> you want to output what exactly?
<Pathfinder> File.readlines('file.txt').each do |line| print #{line}; gets.chomp; #{"\n"} end
<elev> I want to output 1 and 1 question
<elev> ok thanks
<elev> I try
<Pathfinder> elev: try that out..I haven't tried it though :o :D
fujimura has quit [Ping timeout: 256 seconds]
<yxhuvud> Pathfinder: your "'s are out of place.
<elev> what
<souvikd> Pathfinder: File.readlines method breaks at each line?
<elev> idk
<elev> havent try
<elev> but its not a # before right?
<elev> like you did?
<elev> gets.chomp; #{"\n"} end
billy_ran_away has joined #ruby-lang
<elev> ?
<Pathfinder> elev: File.readlines('file.txt').each do |line| print #{line}; gets.chomp; #{"\n"} end .. there
<Pathfinder> elev: File.readlines('file.txt').each do |line| print #{line}; gets.chomp; #{"\n"} end -------->>> there
<Pathfinder> yxhuvud: yeah..seen that...editing from phone
<elev> what you mean?
<elev> can you create a gist?
<elev> and do it? doesnt work
tsujp has joined #ruby-lang
__butch__ has joined #ruby-lang
<elev> pathfinder? :D
sd__ has joined #ruby-lang
chinmay_dd has quit []
<Pathfinder> elev: Have you tried it..works on my machine
<elev> can you create a gist
<elev> because I think copy paste dont work
<elev> and I think I have something in wrong place
<elev> copy paste the code to gisthub and paste link
<elev> ty
souvikd has quit [Ping timeout: 256 seconds]
revath has quit [Ping timeout: 264 seconds]
<sd__> elev i am a newbie and i would do this way.
<Pathfinder> elev: http://pastebin.com/xEUqwVe1
joaomdmo_ has quit [Remote host closed the connection]
NameNotFound has left #ruby-lang ["Leaving..."]
joaomdmoura has joined #ruby-lang
billy_ran_away has quit [Ping timeout: 272 seconds]
<Pathfinder> elev: Now??
<sd__> I checked and its working fine.
_djbkd has quit [Remote host closed the connection]
|jemc|_ has quit [Ping timeout: 246 seconds]
alestuber has quit [Remote host closed the connection]
<Pathfinder> elev: sd__ I have edited my code....now tested and works
Iskarlar has joined #ruby-lang
<sd__> Pathfinder: do you maintain or develop projects in ruby?
<sd__> I mean open-source projects?
GBrawl has joined #ruby-lang
<Pathfinder> i have contributed to about.gitlab.com ... Haha..i know your beef is with the 2nd line...feeling lazy
_djbkd has joined #ruby-lang
kr3ssh has quit [Ping timeout: 252 seconds]
caseypatrickdris has joined #ruby-lang
<sd__> I dunno why but the last link you posted does not seem to open on my browser.
<sd__> haha. ya well, am on my semseter break, so pretty bored. what better way to waste time than code and contribute? :)
cb_ has joined #ruby-lang
DivineEntity has joined #ruby-lang
<Pathfinder> sd__: i am in session in campus ..I work with in a primarily laravel and nodejs oriented company but I still do a few ruby and rails projects here and there
j0n3 has joined #ruby-lang
<Pathfinder> sd__: the last link is the same as the first
<elev> s
<elev> thanks pathfinder :)
<Pathfinder> cool :)
<sd__> ya i got it to open. and i got to know about File.readlines. till today I only knew of file.new and file.open. am pretty new to it , you see.
<Pathfinder> elev: Now the trick..tell it to skip empty lines ..e.g. if a line is empty...go to next line ...That should be easy
<elev> how?
<Pathfinder> it is however not an optimal method and I would only recommend it as a once in a while patch due to optimization issues......
<elev> skip the empty lines?
<elev> Now I want to put their answers
<elev> pathfinder what did you mean with that? my englich is bad sorry
<sd__> elev, where are you from? :)
<elev> norway
<elev> I am only 14
<Pathfinder> Imagine you had a file with a list of lines and in the middle there is a place where the lines are not next to each other..i.e. there is an empty line between 2 lines..skip that line
<elev> how do I do that?
Iskarlar has quit [Ping timeout: 258 seconds]
alestuber has joined #ruby-lang
<sd__> 14 and into coding. that's nice ! i wasn't coding much until I was in my high school :D
bungoman has joined #ruby-lang
hahuang65 has joined #ruby-lang
<yorickpeterse> sd__: depending on the country that might be either just before or after 14
<sd__> oh. I thought it would be more like 17.
Iskarlar has joined #ruby-lang
<Pathfinder> elev: i have included a simple way of storing the answers in an array .. http://pastebin.com/xEUqwVe1
<Pathfinder> elev: I am 19 .. from Kenya .. nice to meet you
JakFrist_ has quit [Remote host closed the connection]
cb_ has quit [Remote host closed the connection]
JakFrist_ has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iamninja_ has joined #ruby-lang
iamninja_ has quit [Ping timeout: 246 seconds]
niemcu has quit [Ping timeout: 276 seconds]
<imperator> are there any pure ruby webservers anyone uses besides webrick?
JakFrist_ has quit [Remote host closed the connection]
nikkyjr has left #ruby-lang ["WeeChat 1.1.1"]
JakFrist_ has joined #ruby-lang
sd__ has quit []
nertzy has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
jwaldrip has quit [Quit: Be back later ...]
bungoman has joined #ruby-lang
jwaldrip has joined #ruby-lang
jwaldrip has quit [Read error: Connection reset by peer]
revath has joined #ruby-lang
djellemah has quit [Ping timeout: 264 seconds]
<Pathfinder> imperator: I like unicorn .. and i use thin sometimes too
<ttilley> imperator: dear god, use anything but webrick. check out puma or thin maybe
<ttilley> puma: http://puma.io/
skade has quit [Ping timeout: 272 seconds]
bungoman has quit [Ping timeout: 255 seconds]
skade has joined #ruby-lang
jwaldrip has joined #ruby-lang
bungoman has joined #ruby-lang
elev has left #ruby-lang [#ruby-lang]
<imperator> i don't think thin is pure ruby
<imperator> ttilley, hadn't heard of puma, i'll take a look
<ttilley> oh, you mean not even c extensions. don't think there are, no.
<ttilley> why do you need it to be ruby-only?
<imperator> needs to work on windows
Miphix has quit [Quit: Leaving]
jwaldrip has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby-lang
jwaldrip has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
<ttilley> imperator: a lot of servers will pre-compile their extension for their windows gem since it's not expected for you to have a sane compiler installed already. i believe at least thin will just install a binary on windows. dont quote me on that though, since i'm not a windows kinda guy. definitely try to gem install thin or puma (puma's pretty minimal so i can't see why it wouldn't be available).
jwaldrip has quit [Ping timeout: 272 seconds]
jwaldrip has joined #ruby-lang
<imperator> hm, thought thin was a unix-only server, but i'll double check
<ttilley> imperator: you could also take a look at the bitnami ruby stack for windows. it should include a fair bit of pre-compiled extensions for windows, including thin. it also seems to have a pre-setup nginx to put in front of ruby. https://bitnami.com/stack/ruby
rawrmonstar has joined #ruby-lang
<ttilley> oh damn, i almost forgot about phusion passenger. there's even a distribution of nginx with passenger compiled in. the bitnami stack mentions including that as well
jwaldrip has quit [Ping timeout: 255 seconds]
jwaldrip has joined #ruby-lang
<ttilley> guess that'd make thin or passenger your best options on windows. (again, i don't develop on or deploy to windows)
<imperator2> hm, looks like it installs on windows ok after all
<imperator2> was thinking it used io-extra internally, which is definitely a unix-only gem
jwaldrip has quit [Ping timeout: 258 seconds]
jwaldrip has joined #ruby-lang
<imperator> welp, thin will work after all, thanks
<darix> i just want to nitpick that neither thin nor puma are pure ruby. ;)
stamina has quit [Ping timeout: 256 seconds]
tsujp has quit [Quit: tsujp is outta here]
skade has quit [Ping timeout: 256 seconds]
<imperator> true, but i figured the odds were better if it were
bungoman has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 265 seconds]
<darix> imperator: they probably are.
<imperator> though i am a little surprised no one has tried to replace webrick
<darix> but well you might be lucky with puma or thin in the end
sarkyniin has joined #ruby-lang
jwaldrip has quit [Ping timeout: 244 seconds]
<darix> imperator: they did. they just added some C pieces in the process
jgpawletko has joined #ruby-lang
<imperator> darix, well, that's what i mean. i guess everyone starts off with pure ruby, then decides they want performance. ;)
jwaldrip has joined #ruby-lang
<darix> and then steals^wadopts the mongrel parser
skade has joined #ruby-lang
<imperator> the ghost of zed shaw lives on
<darix> that dependency list
datanoise has joined #ruby-lang
<ljarvis> sqlite3 as a runtime dep?
<ljarvis> o
<ljarvis> it uses trollop, tut tut
<darix> http://mongrel2.org/ - was just checking how that does nowadays
<toretore> nothing really unnecessary in that list of dependencies
bertocode has joined #ruby-lang
<toretore> libxm maybe
<toretore> libxml
momomomomo has quit [Quit: momomomomo]
<darix> toretore: for a simple adapter to mongrel2 that is quite extensive imho :)
<darix> anyway
<toretore> mongrel2 uses sqlite, tnetstrings and zmq
<darix> time to take the bike out for a spin
baweaver has quit [Remote host closed the connection]
jwaldrip has quit [Ping timeout: 246 seconds]
jwaldrip has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #ruby-lang
justinweiss has quit [Ping timeout: 252 seconds]
justinweiss has joined #ruby-lang
jwaldrip has quit [Ping timeout: 252 seconds]
<yorickpeterse> I've yet to actually hear of somebody using mongrel2
solars has joined #ruby-lang
jwaldrip has joined #ruby-lang
<toretore> it's a little weird
<toretore> mongrel2 is weird, that is
ubernil has quit [Ping timeout: 264 seconds]
postmodern has joined #ruby-lang
jwaldrip has quit [Ping timeout: 258 seconds]
alestuber has quit [Ping timeout: 256 seconds]
jwaldrip has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ArchRogem has joined #ruby-lang
cb__ has joined #ruby-lang
<ttilley> tagged netstrings are pretty awesome as an exchange format... with a few tweaks anyways. https://github.com/rkh/otnetstring
shazaum_ has joined #ruby-lang
dagda1_ has joined #ruby-lang
rawrmonstar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has joined #ruby-lang
<imperator> the link for Tagged Netstrings is dead
<toretore> yes, tnetstrings are pretty cool
<imperator> (in his readme)
jwaldrip has quit [Ping timeout: 256 seconds]
ArchRogem has quit [Client Quit]
jwaldrip has joined #ruby-lang
stan has quit [Ping timeout: 265 seconds]
shazaum has quit [Ping timeout: 272 seconds]
<ddfreyne> Sweet. Didn't know about that. And yes, bencode is nice too.
duderonomy has joined #ruby-lang
Voker57 has joined #ruby-lang
apt-get_ has joined #ruby-lang
fujimura has joined #ruby-lang
alestuber has joined #ruby-lang
bungoman has joined #ruby-lang
elev has joined #ruby-lang
sarkyniin has quit [Ping timeout: 252 seconds]
fujimura has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
bb010g has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
stamina has joined #ruby-lang
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
JakFrist_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apt-get_ is now known as sarkyniin
DEac- has quit [Ping timeout: 246 seconds]
djbkd_ has joined #ruby-lang
DEac- has joined #ruby-lang
baweaver has joined #ruby-lang
* darix runs bencode on ddfreyne
<yorickpeterse> I'll bencode your face
slombardo has joined #ruby-lang
<ddfreyne> https://github.com/ddfreyne/ddbencode This stuff is old.
<slombardo> hello?
<ddfreyne> Written in C!
<darix> ddfreyne: you could do a dummy commit to bump the copyright. ;)
slombardo has quit [Client Quit]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has quit [Quit: Computer has gone to sleep.]
slombardo has joined #ruby-lang
<ddfreyne> darix: It's not really worth it.
JakFrist_ has joined #ruby-lang
kr3ssh has joined #ruby-lang
<slombardo> exit
slombardo has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
b_hoffman has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
banister has joined #ruby-lang
momomomomo has joined #ruby-lang
yfeldblum has joined #ruby-lang
palar has joined #ruby-lang
micmus has joined #ruby-lang
elev has quit [Ping timeout: 264 seconds]
aaeron has joined #ruby-lang
symm- has joined #ruby-lang
voxxit has joined #ruby-lang
kadoppe has quit [Ping timeout: 265 seconds]
kadoppe has joined #ruby-lang
tomaz_b has joined #ruby-lang
michaeldeol has joined #ruby-lang
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atomical has joined #ruby-lang
tibig has joined #ruby-lang
JakFrist_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo_ has joined #ruby-lang
imperator has quit [Quit: This computer has gone to sleep]
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo_ is now known as momomomomo
Obfuscate has joined #ruby-lang
JakFrist_ has joined #ruby-lang
imperator has joined #ruby-lang
elia has joined #ruby-lang
skade has joined #ruby-lang
Guest24 is now known as lele
baweaver has quit [Remote host closed the connection]
dorei has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
wallerdev has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
b_hoffman has joined #ruby-lang
alestuber has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
atomical has joined #ruby-lang
b_hoffman has quit [Client Quit]
nunayerBeezwax has joined #ruby-lang
b_hoffman has joined #ruby-lang
hahuang65 has quit [Quit: WeeChat 1.1.1]
hahuang65 has joined #ruby-lang
ur5us has joined #ruby-lang
k3asd` has joined #ruby-lang
boon has joined #ruby-lang
<boon> hi guys, can you help me with an active resource issue i have?
b_hoffman has quit [Quit: b_hoffman]
alestuber has joined #ruby-lang
thebastl has joined #ruby-lang
<toretore> you're more likely to get help with that in #rubyonrails
<boon> ok thx
b_hoffman has joined #ruby-lang
boon has left #ruby-lang [#ruby-lang]
JakFrist_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomaz_b has quit [Ping timeout: 256 seconds]
b_hoffman has quit [Quit: b_hoffman]
alestuber has quit [Remote host closed the connection]
cornerman has quit [Quit: leaving]
GBrawl has quit [Quit: (null)]
dpatel has joined #ruby-lang
cornerman has joined #ruby-lang
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
micmus has quit [Ping timeout: 272 seconds]
dagda1 has joined #ruby-lang
fujimura has joined #ruby-lang
shadowvengence22 has joined #ruby-lang
_ht has quit [Quit: Konversation terminated!]
iamninja_ has joined #ruby-lang
fujimura has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
micmus has joined #ruby-lang
shazaum_ has quit [Quit: Leaving]
arBmind has joined #ruby-lang
kr3ssh has quit [Ping timeout: 264 seconds]
gamename has quit []
cb__ has quit [Remote host closed the connection]
alestuber has joined #ruby-lang
cb__ has joined #ruby-lang
cb__ has quit [Changing host]
cb__ has joined #ruby-lang
alestuber has quit [Remote host closed the connection]
cb__ has quit [Read error: Connection reset by peer]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cb__ has joined #ruby-lang
alestuber has joined #ruby-lang
|jemc| has joined #ruby-lang
dpatel has quit [Quit: dpatel]
sarkyniin has quit [Ping timeout: 244 seconds]
alestuber has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
Pathfinder has quit [Ping timeout: 256 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cb__ has quit []
shadowvengence22 has quit [Quit: Leaving]
mahlon_ is now known as mahlon
baweaver has joined #ruby-lang
caseypatrickdris has quit [Remote host closed the connection]
imperator has quit [Quit: Leaving]
solars has quit [Ping timeout: 240 seconds]
imperator2 has quit [Quit: Valete!]
Sedgy has joined #ruby-lang
Sedgy has left #ruby-lang [#ruby-lang]
gianlucadv has quit [Ping timeout: 264 seconds]
rawrmonstar has joined #ruby-lang
victortyau has quit [Ping timeout: 255 seconds]
caseypatrickdris has joined #ruby-lang
joaomdmoura has quit [Remote host closed the connection]
kr3ssh has joined #ruby-lang
b_hoffman has joined #ruby-lang
victortyau has joined #ruby-lang
rawrmonstar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Forgetful_Lion has joined #ruby-lang
workmad3 has quit [Ping timeout: 255 seconds]
rawrmonstar has joined #ruby-lang
DarkBushido_ has quit [Quit: ZNC - http://znc.in]
DarkBushido has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
kr3ssh has quit [Ping timeout: 255 seconds]
alestuber has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
JoshuaPaling has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
ogpastaling has quit [Remote host closed the connection]
ogpastaling has joined #ruby-lang
ogpastaling has quit [Remote host closed the connection]
micmus has quit [Quit: Leaving]
victortyau has quit [Quit: Leaving]
rawrmonstar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby-lang
rawrmonstar has joined #ruby-lang
momomomomo has joined #ruby-lang
riotjone_ has joined #ruby-lang
Ropeney has joined #ruby-lang
riotjones has quit [Ping timeout: 276 seconds]
kr3ssh has joined #ruby-lang
whippythellama has quit [Quit: whippythellama]
ogpastaling has joined #ruby-lang
tibig has quit [Read error: Connection reset by peer]
tibig has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
kr3ssh has quit [Ping timeout: 250 seconds]
arBmind1 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
arBmind has quit [Ping timeout: 258 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
alestuber has quit [Remote host closed the connection]
sferik has joined #ruby-lang
airdisa has quit []
fujimura has joined #ruby-lang
baweaver has joined #ruby-lang
fujimura has quit [Ping timeout: 258 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thebastl has quit [Quit: Leaving...]
revath has quit [Ping timeout: 250 seconds]
lokarztr has joined #ruby-lang
cornerma1 has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
cornerman has quit [Ping timeout: 255 seconds]
cornerma1 is now known as cornerman
hinbody has quit [Quit: leaving]
setanta_ has quit [Quit: Leaving]
elia has quit [Read error: Connection reset by peer]
symm- has quit [Read error: Connection reset by peer]
symm- has joined #ruby-lang
bruno- has quit [Ping timeout: 264 seconds]
ogpastal_ has joined #ruby-lang
nibbo has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby-lang
lokarztr has quit [Remote host closed the connection]
lokarztr has joined #ruby-lang
ogpastaling has quit [Ping timeout: 252 seconds]
bungoman has joined #ruby-lang
baweaver has quit [Remote host closed the connection]
ogpastal_ has quit [Ping timeout: 250 seconds]
elia has joined #ruby-lang
bungoman has quit [Ping timeout: 244 seconds]
nunayerBeezwax has quit []
jo__ has quit [Quit: Connection closed for inactivity]
pgatt has joined #ruby-lang
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
b_hoffman has quit [Quit: b_hoffman]
elia has quit [Quit: Computer has gone to sleep.]
nedp has joined #ruby-lang
lele is now known as Guest24
skade has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby-lang
lokarztr has quit [Remote host closed the connection]
lele|w has quit [Ping timeout: 272 seconds]
Guest24 has quit [Ping timeout: 245 seconds]
k3asd` has quit [Ping timeout: 264 seconds]
lele|w has joined #ruby-lang
sankaber has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
marr has quit [Ping timeout: 265 seconds]
b_hoffman has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kfpratt has quit [Remote host closed the connection]
tibig has quit [Ping timeout: 240 seconds]
dented42 has quit [Ping timeout: 265 seconds]
dented42 has joined #ruby-lang
nibbo has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
dented42 has quit [Ping timeout: 244 seconds]
matp_ has quit [Remote host closed the connection]
matp has joined #ruby-lang