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/
<ibouvousaime> another stupid question from me
<chad__> I want to install ruby on a new system. What version of ruby should I install?
<jhass> /usr/bin/true
<Ox0dea> chad__: Trunk.
<jhass> chad__: 2.2.3, see topic
<chad__> jhass: That's the latest one... Is it stable?
towski_ has quit [Remote host closed the connection]
<jhass> sure
Musashi007 has quit [Quit: Musashi007]
chad__ has quit [Quit: Page closed]
<ibouvousaime> Done installing documentation for rails after 559 seconds
<ibouvousaime> 1 gem installed
<ibouvousaime> ITTT WORKSSS
<ibouvousaime> THANK YOUUUU GUYSSSS
<ibouvousaime> XDd
<jhass> ?guys ibouvousaime
<ruboto> ibouvousaime, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<ibouvousaime> okay ruboto
<ibouvousaime> xD
<ibouvousaime> I want to hug yall xD
<ibouvousaime> rofl
<ibouvousaime> xD
<adaedra> Du calme.
<ibouvousaime> mdrr
<ibouvousaime> xD
cyle has quit [Ping timeout: 256 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrJoshua_ has quit [Quit: MrJoshua_]
diegoaguilar has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
bonhoeffer has joined #ruby
yqt has quit [Ping timeout: 252 seconds]
bricker has quit [Quit: leaving]
<ibouvousaime> anyone who uses/used Aptana RadRails here ? what do you think about it ?
charliesome has joined #ruby
diegoaguilar has quit [Ping timeout: 260 seconds]
eminencehc has joined #ruby
ngscheur1 has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 252 seconds]
l_tonz has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-dev]
eminencehc has quit [Remote host closed the connection]
jgt1 has joined #ruby
tvw has quit [Remote host closed the connection]
vF3hNGxc47h8 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Ping timeout: 264 seconds]
jgt has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
choke has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
l_tonz has quit [Remote host closed the connection]
charliesome has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
al2o3-cr has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
`tim` has joined #ruby
`tim` is now known as justbleed
devbug_ has joined #ruby
Alayde has quit [Ping timeout: 256 seconds]
NeverDie has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
charliesome has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
jackjackdripper has quit [Quit: Leaving.]
devbug has quit [Ping timeout: 250 seconds]
leafybasil has quit [Remote host closed the connection]
mollusk_ has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 250 seconds]
wprice has joined #ruby
rcvalle has joined #ruby
dopamean_ has joined #ruby
finisherr has quit [Quit: finisherr]
bubuntu has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.3]
bubuntu has joined #ruby
l_tonz has joined #ruby
devbug has joined #ruby
dfinninger has quit [Remote host closed the connection]
JJM has joined #ruby
devbug_ has quit [Ping timeout: 256 seconds]
tkuchiki has joined #ruby
Asher has quit [Quit: Leaving.]
simi has joined #ruby
mary5030 has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
devbug_ has joined #ruby
mary5030 has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
dopamean_ has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Ping timeout: 246 seconds]
leitz has quit [Quit: Nappy time]
jenrzzz has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
solocshaw has quit [Ping timeout: 272 seconds]
patdohere has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
bubbys has quit [Ping timeout: 250 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
RegulationD has joined #ruby
patdohere has quit [Client Quit]
bmurt has joined #ruby
crime has quit [Quit: Connection closed for inactivity]
bmurt has quit [Client Quit]
jenrzzz has quit [Ping timeout: 256 seconds]
charliesome_ has joined #ruby
bmurt has joined #ruby
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
pontiki has joined #ruby
bmurt has quit [Client Quit]
devbug has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
charliesome has quit [Ping timeout: 250 seconds]
konrath has joined #ruby
baweaver has joined #ruby
rbowlby has quit []
Guest80874 has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
devbug_ has quit [Ping timeout: 260 seconds]
_djbkd has quit [Quit: My people need me...]
Exuma has joined #ruby
webopsx has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
baweaver has quit [Ping timeout: 265 seconds]
<Exuma> can someone help me the most efficient way to write this?
<Exuma> I need to turn this:
charliesome_ has quit [Ping timeout: 260 seconds]
<Exuma> into this
<Exuma> {'hello-world'=> 839, 'nice-sunset' => 104}
<Exuma> its over 10,000 items... ive tried using inject methods
<Exuma> its insanely slow
<Exuma> i can get it to this [{"zoo-volunteer"=>110}, {"zoom-photos"=>149}]
<Exuma> very easily
Yzguy has joined #ruby
<Exuma> its getting it to be the key value which proves difficult for efficiency
jpfuentes2 has joined #ruby
bubbys has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
stannard has joined #ruby
dopamean_ has joined #ruby
devbug_ has joined #ruby
Exuma has quit [Quit: Textual IRC Client: www.textualapp.com]
cwong_on_irc has joined #ruby
<mozzarella> how are you doing it?
willardg has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 260 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
<ibouvousaime> I understood something else too I need to put rvm use --default 2.2 everytime Id like to start rails
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dopamean_ has joined #ruby
<BraddPitt> if you go line by line loading it into a hash object (don't recreate it though!) you can take new_hash[old_hash[event][slug]] => old_hash[event][count]
bMalum has quit [Quit: bMalum]
<BraddPitt> i think that would work
diegoaguilar has quit [Remote host closed the connection]
willardg has quit [Client Quit]
<mozzarella> he has left
j4cknewt_ has joined #ruby
j4cknewt_ has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
swgillespie has joined #ruby
j4cknewt_ has joined #ruby
Yzguy has quit [Quit: Zzz...]
j4cknewt_ has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
Rollabunna has joined #ruby
hahuang65 has joined #ruby
j4cknewt has quit [Ping timeout: 265 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<BraddPitt> ah sorry, i have quits/parts muted
alcipir has joined #ruby
<shevy> I have as well!
<mozzarella> people keep joining, ask a question and leave as soon as possible, it's annoying
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
amclain_ has joined #ruby
amclain has quit [Read error: Connection reset by peer]
<weaksauce> people don't understand how irc works I imagine
ruurd has joined #ruby
willharrison has joined #ruby
alcipir has quit [Ping timeout: 256 seconds]
bryanray has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
sphex_ has joined #ruby
tigarcia has joined #ruby
Ox0dea has joined #ruby
phatypus has joined #ruby
aryaching has quit [Ping timeout: 244 seconds]
<Ox0dea> BraddPitt: But not joins?
bruce_lee2 has joined #ruby
<shevy> they have not yet discovered that IRC is meant to idle for power
diegoaguilar has quit [Remote host closed the connection]
<Ox0dea> IRC is for /r/unixporn screenshots.
bkxd has joined #ruby
solocshaw has joined #ruby
skweek has joined #ruby
charliesome has joined #ruby
alcipir has joined #ruby
sphex has quit [Ping timeout: 264 seconds]
devoldmx has quit [Remote host closed the connection]
phatypus has quit [Client Quit]
bruce_lee has quit [Ping timeout: 272 seconds]
bryanray has joined #ruby
swgillespie has joined #ruby
alcipir has quit [Ping timeout: 250 seconds]
packardwelles has joined #ruby
<packardwelles> which of the following sorting algorithms has the best asymptotic runtime complexity?
Rollabunna has quit [Remote host closed the connection]
<Coraline> The first one
Rollabunna has joined #ruby
<packardwelles> what kind of algorithm is that?
<Coraline> The good kind
<packardwelles> there is bubble sort heap sort selection sort and insertion sort
Musashi007 has joined #ruby
<Ox0dea> packardwelles: Sleepsort is conspicuously absent.
<Coraline> And sorta sort
packardwelles_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<packardwelles_> which of the following sorting algorithms has the best asymptotic runtime complexity? bubble, heap, selection, or insertion?
rbennacer has quit [Remote host closed the connection]
<weaksauce> I always bubble sort my heaps and then select sort when I want to select. insertion sort is fake
<Ox0dea> ?try packardwelles_
<ruboto> packardwelles_, Why don't you try it and see for yourself?
<packardwelles_> i have no idea what that means
rcvalle has quit [Quit: rcvalle]
Rollabunna has quit [Ping timeout: 260 seconds]
<Ox0dea> Sounds like you've lost your shovel.
tmtwd has joined #ruby
<weaksauce> packardwelles_ I am sure most people here know the answer but it really sounds like you want us to do your homework
packardwelles has quit [Ping timeout: 246 seconds]
nicol has joined #ruby
psy_ has joined #ruby
<shevy> Coraline lol that communication :)
rcvalle has joined #ruby
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
vanillapeach has joined #ruby
<vanillapeach> what is asymptotic runtime complexity?
packardwelles_ has quit [Ping timeout: 246 seconds]
<shevy> it's too complex
<vanillapeach> ?
<weaksauce> how your algorithm handles big inputs
<vanillapeach> how can i learn this stuff i haven't seen it on codecademy
<vanillapeach> someone told me to go to hackerrank after codecademy and their first question is that
* vanillapeach woosh
nicol has quit [Client Quit]
sdwrage has joined #ruby
willardg has joined #ruby
<shevy> codecademy is too complex
diegoviola has quit [Quit: WeeChat 1.3]
<Ox0dea> Complexity is too simple.
<vanillapeach> i'm so confused
rbennacer has joined #ruby
<vanillapeach> are you guys being for real or just trolling?
dfockler has quit [Ping timeout: 244 seconds]
<Ox0dea> ?guys vanillapeach
<ruboto> vanillapeach, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
jgt1 has quit [Ping timeout: 252 seconds]
<vanillapeach> wow pc trolls in here :(
<vanillapeach> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, zzak, Radar, Mon_Ouie, Havenn, sevenseacat, miah, workmad3, Coraline, jhass, drbrain, zenspider, slyphon, rubyhacker1, ljarvis, baweaver, Adaedra, Aria
<vanillapeach> ?
<Ox0dea> Jesus.
sankaber has joined #ruby
<shevy> aaaaah he wants to be gone
<vanillapeach> yes i want him to be gone
<vanillapeach> he's trolling and that is not good for the core of the ruby community
<havenwood> vanillapeach: Learning Ruby?
<vanillapeach> yes
<vanillapeach> complete beginner
<vanillapeach> i completed codecademy for whatever that's worth
arooni has quit [Ping timeout: 240 seconds]
<havenwood> vanillapeach: Have any questions so far?
<vanillapeach> yes i would like to know where i can learn this asymptotic runtime complexity thing
tigarcia has quit [Remote host closed the connection]
<vanillapeach> it's the first question on hackerrank and i tried googling but the answers were far too advanced for my level
<Ox0dea> vanillapeach: Which is faster, looping through a collection twice, or just once?
<vanillapeach> just once
<Ox0dea> Indeed.
<drbrain> vanillapeach: we the ops require inclusive language per our channel rules: http://ruby-community.com/pages/user_rules
<vanillapeach> really?
bruno- has joined #ruby
<havenwood> vanillapeach: really
<vanillapeach> it's figure of speech
<vanillapeach> good lord
<BraddPitt> 21:31 < Ox0dea> BraddPitt: But not joins?
<havenwood> vanillapeach: I think Hacker Rank might not be the best next step for you.
<BraddPitt> joins, parts and quits are all hidden
bruno- is now known as Guest43041
<vanillapeach> what would you recommend after codecademy
mary5030 has joined #ruby
<havenwood> vanillapeach: It's quite particular with its subject matter.
<BraddPitt> build something yourself vanillapeach!
favadi has joined #ruby
<havenwood> vanillapeach: I guess it depends on what you want to learn!
<Ox0dea> BraddPitt: WeeChat has a "smart filter" that only shows "relevant" joins, parts, and quits; it's pretty great.
favadi has quit [Client Quit]
<vanillapeach> i literally did every exercise there and have the ability to code basic sites with html css and javascript and know how to create login pages with rails
<BraddPitt> ah, I'm on [deprecated] irssi
rbennacer has quit [Remote host closed the connection]
<havenwood> vanillapeach: Have you done any testing yet?
<vanillapeach> their ruby track was interesting but i want to learn more i want to become a senior developer asap
<havenwood> vanillapeach: Tried Ruby Koans?
<vanillapeach> yes i have done testing
<vanillapeach> i don't see the point of testing but that's okay i will once i actually start coding
<drbrain> testing allows you to make changes safely and rapidly
charliesome has quit [Read error: Connection reset by peer]
<vanillapeach> where can i learn about algorithms?
charliesome has joined #ruby
<vanillapeach> particularly those
<vanillapeach> bubble, insertion, heap, and selection
<vanillapeach> and an explanation of what asymptotic runtime complexity in plain english would be
Guest43041 has quit [Ping timeout: 264 seconds]
l_tonz has quit [Remote host closed the connection]
<Ox0dea> Hey, those look like they're gonna touch at some point!
mary5030 has quit [Ping timeout: 272 seconds]
<Ox0dea> havenwood: Does the GIF end?
pdoherty has quit [Ping timeout: 252 seconds]
favadi has joined #ruby
RegulationD has joined #ruby
<havenwood> Ox0dea: it's an animated gif just *very* slow
l_tonz has joined #ruby
RobertBirnie has joined #ruby
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arooni has joined #ruby
RobertBirnie has quit [Read error: Connection reset by peer]
justbleed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
RobertBirnie has quit [Client Quit]
Igorshp has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
Azure has joined #ruby
dfinninger has joined #ruby
l_tonz has quit [Ping timeout: 265 seconds]
bb010g has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alcipir has joined #ruby
workmad3 has joined #ruby
simi has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
skcin7 has quit [Ping timeout: 250 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
alcipir has quit [Ping timeout: 250 seconds]
Mudak has quit [Quit: bbs]
tkuchiki has joined #ruby
`tim` has joined #ruby
skcin7 has joined #ruby
rcvalle has quit [Quit: rcvalle]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
postmodern has quit [Quit: Leaving]
tkuchiki has quit [Ping timeout: 256 seconds]
CloCkWeRX has joined #ruby
Musashi007 has quit [Quit: Musashi007]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
psy_ has quit [Ping timeout: 250 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
chipotle has quit [Quit: cheerio]
jenrzzz has joined #ruby
tigarcia has joined #ruby
tubuliferous_ has quit [Ping timeout: 256 seconds]
bayed has quit [Quit: Connection closed for inactivity]
tigarcia has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
e1senhorn has joined #ruby
arescorpio has joined #ruby
wildlander has joined #ruby
favadi has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
favadi has quit [Client Quit]
O47m341 has joined #ruby
bollullera has left #ruby [#ruby]
Oatmeal has quit [Ping timeout: 240 seconds]
mwlang has quit [Quit: mwlang]
vF3hNGxc47h8 has quit [Ping timeout: 255 seconds]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joneshf-laptop has quit [Remote host closed the connection]
joneshf-laptop has joined #ruby
<shevy> hmm
<shevy> it's weekend again and people are sleepy
jessemcgilallen has quit [Quit: jessemcgilallen]
badhatter has joined #ruby
Ropeney has joined #ruby
Ropeney has quit [Client Quit]
wlch has joined #ruby
<eam> shevy: good evening
ivanskie has joined #ruby
bruno- has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bruno- is now known as Guest60548
gener1c has joined #ruby
wlch has quit [Client Quit]
gener1c_ has quit [Ping timeout: 250 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest60548 has quit [Ping timeout: 255 seconds]
willardg has joined #ruby
braincra- has quit [Quit: bye bye]
janelleb_ has quit [Ping timeout: 255 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has quit [Ping timeout: 246 seconds]
Kharma has quit [Ping timeout: 265 seconds]
Kharma has joined #ruby
leat has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 250 seconds]
ghormoon has quit [Quit: ZNC - http://znc.in]
houhoulis has joined #ruby
braincrash has joined #ruby
leat has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
konrath has quit [Quit: Leaving]
wprice has quit [Quit: wprice]
bmurt has joined #ruby
stannard has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
lavros has joined #ruby
wlch2 has joined #ruby
ramfjord has joined #ruby
wlch2 has quit [Client Quit]
wlch2 has joined #ruby
wlch2 has quit [Client Quit]
fantazo has joined #ruby
wsewolod has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
wsewolod is now known as Wsewolod
ramfjord has quit [Ping timeout: 264 seconds]
wlch has joined #ruby
wlch has quit [Client Quit]
gix has quit [Ping timeout: 256 seconds]
speaking1ode has quit [Ping timeout: 260 seconds]
rehat has joined #ruby
wlch has joined #ruby
wlch has quit [Client Quit]
speaking1ode has joined #ruby
gix has joined #ruby
stardiviner has joined #ruby
govg has joined #ruby
ibouvousaime has quit [Ping timeout: 272 seconds]
jamto11 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
RegulationD has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duderonomy has joined #ruby
RegulationD has quit [Ping timeout: 265 seconds]
sdwrage has joined #ruby
baweaver has joined #ruby
speaking1ode has quit [Ping timeout: 244 seconds]
favadi has joined #ruby
darkf has joined #ruby
howdoicomputer has joined #ruby
dfinninger has quit [Remote host closed the connection]
ramfjord has joined #ruby
speaking1ode has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cyther has quit [Quit: Leaving]
ghormoon has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest49903
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has quit [Ping timeout: 246 seconds]
Guest49903 has quit [Ping timeout: 250 seconds]
Igorshp has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
govg has quit [Quit: Restarting]
govg has joined #ruby
cajone has left #ruby [#ruby]
<weaksauce> vanillapeach are you trolling or do you really not know asymptotic running time complexity?
<weaksauce> the woosh statement above I thought you were trolling
workmad3 has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
c9s has joined #ruby
c9s has joined #ruby
umgrosscol has joined #ruby
nxqd has joined #ruby
<nxqd> hi guys
c9s has left #ruby [#ruby]
<nxqd> I'm looking for a way to build a ruby bot on gitter ( it would be the same on irc ). It would be great that anyone has created it before gives me some hint or keyword ( security, deployment ) ...
<nxqd> :)
nanoz has joined #ruby
Feyn has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
gix has quit [Ping timeout: 252 seconds]
umgrosscol has quit [Remote host closed the connection]
nettoweb has quit [Client Quit]
jher has joined #ruby
gix has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
tubuliferous_ has joined #ruby
robbyoconnor has joined #ruby
tkuchiki has joined #ruby
Rinzlit has joined #ruby
howdoicomputer has quit [Ping timeout: 268 seconds]
govg has quit [Ping timeout: 265 seconds]
howdoicomputer has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
<shevy> I keep on rewriting old ruby code :(
<shevy> and it always takes longer than anticipated...
Musashi007 has joined #ruby
tkuchiki has joined #ruby
rippa has joined #ruby
<totimkopf> shevy: how old is the ruby code?
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
tigarcia has joined #ruby
sudiptamondal has joined #ruby
mollusk_ has joined #ruby
foooobear has joined #ruby
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Puck7744 has joined #ruby
darkf_ has joined #ruby
robbyoconnor has quit [Excess Flood]
tigarcia has quit [Client Quit]
robbyoconnor has joined #ruby
Puck6633 has quit [Ping timeout: 246 seconds]
PaulCape_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
darkf has quit [Ping timeout: 246 seconds]
arescorpio has quit [Quit: Leaving.]
darkf_ is now known as darkf
arooni has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Ping timeout: 255 seconds]
amclain_ has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
moeabdol has joined #ruby
houhoulis has quit [Remote host closed the connection]
pontiki has joined #ruby
bruno- has joined #ruby
devoldmx has joined #ruby
bruno- is now known as Guest60468
The_Phoenix has joined #ruby
wprice has joined #ruby
solocshaw has joined #ruby
trosborn has joined #ruby
Guest60468 has quit [Ping timeout: 268 seconds]
pontiki has quit [Ping timeout: 240 seconds]
Musashi007 has joined #ruby
vadgeayna has joined #ruby
<vadgeayna> why are loops inside conditionals bad practice?
favadi has joined #ruby
sudiptamondal has quit [Quit: Leaving.]
tmtwd has joined #ruby
jamto11 has quit [Remote host closed the connection]
sudiptamondal has joined #ruby
freerobby has joined #ruby
freerobby1 has quit [Read error: Connection reset by peer]
<havenwood> vadgeayna: Why do you claim so?
<vadgeayna> someone told me that
nxqd has quit [Ping timeout: 246 seconds]
<havenwood> vadgeayna: have the code from the context it was said?
Gnomethrower has joined #ruby
vF3hNGxc47h8 has joined #ruby
<Musashi007> Is anyone interested in playing with ruby with a partner? I’d be down to help out with whatever
tkuchiki has joined #ruby
<havenwood> Musashi007: Have anything in mind to make?
<Musashi007> Always but i’d be happy to help with something you’re working on
<Musashi007> I definitely do, though
phatypus has joined #ruby
clx has quit [Ping timeout: 265 seconds]
johnny56 has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
clx has joined #ruby
Pupp3tm4st3r has joined #ruby
phatypus has quit [Client Quit]
lkba has joined #ruby
lkba has quit [Remote host closed the connection]
stannard has joined #ruby
lkba has joined #ruby
<rehat> this might be an odd question but is there a way to run a ruby script A with an arg to another ruby script B that has a bunch of constants so that ruby script A can use??
Pupp3tm4st3r has quit [Remote host closed the connection]
vF3hNGxc47h8 has quit [Read error: Connection reset by peer]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
zapata has quit [Quit: WeeChat 1.3]
stannard has quit [Ping timeout: 252 seconds]
<jher> rehat: Module constants
arup_r has quit [Quit: Leaving]
govg has joined #ruby
RegulationD has joined #ruby
jiada has joined #ruby
freerobby has quit [Quit: Leaving.]
jiada has quit [Client Quit]
jiada has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
jher has quit [Quit: leaving]
devoldmx has quit [Remote host closed the connection]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alcipir has joined #ruby
nemo_ has joined #ruby
devoldmx has joined #ruby
zapata has joined #ruby
safeforge has joined #ruby
<shevy> totimkopf ranging from 7 to perhaps 3 years, the 7 ones are slowly gone, the 3-years old code is like a mixture of ~3-~5 years
<shevy> I got a significantly better workflow over the course of the last 2 years but I still end up rewriting every now and then
safeforge has quit [Client Quit]
Pupp3tm4st3r has joined #ruby
moei has quit [Quit: Leaving...]
alcipir has quit [Ping timeout: 260 seconds]
skcin7 has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
nemo__ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
nemo_ has quit [Ping timeout: 256 seconds]
PaulCape_ has quit [Quit: .]
nemo__ has quit [Remote host closed the connection]
skcin7 has joined #ruby
PaulCapestany has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
alcipir has joined #ruby
suffice has joined #ruby
duncannz has joined #ruby
leat has quit [Ping timeout: 268 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
wildlander has quit [Quit: Saliendo]
skcin7 has quit [Ping timeout: 264 seconds]
armyriad has quit [Ping timeout: 246 seconds]
Fredrich010 has joined #ruby
GnuYawk has joined #ruby
GnuYawk has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
jenrzzz has joined #ruby
moeabdol has quit [Ping timeout: 260 seconds]
leat has joined #ruby
skcin7 has joined #ruby
mollusk_ has quit [Ping timeout: 250 seconds]
nemo_ has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
sudiptamondal has quit [Ping timeout: 255 seconds]
mostlybadfly has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
jamto11 has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
skade has joined #ruby
A124 has quit [Read error: No route to host]
demonlove has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
Vile` has joined #ruby
<vadgeayna> what is the best ruby compiler?
skcin7 has quit [Ping timeout: 255 seconds]
<demonlove> .
moeabdol has joined #ruby
demonlove has quit [Read error: Connection reset by peer]
A124 has joined #ruby
jiada has quit [Remote host closed the connection]
<havenwood> vadgeayna: one that's just-in-time
nanoz has quit [Ping timeout: 256 seconds]
Wsewolod has quit [Quit: Connection closed for inactivity]
<vadgeayna> why isn't tickle more popular?
favadi has joined #ruby
<havenwood> vadgeayna: huh?
<vadgeayna> tickle the programming language
sudiptamondal has joined #ruby
<havenwood> vadgeayna: Ruby is traditionally an interpreted rather than compiled language. There are multiple solid implementations of Ruby.
<vadgeayna> what happens if you compile ruby?
skcin7 has joined #ruby
<havenwood> vadgeayna: I'm tempted to say: http://crystal-lang.org
<vadgeayna> thank you
<havenwood> vadgeayna: The Crystal compiler was written in Ruby before it was bootstrapped to Crystal.
<vadgeayna> so basically crystal is compiled ruby
<havenwood> vadgeayna: It's not Ruby.
<havenwood> vadgeayna: It's Ruby-inspired syntax.
trosborn has quit [Quit: trosborn]
<havenwood> vadgeayna: So it's very familiar for a Rubyist with a modern standard library.
<havenwood> vadgeayna: It's not 1.0 yet.
<vadgeayna> why not use existing programming languages then?
<vadgeayna> why not improve what we already have?
<agent_white> vadgeayna: In a carptenter's belt there are many tools.
trosborn has joined #ruby
<vadgeayna> yes but why have two hammers
<agent_white> Each tool does a certain job well. Very well. Though another tool maybe can do that job, it maybe doesn't as another.
<havenwood> vadgeayna: Carpenters do use multiple types of hammers.
joonty has joined #ruby
<agent_white> There are many kinds of hammers.
<agent_white> ^^
<vadgeayna> but programming all you're doing is creating text that gets translated into binary every time
<havenwood> Not even counting mallets and sledge hammers.
<vadgeayna> in theory all you need are a few languages
<agent_white> vadgeayna: If that was so. We all would be using a single language. Everywhere. For everything.
<agent_white> And people across the globe, would all speak the same languages, in every region.
<vadgeayna> well the fact is you don't need python you can just use ruby for the same exact things
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<agent_white> Or eat the same food, for each meal... see what I'm getting at?
<vadgeayna> you don't need c# or other languages since you have c and c++
<havenwood> vadgeayna: no trolling
<vadgeayna> i'm not trolling
<agent_white> vadgeayna: It's a combination of the right hand for the right tool, and the right tool for the right job.
<vadgeayna> all you really need are one interpreted and object oriented language and the other a compiled programming language
<agent_white> If we all loved one language. And all agreed it did everything. Well. This channel wouldn't exist.
<havenwood> vadgeayna: nope
<vadgeayna> i don't see the point of confusing everyone by having so many programming languages
<vadgeayna> people want to be cool and say that they created a new language
<vadgeayna> :(
<vadgeayna> people who can't learn ruby should give up programming because it's not for them
relix has joined #ruby
<havenwood> !kick vadgeayna no trolling
vadgeayna was kicked from #ruby by ruboto [no trolling]
vadgeayna has joined #ruby
<vadgeayna> what did i say that was trolling?
<havenwood> vadgeayna: "people who can't learn ruby should give up programming because it's not for them"
<vadgeayna> trolling means deliberately untrue messages designed to get a reaction from people
<havenwood> vadgeayna: stop it
<vadgeayna> i wasn't doing either
<vadgeayna> wow you're treating me like a 5 year old
<vadgeayna> i'm 13 thank you
<vadgeayna> very much
<apeiros> I guess that explains the nick
<vadgeayna> your mom
<havenwood> !ban vadgeayna !T 1h trolling
vadgeayna was kicked from #ruby by ChanServ [Banned: trolling]
<agent_white> The last sentence you said wasn't (just) trolling. Anyone who wants to learn will learn; and to program, will program.
<agent_white> That's not trolling, it's discouraging and ignorant.
<agent_white> Oh. He's gone.
<agent_white> havenwood: Thank you.
devoldmx has quit [Remote host closed the connection]
Xeago has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Musashi007> @havenwood how do you like ot manage your ruby projects?
willardg has joined #ruby
<havenwood> Musashi007: You should ask that to someone who's a better maintainer than me!
<Musashi007> haha
<Musashi007> anyone who is a better maintainer than havenwood want to say how they manage their ruby projets? :D
dnewkerk has quit [Quit: dnewkerk]
<havenwood> Musashi007: For example, see: https://github.com/jeremyevans/roda
<Musashi007> oh lordy what are these examples of
pontiki has joined #ruby
skcin7_ has joined #ruby
skcin7 has quit [Ping timeout: 240 seconds]
<havenwood> Musashi007: There're many factors but handling issues, test coverage, responding to pull requests, keeping a changelog, a coherent git history, a regular patten of updates, and fostering a welcome environment are some
<havenwood> welcoming*
Xeago has quit [Read error: Connection reset by peer]
towski_ has joined #ruby
nemo_ has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pontiki has quit [Ping timeout: 268 seconds]
<havenwood> Musashi007: Probably saying no is pretty important. Growing a community would be vital unless you can do it all.
dnewkerk has joined #ruby
dnewkerk has quit [Client Quit]
towski_ has quit [Remote host closed the connection]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
swgillespie has joined #ruby
NeverDie has joined #ruby
swgillespie has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
vdamewood has joined #ruby
nemo_ has joined #ruby
firstdayonthejob has joined #ruby
jamto11 has joined #ruby
tkuchiki has joined #ruby
sudiptamondal has quit [Ping timeout: 255 seconds]
jamto11 has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Ping timeout: 240 seconds]
null__ has quit [Quit: ZNC - http://znc.in]
null__ has joined #ruby
null__ has joined #ruby
Soda has joined #ruby
jokester has quit [Ping timeout: 256 seconds]
Fredrich010 has quit [Ping timeout: 260 seconds]
erbesharat has joined #ruby
symm- has joined #ruby
Fredrich010 has joined #ruby
nemo_ has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 256 seconds]
nofxx has quit [Ping timeout: 264 seconds]
armyriad has joined #ruby
relix has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has joined #ruby
moei has joined #ruby
Fredrich010 has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
Fredrich010 has joined #ruby
beauby has joined #ruby
RegulationD has joined #ruby
keen______ has quit [Read error: Connection reset by peer]
Fredrich_ has joined #ruby
willardg has joined #ruby
keen______ has joined #ruby
Fredrich010 has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
workmad3 has joined #ruby
willardg has quit [Client Quit]
RegulationD has quit [Ping timeout: 250 seconds]
CloCkWeRX has joined #ruby
elaptics is now known as elaptics`
workmad3 has quit [Ping timeout: 260 seconds]
lkba has quit [Remote host closed the connection]
zipace has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
jokester has joined #ruby
teclator has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zipace has quit [Changing host]
zipace has joined #ruby
baweaver has quit [Remote host closed the connection]
tkuchiki has joined #ruby
spider-mario has joined #ruby
SuzieQueue has joined #ruby
<erbesharat> i get this error when i want install jbuilder and web-console gem: http://dpaste.com/0FV7XD3
<erbesharat> i searched and found this https://github.com/rubygems/rubygems/issues/515 but there is not any solution for fixing this error.
O47m341 has quit [Ping timeout: 268 seconds]
vdamewood has quit [Quit: Life beckons.]
tkuchiki has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest99954
Musashi007 has quit [Quit: Musashi007]
davedev24 has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
Guest99954 has quit [Ping timeout: 252 seconds]
vadgeayna has joined #ruby
bruno-_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24 has quit [Ping timeout: 246 seconds]
sl33k has joined #ruby
<sl33k> hey guys
<sl33k> i am trying to force delete and install my homebrew
<sl33k> but some “possible” brew files in /usr/local dont seem to be getting deleted and I have been advised to delete manually.
tkuchiki has joined #ruby
<sl33k> would this be a safe operation?
<apeiros> sl33k: I think homebrew has its own channel
davedev24 has joined #ruby
mikecmpbll has joined #ruby
<sl33k> apeiros: aye
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
aryaching has quit [Remote host closed the connection]
aryaching has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
firstdayonthejob has quit [Ping timeout: 272 seconds]
Xiti has quit [Read error: Connection reset by peer]
decoponio has quit [Read error: Connection reset by peer]
nowhereFast has joined #ruby
ruurd has joined #ruby
Xiti has joined #ruby
decoponio has joined #ruby
vigintas has joined #ruby
vigintas has quit [Remote host closed the connection]
vigintas has joined #ruby
yosiat has joined #ruby
chipotle_ has joined #ruby
charliesome has joined #ruby
alcipir has quit [Read error: Connection reset by peer]
chipotle has quit [Ping timeout: 265 seconds]
beauby has quit [Ping timeout: 260 seconds]
j416_ has joined #ruby
alcipir has joined #ruby
Musashi007 has joined #ruby
hfp_work has quit [Ping timeout: 246 seconds]
j416 has quit [Ping timeout: 240 seconds]
j416_ is now known as j416
inteq has joined #ruby
hfp_work has joined #ruby
skade has joined #ruby
platzhirsch has joined #ruby
sl33k has quit [Ping timeout: 250 seconds]
sl33k has joined #ruby
Musashi007 has quit [Quit: Musashi007]
chipotle_ has quit [Ping timeout: 246 seconds]
stardiviner has quit [Quit: Code, Sex, Just fucking world.]
htmldrum has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
Jackneill has joined #ruby
chipotle has joined #ruby
platzhirsch has quit [Ping timeout: 240 seconds]
vdamewood has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
mostlybadfly has quit [Quit: Connection closed for inactivity]
sudiptamondal has joined #ruby
dmolina has joined #ruby
Xeago has joined #ruby
stardiviner has joined #ruby
favadi has joined #ruby
ajb is now known as ajb-
pontiki has joined #ruby
bMalum has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
patdohere has joined #ruby
pontiki has quit [Ping timeout: 252 seconds]
bMalum_ has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 252 seconds]
bMalum has joined #ruby
ajb- is now known as ajb
ajb is now known as ajb-
ajb- is now known as ajb
hmsimha has joined #ruby
favadi has joined #ruby
bMalum_ has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
karapetyan has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
duncannz has quit [Ping timeout: 268 seconds]
GBrawl has joined #ruby
Feyn has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
jgt1 has joined #ruby
bMalum_ has joined #ruby
bMalum has quit [Ping timeout: 260 seconds]
bMalum_ is now known as bMalum
AccordLTN has quit [Ping timeout: 268 seconds]
sudiptamondal has quit [Ping timeout: 255 seconds]
hiyosi has joined #ruby
tkuchiki has joined #ruby
Rinzlit_ has joined #ruby
workmad3 has joined #ruby
CloCkWeRX1 has joined #ruby
chipotle has quit [Quit: cheerio]
CloCkWeRX has quit [Ping timeout: 260 seconds]
Rinzlit has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: ZZZzzz…]
CloCkWeRX1 has quit [Ping timeout: 240 seconds]
vdamewood has quit [Quit: Life beckons.]
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
RegulationD has joined #ruby
bruno-_ has quit [Ping timeout: 246 seconds]
GBrawl has quit [Quit: (null)]
Musashi007 has quit [Quit: Musashi007]
RegulationD has quit [Ping timeout: 252 seconds]
dmolina has quit [Read error: Connection reset by peer]
dmolina has joined #ruby
benlovell has joined #ruby
<vadgeayna> i don't like niggers
favadi has quit [Ping timeout: 268 seconds]
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vadgeayna has quit [Disconnected by services]
skade has joined #ruby
pandaant has joined #ruby
karapetyan has quit [Remote host closed the connection]
workmad3 has joined #ruby
leafybasil has joined #ruby
platzhirsch has joined #ruby
vanillapeach has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
elaptics` is now known as elaptics`away
Xeago has joined #ruby
Galas has joined #ruby
dmolina has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 265 seconds]
Xeago has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
howdoicomputer has quit [Ping timeout: 260 seconds]
vanillapeach has joined #ruby
jgt1 has quit [Ping timeout: 256 seconds]
benlovell has quit [Ping timeout: 246 seconds]
yosiat has quit [Quit: Textual IRC Client: www.textualapp.com]
bubbys has quit [Ping timeout: 240 seconds]
andykingking has joined #ruby
bubbys has joined #ruby
gregf has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
yfeldblum has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sudiptamondal has joined #ruby
sudiptamondal has quit [Max SendQ exceeded]
shinenelson has joined #ruby
sudiptamondal has joined #ruby
sudiptamondal has quit [Max SendQ exceeded]
sudiptamondal has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
simi has joined #ruby
joonty has quit [Quit: joonty]
ruurd has joined #ruby
Voker57 has joined #ruby
jgt1 has joined #ruby
firstdayonthejob has joined #ruby
Soda has quit [Remote host closed the connection]
gigetoo has joined #ruby
karapetyan has joined #ruby
demonlove has joined #ruby
<sl33k> which terminal do most of you guys use? I would like to modify mine to look more sexy and appealing
<sl33k> using iTerm and it still looks a bit dull
ruurd has quit [Quit: ZZZzzz…]
<Galas> I use iTerm
<Galas> you can download themes for it
<sl33k> Galas: like when I do ls -al
aryaching has quit [Ping timeout: 240 seconds]
<sl33k> i like when the output comes out with types in different colors
hmsimha has quit [Ping timeout: 265 seconds]
gigetoo has quit [Ping timeout: 240 seconds]
<sl33k> Galas: also it would be nice to get “syntax” highlight when I am typing commands like: git add blah
workmad3 has joined #ruby
demonlove has quit [Quit: Leaving]
sudiptamondal has quit [Ping timeout: 250 seconds]
<jhass> sl33k: you describe shell features rather than terminal features. Have a look at fish and zsh
bruce_lee2 has quit [Changing host]
bruce_lee has joined #ruby
bruce_lee2 is now known as bruce_lee
Caius has quit [Ping timeout: 256 seconds]
skade has quit [Ping timeout: 260 seconds]
ajb is now known as ajb-
<sl33k> jhass: i know this isnt exactly a ruby/rails feature, but seeing as i would be using the terminal a lot. I would be glad if you could explain
ajb- is now known as ajb
ajb is now known as ajb-
ajb- is now known as ajb
ajb is now known as ajb-
<jhass> do echo $SHELL
<jhass> that's what you have currently running
<jhass> the shell is the program that runs inside your terminal most of the time and provides the prompt where you type stuff
workmad3 has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
lavros_ has joined #ruby
lkba has joined #ruby
charliesome_ has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
<sl33k> jhass: /bin/bash is the output
<jhass> not surprisingly
lavros has quit [Ping timeout: 264 seconds]
<jhass> so google "fish shell" and "zsh" now
<sl33k> jhass: what does iTerm or iTerm2 bring to the table then?
Caius has joined #ruby
<sl33k> jhass: which would you advise me to go with?
<sl33k> i’ve heard of zsh
skade has joined #ruby
<jhass> I never tried fish, so I'm biased
<jhass> but zsh requires a fair amount of configuration to get to something really nice
lubarch has joined #ruby
lubarch has quit [Client Quit]
<jhass> yeah, or pretzo
<jhass> or grml
<adaedra> yorickpeterse runs under fish iirc
<sl33k> jhass: i’ll have a look at all of that.
<sl33k> jhass: meanwhile, feel fairly comfy and bored with ruby so on rails now: https://www.railstutorial.org/book/beginning
<jhass> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
platzhirsch has quit [Ping timeout: 272 seconds]
<sl33k> jhass: are you there?
<jhass> I idle there
<sl33k> jhass: what do you use ruby for outside rails in real life?
<sl33k> anyways, i want to spend time in rails and get instant gratification (and productivity) also ascertain my ruby level. I’ll need to come back later on
<jhass> I've written, mmh, 3 IRC bots in it, lot's of small adhoc scripts to automate some task, stuff like that
tkuchiki has joined #ruby
ruurd has joined #ruby
<sl33k> jhass: dont know what mmh is. irc bots in java are built from libraries stuff like pircbot library or so. automation sounds fun :D
<sl33k> jhass: thanks for helping
<jhass> mmh, as in the "let me think" sound
joonty has joined #ruby
bruno- has joined #ruby
* sl33k facepalm
<karapetyan> hello
Feyn has joined #ruby
bruno- is now known as Guest87790
<karapetyan> something.map { |i| i ** 2 } -- is there any shortcut for it?
hfp_work has quit [Ping timeout: 240 seconds]
ruurd has quit [Client Quit]
<jhass> karapetyan: nope
tkuchiki has quit [Remote host closed the connection]
joonty has quit [Client Quit]
hfp_work has joined #ruby
ruurd has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
Guest87790 has quit [Ping timeout: 265 seconds]
astrobunny has joined #ruby
bruno-_ has joined #ruby
<yorickpeterse> adaedra: yes, I use Fish
<yorickpeterse> and it's pretty easy to set up
<yorickpeterse> no need for oh-my-bloatware
<adaedra> I tried, I didn't like it that much :<
tkuchiki has joined #ruby
platzhirsch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Guest71876 has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
joonty has joined #ruby
bruno-_ has quit [Ping timeout: 268 seconds]
bruno-_ has joined #ruby
karapetyan has quit [Ping timeout: 240 seconds]
howdoicomputer has joined #ruby
clx has quit [Ping timeout: 272 seconds]
joonty has quit [Quit: joonty]
Xiti has quit [Read error: Connection reset by peer]
zarubin_ has joined #ruby
lkba_ has joined #ruby
cfloare has quit [Ping timeout: 260 seconds]
howdoicomputer has quit [Ping timeout: 256 seconds]
gregf has joined #ruby
Guest71876 has quit [Ping timeout: 268 seconds]
platzhirsch has left #ruby [#ruby]
cfloare has joined #ruby
Galas has quit [Remote host closed the connection]
htmldrum has joined #ruby
lkba has quit [Ping timeout: 268 seconds]
jgt1 has quit [Quit: WeeChat 1.2]
jgt has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
pontiki has joined #ruby
Xiti has joined #ruby
Galas has joined #ruby
HANJIN has joined #ruby
psy_ has joined #ruby
psy_ has quit [Max SendQ exceeded]
ht__ has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vanillapeach has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
psy_ has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
pontiki has quit [Ping timeout: 250 seconds]
kirun has joined #ruby
sl33k_ has joined #ruby
nowhereFast has quit [Ping timeout: 268 seconds]
nowhereFast has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
sl33k has quit [Ping timeout: 265 seconds]
sl33k_ is now known as sl33k
Coldblackice has quit [Ping timeout: 264 seconds]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nowhereFast has quit [Ping timeout: 272 seconds]
Galas has quit [Remote host closed the connection]
sdothum has joined #ruby
fantazo has quit [Quit: Verlassend]
Rollabunna has joined #ruby
rbennacer has joined #ruby
workmad3 has joined #ruby
rbennacer has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
solocshaw1 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw1 is now known as solocshaw
gigetoo has joined #ruby
lubarch has joined #ruby
Nightmare has quit [Ping timeout: 246 seconds]
AccordLTN has joined #ruby
Jello_Raptor_ has quit [Ping timeout: 255 seconds]
Nightmare has joined #ruby
minimalism has quit [Quit: leaving]
Jello_Raptor has joined #ruby
davedev24 has joined #ruby
SCHAAP137 has joined #ruby
zarubin_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
bonhoeffer_ has joined #ruby
aryaching has joined #ruby
Galas has joined #ruby
ibouvousaime has quit [Ping timeout: 250 seconds]
leafybasil has quit [Remote host closed the connection]
hadrig has joined #ruby
skcin7_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 244 seconds]
big|bad|wolf has joined #ruby
big|bad|wolf has quit [Max SendQ exceeded]
workmad3 has joined #ruby
hadrig has quit [Client Quit]
hadrig has joined #ruby
Rickmasta has joined #ruby
hadrig has quit [Remote host closed the connection]
big|bad|wolf has joined #ruby
beauby has joined #ruby
big|bad|wolf has quit [Max SendQ exceeded]
sl33k has quit [Quit: sl33k]
tk___ has joined #ruby
zarubin_ has joined #ruby
karapetyan has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
tk___ has quit [Client Quit]
cornerma1 has joined #ruby
zarubin_ has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
workmad3 has joined #ruby
zarubin_ has joined #ruby
Rinzlit has joined #ruby
OrbitalKitten has joined #ruby
Ox0dea has quit [Ping timeout: 265 seconds]
howdoicomputer has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
Rinzlit_ has quit [Ping timeout: 265 seconds]
zarubin_ has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
bonhoeffer_ has quit [Quit: bonhoeffer_]
ajb- has quit [Quit: Bye.]
alcipir has quit [Read error: Connection reset by peer]
howdoicomputer has quit [Ping timeout: 265 seconds]
ajb- has joined #ruby
ajb- has quit [Changing host]
ajb- has joined #ruby
leafybasil has joined #ruby
alcipir has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p0wn3d has quit [Ping timeout: 250 seconds]
leafybas_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
tk___ has joined #ruby
zarubin_ has joined #ruby
p1k has joined #ruby
leafybas_ has joined #ruby
leafybasil has quit [Read error: Connection reset by peer]
Rinzlit_ has joined #ruby
<p1k> is there a method to get all the class methods for a class?
zarubin_ is now known as zarubin
tubuliferous_ has quit [Ping timeout: 256 seconds]
leafybas_ has quit [Read error: Connection reset by peer]
ruurd has joined #ruby
leafybasil has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
<apeiros> p1k: klass.methods
<apeiros> also see .private_methods
lavros_ has quit [Quit: leaving]
Wsewolod has joined #ruby
tkuchiki has joined #ruby
Rinzlit has quit [Ping timeout: 256 seconds]
hadrig has joined #ruby
<p1k> apeiros: can i get private and non-private together?
<apeiros> don't think so. but they return arrays and you can use Array#+
yfeldblum has quit [Ping timeout: 246 seconds]
BSaboia has joined #ruby
<p1k> how can i fetch a specific private method without calling it ?
nanoz has joined #ruby
jbw has joined #ruby
akemrir has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
hadrig has left #ruby ["Textual IRC Client: www.textualapp.com"]
mengu has joined #ruby
Fredrich010 has joined #ruby
jgt has quit [Ping timeout: 252 seconds]
MeMoc has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
lavros has joined #ruby
OrbitalKitten has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
dikaio has quit [Quit: ........]
Fredrich_ has quit [Ping timeout: 268 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
zotherst1 has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
zotherstupidguy has quit [Ping timeout: 240 seconds]
bonhoeffer has joined #ruby
gregoriokusowski has joined #ruby
jamto11 has quit [Ping timeout: 260 seconds]
jgt has joined #ruby
The_Phoenix has joined #ruby
cdg has joined #ruby
<yorickpeterse> adaedra: took me a day or two
<yorickpeterse> can't go back now
sudiptamondal has joined #ruby
sudiptamondal has quit [Max SendQ exceeded]
sudiptamondal has joined #ruby
BrunoSaboia has joined #ruby
<adaedra> yorickpeterse: I tried for some days, but I went back to zsh, easier to configure (maybe because I already know how).
<adaedra> I kind of felt it tried too hard being smart.
BSaboia has quit [Ping timeout: 246 seconds]
BrunoSaboia has quit [Client Quit]
millerti has joined #ruby
<millerti> I'm writing a program in Ruby, and I have subclassed Array. As long as I create a new one and access methods on it, I get what I want. But what if I have a regular array, but I want to convert it to an instance of the subclass?
<adaedra> You can't.
<odigity> The OpenSSL::PKey::EC.new method is undocumented, and every example I can find shows how to generate a new key pair instead of reusing an existing private key, which is useless.
<adaedra> What you can do, is put the additional methods in a module rather than a subclass, and extend the instance where you need the additional methods, millerti
htmldrum has quit [Ping timeout: 244 seconds]
<millerti> adaedra: One of the thing I want to do us concatenate two of the subclass. But + on the superclass seems to return an Array.
<odigity> millerti, the Kernel module has a method called Array() that turns whatever you pass into it into an array. Perhaps you can make a similar constructor function in your class. For example, if your class is MyArray, you can create a class method that takes an array and returns your special array, like MyArray.from_ary
lavros has quit [Quit: leaving]
<adaedra> millerti: but maybe subclassing Array is not the best solution. What are you trying to do, in the first place?
mengu has quit [Remote host closed the connection]
<odigity> If you do decide to subclass the array and still want + to work, you will have to override it by defining your own version in your subclass.
<millerti> odigity: Yeah, I thought about making a constructor, but how do I take an array and assign it to the internal array of the subclass?
<odigity> but yes, adaedra's suggestion to try an alternative approach is also worth considering. (though there's nothing wrong with subclassing Array or Hash, it's done all the time)
<millerti> odigity: If I override +, I can use the super class's implementation of + to concatenate, but I get an Array, not the subclass.
<yorickpeterse> adaedra: never really bothered with zsh tbh, so not sure
<millerti> Why did I do this? Because I need an array that automatically creates something other than nil for empty elements.
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<yorickpeterse> but configuring Fish from the shell is pretty easy
<yorickpeterse> the web UI is meh
<odigity> millerti, I'm aware. you'll have to than repackage the resulting array as a MyArray
<odigity> millerti, the feature you're looking for is built-in to Array, I think
<millerti> odigity: How do I do that repackaging?
nowhereFast has joined #ruby
<odigity> millerti, the same way you build up your MyArray in the first place. by using << or [] or a dozen other methods that add elements to an array
<millerti> odigity: Gah. I need the speed of using built-in methods.
<odigity> millerti, can you give me an example of a case where you're getting a nil but want something else when using the default Array?
<millerti> Sure. This is called InstructionArray, and when I access an element not previously assigned, I want to get a "null" Instruction. So I overrode [] to make that happen.
<millerti> This happens when I'm merging instruction sequences which only partially overlap, so when I go off the end of one, I need to merge with blank instructions.
<adaedra> Just make an InstructionArray that has the array as instance variable, and implement all you want on it.
<adaedra> This way, if you have an array, you can just InstructionArray.new(array) to have your instance and methods ready.
<odigity> millerti, have you looked at the Array#fetch method?
<millerti> adaedra: Yeah, but that means basically overriding all methods. I did think of that. It wasn't until I started trying to optimize for speed that I ran into this trouble.
HammyJammy has quit [Read error: Connection reset by peer]
<millerti> Well, replacing [] everywhere with fetch would involve rewriting a ton of code that currently uses []
DoubleMalt has joined #ruby
<odigity> millerti, I don't think there's a magic way to get what you want without one of the strategies describe above
<millerti> Maybe I can abuse concat?
<adaedra> millerti: extend may be what you're looking for then.
devoldmx has joined #ruby
devoldmx has quit [Remote host closed the connection]
<millerti> Extend?
<adaedra> &ri Module#extend
<millerti> I'm wondering if I use InstructionArray.concat if I would get an InstructionArray.
<adaedra> Ah right, object.
<odigity> adaedra, extend wouldn't solve his problem. he wants to alter the behavior of [] to behave like fetch with an implicit default without having to override the dozens of methods that return a new Array
<adaedra> odigity: extend with a module that defines [].
JammyHammy has joined #ruby
<odigity> adaedra, possible, if it doesn't break anything
<millerti> Hmm... so I make InstructionArray and then extend it with Array? How do I make sure that MY [] takes priority?
lkba_ has quit [Ping timeout: 268 seconds]
<odigity> millerti, you can simply redefine [] on Array directly, but it will affect all ruby code in the process -- unless you use .extend, which only adds a method to an object, not it's class
skade has joined #ruby
<adaedra> module Ex; def [](*); :blocked; end; end; a = []; p a[0]; a.extend Ex; p a[0]
sl33k has joined #ruby
<adaedra> oops
<millerti> Ok, so somehow, in my constuctor, I need to first extend the new object with Array methods and follow that by overriding [] ?
<adaedra> >> module Ex; def [](*); :blocked; end; end; a = []; p a[0]; a.extend Ex; p a[0]
<ruboto> adaedra # => nil ...check link for more (https://eval.in/456334)
govg has quit [Ping timeout: 252 seconds]
<odigity> but all the array methods that return new arrays won't have had .extend called on them, so you'll still not get the magic you want
<adaedra> millerti: no, you put your [] method in a module, then extend the array objects that need the altered [] behavior with this module.
sudiptamondal has quit [Quit: Leaving.]
<odigity> adaedra, the extend will get lost the minute he uses any of dozens of methods that return a new array
sl33k has quit [Client Quit]
Cyther has joined #ruby
<adaedra> odigity: well, isn't it also the case with an array subclass?
<millerti> I'm going to experiment with concat.
<odigity> probably because the Array class code doesn't use self.class to create new objects :)
<odigity> adaedra, it is
<adaedra> but at least, the new behavior can be applied to an existing array, this way
<odigity> adaedra, nothing we've discussed meets *all* of millerti's preferences; I suspect nothing will
everbot has joined #ruby
<adaedra> but composition may be a better way, and I doubt it is needed to have /all/ of Array+Enumerable methods available.
<millerti> Having InstuctionArray *contain* an Array would at least WORK.
<millerti> Yeah, I'd add them until I had all I needed.
<odigity> adaedra, agreed, that may be the best compromise if this behavior is only needed in certain areas that only use a few array methods
<odigity> Quick reminder: I'm completely stuck because I can't figure out how to us OpenSSL::PKey::EC. I'd appreciate any help.
skade has quit [Client Quit]
<millerti> So If I pass an array to the contructor of the composite class, do I want to use dup or clone?
codecop has joined #ruby
alcipir has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
doddok has joined #ruby
firstdayonthejob has joined #ruby
zarubin has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
alcipir has joined #ruby
jgt has quit [Read error: Connection reset by peer]
jonnie has joined #ruby
govg has joined #ruby
<millerti> I forgot how to do each. When I get an each, I just want to make the array do an each. How do I do that? I'll google it, obviously.
<adaedra> you can just use Forwardable
<adaedra> &ri Forwardable
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has joined #ruby
beauby has quit [Ping timeout: 244 seconds]
alcipir has quit [Ping timeout: 256 seconds]
nowhereFast has quit [Ping timeout: 244 seconds]
houhoulis has joined #ruby
alcipir has joined #ruby
kith has quit [Quit: kith]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nowhereFast has joined #ruby
devoldmx has quit [Remote host closed the connection]
ht__ has quit [Remote host closed the connection]
millerti has joined #ruby
OrbitalKitten has joined #ruby
Meow-J has joined #ruby
workmad3 has joined #ruby
sgambino has joined #ruby
ht__ has joined #ruby
nowhereFast has quit [Ping timeout: 272 seconds]
yokel has quit [Ping timeout: 268 seconds]
yokel has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
diegoaguilar has joined #ruby
<Diabolik> Radar you around?
workmad3 has quit [Ping timeout: 252 seconds]
alcipir has quit [Ping timeout: 265 seconds]
kith has joined #ruby
govg has quit [Ping timeout: 272 seconds]
z4j5 has joined #ruby
atomical has joined #ruby
Yzguy has joined #ruby
RegulationD has joined #ruby
Puck7744 is now known as Puck6633
houhoulis has quit [Remote host closed the connection]
certainty has quit [Quit: WeeChat 1.0.1]
RegulationD has quit [Ping timeout: 255 seconds]
phutchins has joined #ruby
sankaber has joined #ruby
<shevy> morning
<adaedra> you just woke up?
cdg has quit [Remote host closed the connection]
nsuke has joined #ruby
zarubin has joined #ruby
<shevy> yeah
<shevy> but I was up until about 7 hours ago too
<millerti> So I'm implementing all of these Array methods on my custom array, but I'm having a problem with Inject always returning zero. I did "include Enumerable", and I have an each, but inject is always getting back zero. Any ideas?
zarubin has quit [Ping timeout: 264 seconds]
araujo has quit [Quit: Leaving]
freerobby has joined #ruby
alcipir has joined #ruby
andykingking has quit [Quit: Leaving.]
howdoicomputer has joined #ruby
AlphaAtom has joined #ruby
bonhoeffer has joined #ruby
ibouvousaime has joined #ruby
Xeago has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
howdoicomputer has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
pandaant has quit [Remote host closed the connection]
Yzguy has quit [Quit: Zzz...]
ivanskie has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
araujo has quit [Client Quit]
dfinninger has quit [Ping timeout: 250 seconds]
jamto11 has joined #ruby
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
Jardayn has joined #ruby
Xeago has quit [Remote host closed the connection]
<odigity> Is there an easy way to use sequel to update the value of a column for all rows that have a null?
<odigity> I guess a subquery would do it, actually.
Xeago has joined #ruby
<odigity> RefreshToken.where(id: RefreshToken.where(mycol: nil)).update(Time.now)
<odigity> Wait, that's redundant.
clx has joined #ruby
mostlybadfly has joined #ruby
<shevy> that token is really refreshed
<odigity> shevy, I'd add a refresh() method, but sequel already defines one :)
<odigity> (in case you're curious about the context, I need to revoke all previous refresh tokens when issuing a new one)
<odigity> (by setting revoked_at: Time.now)
RobertBirnie has joined #ruby
RobertBirnie has quit [Client Quit]
clx has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 246 seconds]
<odigity> Also, I just realized I'm not in #sequel.
ruurd has joined #ruby
sl33k has joined #ruby
symm- has joined #ruby
everbot has quit [Ping timeout: 246 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
zarubin has joined #ruby
nowhereFast has joined #ruby
sepp2k has joined #ruby
Feyn has quit [Quit: Leaving]
AlphaAtom has joined #ruby
doublemalt_ has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
clx has joined #ruby
zarubin has quit [Ping timeout: 252 seconds]
DoubleMalt has quit [Ping timeout: 272 seconds]
nowhereFast has quit [Ping timeout: 256 seconds]
beauby has quit [Ping timeout: 256 seconds]
aswen has joined #ruby
clx has quit [Ping timeout: 250 seconds]
symm- has quit [Quit: Leaving...]
nowhereFast has joined #ruby
<shevy> wheeeee ruby goes haiku \o/
symm- has joined #ruby
freerobby has quit [Quit: Leaving.]
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
Jameser has joined #ruby
nowhereFast has quit [Ping timeout: 264 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
akemrir has quit [Quit: WeeChat 1.3]
WizJin has quit [Remote host closed the connection]
<sl33k> jhass: hi mate (friend)…so i have zsh running. (not best of settings, but better than bland bash)
<sl33k> used the oh-my-zsh link.
<sl33k> jhass: i was wondering what would be the equivalent of ~/bash_profile. I usually setup my ssh git stuff in there
zarubin has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
crime has joined #ruby
<adaedra> ~/.zshrc
SCHAAP137 has quit [Quit: Leaving]
wprice has quit [Quit: wprice]
stardiviner has quit [Ping timeout: 265 seconds]
DoubleMalt has joined #ruby
codecop has quit [Remote host closed the connection]
bonhoeffer has quit [Quit: bonhoeffer]
<sl33k> adaedra: that seems to contain lot of settings already
zarubin has quit [Ping timeout: 264 seconds]
<adaedra> sl33k: good, you can add yours below. It was probably added by first-run assitant and/or oh-my-zsh.
<sl33k> adaedra: got clues on how to make prompt always show full directory path?
<sl33k> adaedra: it looks much better than bash :D
<adaedra> sl33k: change the PROMPT variable
<jhass> well, to nitpick the equivalent to .bash_profile is .zprofile, .zshrc is the equivalent to .bashrc
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Changing host]
SCHAAP137 has joined #ruby
mengu has quit []
Ropeney has joined #ruby
naztharune has joined #ruby
Ropeney has quit [Client Quit]
<sl33k> exit or quit doesnt quit zsh. would sure need some reading. default is good though
<adaedra> exit should quit it.
<sl33k> adaedra: on second launch it does.
bMalum has quit [Quit: bMalum]
phutchins has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
ht__ has quit [Read error: Connection reset by peer]
ht__ has joined #ruby
<sl33k> jhass: i’m guessing with the right settings both on zsh and vim, one can create a fairly usable IDE. looking at showing directories as tree structure.
ruurd has quit [Quit: ZZZzzz…]
agent_white has quit [Remote host closed the connection]
idefine has joined #ruby
clx has joined #ruby
QORRiE has joined #ruby
Xeago has quit [Remote host closed the connection]
tvw has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
OrbitalKitten has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has joined #ruby
pathrocle has joined #ruby
Xeago has joined #ruby
z4j5 has quit [Quit: WeeChat 1.2]
arup_r has joined #ruby
z4j5 has joined #ruby
jonee has joined #ruby
chopin has joined #ruby
tvw has quit []
Xeago has quit [Ping timeout: 240 seconds]
Wsewolod has quit [Quit: Connection closed for inactivity]
<Galas> sl33k: yes
<Galas> i was fairly suspicious of zsh but its actually quite nice
dfinninger has joined #ruby
workmad3 has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
skade has joined #ruby
Musashi007 has joined #ruby
Kerber0s has joined #ruby
Kerber0s has quit [Client Quit]
skade has quit [Client Quit]
<sl33k> Galas: boring bash look not helpful for me. I already like zsh
Kerber0s has joined #ruby
clx has quit [Ping timeout: 244 seconds]
<Galas> I've used bash for years
<Galas> but then I got a job where they used oh-my-zsh and I sort of drank the koolaid
chopin has quit [Remote host closed the connection]
<Galas> to show dirs as a tree structure you can do tree
<Galas> btw
pathrocle has quit [Remote host closed the connection]
chopin has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
pathrocle has joined #ruby
phutchins has joined #ruby
skade has joined #ruby
Thomas-0725 has joined #ruby
<sl33k> Galas: i’m mostly a java dev and havent done much scripting. one of the reasons why i’m trying ruby and ruby on rail koolaid
<sl33k> i already started doing more JS and angularjs
<sl33k> basically playing with idea of RAD. I’ll probably end up with Scala or Clojure. But i would like having a set of dynamic lang tools and choices for quick stuff
<Galas> I hear great things about Scala
<sl33k> finding the right archetype in java is so hard.
<Galas> especially from people going in from Java
mengu has joined #ruby
<Galas> its a natural progression, I think
<Galas> even more so than Clojure
<sl33k> Galas: yeah: there is Play 2 framework which runs on Scala and “steals” a damn lot from rails
<Galas> yeah I know about play
doddok has quit [Quit: Leaving]
skade has quit [Client Quit]
<Galas> most frameworks after rails tbh
<Galas> steal a damn lot from rails
<sl33k> django had scaffolding too. wonder why it didnt pick up
Cyther has quit [Read error: Connection reset by peer]
<sl33k> btw there is even a spring boot java project now that does scafoldin (i doubt i like scaffolding)…i’m wary of generate dcodes
<Galas> no idea
<Galas> ah
<Galas> you are telling me it does
<Galas> django picked up pretty much
<Galas> python/django is extremely popular iwhere I am
<Galas> even more than ruby
chopin has quit [Ping timeout: 256 seconds]
z4j5 has quit [Quit: WeeChat 1.2]
pathrocle has quit [Ping timeout: 252 seconds]
someguy has joined #ruby
<sl33k> Galas: nice. i just feel terrible not been good in any dynamic language and now doing the needful
clx has joined #ruby
karapetyan has quit [Ping timeout: 252 seconds]
z4j5 has joined #ruby
<Galas> I'd suspect that if you come from a static lang you'll pick it up easily
<Galas> the question is whether you'd like it
<Galas> hehehe
dravine has quit [Ping timeout: 272 seconds]
<Galas> I quite like the compiler to be honest
<sl33k> Galas: for me; its coming at same time i’m drinking the TDD koolaid. More like, as long as you have test coverage, there really is no issue
<Galas> true
<Galas> I only do dynamic languages to be honest
<Galas> so I am kinda talking out of my ass
clx has quit [Ping timeout: 255 seconds]
astrobun_ has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
SCHAAP137 has quit [Remote host closed the connection]
s2013 has joined #ruby
<someguy> how do you find the remaining size of a file given a file pointer?
<jhass> someguy: .size - .pos ?
<sl33k> Galas: do you do TDD?
<Galas> I am starting to
<Galas> I do mostly JS tho
karapetyan has joined #ruby
jgt has quit [Read error: Connection reset by peer]
<shevy> you poor man
<Galas> so I am kinda of looking at TDD/BDD in the front-end which is a bit different
<Galas> *woman
nowhereFast has joined #ruby
<shevy> there was a 50% chance and I was wrong!
<someguy> jhass: thanks
jgt has joined #ruby
dmolina has joined #ruby
dmolina has quit [Client Quit]
nowhereFast has quit [Ping timeout: 260 seconds]
bMalum has quit [Quit: bMalum]
`tim` has joined #ruby
bruno-_ has quit [Ping timeout: 246 seconds]
karapetyan has quit []
AlphaAtom has joined #ruby
karapetyan has joined #ruby
step1step2_ has joined #ruby
danieli has joined #ruby
nowhereFast has joined #ruby
mengu has quit [Remote host closed the connection]
howdoicomputer has joined #ruby
step1step2 has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
nowhereFast has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 250 seconds]
<Galas> don't feel bad
<Galas> it was a choice
<Galas> I like JS
Guest41758 has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Quit: Musashi007]
shinenelson has quit [Quit: Connection closed for inactivity]
SCHAAP137 has joined #ruby
dfinninger has quit [Remote host closed the connection]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
dravine has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
Cyther has joined #ruby
lkba has joined #ruby
pwnd_nsfw has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
nfk has joined #ruby
processoriented has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
stamina has joined #ruby
dfinninger has joined #ruby
AlphaAtom has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
Contigi has quit [Quit: Leaving]
aspiers has joined #ruby
pwnd_nsfw has joined #ruby
Yzguy has quit [Quit: Zzz...]
Soda has joined #ruby
yosiat has joined #ruby
eminencehc has joined #ruby
Guest41758 has quit [Quit: This computer has gone to sleep]
Guest41758 has joined #ruby
nowhereFast has joined #ruby
ereslibre has quit [Ping timeout: 260 seconds]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
jgt has quit [Ping timeout: 260 seconds]
eminencehc has quit [Ping timeout: 265 seconds]
sumark has quit [Remote host closed the connection]
sumark has joined #ruby
tkuchiki has quit [Remote host closed the connection]
someguy has quit [Quit: Page closed]
<crime> on a scale of 1 to 10 with 10 being great, if I were to start a ruby hash and override [] and []= to redis.get and redis.set, how bad would that be?
bigmac_ has quit [Ping timeout: 250 seconds]
bigmac__ has joined #ruby
shinenelson has joined #ruby
Marsupermammal has joined #ruby
symm- has joined #ruby
Wsewolod has joined #ruby
skade has joined #ruby
idefine has quit []
<Papierkorb> crime: -∞ - Why don't you just implement a class which feels like a Hash, but doesn't inherits Hash?
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crime> because it's going to be obscenely large and it doesn't necessarily have to be fast because I'm gonna connect it to redis remotely
<Papierkorb> crime: obscenely large?"
<crime> 100m+ keys
al2o3-cr has quit [Ping timeout: 252 seconds]
<Papierkorb> crime: So what? def [](key); redis.hget("foo", key); end
<crime> yeah
<crime> basically
<Papierkorb> How's that large?
<crime> the dataset
tk___ has quit [Quit: ばいばい]
<crime> the data is far too large for a ruby hash
<Papierkorb> aha
processoriented has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
<crime> sorry misunderstood you
<crime> english is my first language im just stupid
<crime> I can use regular ruby objects, or do I need to use like msgpack or json or something?
codecop has joined #ruby
houhoulis has joined #ruby
pdoherty has joined #ruby
ht__ has quit [Quit: Konversation terminated!]
Yzguy has joined #ruby
nanoz has quit [Quit: <3]
Marsupermammal has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Marsuper_ has joined #ruby
yeticry has quit [Ping timeout: 260 seconds]
beauby has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Marsuper_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Thomas-0725 has joined #ruby
al2o3-cr has joined #ruby
chris2 has quit [Ping timeout: 264 seconds]
kalz has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sl33k has quit [Quit: sl33k]
karapetyan has quit [Remote host closed the connection]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
RegulationD has joined #ruby
<step1step2_> what IDE are you guys using?
<al2o3-cr> i don't use one
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beauby has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
<Galas> I don't either
<Galas> I hear good things about rubymine?
<step1step2_> so you edit ruby files within your terminal?
<al2o3-cr> yep
dfinninger has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
<step1step2_> im currently on a windows mashine :C
jamto11 has quit [Remote host closed the connection]
<al2o3-cr> vim, emacs, nano whatever i fancy :p
Yzguy has quit [Quit: Zzz...]
<jhass> My main editor is still sublime text, wouldn't call that IDE
<Galas> yeah mine as well
<Galas> will do vim if required
<al2o3-cr> yep, sublime text is nice also atom too
zarubin has joined #ruby
howdoicomputer has joined #ruby
<Galas> atom is slow
<al2o3-cr> not that slow
<Galas> i'm happy with sublime anyway
<havenwood> Galas: It isn't for me. Maybe your computer is slow
bigmac__ has quit [Ping timeout: 244 seconds]
<Galas> unless it changed
<Galas> recently
naztharune has quit [Ping timeout: 240 seconds]
<Galas> and is now more performant
RegulationD has quit [Ping timeout: 272 seconds]
<havenwood> Galas: Free is a good price. It did fairly recently hit 1.0. You can see startup time with Timecop.
iamse7en has joined #ruby
<Galas> I'm just not that interested, tbh
<Galas> I'm happy with sublime and vim
kalz has joined #ruby
<al2o3-cr> step1step2_: notepad++ for a simple one for MS
zarubin has quit [Ping timeout: 252 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
howdoicomputer has quit [Ping timeout: 260 seconds]
slawrence00 has joined #ruby
<iamse7en> What's the most efficient way to test if two variables share the same sign (pos/neg)? rather than e.g. x > 0 && y > 0
bruno- has joined #ruby
dfinninger has joined #ruby
bruno- is now known as Guest19461
jamto11_ has joined #ruby
e1senhorn has joined #ruby
s2013 has joined #ruby
hiyosi has joined #ruby
Guest19461 has quit [Ping timeout: 256 seconds]
araujo has joined #ruby
bruno-_ has joined #ruby
<Papierkorb> iamse7en: I guess it doesn't get more efficient and understandable than that condition you wrote
dfinninger has quit [Remote host closed the connection]
<iamse7en> Papierkorb: okay! I can work with it, just takes a few more lines. thanks
beauby has joined #ruby
Contigi has joined #ruby
<shevy> iamse7en isn't that abs() ?
<step1step2_> alright, thanks guys
Yzguy has joined #ruby
<iamse7en> shevy: well, i want the inverse as well. if they're both negative.
<iamse7en> a true/false if two vars share same sign
chipotle has joined #ruby
<shevy> hmm
varunwachaspati has joined #ruby
<shevy> perhaps you can get ruby core to add .positive? and .negative? :)
keen______ has quit [Ping timeout: 244 seconds]
sdwrage has joined #ruby
workmad3 has joined #ruby
chris2 has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
aswen has quit [Ping timeout: 260 seconds]
swgillespie has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 244 seconds]
kjcwncsdr has joined #ruby
jonee has quit [Ping timeout: 250 seconds]
skade has quit [Read error: Connection reset by peer]
<kjcwncsdr> www.buzzfeed.co.il - free sex www.buzzfeed.co.il - free sex www.buzzfeed.co.il - free sex www.buzzfeed.co.il - free sex www.buzzfeed.co.il - free sex www.buzzfeed.co.il - free sex www.buzzfeed.co.il - free sex www.buzzfeed.co.il - free sex
<jhass> !ban kjcwncsdr !T 1w spam
kjcwncsdr was kicked from #ruby by ChanServ [Banned: spam]
Guest41758 has quit [Quit: This computer has gone to sleep]
tkuchiki has joined #ruby
<al2o3-cr> shevy: class Numeric; def pos?; self.to_s =~ /^(\d+).?(\d+)?$/ ? true : false end end # :P
relix has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
<jhass> al2o3-cr: self > 0
nowhereFast has left #ruby [#ruby]
FernandoBasso has quit [Quit: WeeChat 1.3]
<al2o3-cr> jhass: wasn't thinking to good :)
<jhass> yeah ...
<al2o3-cr> self >= 0 ?
<jhass> well, 0 is neither
<jhass> and both
<jhass> depending on your standpoint
yosiat has joined #ruby
<al2o3-cr> ah gotcha
tkuchiki has quit [Ping timeout: 246 seconds]
houhoulis has joined #ruby
<al2o3-cr> I always make things complicated
sdwrage has quit [Quit: This computer has gone to sleep]
iamse7en has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
last_staff has joined #ruby
swgillespie is now known as swgillespie[GT]
Yzguy has quit [Quit: Zzz...]
Yzguy has joined #ruby
freerobby1 has quit [Quit: Leaving.]
millerti has joined #ruby
swgillespie[GT] has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
willardg has joined #ruby
shlomo has joined #ruby
p1k has quit [Ping timeout: 255 seconds]
z4j5 has quit [Ping timeout: 244 seconds]
SleepySensei has joined #ruby
xcesariox has joined #ruby
xcesariox has quit [Remote host closed the connection]
Underdogg has joined #ruby
<Papierkorb> How do I define a method in a module so I can include the module or use the module as standalone, and both times have access to the method?
<adaedra> module_method ?
The_Phoenix has quit [Quit: Leaving.]
<adaedra> or function
<adaedra> &ri Module#module_function
<adaedra> yeah, this
<Papierkorb> adaedra: thanks!
z4j5 has joined #ruby
rehat has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
skweek has joined #ruby
blackmesa has joined #ruby
The_Phoenix has quit [Client Quit]
alcipir has quit [Ping timeout: 250 seconds]
<step1step2_> how do i autorun a ruby script on a server? does it work like node.js with a package.json file?
kobain has joined #ruby
<darix> step1step2_: write an init script
The_Phoenix has joined #ruby
p1k has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<step1step2_> and what os would you choose?
<darix> linux
Underdogg has quit [Quit: Leaving]
AlphaAtom has quit [Read error: Connection reset by peer]
Underdogg has joined #ruby
AlphaAtom has joined #ruby
bruno-_ has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
lubarch has quit [Quit: leaving]
bkxd has quit [Ping timeout: 240 seconds]
The_Phoenix has quit [Ping timeout: 268 seconds]
lianj has quit [Ping timeout: 268 seconds]
chipotle has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest60516
The_Phoenix has joined #ruby
lianj has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
howdoicomputer has joined #ruby
<Papierkorb> I'm doing a lookup in a nested hash using a string in the form of 'a.b.c' with a hash like { 'a' => { 'b' => { 'c' => 123 } } } - The query string would give 123. I'm doing this using this code: "a.b.c".split('.').each_with_object([ hash ]){|part, chain| chain << chain[-1][part]}.last
<Papierkorb> Is there a better alternative?
<Papierkorb> E.g. without the temporary array?
<shevy> hmm I have old code, using Next.new which obviously was a class I once wrote... but I can't find it anymore :(
workmad3 has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gambl0re has quit [Ping timeout: 260 seconds]
<jhass> Papierkorb: "a.b.c".split(".").inject(hash) {|hash, key| hash[key] }
relix has joined #ruby
howdoicomputer has quit [Ping timeout: 260 seconds]
<Coraline> Clever jhass
darkf has quit [Quit: Leaving]
ochkoffein has joined #ruby
<jhass> interestingly the question comes up fairly regularly
keen______ has joined #ruby
<Papierkorb> jhass: hah, that's much better, thanks
ruurd has joined #ruby
willardg has joined #ruby
<step1step2_> darix: so linux, ubuntu maybe?
RegulationD has joined #ruby
kuntz has joined #ruby
Xeago has joined #ruby
gambl0re has joined #ruby
aspiers has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
shlomo has quit [Quit: WeeChat 1.3]
swgillespie has joined #ruby
<shevy> ubuntu is probably the easiest one to use for non-techies and non-trekkies
freerobby has joined #ruby
ndrei has joined #ruby
steffkes has quit [Ping timeout: 244 seconds]
willardg has quit [Ping timeout: 255 seconds]
rehat has joined #ruby
willardg has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
ndrei has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 240 seconds]
<step1step2_> alright, good enough for me
ndrei has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
<rehat> this might be an odd question but is there a way to run ruby script A from the commandline with an arg to another ruby script B that has a bunch of constants so that ruby script A can use? Like programmatically require a module
<adaedra> arguments are in ARGV
<jhass> rehat: require is a method call, you could dynamically derive its argument
<jhass> from ARGV too
<jhass> though tbh it sounds somewhat ugly
<rehat> well I want to pass in a config file as a requirement so that the user is aware they need to update it before calling my script but yeah maybe I am doing it wrong
<jhass> use json, yaml or toml for config then
<jhass> a common trick is to run it through ERB first
<rehat> oh lol, ok
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
<ytti> i asked this few days ago, and didn't see reply
ruurd has quit [Quit: ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
<ytti> can someone recommend me python ORM, if I like sequel
<ytti> I tried peewee, but seems like a chore
<ytti> Interface.select().join(Device).where(Device.name == router)
<shevy> don't abandon ruby man!
<jhass> maybe ask #python for their favorite instead?
<ytti> employer is gay for python
<ytti> well US branch of them
<shevy> take over company!!!
<jhass> heh, language
<shevy> english language
<shevy> :)
<ytti> gay still means happy
<jhass> don't start shittalk like that please
<al2o3-cr> Does String#unpack don't deal with encoding?
bMalum has joined #ruby
<jhass> I hope not, it wouldn't make sense for what it does
<jhass> well, except for U or whatever it was I guess
ruurd has joined #ruby
<al2o3-cr> ok thanks jhass
hanmac has joined #ruby
Cork has quit [Ping timeout: 240 seconds]
swgillespie is now known as swgillespie[GT]
phutchins has quit [Ping timeout: 255 seconds]
patdohere has joined #ruby
<crime> ytti, SQLAlchemy seems like the next best thing
p1k has quit [Ping timeout: 240 seconds]
patdoher_ has joined #ruby
kuntz has quit [Ping timeout: 246 seconds]
patdoher_ has quit [Client Quit]
<ytti> yeah it's the 'premier' ORM for python
ruurd has quit [Quit: ZZZzzz…]
<ytti> but it seems it's perhaps bit too old, in that it has some idioms which were born before modern ORMs, and getting rid of those probably won't happen
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti> crime, it seems even heavier for ismple stuff
Asher has joined #ruby
<crime> well it aint sequel
patdohere has quit [Ping timeout: 240 seconds]
<crime> there's also SQLObject, idk much about it
alcipir has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
centrx has joined #ruby
Yzguy has joined #ruby
blackmes1 has joined #ruby
nettoweb has joined #ruby
zotherst1 has quit [Quit: WeeChat 1.2]
alcipir has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patdohere has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 260 seconds]
aethersix has joined #ruby
aethersix has left #ruby [#ruby]
fedexo has joined #ruby
yqt has joined #ruby
aswen has joined #ruby
devoldmx has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.3]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<al2o3-cr> [-1].pack('Q') what does ruby take this number as Inf?
duderonomy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
willardg has joined #ruby
<centrx> >> [-1].pack('Q')
Bellthoven has joined #ruby
<ruboto> centrx # => "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" (https://eval.in/456372)
Bellthoven has quit [Client Quit]
QualityAddict has quit [Remote host closed the connection]
QualityAddict has joined #ruby
unreal_ has joined #ruby
duderonomy has joined #ruby
unreal has quit [Disconnected by services]
<al2o3-cr> is it all about signed/unsigned
unreal_ is now known as unreal
Bellthoven has joined #ruby
baweaver has joined #ruby
<centrx> I have no idea what you're asking
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
<al2o3-cr> ah, never mind i think i understand, np centrx
Bellthoven has quit [Client Quit]
benlovell has joined #ruby
jonnie has quit [Ping timeout: 240 seconds]
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
workmad3 has joined #ruby
fedexo has quit [Ping timeout: 240 seconds]
<shevy> centrx is so good that he is able to answer questions without even understanding them!
benlovell has quit [Ping timeout: 265 seconds]
<centrx> rubskillz
clx has joined #ruby
fedexo has joined #ruby
workmad3 has quit [Ping timeout: 252 seconds]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aswen has quit [Ping timeout: 260 seconds]
Cork has joined #ruby
jonnie has joined #ruby
Musashi007 has joined #ruby
aswen has joined #ruby
processoriented has joined #ruby
wharr_ has joined #ruby
Bellthoven has joined #ruby
skcin7 has joined #ruby
aswen has quit [Client Quit]
ndrei has quit [Remote host closed the connection]
AlexRussia has joined #ruby
ndrei has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
wharr has quit [Ping timeout: 240 seconds]
stamina has quit [Ping timeout: 256 seconds]
sdwrage has joined #ruby
ferr has joined #ruby
lxsameer has joined #ruby
blue_deref has joined #ruby
cachemoi has joined #ruby
maxz has joined #ruby
chipotle has quit [Quit: cheerio]
zenguy_pc has quit [Read error: No route to host]
<step1step2_> can i autostart a ruby script using bundler? like with a gemfile?
<step1step2_> i can't use linux as os
ahegyi has joined #ruby
<cachemoi> hey everyone I'm having trouble when i run jekyll build. here are the details: https://gist.github.com/cachemoi/b272522b5955228b698a
ruurd has quit [Quit: ZZZzzz…]
vigintas has quit [Ping timeout: 240 seconds]
jonnie has quit [Ping timeout: 272 seconds]
vigintas has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
jonnie has joined #ruby
ruurd has joined #ruby
rehat has quit [Remote host closed the connection]
<jhass> step1step2_: what does autostart mean?
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cachemoi has quit [Remote host closed the connection]
<step1step2_> i mean once i start the ruby server, the script should also start. i dont wanna ssh into the server and start it manually
<jhass> step1step2_: look into the foreman gem. Or a supervisor like god, monit, eye, bluepill
cachemoi has joined #ruby
allcentury has joined #ruby
AccordLTN has quit [Ping timeout: 246 seconds]
<step1step2_> :O
Soda has quit [Remote host closed the connection]
Modar has joined #ruby
amclain has joined #ruby
Modar has left #ruby ["bbs"]
mikecmpbll has quit [Quit: ciao.]
alcipir has joined #ruby
<step1step2_> i'm overwhelmed
howdoicomputer has joined #ruby
hmsimha has joined #ruby
yardenbar has quit [Ping timeout: 246 seconds]
ndrei has quit [Ping timeout: 244 seconds]
haylon has joined #ruby
amclain has quit [Client Quit]
ndrei has joined #ruby
jonnie has quit [Ping timeout: 264 seconds]
<step1step2_> i just want to execute a ruby script on a ruby server -.-
zenguy_pc has joined #ruby
<jhass> ruby foo.rb
alcipir has quit [Ping timeout: 250 seconds]
Yzguy has quit [Quit: Zzz...]
<step1step2_> on the server start ofc
<step1step2_> i want to create an irc bot based on https://github.com/cinchrb/cinch
<jhass> "the server"?
howdoicomputer has quit [Ping timeout: 246 seconds]
<step1step2_> it's a ruby 2.0 server
<jhass> there's no such thing
<jhass> why don't you just say you use OpenShift?
<step1step2_> i didn't know this is important
<step1step2_> ⋋╏ ❛ ◡ ❛ ╏⋌
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> just launch a background task in your post_start_ruby script
<jhass> use a supervisor as mentioned above if you want it to restart on crashes
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
armyriad has quit [Quit: Leaving]
<step1step2_> are you talking about http://godrb.com/ ?
<jhass> that's one example of a supervisor
hectortrope has joined #ruby
beauby has quit [Ping timeout: 240 seconds]
hectortrope has quit [Client Quit]
armyriad has joined #ruby
Igorshp has joined #ruby
Yzguy has joined #ruby
processoriented has quit [Remote host closed the connection]
NeverDie has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
al2o3-cr has joined #ruby
Kerber0s has quit [Read error: Connection timed out]
ruurd has quit [Quit: ZZZzzz…]
last_staff has quit [Quit: last_staff]
Kerber0s has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
chipotle has joined #ruby
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
ruurd has joined #ruby
Kerber0s has quit [Max SendQ exceeded]
erbesharat has quit [Remote host closed the connection]
skade has joined #ruby
RegulationD has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
sl33k has joined #ruby
Kerber0s has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Trynemjoel has quit [Ping timeout: 264 seconds]
fedexo has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 244 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
ruby_student has joined #ruby
pathrocle has joined #ruby
<ruby_student> Hi Guys, I have a really simple question regarding finding Powers of 2 : http://rubyfiddle.com/riddles/cd40e
<ruby_student> In the above code, should it return false? Since Input 8 returns 4?
bMalum has quit [Quit: bMalum]
solenoids has quit [Ping timeout: 250 seconds]
<Xeago> ruby_student: the code returns nil (puts returns nil). I think you're missing the essence of line2/3
ramfjord has quit [Ping timeout: 265 seconds]
<Xeago> num is reassigned num/2 for as long as the modulus of num and 2 is 0
codecop has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<Xeago> so with an input of 8, num will have values 8, 4, 2, 1 before getting to line 5
<Xeago> >> (1==1).to_s
<ruboto> Xeago # => "true" (https://eval.in/456383)
<ruby_student> holy shit
<Xeago> no need for ? "true" : "false" :)
phillips1012 has joined #ruby
<ruby_student> this is complete new revelation to me
mesamoo has joined #ruby
<ruby_student> I thought it was just a static one-time condition
karapetyan has joined #ruby
<ruby_student> Xeago, this is because of the While Loop, correct? This is why the code returns 8,4,2,1
<Xeago> ruby_student: have a look at http://rubyfiddle.com/riddles/d51c6/2, I've added a print statement
<step1step2_> hm.. where to playce the simple.god file?
<step1step2_> place
<Xeago> ruby_student: the while loop repeatedly reassigns, yes
Trynemjoel has joined #ruby
yosiat has joined #ruby
<Xeago> (technically, you're code does not return 8,4,2,1)
vigintas has quit [Remote host closed the connection]
<Xeago> ruby_student: try http://rubyfiddle.com/riddles/d51c6/3
<ruby_student> mother of god
sdwrage has quit [Quit: Leaving]
sharkman has quit [Read error: No route to host]
ajb- has quit [Quit: Bye.]
<Xeago> ruby_student: here is an idiomatic example: http://rubyfiddle.com/riddles/d51c6/5
<ruby_student> I see now Xeago, the Loop stops when it reaches 1 % 2, because 1% 2 does not equal to 0, which is an invalid condition for the loop, causing it to stop
<Xeago> instead of calculating moduli and comparing it to 0, just check whether it is even or not :)
Musashi007 has quit [Quit: Musashi007]
<Xeago> ruby_student: correct!
<ruby_student> yessss, i have learned something new today
<ruby_student> thanks Xeago
<Xeago> ruby_student: look at http://rubyfiddle.com/riddles/d51c6/5 still
Trynemjoel has quit [Ping timeout: 264 seconds]
<Xeago> it's a more idiomatic way of writing what you're doing
ajb- has joined #ruby
<ruby_student> Yes I see it
<Xeago> oh, but that's buggy
<Xeago> or not
ajb- has quit [Changing host]
ajb- has joined #ruby
cmoneylulz has joined #ruby
<ruby_student> This was one of the problems I had to solve for a coding bootcamp I'm applying for
<ruby_student> Basic stuff, but I still find it interesting
vigintas has joined #ruby
<Xeago> Glad you're enjoying ruby :)
stamina has joined #ruby
vigintas has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
arup_r has quit [Quit: Leaving]
ElFerna has joined #ruby
fantazo has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
bMalum has joined #ruby
bMalum has quit [Client Quit]
phutchins has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
baweaver has quit [Remote host closed the connection]
armyriad2 has joined #ruby
armyriad has quit [Disconnected by services]
armyriad2 is now known as armyriad
saddad has joined #ruby
<step1step2_> jhass: what am i doing wrong? http://i.imgur.com/lrxWCG6.gifv
<step1step2_> ⋋╏ ❛ ◡ ❛ ╏⋌
moeabdol has quit [Ping timeout: 250 seconds]
bigmac_ has joined #ruby
<jhass> step1step2_: how about using a video to share an error message?
tubuliferous_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
phutchins has quit [Ping timeout: 252 seconds]
<BraddPitt> ahahaha
<step1step2_> so god file have to be at /var/run/god?
<bigmac_> im looking at pack("p*") and unpack("p*")
<jhass> I saw something about a pid directory that doesn't exist, which you should create, for the the quarter second it was displayed
<canton7> step1step2_, the error message is visible for such a short time that it's impossible to say
<canton7> step1step2_, ... and then there's a 15 second wait to see it again
<bigmac_> documentation says "pointer to a structure (fixed-length string)
Asher has quit [Quit: Leaving.]
Trynemjoel has joined #ruby
<jhass> step1step2_: no, but it shouldn't be in public/ either
<step1step2_> http://kopy.io/iAThr
armyriad has quit [Max SendQ exceeded]
SenpaiSilver has joined #ruby
armyriad has joined #ruby
<jhass> mkdir -p /var/lib/openshift/562bccfe7628e1e526000140/.god/pids
rdema_ has quit [Read error: Connection reset by peer]
diegoaguilar has joined #ruby
rdema has joined #ruby
<step1step2_> Permission denied ⋋╏ ❛ ◡ ❛ ╏⋌
cmoneylulz has quit []
Jackneill has quit [Ping timeout: 264 seconds]
shinenelson has quit [Quit: Connection closed for inactivity]
<step1step2_> sudo is not available either. rip :D
cachemoi has quit [Remote host closed the connection]
<jhass> well, there's probably a way to configure another directory, check the docs
JDiPierro has joined #ruby
<jhass> pick one you can write to
<bigmac_> can some one try and explain pack("p*") . . .
<bigmac_> something is stored in memory ?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cachemoi has joined #ruby
ngscheur1 has joined #ruby
JDiPierro has quit [Client Quit]
ahegyi has quit [Ping timeout: 240 seconds]
vigintas has joined #ruby
maxz has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> anyone knows why we don't have a to camelcase variant in class String?
alcipir has joined #ruby
<crime> how does it know where the word ends?
armyriad has quit [Ping timeout: 265 seconds]
<step1step2_> lol god has email support cO
armyriad has joined #ruby
<shevy> crime length of the whole string
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponio has quit [Quit: Leaving...]
<crime> ?
<crime> i dont understand, how could .to_camelCase determine where each word ends iftheyarentspacedatall
<step1step2_> i'm blind confirmed
cmoneylulz has joined #ruby
<ytti> crime, ships with dictionary?
<ytti> (good luck doing that for inflecetion heavy langauges)
al2o3-cr has joined #ruby
<shevy> crime yeah this is really trivial, in this case the common delimiter _ was not found so no modification is made
alcipir has quit [Ping timeout: 260 seconds]
<crime> oh well snake_case -> camelCase would be easy
<step1step2_> is there some kind of config file of god?
<crime> step1step2_: only if you're in the root directory
<step1step2_> If you'd rather have the PID file stored in a different location, you can set it at the top of your config:
<step1step2_> God.pid_file_directory = '/home/tom/pids'
<step1step2_> where to save this?
<crime> i thought we were making a joke
<crime> i misunderstood you
Channel6 has joined #ruby
<step1step2_> hm, i just need the name of the file
hectortrope has joined #ruby
workmad3 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Thomas-0725 has joined #ruby
kadoppe has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
Igorshp has quit [Remote host closed the connection]
baweaver has joined #ruby
kadoppe has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
aryaching_ has joined #ruby
<bigmac_> ["abcdefghijklmnop"].pack("p*")=> "\xC8O)\x01\x00\x00\x00\x00"
<bigmac_> the original string is stored in memory?
<bigmac_> and the output string above is just a reference i guess?
aryaching has quit [Ping timeout: 250 seconds]
<bigmac_> ("\xC8O)\x01\x00\x00\x00\x00").unpack("p*")=>"abcdefghijklmnop"
<step1step2_> is this the config file? http://i.imgur.com/5GmM8ZZ.gifv
benlovell has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
benlovell has joined #ruby
cachemoi has quit [Quit: Leaving]
<shevy> if this is a config file then the project must be deleted
<crime> so rubocop is screaming at me because I'm using a global to hold my redis object that I need to use across several classes, what's the alternative to this?
<crime> step1step2_: sure looks like it
aryaching_ has quit [Ping timeout: 240 seconds]
<shevy> crime depends. A CONSTANT could be used, or even better, if you namespace already then store in an @ivar on the module-level
<crime> a constant, thats what I think I need
mesamoo has quit [Quit: Konversation terminated!]
RegulationD has joined #ruby
<shevy> python 3.6, isn't it pretty? f'result = {intvalue:#06x} in hex'
<crime> shevy using a constant worked like a charm
<crime> thx
benlovell has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
<al2o3-cr> copying ruby damn!
ramfjord has joined #ruby
<shevy> al2o3-cr haha
<shevy> the programming languages steal features from other programming languages
<al2o3-cr> :P
yfeldblum has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
<step1step2_> did i do something wrong? http://i.imgur.com/T73cSr2.png
<shevy> what are you doing
<weaksauce> step1step2_ read the quickstart on the god page
<weaksauce> in short yes.
ruurd has quit [Quit: ZZZzzz…]
benlovell has quit [Ping timeout: 240 seconds]
cmoneylulz has quit [Remote host closed the connection]
benlovell has joined #ruby
Channel6 has quit [Quit: Leaving]
dikaio has joined #ruby
<clx> would be much appreciated
<step1step2_> the quickstart teaches me to use god -c simple.god -D
<step1step2_> http://kopy.io/UhYAv
ruurd has joined #ruby
<clx> that code is a monkey patch to be clear
<clx> I know self is probably not needed
<clx> and I will probably extract that
<step1step2_> (๑◕︵◕๑)
<clx> how come unicode in a terminal irc client works better than in a chrome tab?
benlovell has quit [Ping timeout: 256 seconds]
blackmesa has joined #ruby
benlovell has joined #ruby
skweek has joined #ruby
alcipir has joined #ruby
rehat has joined #ruby
LiquidIn1ect has quit [Ping timeout: 244 seconds]
<step1step2_> ໒( •́ ∧ •̀ )७
willharrison has joined #ruby
<weaksauce> step1step2_ what's in your simple.god file? please gist it instead of pictures
mostlybadfly has quit [Quit: Connection closed for inactivity]
benlovell has quit [Ping timeout: 240 seconds]
<step1step2_> updated
howdoicomputer has joined #ruby
benlovell has joined #ruby
<step1step2_> ruby jodusbot.rb manually works fine
<weaksauce> god --version
<al2o3-cr> they'll be opening up classes next
<al2o3-cr> and calling them refinements
varunwachaspati has quit [Quit: Connection closed for inactivity]
* al2o3-cr sssssssssssss..........
LiquidInsect has joined #ruby
<step1step2_> weaksauce: your right, i messed it up https://gist.github.com/step1step2/0f1c0314959e47b13efc
<step1step2_> it worked before i edited the god file
Rickmasta has joined #ruby
eminencehc has joined #ruby
howdoicomputer has quit [Ping timeout: 250 seconds]
<weaksauce> yep. you shouldn't ever need to modify the libraries' code
diegoaguilar has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 240 seconds]
allcentury has joined #ruby
<step1step2_> alright, i removed my changes, now it works again
<step1step2_> Version 0.13.7
eminencehc has quit [Remote host closed the connection]
benlovell has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<step1step2_> hm.. so using God.pid_file_directory was wrong
<step1step2_> but there is nothing else in the docs
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gambl0re has quit [Ping timeout: 268 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
benlovell has quit [Ping timeout: 250 seconds]
ndrei has quit [Quit: Lost terminal]
benlovell has joined #ruby
fantazo has quit [Ping timeout: 256 seconds]
phillips1012 has quit [Ping timeout: 255 seconds]
yosiat has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> it's fine to use but, as it said on the page further down, you have to put it in your *config* file
<step1step2_> what config file? the god file?
yosiat has quit [Client Quit]
ndrei has joined #ruby
ndrei has quit [Client Quit]
mengu has joined #ruby
mengu has joined #ruby
ndrei has joined #ruby
<step1step2_> i asked 3 hours ago how to start a ruby script. then someone told me to use god which is only made be run into another problem. is it really that hard to tell me how i start my ruby script? i mean in node.js it takes 10 seconds.
<step1step2_> or it's ruby itself, bad language
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
<crime> you never asked clearly, jhass specifically told you about foreman and some other gems
<ytti> exit if fork!11
<crime> you can run any ruby script with `ruby scriptname.rb`
<crime> and if you want something to be scheduled, just use cron
QORRiE has quit [Ping timeout: 260 seconds]
<ytti> i see that industry is shifting from forking long running programs to running them in foreground
<ytti> and logging to stdout
<ytti> and having generin runner take care of rest
<ytti> i kind like this direction
Musashi007 has joined #ruby
<step1step2_> i have isntalled god now i dont want to read another documentaiton
<step1step2_> documentation
sepp2k1 has joined #ruby
gambl0re has joined #ruby
<step1step2_> god quick start wants me to create a god file that is completly useless because i cannot run it
<step1step2_> very nice package
sepp2k has quit [Ping timeout: 260 seconds]
<Musashi007> Not sure if this is the best place to ask but can someone reccomend an entity from which to purchase a root sign certificate
<jhass> it's not, but do you mean a sub-CA or...?
QORRiE has joined #ruby
<Musashi007> looking that up
rbennacer has joined #ruby
<Musashi007> No, i’m trying to get my site ssl-enabled and the next step is to purchase a signed certificate, I believe
tubuliferous_ has quit [Ping timeout: 250 seconds]
phillips1012 has joined #ruby
<jhass> alright, so just a normal domain certificate
baweaver has quit [Remote host closed the connection]
workmad3 has joined #ruby
<weaksauce> step1step2_ you are asking how to make a daemon run correctly on a linux server. it's the same thing for pretty much every other server type process out there.
<jhass> there are tons of sellers for that. Wosign and StartSSL hand out basic ones for free. letsencrypt.org will do so in a couple of weeks, or you can try to get into the beta program now. http://www.garrisonhost.com/ssl-certificates/alphassl.html has fairly cheap offers
<jhass> Musashi007: ^
<weaksauce> jhass gave you some options
<Musashi007> wow thank you
Asher has joined #ruby
utopiaaa has joined #ruby
<weaksauce> step1step2_ did you try that again this time putting the pid config inside the .god config file?
<Musashi007> I’m going to startssl.com and it tells me their cert is untrusted.. lol
<jhass> Musashi007: huh, browser/OS?
<Musashi007> osx capitan safari
kirun has quit [Quit: Client exiting]
<crime> well there's two problems
<jhass> interesting
<Musashi007> it.. doesn’t do it in firefox.
<Musashi007> what the shit
Jameser has quit [Remote host closed the connection]
<jhass> well, it's not the most trustworthy CA, but I thought generally accepted so far
QORRiE has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Ping timeout: 260 seconds]
DefV has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
jonee has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
Encapsulation has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 252 seconds]
diegoaguilar has joined #ruby
QORRiE has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
utopiaaa has quit [Quit: Page closed]
_aeris has joined #ruby
diesel has joined #ruby
ElFerna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_aeris_ has quit [Ping timeout: 256 seconds]
_aeris is now known as _aeris_
ElFerna has joined #ruby
<Musashi007> @jhass any idea how to get into the letsencrypt beta program? I don’t see it on their site anywhere
phillips1012 has quit [Ping timeout: 246 seconds]
eminencehc has joined #ruby
SCHAAP137 has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
phillips1012 has joined #ruby
psy_ has quit [Remote host closed the connection]
<shevy> jhass working on any interesting stuff lately?
<Musashi007> sorry I should have googled that.. stupidly figured checking their website would be enough. Thank you
<jhass> shevy: last thing I hacked was https://github.com/jhass/crpaste
Underdogg has quit [Read error: Connection reset by peer]
badhatter has quit [Read error: Connection reset by peer]
badhatter has joined #ruby
yosiat has joined #ruby
everbot has joined #ruby
towski_ has joined #ruby
<al2o3-cr> jhass: do you do more crystal || ruby ?
<jhass> I don't count
nettoweb has joined #ruby
<al2o3-cr> fair enough :)
li0nK1ng has joined #ruby
haylon_ has joined #ruby
mloy has left #ruby ["Leaving"]
towski_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
devoldmx has quit [Remote host closed the connection]
devoldmx has joined #ruby
haylon has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
banister has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
htmldrum has joined #ruby
willardg has joined #ruby
<step1step2_> you mean like that?
<weaksauce> kinda
<weaksauce> that config file is all ruby.
SleepySensei has joined #ruby
<weaksauce> you need to put the line at the top of the file most likely for it to have any effect on the stuff below it
QORRiE has quit [Quit: Leaving]
mary5030 has joined #ruby
unreal_ has joined #ruby
riotjones has joined #ruby
<step1step2_> hm, alright. how to ensure the file path is valid?
eminencehc has quit [Remote host closed the connection]
skweek has quit [Quit: Leaving]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 256 seconds]
<shevy> step1step2_ perhaps there is a query method to access it?
<weaksauce> that's between you and your filesystem I mean you could do some ruby to check and create the folder but that's beyond the scope of the config file imo
riotjon__ has quit [Ping timeout: 252 seconds]
unreal has quit [Ping timeout: 240 seconds]
<step1step2_> does this help? http://kopy.io/fAMyD
mary5030 has quit [Remote host closed the connection]
Jonson has joined #ruby
mary5030 has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
<Jonson> Anyone there?
<weaksauce> step1step2_ `mkdir pid`
<weaksauce> God.pid_file_directory = './pid'
<Jonson> How can I convert Iconv.conv('ASCII//TRANSLIT//IGNORE', 'UTF-8', str) using String#encode instead?
<weaksauce> might work if it doesn't need an absolute path
diegoaguilar has quit [Remote host closed the connection]
Jonson has quit [Client Quit]
ngscheur1 has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Jonson has joined #ruby
ElFerna has quit [Quit: Textual IRC Client: www.textualapp.com]
<step1step2_> weaksauce, is this good or bad? http://i.imgur.com/Mq5kUlq.png
Xeago has quit [Remote host closed the connection]
li0nK1ng has quit []
mary5030 has quit [Ping timeout: 246 seconds]
<weaksauce> good step1step2_
<step1step2_> http://kopy.io/V1Sml
Galas has quit [Quit: Leaving...]
ngscheur1 has joined #ruby
<step1step2_> we make progress ⋋╏ ❛ ◡ ❛ ╏⋌
alcipir has quit [Ping timeout: 260 seconds]
alcipir has joined #ruby
s2013 has joined #ruby
Jonson has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alcipir has quit [Read error: Connection reset by peer]
alcipir_ has joined #ruby
<step1step2_> when i restart the server, nothing happens
clx has quit [Ping timeout: 246 seconds]
kies^ has joined #ruby
zipace has quit [Ping timeout: 265 seconds]
lxsameer has quit [Quit: Leaving]
Xiti has quit [Ping timeout: 272 seconds]
htmldrum has quit [Ping timeout: 256 seconds]
alcipir_ has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
s00pcan has quit [Ping timeout: 272 seconds]
s00pcan has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
sl33k has quit [Quit: sl33k]
shinnya has quit [Ping timeout: 260 seconds]
mloy has joined #ruby
RegulationD has joined #ruby
s2013 has joined #ruby
weemsledeux has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
rbennacer has quit [Remote host closed the connection]
Xiti has joined #ruby
s2013 has quit [Client Quit]
RegulationD has quit [Ping timeout: 244 seconds]
arooni has joined #ruby
mloy has quit [Quit: Leaving]
crazydiamond has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
firstdayonthejob has quit [Ping timeout: 256 seconds]
saddad has quit [Ping timeout: 244 seconds]
<karapetyan> it's not good idea remove some elements from array inside each block ?
<karapetyan> or map block
<jhass> modifying the collection you iterate over is not a good idea in general, yeah
<jhass> even if Ruby allows it for some, it leads to hard to understand code
<adaedra> You may be wanting Array#select / Array#reject
<karapetyan> jhass: ok :)
purplexed^ has joined #ruby
eminencehc has joined #ruby
<karapetyan> jhass: also thank you so much for codewars recommendations
eminencehc has quit [Remote host closed the connection]
bb010g has joined #ruby
<purplexed^> Question about unit tests and project structure: I see that it's normal to make a folder 'test' alongside 'lib' in the project structure. But I don't seem to find any convention for file-naming, and folder structure. Anyone know of a common structure/convention.
gregoriokusowski has quit [Quit: gregoriokusowski]
howdoicomputer has joined #ruby
Coldblackice has joined #ruby
<banister> purplexed^ spec/
<banister> purplexed^ foo_spec.rb
<banister> if you're using rspec
<banister> otherwise i think it's test/ and foo_test.rb
<jhass> class/module Foo; end; lib/foo.rb test/foo_test.rb, spec/foo_spec.rb
bollullera has joined #ruby
<al2o3-cr> is this heirachy?
<jhass> class/module FooBar; end; lib/foo_bar.rb test/foo_bar_test.rb, spec/foo_bar_spec.rb
<jhass> class/module Foo::Bar; end; lib/foo/bar.rb test/foo/bar_test.rb, spec/foo/bar_spec.rb
rbennacer has joined #ruby
vikaton has joined #ruby
<al2o3-cr> banister: LOL
<purplexed^> okay, so repeat the hierarchy, postfixing with _test
<jhass> oh, someone doesn't know wat
<purplexed^> that's a fun talk
eminencehc has joined #ruby
workmad3 has joined #ruby
WajidKagzi has joined #ruby
pandaant has joined #ruby
<al2o3-cr> jhass: LOL phaha
howdoicomputer has quit [Ping timeout: 256 seconds]
arooni has quit [Ping timeout: 240 seconds]
WajidKagzi has quit [Client Quit]
<banister> al2o3-cr you seem to be having a right ol' chuckle!
Fredrich_ has joined #ruby
<al2o3-cr> banister: looking good http://imgur.com/gallery/eTvo9
AlphaAtom has joined #ruby
rbennacer has quit [Remote host closed the connection]
VeryBewitching has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Or1on has joined #ruby
johnhamelink has quit [Ping timeout: 246 seconds]
Klumben has quit [Ping timeout: 246 seconds]
Fredrich010 has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 256 seconds]
eminencehc has quit [Remote host closed the connection]
minimalism has joined #ruby
alcipir has joined #ruby
tubuliferous_ has joined #ruby
mloy has joined #ruby
tkuchiki has joined #ruby
troulouliou_dev has joined #ruby
freerobby has joined #ruby
Asher has quit [Quit: Leaving.]
ramfjord has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
<al2o3-cr> phhaha
<al2o3-cr> about as funny as my little toe
<banister> al2o3-cr you're still chuckling away
<al2o3-cr> makes sense
<purplexed^> <- just discovered attr_writer, attr_reader .. life just became easier :D
<purplexed^> fun to be a noob again
<al2o3-cr> purplexed^: macros for setter/getter resp.
<purplexed^> it's hard writing ruby for a C# developer :)
<adaedra> purplexed^: ppst, attr_accessor
<purplexed^> completely different mindset
<al2o3-cr> yeah for both ^
Ox0dea has joined #ruby
<purplexed^> attr_accessor, shall learn that too now
<adaedra> isn't it something like `type myattr { get; set; }` in C# ?
<purplexed^> yeah, kinda like auto props
LoganG_ has joined #ruby
LoganG has quit [Read error: Connection reset by peer]
Voker57 has quit [Read error: Connection reset by peer]
saddad has joined #ruby
LoganG_ is now known as LoganG
<purplexed^> but I forgot how long it takes to learn a new language
<adaedra> learn != master
<purplexed^> i meant master yeah
eminencehc has joined #ruby
Guest41758 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Asher has joined #ruby
karapetyan has quit [Remote host closed the connection]
<weaksauce> purplexed^ eloquent ruby is excellent if you know the basics of programming and ruby.
<purplexed^> what confuses me in ruby is the many ways you can do things. But watching Idiomatic Ruby on pluralsight, has really helped me
mary5030 has joined #ruby
<Ox0dea> Was it ever even common practice to skin cats?
eminencehc has quit [Remote host closed the connection]
<step1step2_> can someone help me with god? my ruby script is still getting ignored even tho god is running
Fredrich_ has quit [Ping timeout: 256 seconds]
<weaksauce> #linux might be a better place for that
karapetyan has joined #ruby
zarubin has joined #ruby
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<step1step2_> why that?
ngscheur1 has quit [Ping timeout: 244 seconds]
karapetyan has quit [Remote host closed the connection]
haylon_ has quit [Quit: Leaving]
haylon has joined #ruby
alcipir_ has joined #ruby
PlasmaStar has quit [Ping timeout: 252 seconds]
PlasmaStar has joined #ruby
<purplexed^> Is monkey patching ever used in larger collaborative projects ?
<purplexed^> it sounds like it should be considered harmful
mary5030 has quit [Ping timeout: 246 seconds]
Bellthoven has quit []
zarubin has quit [Ping timeout: 260 seconds]
<weaksauce> rails does it for some things
<Coraline> Monkey patching is evil.
<purplexed^> okay, sio I'll avoid it until I know what I am doing
<Coraline> Good call.
<purplexed^> with my C# background it sounds like a terrible idea :D
alcipir_ has quit [Ping timeout: 264 seconds]
<weaksauce> used correctly it's not that bad but it's something to do with extreme caution unless you absolutely need it.
<weaksauce> ruby gives you a lot of rope to hang yourself with
Jardayn has joined #ruby
Fredrich010 has joined #ruby
* baweaver uses monkey patching
<ytti> now with refinements nay-sayers really need to be creative aout hating it
<baweaver> It's far more of a matter of recognizing when something is truly generic enough to justify it
gregoriokusowski has joined #ruby
bollullera has quit [Read error: Connection reset by peer]
Fredrich_ has joined #ruby
bkxd has quit [Ping timeout: 252 seconds]
everbot has quit [Ping timeout: 260 seconds]
benlovell has quit [Ping timeout: 265 seconds]
Guest60516 has quit [Ping timeout: 264 seconds]
mloy has left #ruby ["Leaving"]
Fredrich010 has quit [Ping timeout: 272 seconds]
ndrei has quit [Ping timeout: 250 seconds]
ferr has quit [Ping timeout: 240 seconds]
rodfersou has joined #ruby
Fredrich_ has quit [Ping timeout: 260 seconds]
Fredrich010 has joined #ruby
Jardayn has quit [Quit: Leaving]
<shevy> refinements look ugly!
<shevy> but the term "monkey patching" is also ugly
<shevy> I call it beaver patching
stamina has quit [Ping timeout: 255 seconds]