<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]
<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
<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?
<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]
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]
<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]
<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…]
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.
<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]
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]
<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]
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
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?
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…]
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…]
<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
<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
<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
<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
<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
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