apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<anew> where is the gem file?
zzing has joined #ruby
<sevenseacat> in the root folder of your project.
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<anew> gem 'therubyracer' didnt work, can i add that ot the file manually?
<zenspider> hrm... pry is swallowing too much backtrace when an exception raises... is there a config for that?
<sevenseacat> it will work. what did you do?
Hijiri has joined #ruby
nfk has quit [Remote host closed the connection]
nfk|laptop has quit [Quit: yawn]
<zenspider> anew: you need to read the next blog post
<anew> it worked
<anew> now a whole new bunch of erros
x1337807x has quit [Ping timeout: 264 seconds]
Renich has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
Illusioneer has quit [Ping timeout: 250 seconds]
<zenspider> almost guarantee that you're running ruby 1.9 still
kstuart has joined #ruby
Miron has quit [Ping timeout: 276 seconds]
ebbflowgo has joined #ruby
doodlehaus has joined #ruby
<anew> i do ruby -v and it says i'm on 2.2.2
bb010g has joined #ruby
<zenspider> ./bin/rails console
<zenspider> RUBY_VERSION
<Aeyrix> Yeah that's not running on 2.2.2 yo.
<anew> argh
<anew> kill me
<Aeyrix> :(
iamjarvo has joined #ruby
<zenspider> stop. using. bluehost.
diegoviola has joined #ruby
<Aeyrix> lel
iamjarvo has quit [Max SendQ exceeded]
<sevenseacat> oh this is on a server?
<zenspider> if it makes you feel any better, I'm gonna kill myself if I keep having to battle this web-console / rails voodoo
kstuart_ has quit [Ping timeout: 240 seconds]
iamjarvo has joined #ruby
blaines has joined #ruby
<anew> damn i really dont have money to spend on anything, i will talk again to bluehost support
<zenspider> fails.first.exception.instance_variable_get(:@bindings) => nil
<anew> thanks
<zenspider> yet, Marshal.dump fails still blows up because there's a Binding somewhere
sankaber has joined #ruby
<zenspider> I can't find it anywhere in pry
<Aeyrix> Anyone here use zsh or fish?
<Aeyrix> Preferably, anyone used both?
icebourg has quit []
paradisaeidae has joined #ruby
ebbflowgo has quit [Read error: Connection reset by peer]
<zenspider> argh. now it's somewhere on my exception object, yet no ivar to show for it
ebbflowgo has joined #ruby
baweaver has quit [Remote host closed the connection]
<zenspider> Marshal.dump fails.first.exception => "blob"
<jhass> ?anyone Aeyrix
<ruboto> Aeyrix, Just ask your question, if anyone has, they will respond.
<zenspider> Marshal.dump fails.first => blows up
<Aeyrix> jhass: I didn't really want to go on about shells without someone to talk to about it.
speakingcode has joined #ruby
<zenspider> Aeyrix: doesn't stop me... :P
failshell has joined #ruby
<zenspider> I know that isn't exactly a selling point...
CloCkWeRX has joined #ruby
<Aeyrix> lmao
doodlehaus has quit [Remote host closed the connection]
djbkd_ has quit [Quit: My people need me...]
mjuszczak has joined #ruby
<zenspider> is there a "super duper ls" command for pry? I can't find this thing to save my life but Marshal certainly blows up
taiansu has joined #ruby
<jhass> well, what would a "super duper ls" do differently than ls? :D
justinxr- has joined #ruby
<jhass> ls has a bunch of options, help ls
<Aeyrix> ls -la
<Aeyrix> There you go.
<weaksauce> Aeyrix I use zsh
<Aeyrix> weaksauce: What makes you use it over bash?
<weaksauce> tab completion is stellar
<Aeyrix> Yeah?
<weaksauce> history subsequence search is stellar.
<zenspider> unfortunately that's just as opaque
rkazak has joined #ruby
<zenspider> it's just using inspect on my exception
snockerton has quit [Quit: Leaving.]
<eam> file redirection to a pattern is nice
<zotherstupidguy> anyone used exploit/linux/http/linksys_apply_cgi before?
<weaksauce> Aeyrix try out prezto and zsh and enable a few extra settings and you won't go back to bash
<Aeyrix> eam: ?
failshell has quit [Ping timeout: 256 seconds]
<Aeyrix> Could you explain that one?
<Aeyrix> weaksauce: Do you have a .zshrc or whatever that I could see?
xjstin has quit [Ping timeout: 252 seconds]
<eam> Aeyrix: echo hi > {a,b,c} # this is tee
<anew> damn i feel like i'm so close
* zotherstupidguy sorry wrong channel!
<eam> or cat > *.txt or whatever
<Aeyrix> eam: o
<eam> Aeyrix: I don't use zsh
<eam> but I have used it
<Aeyrix> eam: Do you just use stock bash?
<eam> yeah
<anew> what would be the problem with these erros ?
<Aeyrix> anew: Update your Ruby.
<eam> ultimately I find depending on non-stock behavior is just a recipe for frustration when working on new systems
<Aeyrix> eam: That's... actually a good point.
GaryOak_ has quit [Remote host closed the connection]
<Aeyrix> You can't carry zsh around on a USB key to plug in. :P
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
<zenspider> I think I'm going about this wrong... maybe I should violently remove the monkeypatching?
<Aeyrix> I have a nice custom $PS1, but that's it.
<Aeyrix> And that can be pulled in, even temporarily.
<eam> Aeyrix: same
<Aeyrix> I just host it on my site for ezpz access.
kubunto has joined #ruby
<zenspider> echo \"$PS1\" => "\! % "
<zenspider> fancy... old school
<eam> and sometimes set -o vi
fabrice31 has joined #ruby
ismaelga has joined #ruby
<eam> though the default emacs keybindings are ok if you do emacs
P1RATEZ has joined #ruby
<Aeyrix> $ echo $PS1
<Aeyrix> \[\]\u@\h:\W \$ \[\]\[\]
<kubunto> question: which is more interesting working in a small company or a national as a programmer
<Aeyrix> I'm... fairly sure that's missing a few keywords.
<dorei> is there a way to use cookies with open-uri?
juanpaucar has joined #ruby
<Aeyrix> export PS1="\[$(tput bold)\]\u@\h:\W \\$ \[$(tput sgr0)\]\[$(tput sgr0)\]"
<Aeyrix> There we go, that's my $PS1.
<zenspider> user? who am I?!? host? where am I?!? path? OH GOD I AM LOST
bootstrappm has quit [Quit: bootstrappm]
<Aeyrix> Pretty much.
<Aeyrix> ... Why is there two sgr0's in that prompt.
<Aeyrix> That needs fixing.
<Aeyrix> weaksauce: alias vim="/usr/local/Cellar/macvim/HEAD/bin/mvim"
<Aeyrix> >Celalr
<Aeyrix> Cellar, even
mjuszczak has quit []
<Aeyrix> Homebrew is the greatest thing to ever grace OS X.
<weaksauce> into your zpreztorc
<weaksauce> indeed hombrew is quite nice Aeyrix
kalusn has quit [Remote host closed the connection]
Miron has joined #ruby
<weaksauce> Aeyrix the marks thing is something that's awesome too. simple filesystem bookmarks using links
mjuszczak has joined #ruby
<weaksauce> mark . and j <tab> are my go to
fabrice31 has quit [Ping timeout: 265 seconds]
Illusioneer has joined #ruby
<weaksauce> kubunto either could be good depending on the problems you are solving
rrichardsr3 has joined #ruby
<Aeyrix> How do people come up with these ideas.
<Aeyrix> Well, I guess "I wish it did this" is probably the answer.
<weaksauce> pretty much
juanpaucar has quit [Ping timeout: 264 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
<weaksauce> I should fix it so it's not case sensitive though
rrichardsr3 has quit [Read error: Connection reset by peer]
<weaksauce> kind of annoying that you have to specify a capital letter if it's the first letter
kubunto has quit [Quit: Some cause happiness wherever they go; others whenever they go]
whatupyo has left #ruby [#ruby]
<weaksauce> Aeyrix with a majority of zsh being bash compatible there is really no downside. I haven't had to use bash in probably a year+
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nii2361 has joined #ruby
<weaksauce> is there a downcase function in zsh? I could write a function I suppose or pass it into a ruby script but it would be nice to have that built in
rrichardsr3 has joined #ruby
Jonah11_ has joined #ruby
<eam> if you ever have to ask how to do something in shell, it's something that shouldn't be done in shell
scripore has quit [Quit: This computer has gone to sleep]
<Jonah11_> can anyone explain this simple error with map and proc: https://eval.in/366946
Sawbones has quit [Remote host closed the connection]
rrichardsr3 has quit [Max SendQ exceeded]
<Aeyrix> weaksauce: Do you deploy new servers often though?
<Aeyrix> I do, kinda.
<weaksauce> eam I doubt that's the case
<weaksauce> Aeyrix what does that matter?
scripore has joined #ruby
rrichardsr3 has joined #ruby
<eam> Jonah11_: arity of map is 0, it takes no arguments
<weaksauce> make a chef or ansible script to automate your settings
<eam> Jonah11_: {} doesn't count as an argument, and &thing is another syntax for that
P1RATEZ has left #ruby [#ruby]
mistergibson has joined #ruby
baweaver has joined #ruby
rrichardsr3 has quit [Max SendQ exceeded]
<Aeyrix> weaksauce: Oh, to clarify, I work on boxes that aren't mine quite a bit.
<Aeyrix> To suddenly not have the features would be lame. :<
<weaksauce> I see. well, that's the downside to customizing I suppose.
rrichardsr3 has joined #ruby
<Jonah11_> eam, so the difference is that in the 2nd case the proc is interpreted as an normal argument which happens to be a proc, whereas in the first case it interpreted as a passed block?
<eam> yes
<Jonah11_> eam, ty
<eam> np
<weaksauce> I don't do much work on boxes that I don't have admin and control over Aeyrix
rrichardsr3 has quit [Max SendQ exceeded]
rrichardsr3 has joined #ruby
<eam> Jonah11_: another interesting observation along the same lines is that any method can be passed a block
aspiers has quit [Ping timeout: 276 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam> >> double = proc {|x| x*2}; def f(x); x; end; [ f(5), f(5, &double), f(5) {"some block"} ]
<ruboto> eam # => [5, 5, 5] (https://eval.in/366949)
anew has quit [Quit: Leaving]
<Jonah11_> eam, right. i knew that. i was thrown because i was thinking of the & as forcing a "to_proc" call, not realizing it serves a 2nd function as a syntactic indicator of "passed block"
<eam> aha, cool
jackjackdripper1 has quit [Quit: Leaving.]
rejerson69 has quit [K-Lined]
oo_ has joined #ruby
<Aeyrix> weaksauce: Ahy.
<Aeyrix> Ah *
<Aeyrix> I'm a security consultant so I do. ;_;
<Aeyrix> I think downloading zsh would probably be out of scope for a lot of the work I do.
<weaksauce> Aeyrix well yeah. if you do a lot of local dev stuff it's really nice
robustus has quit [Ping timeout: 255 seconds]
bmurt has quit []
GriffinHeart has joined #ruby
doodlehaus has joined #ruby
ismaelga has quit [Remote host closed the connection]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
Oka has quit [Quit: さようなら]
tjbiddle has quit [Quit: tjbiddle]
doodlehaus has quit [Remote host closed the connection]
Jonah11_ has quit [Remote host closed the connection]
workerB is now known as johnny_dz
michaeldeol has quit [Ping timeout: 244 seconds]
Illusioneer has quit [Ping timeout: 265 seconds]
GriffinHeart has quit [Remote host closed the connection]
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
doodlehaus has joined #ruby
slucx has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
jgt2 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
rrichard_ has joined #ruby
rrichard_ has quit [Client Quit]
gambl0re has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pwattstbd has joined #ruby
rrichardsr3 has quit [Ping timeout: 256 seconds]
kalusn has joined #ruby
psy has quit [Disconnected by services]
GriffinHeart has quit [Remote host closed the connection]
psy_ has joined #ruby
mistermo_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
thatslif_ has quit [Remote host closed the connection]
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
kayloos has joined #ruby
doodlehaus has joined #ruby
slawrence00 has joined #ruby
mistermo_ has joined #ruby
bricker has quit [Quit: leaving]
GriffinHeart has quit [Remote host closed the connection]
kalusn has quit [Ping timeout: 246 seconds]
wallerdev has quit [Ping timeout: 256 seconds]
rgb-one has joined #ruby
Hijiri has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
Rickmasta has quit [Max SendQ exceeded]
mistermo_ has quit [Ping timeout: 256 seconds]
FernandoBasso has quit [Quit: leaving]
iteratorP has joined #ruby
Rickmasta has joined #ruby
iteratorP has quit [Client Quit]
fmcgeough has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zzxc has quit [Ping timeout: 276 seconds]
charliesome has joined #ruby
ismaelga has joined #ruby
rodfersou has quit [Ping timeout: 256 seconds]
GriffinHeart has joined #ruby
zzxc has joined #ruby
zzxc has quit [Changing host]
zzxc has joined #ruby
claptor has joined #ruby
mjuszczak has quit []
brianstorti has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
icebourg has joined #ruby
_seanc_ has joined #ruby
jenrzzz has joined #ruby
speakingcode has quit [Ping timeout: 245 seconds]
conta has joined #ruby
mjuszczak has joined #ruby
Hijiri has joined #ruby
mistermo_ has joined #ruby
devramen has quit [Quit: Leaving...]
mistermo_ has quit [Remote host closed the connection]
hololeap has quit [Ping timeout: 244 seconds]
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
conta has quit [Ping timeout: 252 seconds]
Illusioneer has joined #ruby
tubuliferous has joined #ruby
neworder has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<neworder> Hi guys
<neworder> I got an array nums = [0,1,5,0]
<neworder> I need to find the index of the duplicate items
jgt2 has quit [Ping timeout: 255 seconds]
<neworder> Specifically, I need to find the index of the second 0
<neworder> How do I do that?
<Hijiri> put every number you have seen so far in some kind of queriable container
amclain has joined #ruby
<Hijiri> and then at each element, you check if it's in there
<Hijiri> if it's in there then you know it's a duplicate because you must have visited it before
dorei has quit []
Encapsulation has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
claptor has quit [Quit: this channel is bakas]
<neworder> I'm trying to solve this
<neworder> in Ruby
<neworder> I almost got it
<Hijiri> do you want hints
<neworder> but it doesn't work for repeated elements
<neworder> Sure
<Hijiri> it would be a similar solution to finding duplicate elements
<neworder> I see
<Hijiri> passing an accumulator of already-visited numbers
<Hijiri> I don't know if maybe there is a more efficient solution than what I have in mind though
AlphaAtom has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
<Hijiri> at least, that is how I would do it
doodlehaus has quit [Remote host closed the connection]
rodfersou has joined #ruby
<Hijiri> the accumulator will need to include a bit more than just the number visited, though
<baweaver> >> [0,1,5,0].each_with_index.to_a
<ruboto> baweaver # => [[0, 0], [1, 1], [5, 2], [0, 3]] (https://eval.in/366954)
duderonomy has joined #ruby
<baweaver> >> (1..5).group_by(&:even?)
<ruboto> baweaver # => {false=>[1, 3, 5], true=>[2, 4]} (https://eval.in/366955)
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
<neworder> What's the &:
<baweaver> </hints>
<neworder> Not famililar with it
kizzx2 has joined #ruby
<baweaver> shorthand for
hololeap has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
<Aeyrix> Symbol.
<baweaver> >> (1..5).group_by { |n| n.even? }
rodfersou has quit [Client Quit]
<ruboto> baweaver # => {false=>[1, 3, 5], true=>[2, 4]} (https://eval.in/366956)
<baweaver> Symbol to proc
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
<baweaver> calls that method on each item
<havenwood> >> [0, 1, 5, 0].each.with_index(1).to_a
<ruboto> havenwood # => [[0, 1], [1, 2], [5, 3], [0, 4]] (https://eval.in/366957)
tubuliferous has quit [Ping timeout: 245 seconds]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
<baweaver> Well yeah, you can do that too, but index generally means start with 0
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
<baweaver> https://xkcd.com/163/ - relevant
<havenwood> baweaver: The problem says not zero-based.
<baweaver> Does it?
kizzx2 has joined #ruby
<havenwood> Yup
<baweaver> Well, you win this round then
kizzx2 has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
<havenwood> ;)
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
doodlehaus has joined #ruby
<baweaver> Anyways, those two methods should get you most of the way.
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
<havenwood> neworder: You might want to look at Array#combination(2).
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
turtil has joined #ruby
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
<al2o3-cr> >> nums = [0,1,5,0]; nums.each_with_index.inject({}) {|h, (e, i)| h[e] = (h[e] || []) << i; h }.select {|_,v| v.size > 1 }
<ruboto> al2o3-cr # => {0=>[0, 3]} (https://eval.in/366959)
turtil has quit [Client Quit]
kizzx2 has joined #ruby
kizzx2 has quit [Max SendQ exceeded]
gsd has joined #ruby
paradisaeidae has quit [Ping timeout: 250 seconds]
turtil has joined #ruby
al2o3-cr has left #ruby ["WeeChat 1.2"]
avahey has joined #ruby
<baweaver> >> ns = [0,1,5,0]; ns.each.with_index(1).group_by(&:first).select { |k,vs| vs.length > 1 }
<ruboto> baweaver # => {0=>[[0, 1], [0, 4]]} (https://eval.in/366961)
scripore has quit [Quit: Leaving]
al2o3-cr has joined #ruby
kayloos has quit [Remote host closed the connection]
taiansu has quit [Remote host closed the connection]
taiansu has joined #ruby
<havenwood> The solution according to the problem should be `[1, 4]`, no?
meph has quit [Quit: Leaving.]
<havenwood> values.map &:last
<havenwood> and it just wants one pair, #find style not #select so a #shuffle or #last or whatev
croberts has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
<baweaver> >> ns = [0,1,5,0]; ns.each.with_index(1).group_by(&:first).select { |k,vs| vs.length > 1 }.values.map(&:last)
<ruboto> baweaver # => [[0, 4]] (https://eval.in/366962)
<havenwood> #sample I mean, not #shuffle >.>
<baweaver> >> ns = [0,1,5,0]; ns.each.with_index(1).group_by(&:first).select { |k,vs| vs.length > 1 }.values.flatten(1).map(&:last)
<ruboto> baweaver # => [1, 4] (https://eval.in/366963)
<havenwood> \o/
tubuliferous has joined #ruby
<baweaver> \o/
<havenwood> >> target = 0; [0, 1, 5, 0].each.with_index(1).to_a.combination(2).find { |(a, _), (b, _)| a + b == target }.map &:last
<ruboto> havenwood # => [1, 4] (https://eval.in/366964)
cjim_ has joined #ruby
taiansu has quit [Ping timeout: 240 seconds]
<baweaver> same runtime approx
taiansu has joined #ruby
<baweaver> Well back home I go. 'night
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<neworder> Hijiri baweaver Aeyrix havenwood Thanks guys =)
<neworder> nitez
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix> np
baweaver has quit [Remote host closed the connection]
sankaber has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
doodlehaus has quit [Remote host closed the connection]
<ScriptGeek> What are the odds of landing an entry level Rails job with only the basics of Ruby and Rails learned?
teflonton1985 has quit [Ping timeout: 244 seconds]
<neworder> ScriptGeek If you are able to do the questions here in your 'primary' language, then you probably won't have a hard time getting that job
<neworder> =)
djbkd has quit [Quit: Leaving...]
<neworder> Depends on the company of course
Sawbones has joined #ruby
<ScriptGeek> neworder: thanks, I'll check that out
<neworder> welcome
<ScriptGeek> I've been learning Ruby by working through courses on TeamTreehouse
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
<ScriptGeek> I probably only have another 3 days left before I finish the Ruby track. Although I could probably have it done by tomorrow if I felt extra super motivated.
<neworder> I see, this is good as well https://rubymonk.com/
<ScriptGeek> nice, I'll check that out, too
nii2361 has quit [Quit: WeeChat 1.1.1]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has left #ruby ["WeeChat 1.2"]
<neworder> I'm sure these courses are helpful, but to really master ruby, reading books would be the best way to go
<neworder> Then you can negotiate with the company with your new learnt skills =)
<neworder> Or practice coding in Ruby
<neworder> I'm a newbie to Ruby myself btw
phutchins has quit [Ping timeout: 244 seconds]
P1RATEZ has joined #ruby
cjim_ has quit [Quit: (null)]
Sawbones has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
<ScriptGeek> If I had a job as a programmer already it would be easier to be more motivated about it... Applying for jobs but don't get call backs sucks.
<sevenseacat> gives you more time to learn.
juanpaucar has joined #ruby
<ScriptGeek> I wish I could feel good about that extra time
paradisaeidae has joined #ruby
<ScriptGeek> Actually, applying for jobs takes away time.
<neworder> Sending resume + cover letter takes away time?
<neworder> hehe
<ScriptGeek> Sure, doesn't it?
<ebonics> ScriptGeek, how's your resume look?
<neworder> Cover letter is more or less the same if you applying for a rails position right?
<neworder> do you have a CS background?
ravenreborn_ has quit [Ping timeout: 272 seconds]
<ebonics> maybe you're in a shitty area, but there's tons of developer jobs here
<ScriptGeek> apparently my resume doesn't look awesome enough
_havenn has joined #ruby
<sevenseacat> resumes... i remember them
konsolebox has joined #ruby
Jonah11_ has joined #ruby
<ebonics> i mean look as in how much stuff do you have on it
<ebonics> what kind of stuff, do you have a CV etc
<neworder> Don't worry so much about your resume, really
GaryOak_ has quit [Ping timeout: 264 seconds]
<neworder> If you can code, they will definitely hire you
<sevenseacat> I think if i made a resume these days it would just be links to online profiles
<ScriptGeek> neworder: yeah, I have a CS degree
<neworder> Great
x1337807x has joined #ruby
<sevenseacat> linked in, stackoverflow, github, etc.
<ebonics> yeah
<ebonics> that's what people ask now
<ebonics> "do you have a github we can check out?" et
<ebonics> c
tyfighter has joined #ruby
<ScriptGeek> sevenseacat: I've recently became active on stackoverflow
<sevenseacat> even blog, twitter, etc.
havenwood has quit [Ping timeout: 272 seconds]
<neworder> These have interview questions
<neworder> and there are so many testimonials on interviewcake.com that people who tried the questions got into Google, Apple...
<neworder> Maybe that would be a good start
<neworder> https://leetcode.com/ is free
<Aeyrix> Google and Apple don't ask you "questions" like that.
<ScriptGeek> It would be more convincing if I knew someone who recommended that https://www.interviewcake.com/ site
paradisaeidae has quit [Client Quit]
<Aeyrix> Source: Friend works at Google, I worked at Apple.
<neworder> Ah I see
laurentide has joined #ruby
x1337807x has quit [Client Quit]
juanpaucar has quit [Ping timeout: 258 seconds]
<neworder> Aeyrix What resources would you recommend
<Aeyrix> What do you want to do?
<Aeyrix> Career wise.
<ScriptGeek> I want to have a job =p
<neworder> Software Engineer in Google! =)
<Aeyrix> Unhelpful.
<neworder> Lol
<Aeyrix> No you don't.
<Aeyrix> Your day-to-day job at Google would be moving a button 2px to the left.
A205B064 has quit [Ping timeout: 252 seconds]
<Aeyrix> Unless you manage to come up with an idea to rival Google Maps in how awesome it is, you're a cog in a *very* large machine at Google.
<neworder> wow
<Aeyrix> Same with Apple.
thatslifeson has joined #ruby
<ScriptGeek> Being unemployed is lame and I don't want to go back to working more crappy jobs
<neworder> I see
joelataylor has quit [Quit: Be back later ...]
<Aeyrix> Okay.
Spleeze has quit [Quit: QUIT]
<Aeyrix> Programming work? Security work? Sysadmin work?
<ScriptGeek> My work history might be working against me
<Aeyrix> "IT" is far, far too broad.
<Aeyrix> My previous work history was bartending.
joelataylor has joined #ruby
<Aeyrix> Then I worked for a big-four consulting firm.
<ScriptGeek> I've worked a series of crap jobs after I quit working for a game dev startup that lied to me
<ScriptGeek> They weren't paying me anyways
<ScriptGeek> Bills have to be paid
<Aeyrix> Startup life is garbage.
thatslifeson has quit [Read error: Connection reset by peer]
rgb-one has quit [Read error: No route to host]
<ScriptGeek> Yeah, no more startups for me... at least for a long time. lol
thatslifeson has joined #ruby
<Aeyrix> Programming work? Security work? Sysadmin work?
<neworder> unless it's your own =)
<ScriptGeek> Programming
<Aeyrix> What do you want to do? :P
<Aeyrix> Okay, so.
<Aeyrix> Do you have a portfolio?
<ScriptGeek> I can do sys admin
<ScriptGeek> I've done it well in the Marines
<ScriptGeek> but that was a long time ago
<Aeyrix> Not like some fancy dick designer portfolio, but some code that shows you're a capable programmer, and capable of learning from your mistakes.
Spleeze has joined #ruby
<ScriptGeek> I have some samples I can show you
<Aeyrix> Never push 100% complete code to GitHub.
<Aeyrix> Technical employers will look at your commits, to see how you've learned.
<ScriptGeek> Hmm... well the code isn't readily available to show
<Aeyrix> I hear that excuse a lot. Why not?
<ScriptGeek> The project demos are available on the web
<ScriptGeek> not the code
<Aeyrix> Yeah but why?
<ScriptGeek> Didn't think of doing that yet? idk
ReK2 has joined #ruby
<Aeyrix> Oh, so you can put it up, but you haven't.
<Aeyrix> I hear a lot of people say "no i can't show it"
Sawbones has joined #ruby
<ScriptGeek> I have on my todo list to pull out a couple of features and talk about how I implemented them
joelataylor has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix> Essentially your checklist (for a programmer) is this:
Sawbones has quit [Read error: No route to host]
icebourg has quit []
<Aeyrix> - Get some code up, publicly viewable. Web dev, app dev, whatever.
<Aeyrix> - Get involved in a community project. Doesn't have to be huge.
<neworder> Maybe you can work through this and enhance it https://www.railstutorial.org/
<Aeyrix> I was involved in Bukkit for a while..
mbfff has joined #ruby
Sawbones has joined #ruby
jtdowney has joined #ruby
<Aeyrix> What you really need to do is advertise that you're capable.
<neworder> The online version is free
<ScriptGeek> I'm going afk to eat dinner... be back soon
<Aeyrix> Ok.
<neworder> ok
<mbfff> Hello! I am working a small gem (https://github.com/marshallford/google_spellcheck) and a running into a uninitialized constant error. My gem works in the test suite however if you try the example outside the gem project it does not work. Any ideas?
fmcgeough has quit [Quit: fmcgeough]
<mbfff> the example found in the readme. Require the gem and then run result = GoogleSpellcheck.check("word or phrase to check")
<Aeyrix> Error to gist.github.com please.
n008f4g_ has quit [Ping timeout: 264 seconds]
greenbagels has joined #ruby
mbff has joined #ruby
<Aeyrix> Also your code from test.rb
<Aeyrix> Oh, you're just using the example in the readme?
<mbfff> yes
<mbfff> see update...
jenrzzz has quit [Ping timeout: 246 seconds]
<Aeyrix> Tangential, but you really need to fix your indenting.
<mbfff> you mean tabs?
<Aeyrix> Yeah.
<mbfff> 4 spaces
<Aeyrix> Those are actual tabs yo.
<mbfff> why?
<sevenseacat> two spaces for indentation is ruby convention.
<Aeyrix> If I highlight them I get an actual tab.
<Aeyrix> Not two spaces.
iamjarvo has joined #ruby
Xiti has joined #ruby
fedexo has joined #ruby
<mbfff> i prefer 4 spaces,
<Aeyrix> *shrugs*
<Aeyrix> It's your gem.
<Aeyrix> But those aren't four-space indents.
<Aeyrix> Those are tab indents.
serivich has quit [Ping timeout: 258 seconds]
<mbfff> ok, i am using editorconfig... how can i fix that>
<mbfff> ?
<sevenseacat> gl getting any contributions to your gem if you dont follow community standards
<Aeyrix> sevenseacat: I'd venture that two versus four spaces isn't enough to make someone wet themselves.
<sevenseacat> its a broken window, a sign of larger problems.
<Aeyrix> mbfff: Not sure tbh.
<Aeyrix> Well, yeah.
<Aeyrix> Look at line 12 or so in spellcheck.rb.
<Aeyrix> But regarding your actual problem - I'll be honest, I don't know.
<Aeyrix> Well, off the top of my head.
<Aeyrix> Gimme a sec.
keen_____ has quit [Read error: Connection reset by peer]
creakybones has quit [Remote host closed the connection]
<Aeyrix> Ah, ok.
<mbfff> i would be happy to switch to actual spaces, but i prefer 4 over 2... thanks for letting me know.
<Aeyrix> Your gem's class name is
<Aeyrix> GoogleSpellcheck
P1RATEZ has quit []
<Aeyrix> You're using GoogleSpellCheck in your example.
<Aeyrix> Spellcheck vs SpellChat,.
<Aeyrix> ... Chat? What the fuck?
<Aeyrix> Check *
oo_ has quit [Remote host closed the connection]
<Aeyrix> It's just a casing issue.
<mbfff> so it's a matter of changing the lowercase "c" to a capital "C"
keen_____ has joined #ruby
<mbfff> ?
<Aeyrix> Yep.
<Aeyrix> Uh
<Aeyrix> other way around
<Aeyrix> Change the C in your example to lowercase.
towski_ has joined #ruby
slucx has quit [Read error: Connection reset by peer]
<mbfff> ok let me look into that, wow I am stupid sometimes...
<Aeyrix> Otherwise you have to fix your tests and everything, and technically spellcheck is a verb/noun I think, so it's correct
Illusioneer has left #ruby ["PONG :hitchcock.freenode.net"]
<mbfff> ok thanks, also thanks for the spacing/tab thing...
<Aeyrix> np np
<Aeyrix> What editor are you using
<mbfff> i'll take a look at editorconfig and see what's up.
<mbfff> sublime
<mbfff> 3
<Aeyrix> Ah.
<Aeyrix> That should be indenting ruby properly by default.
<mbfff> yah but I have the editorconfig plugin...
<Aeyrix> Ah ok
graydot has quit [Quit: graydot]
<Aeyrix> Do you write in any other languages in ST?
oo_ has joined #ruby
<Aeyrix> If not, remove that plugin. It's a waste of time and encourages bad practice anyway.
techietrash has joined #ruby
<Aeyrix> You shouldn't be forcing your convention on all programming languages. You wouldn't use two-space indenting in Java.
<Aeyrix> Or Python.
casadei has quit [Remote host closed the connection]
gsd has joined #ruby
<mbfff> i hate managing spacing/utf-8 per ide, I prefer editorconfig because it is not based on options/preferences in the IDE but the repo's standards
justinxr- has quit [Ping timeout: 252 seconds]
<mbfff> editorconfig is project-level
<mbfff> it's really a pretty good idea if you use it correctly
<Aeyrix> I just deny pull requests if it doesn't follow convention tbh.
turtil has quit [Quit: WeeChat 1.1.1]
<mbfff> fair enough, you could do that plus add a config to help people in the right direction... idk... just makes sense...
xjstin has joined #ruby
<Aeyrix> Yeah I guess.
<Aeyrix> Although for my Ruby projects I just follow Ruby convention.
<Aeyrix> Java same, C mostly same.
<mbfff> I would love if people worked on or even complain about my projects... so I try not to deny them haha.
<Aeyrix> Anyone who does hanging brackets on C though should go away.
<Aeyrix> s/on/in/
<mbfff> which way is hanging?
<Aeyrix> void dongs()
<Aeyrix> {
<mbfff> really? I kinda prefer that way....
<mbfff> i mean for java anyway
<Aeyrix> The C language equivalent of the vim vs emacs war. ;)
<mbfff> oh ok
<mbfff> well i gotta go... back to work! Thanks for the help
<Aeyrix> np
mbfff has quit [Quit: Page closed]
mbff has quit [Quit: Leaving]
wolfleemeta_____ has joined #ruby
<ScriptGeek> Ok, back. Now where were we?
<sevenseacat> go build a portfolio.
<ScriptGeek> portfolio of what?
<sevenseacat> work to demonstrate to a potential employer.
<Aeyrix> ^
<Aeyrix> To go on your resume.
<Aeyrix> They should already be aware of what you've done BEFORE you step inside the interview room.
<ScriptGeek> demonstrate what exactly?
<Aeyrix> Your programming capability.
justinxr- has joined #ruby
<sevenseacat> that you know how to program.
<Aeyrix> Your method of thinking, of fixing issues that occur, etc.
xjstin has quit [Ping timeout: 252 seconds]
<ScriptGeek> I do already have one project pretty much complete
wolfleemeta____ has quit [Ping timeout: 256 seconds]
<ScriptGeek> Did you see my Bustling Bubble Boa game?
tomato has joined #ruby
turtil has joined #ruby
tomato has left #ruby [#ruby]
<sevenseacat> is that what you want to be hired to do?
<sevenseacat> and wheres the code for it?
<ScriptGeek> the ccode is on my computer
<sevenseacat> how does that help an employer trying to find out about you?
<_havenn> ScriptGeek: Have a Github account?
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
<ScriptGeek> _havenn: yes I do
<ScriptGeek> sevenseacat: proves I can code
<sevenseacat> it proves nothing
<sevenseacat> you could have ripped that from anywhere
<ScriptGeek> sure, but I can also produce the code within 5 minutes
<sevenseacat> you're missing the point
_havenn is now known as havenwood
veduardo has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
justinxr- has quit [Ping timeout: 252 seconds]
xjstin has joined #ruby
<neworder> Maybe you can work through this and enhance it https://www.railstutorial.org/
icebourg has joined #ruby
<neworder> and push it to Github
<neworder> and get a Rails job
<neworder> Problem solved
<neworder> hehe
<havenwood> ScriptGeek: Is game development what you're looking to get a job doing?
<neworder> He took Ruby path from Teamtreehouse
<havenwood> ScriptGeek: Or do you have a particular area of interest?
<neworder> and he's on a Ruby channel
<neworder> He's looking at Rails
<ScriptGeek> Beggars can't be choosers
BlackGear has joined #ruby
<havenwood> neworder: Then why not the #RubyOnRails channel?
<sevenseacat> mmmm
<Aeyrix> tbh i wanted to try for a job at Github
<neworder> havenwood I mean he mentioned looking for Rails job
<ScriptGeek> TeamTreehouse has a program called Code Oregon where people can learn about a select sort of technologies for free
<neworder> about an hour ago
justinxr- has joined #ruby
<havenwood> neworder: Ah, I wasn't on, gotcha.
* sevenseacat gets popcorn
<Aeyrix> Make me some.
* sevenseacat throws a few pieces at Aeyrix
<ScriptGeek> I wouldn't mind getting a job as a game developer working with Unity
<ScriptGeek> But getting a job as a Rails developer would pay twice as well
<neworder> Rails is better :P
tcrypt has quit [Remote host closed the connection]
<neworder> Since you have a CS degree, you shouldn't settle for less
<ScriptGeek> The game dev industry is merciless
<neworder> unless you really want to
xjstin has quit [Ping timeout: 252 seconds]
mbff has joined #ruby
<havenwood> ScriptGeek: You should try making a little game with Gosu if you haven't yet. :)
<ScriptGeek> A CS degree is worthless by itself, I need to be a salesman to get hiring managers to hire me
kinduff has joined #ruby
<ScriptGeek> havenwood: does Gosu work with Unity?
<sevenseacat> honestly, this just sounds like a lot of complaining.
<havenwood> ScriptGeek: No, just 2d.
<ScriptGeek> 2d? cocos?
<havenwood> ScriptGeek: https://www.libgosu.org/
<sevenseacat> the demand for devs is sky-freaking high. if you can prove you can do something, you will get hired to do it.
<ScriptGeek> sevenseacat: What is your greatest weakness?
<sevenseacat> if you can't prove it, well theres your problem, now go fix it.
<ScriptGeek> sevenseacat: Why should we hire you?
<mbff> Aeyrix, I am back again for a another question, this time regarding semantics. Does GoogleSpellcheck.check make sense? I mean double "check".... would GoogleSpellcheck.new(foo) make more sense?
<sevenseacat> ScriptGeek: I can't sell myself in words. But I can sell myself in code.
<sevenseacat> ScriptGeek: i can point you to my stackoverflow profile, my github profile, my linkedin profile, my book's profile, that all demonstrate that i can do shit.
<ScriptGeek> stupid interview questions anyways
<sevenseacat> and i will have done all that before the interview.
<sevenseacat> then the interviews will consist of talking about all the information i provided, which i can do.
failshell has joined #ruby
<sevenseacat> none of those dumb feeler questions.
<havenwood> ScriptGeek: RubyMotion would probably be the best Ruby option for OS X specific games, but it's not free.
<neworder> Work hard and get an awesome job
MasterPiece has quit [Read error: Connection reset by peer]
Joufflu has joined #ruby
<neworder> 1) Learn Ruby 2) Practice questions 3) Learn Rails 4) Get an awesome Rails job
<sevenseacat> seriously, those questions only get used when the interviewer has nothing else to go on.
<ScriptGeek> havenwood: that's cool, but I'm a PC user
MasterPiece has joined #ruby
<Aeyrix> ?
<sevenseacat> lol
<sevenseacat> so are we all.
justinxr- has quit [Ping timeout: 252 seconds]
<ScriptGeek> was responding to havenwood
kinduff has quit [Ping timeout: 258 seconds]
<havenwood> ScriptGeek: You can cut an .exe from your Gosu game with Releasy.
<neworder> ScriptGeek: It's alright, just live with it for the moment
sankaber has joined #ruby
<neworder> Then you can buy a MBP after you get your dream job =)
<sevenseacat> or you get a job that gives you one.
<neworder> right!
xjstin has joined #ruby
<neworder> For those kind of jobs, you definitely need to work out
<neworder> work hard*
ebbflowgo has quit [Quit: ebbflowgo]
<ScriptGeek> Sure, I can work hard digging a hole in my backyard, but what's that going to get me?
Guest15880 has quit [Ping timeout: 272 seconds]
bMalum has joined #ruby
braincra- has quit [Quit: bye bye]
* sevenseacat shrugs and goes back to work
<ScriptGeek> Is this really a question of work ethic, because I'm pretty sure the dumbest idiot can do anything then.
failshell has quit [Ping timeout: 265 seconds]
<sevenseacat> it sounds like its a question of reading comprehension.
<ScriptGeek> sevenseacat: I'll just say it... that's insulting.
<sevenseacat> it was meant to be.
<ScriptGeek> Thanks
<Aeyrix> > sevenseacat shrugs and goes back to work
<ScriptGeek> dick
<Aeyrix> ahaha brutal
<neworder> ScriptGeek: Don't make it complicated.
<havenwood> Please be nice. Insults aren't allowed here.
<neworder> Just work hard on Ruby
<ScriptGeek> Why don't I just work hard to learn about some obscure technology that nobody has heard of?
jenrzzz has joined #ruby
<neworder> These are geeks, they will really help you
<Aeyrix> >nobody has ever heard of Ruby
<neworder> don't insult them =)
<sevenseacat> whiiiiiiiiine
<Aeyrix> ScriptGeek: A few people, including myself, have given you advice.
<Aeyrix> Most of it stems from what worked for them.
<havenwood> Or rather name-calling and ad-hominem attacks aren't allowed.
<sevenseacat> havenwood: my apologies.
veduardo has quit [Ping timeout: 272 seconds]
<sevenseacat> but this is getting a tad frustrating.
<havenwood> sevenseacat: :)
<ScriptGeek> Sorry to have played on your empathy strings
<neworder> Just relax and continue coding
<sevenseacat> neworder: good advice :)
<ScriptGeek> havenwood: there seems to be a lot more Unity jobs than Gosu jobs available
<neworder> =)
<neworder> I'm trying to solve this
Rickmasta has joined #ruby
<neworder> Maybe you can join me too
<neworder> hehe
<mbff> double or single quotes in ruby.... thoughts?
<havenwood> ScriptGeek: Oh, I think that's likely, yeah. But a Gosu game gives some nice Ruby code to show on your Githubs. And it's fun.
_blizzy_ has quit [Ping timeout: 265 seconds]
jtdowney has quit []
<sevenseacat> i can think of a nice solution to do that in elixir lol
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ScriptGeek> havenwood: that's true, good ruby practice
deric_skibotn has joined #ruby
<havenwood> sevenseacat: the Two Sum problem?
<sevenseacat> yeah
xjstin has quit [Ping timeout: 252 seconds]
<havenwood> sevenseacat: hmmm
<sevenseacat> wouldnt be too different in ruby, just with more conditionals lol
<sevenseacat> and a few loops
neworder has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
nii236 has joined #ruby
veduardo has joined #ruby
mase-chatter has joined #ruby
<ScriptGeek> neworder, come back I have the solution! lol
<sevenseacat> something like `for index1 <- nums, index2 <- nums, index1 + index2 == target, do: {index1, index2}`
neworder has joined #ruby
<sevenseacat> maybe even with an extra guard index1 < index2
braincrash has joined #ruby
<ScriptGeek> It's just a O(n^2) solution
* sevenseacat tries it
<ScriptGeek> nested loops
brianstorti has quit [Remote host closed the connection]
<ScriptGeek> the outer loop starts with the first array item
<ScriptGeek> and goes to the next-to-last
<neworder> got dc
<neworder> I found on Stackoverflow this answer
casadei has joined #ruby
<neworder> It's in Python
<ScriptGeek> the inner loop starts with the 2nd item and goes to the last
<neworder> It's SUPER SHORT
greenbagels has quit [Quit: Leaving]
<neworder> I meant elegant
Sawbones has quit [Remote host closed the connection]
<neworder> This is my code in Ruby
xjstin has joined #ruby
<neworder> I'm trying to write something like the Python code in Ruby style but haven't understood the Python code yet
<sevenseacat> https://gist.github.com/sevenseacat/7ce0081b7d3fc3a117a6 im actually proud of that.
<sevenseacat> and it worked first go.
<sevenseacat> i am learning elixir! woo
<Aeyrix> That looks fucking gross.
<Aeyrix> Is that even Ruby?
Encapsulation has joined #ruby
<Aeyrix> Oh, .exs. Nope.
djbkd has joined #ruby
<neworder> Cool
<sevenseacat> no.
<neworder> but yah
<Aeyrix> Why ;-;
<neworder> yeah*
krz has joined #ruby
<neworder> not elegant
<Aeyrix> sevenseacat: Seriously why are you learning Elixir? Just for fun?
<sevenseacat> yep.
<Aeyrix> OH BOY I GET TO GIVE FEEDBACK ON MY UNIVERSITY COURSES
<sevenseacat> wanted something different.
<Aeyrix> "somehow you manage to have the *entire* course both out of date and completely irrelevant to the real world."
<ScriptGeek> Aeyrix: don't tell them that, they'll just change the curriculum to some other retarded bs
mbff has quit [Quit: Leaving]
<Aeyrix> I'd prefer they did.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ScriptGeek> neworder: are we solving this with C++?
<neworder> Nope
<neworder> We are on Ruby channel
<neworder> so Ruby =D
<ScriptGeek> oh, there we go... the dropdown actually changed it to Ruby this time.
<sevenseacat> oh i misread the question, i was supposed to return the indices into the list. dammit.
<neworder> yup, the indices + 1
<neworder> not zero-bsed
Jandre has joined #ruby
Jandre is now known as Guest10123
<ScriptGeek> neworder: is the nums parameter the array to the set of all numbers?
<neworder> That's right
<ScriptGeek> ok
frem has quit [Quit: Connection closed for inactivity]
slucx has joined #ruby
<neworder> I've solved it in Javascript but it was slightly long
tyfighter has quit [Quit: tyfighter]
baweaver has joined #ruby
creakybones has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
arescorpio has joined #ruby
bMalum has quit [Quit: bMalum]
<ScriptGeek> neworder: I think I have a solution, but I'm not sure about how Ruby's for loops work with incrementing
A124 has quit [Ping timeout: 264 seconds]
<neworder> We are in the same boat
<neworder> Lol
<neworder> This is what I've got so far
<neworder> In Ruby, iterators are the way to go
<neworder> ScriptGeek: Avoid for loops
<ScriptGeek> I guess I could use a while or until loop instead
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<neworder> Yeah
<neworder> But iterators are good
<neworder> ScriptGeek: I need to get back to work. Do try to complete it if possible so that we can compare solutions =)
<neworder> later
<ScriptGeek> ok, cya
<neworder> cya =)
zubov has joined #ruby
Encapsulation has quit [Quit: Leaving]
mjuszczak has quit []
Encapsulation has joined #ruby
zzxc has quit [Ping timeout: 272 seconds]
wolfleemeta_____ has quit [Remote host closed the connection]
turtil has quit [Quit: WeeChat 1.1.1]
devoldmx has joined #ruby
mjuszczak has joined #ruby
wolfleemeta_____ has joined #ruby
slucx has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
charliesome has quit [Ping timeout: 265 seconds]
starless has quit [Quit: Leaving]
<neworder> Links I found useful
A124 has joined #ruby
<ScriptGeek> there's the solution to getting indexes!
<neworder> yup =)
* ScriptGeek rewrites solution =p
<neworder> This is the awesome Python code I saw
bruno- has joined #ruby
Channel6 has joined #ruby
<neworder> sorry just a moment
techietrash has quit [Quit: Bye! <(^_^<)]
<ScriptGeek> I haven't touched python since college
<neworder> Me too
ismaelga has quit [Remote host closed the connection]
turtil has joined #ruby
<neworder> The code is really short, you can try running it in leetcode by selecting Python
<neworder> will be back 8 hours later
aspiers has joined #ruby
Xiti has quit [Read error: Connection reset by peer]
graydot has joined #ruby
deric_skibotn has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
graydot_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zubov has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
graydot has quit [Ping timeout: 256 seconds]
graydot_ is now known as graydot
fabrice31 has joined #ruby
TheBrayn has quit [Quit: ZNC - http://znc.in]
juanpaucar has joined #ruby
Eiam has joined #ruby
sent1nel has joined #ruby
<Eiam> hmm is there some way to have resque schedule a task like "once a day at 8pm" ? the resque-scheduler seems to only support intervals, like "every 4 hours" whereas I want something at a very specific time
arup_r has joined #ruby
<Eiam> would I need to write a job that every hour runs, and checks the hour to see if its right?
fabrice31 has quit [Ping timeout: 240 seconds]
arup_r has quit [Remote host closed the connection]
Guest10123 is now known as Jandre
Jandre has quit [Changing host]
Jandre has joined #ruby
taiansu has quit [Remote host closed the connection]
oo_ has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
<havenwood> Eiam: Looks like it does support specific times: https://github.com/resque/resque-scheduler#scheduled-jobs-recurring-jobs
mbff has joined #ruby
<mbff> Has anyone used sinatra and namespaces for versioning?
braincrash has quit [Ping timeout: 272 seconds]
<havenwood> mbff: i've used vendor mime types for sinatra api versioning
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> Eiam: Seems like either `at '2030/12/12 23...` or `cron '...'` syntax supported by Rufus.
<Eiam> havenwood: I've read through that already... its all arbitrary as far as I can tell.. "every hour"
sent1nel has quit [Remote host closed the connection]
<Eiam> hmm let me read on the rufus stuff then
<havenwood> Eiam: I'd think the supported cron syntax could get what you want, if I understand it correctly.
umby24 is now known as umby24|offline
charliesome has joined #ruby
neworder_ has joined #ruby
jack_rabbit has joined #ruby
<Eiam> okay. looking to determine what the parameters in cron are
tjohnson has quit [Quit: Connection closed for inactivity]
<Aeyrix> 0 20 * * *
<Eiam> which means every 20 minutes
<Eiam> looking for actual documentation to define it though ;)
<Aeyrix> 0 20 is every 20th hour
<Aeyrix> as in
veduardo has quit [Ping timeout: 276 seconds]
<Aeyrix> 8pm
<Aeyrix> :)
<Eiam> isn't that arbitrary
<Aeyrix> wat
<Eiam> every 20th hour from when I started running
<Aeyrix> No.
timonv has quit [Ping timeout: 264 seconds]
<Aeyrix> Every 20th hour of every day.
<Aeyrix> As in, 20:00.
<Aeyrix> 8pm.
neworder has quit [Ping timeout: 245 seconds]
neworder_ is now known as neworder
<Eiam> =0 where are these fields documented
<Aeyrix> `man cron`.
<Eiam> lol
acarpe has joined #ruby
braincrash has joined #ruby
<Eiam> * 7 * * 1-5 will be 7am m-f
x1337807x has joined #ruby
swgillespie has joined #ruby
Rickmasta has joined #ruby
swgillespie has quit [Client Quit]
psy_ has quit [Ping timeout: 276 seconds]
guardianx has joined #ruby
<havenwood> Eiam: You want to run it at zero minutes past the hour or every minute?
<Eiam> havenwood: once a day at 7am m-f
<Eiam> was what i was going for
zcm has quit [Quit: WeeChat 0.3.2]
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
swgillespie has joined #ruby
<havenwood> Eiam: You got it right, just change that first * to a 0 to run on the first minute not every minute.
<Eiam> oh
<Eiam> yeah that would be bad =0
<havenwood> Eiam: ;)
mbff has quit [Remote host closed the connection]
mistermo_ has joined #ruby
mjuszczak has quit []
<havenwood> Aeyrix: :P you mean: man 5 crontab
taiansu has joined #ruby
<havenwood> Aeyrix: I guess you can follow the cookie crumb trail from man cron.
mjuszczak has joined #ruby
sent1nel has joined #ruby
sent1nel has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
sent1nel has joined #ruby
sent1nel has quit [Remote host closed the connection]
sent1nel has joined #ruby
rawrmonstar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rawrmonstar has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
x1337807x has quit [Remote host closed the connection]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
bMalum has joined #ruby
taiansu has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
tkuchiki_ has joined #ruby
acarpe has quit [Quit: acarpe]
<agent_white> Evenin' folks
fedexo has quit [Ping timeout: 265 seconds]
sent1nel has quit [Ping timeout: 245 seconds]
<havenwood> agent_white: howdy
tkuchiki has quit [Ping timeout: 252 seconds]
rippa has joined #ruby
<agent_white> havenwood: \o
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Feyn has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
x1337807x has joined #ruby
<Eiam> havenwood: thank you
<Eiam> Aeyrix: you too
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<cwro> ok so I mostly understand what this does, but how does it do / why is it needed? A rails bug, or just I'm doing it wrong? model_name.instance_variable_set(:@route_key, 'my_model_name') ref: https://stackoverflow.com/questions/3736759/ruby-on-rails-singular-resource-and-form-for/16229154#16229154
mikecmpbll has quit [Quit: ciao.]
kinduff has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rawrmonstar has quit [Quit: Textual IRC Client: www.textualapp.com]
sigurding has joined #ruby
casadei has quit [Remote host closed the connection]
jmhmccr has joined #ruby
neworder has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.2/20150415140819]]
krz has joined #ruby
kinduff has quit [Ping timeout: 256 seconds]
bMalum has quit [Read error: Connection reset by peer]
HotCoder has joined #ruby
aspiers has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
mistermocha has quit [Remote host closed the connection]
nym has quit [Quit: Connection closed for inactivity]
Spami has quit [Client Quit]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
Rickmasta has joined #ruby
sigurding has quit [Quit: sigurding]
sigurding has joined #ruby
aspiers has joined #ruby
Mia has joined #ruby
taiansu has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
JoshGlzB_ has joined #ruby
xxneolithicxx has quit [Ping timeout: 255 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
JoshGlzBrk has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
laurentide has quit [Read error: Connection reset by peer]
HotCoder is now known as Yaboy
Yaboy is now known as HotCoder
turtil has quit [Ping timeout: 244 seconds]
taiansu has quit [Ping timeout: 256 seconds]
oldbones has quit [Ping timeout: 245 seconds]
diego2 has joined #ruby
IrishGringo has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola has quit [Ping timeout: 265 seconds]
diego2 is now known as diegoviola
<havenwood> cwro: Rails questions are best in the #RubyOnRails channel.
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nieralyte has joined #ruby
A124 has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vikaton has quit [Quit: Connection closed for inactivity]
icebourg has quit []
casadei has joined #ruby
zzxc has joined #ruby
P1RATEZ has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
deric_skibotn has joined #ruby
<cwro> k thx
casadei has quit [Ping timeout: 240 seconds]
ItSANgo__ has quit [Ping timeout: 272 seconds]
zzing has quit [Quit: Textual IRC Client: www.textualapp.com]
ItSANgo_ has joined #ruby
JoshGlzB_ has quit [Quit: Textual IRC Client: www.textualapp.com]
sent1nel has joined #ruby
scuey has joined #ruby
arietis has joined #ruby
taiansu has joined #ruby
arietis has quit [Client Quit]
bluOxigen has quit []
TinkerTyper has quit [Ping timeout: 272 seconds]
IrishGringo has quit [Remote host closed the connection]
TinkerTyper has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sent1nel has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
djbkd has quit [Quit: My people need me...]
graydot has quit [Ping timeout: 255 seconds]
zzxc has quit [Ping timeout: 246 seconds]
tagrudev has joined #ruby
aganov has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Eiam> hmm is there a way to compare true & false?
<sevenseacat> with == ?
<Eiam> hmm
baroquebobcat has joined #ruby
IrishGringo has joined #ruby
<Eiam> oh righto
<Eiam> sort_by { |a,b| b == a} =p
Channel6 has quit [Quit: Leaving]
<baweaver> >> (1..5).sort { |a,b| a <=> b }
<ruboto> baweaver # => [1, 2, 3, 4, 5] (https://eval.in/367016)
<baweaver> >> (1..5).sort { |a,b| b <=> a }
<ruboto> baweaver # => [5, 4, 3, 2, 1] (https://eval.in/367017)
<baweaver> sort is way faster by the way
<Eiam> can
kp666 has joined #ruby
<Eiam> sort doesn't work
<havenwood> Eiam: What are you trying to do?
<Eiam> {true => [], false => []}.sort {|a,b| a == b}
<Eiam> sort_by does
A205B064 has joined #ruby
BlackGear has joined #ruby
graydot has joined #ruby
<Eiam> havenwood: I grouped some tasks by completed & not completed, which are true & false, and I just wanted to sort it to force the incomplete ones to be first
<Eiam> which I ended up with as 'Hash[tasks.sort_by{|a,b| b == a}]
<baweaver> >> require 'benchmark'; a=(1..1_000_000).shuffle; Benchmark.measure { 1000.times { a.sort { |a,b| a<=>b} }.real
<ruboto> baweaver # => /tmp/execpad-5a4a3ee0ebb7/source-5a4a3ee0ebb7:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/367019)
<baweaver> guess not for here
speakingcode has joined #ruby
devoldmx has quit [Remote host closed the connection]
<baweaver> ah, typo
<baweaver> >> require 'benchmark'; a=(1..1_000_000).shuffle; Benchmark.measure { 1000.times { a.sort { |a,b| a<=>b } } }.real
<ruboto> baweaver # => undefined method `shuffle' for 1..1000000:Range (NoMethodError) ...check link for more (https://eval.in/367020)
<baweaver> >> require 'benchmark'; a=(1..1_000_000).to_a.shuffle; Benchmark.measure { 1000.times { a.sort { |a,b| a<=>b } } }.real
<ruboto> baweaver # => (https://eval.in/367023)
<havenwood> Eiam: I think I'm just confused because in your example Hash there can only be a single `false` and a single `true` key.
<Eiam> havenwood: right
A124 has joined #ruby
<havenwood> Eiam: So what's to sort?
<Eiam> havenwood: when I enumerate the hash, false ones need to come first?
<Eiam> oh
<Eiam> your point is just access it directly
<havenwood> Eiam: yup
cosmicexplorer has joined #ruby
juanpaucar has joined #ruby
creakybones has quit [Ping timeout: 250 seconds]
aspiers has quit [Ping timeout: 264 seconds]
mase-chatter has quit [Quit: Leaving]
failshell has joined #ruby
Stalkr^ has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
P1RATEZ has quit []
vdamewood has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
anaeem1 has joined #ruby
duncannz has quit [Max SendQ exceeded]
mjuszczak has quit []
failshell has quit [Ping timeout: 258 seconds]
mjuszczak has joined #ruby
deric_skibotn has quit [Ping timeout: 264 seconds]
sinkensabe has joined #ruby
sigurding has joined #ruby
Jarboe has quit []
ponga has joined #ruby
mjuszczak has quit [Ping timeout: 256 seconds]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
wallerdev has joined #ruby
<Eiam> havenwood: oh, right, this is why. cause that assumes that true or false will always exist
<Eiam> and they don't have to
ohaibbq has joined #ruby
<Eiam> by just enumerating whatever was there, I didn't have to check
<Eiam> splitting it out means I have to
TigerWolf has joined #ruby
baweaver has quit [Remote host closed the connection]
<TigerWolf> Any suggestions for installing multiple version of ruby on Infrastructure like RHEL?
jenrzzz has quit [Ping timeout: 258 seconds]
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
graydot has quit [Quit: graydot]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
_blizzy_ has joined #ruby
Jonah11_ has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
avahey has quit [Quit: Connection closed for inactivity]
last_staff has quit [Read error: Connection reset by peer]
<Radar> TigerWolf: ruby-install + chruby
lxsameer has joined #ruby
<TigerWolf> Thanks Radar
<certainty> moin
arup_r has joined #ruby
<Joufflu> anyone complete http://learnrubythehardway.org/ ?
kp666 has quit [Remote host closed the connection]
arturaz has joined #ruby
mistermo_ has quit [Ping timeout: 276 seconds]
<ponga> shevy are you there
SouL_|_ has joined #ruby
<ponga> is your first language german?
casadei has joined #ruby
wolfleemeta_____ has quit [Ping timeout: 240 seconds]
wolfleemeta_____ has joined #ruby
wolfleemeta_____ has quit [Remote host closed the connection]
wolfleemeta_____ has joined #ruby
Stalkr^ has quit [Ping timeout: 272 seconds]
casadei has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
arup_r has quit []
choke has quit [Ping timeout: 272 seconds]
_ixti_ has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
emilkarl has joined #ruby
hanmac1 has joined #ruby
arup_r has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
noonius has joined #ruby
andikr has joined #ruby
noonius has quit [Client Quit]
scuey has quit [Ping timeout: 272 seconds]
djellemah has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
choke has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
<flughafen> ponga: ruby is shevy's first language
<wasamasa> lol
GriffinHeart has joined #ruby
<ponga> no he said its C++
unshadow has quit [Quit: leaving]
sigurding has quit [Quit: sigurding]
blizzy has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
iamninja_ has joined #ruby
ismaelga has joined #ruby
codecop has joined #ruby
_blizzy_ has quit [Ping timeout: 256 seconds]
blizzy has quit [Ping timeout: 256 seconds]
wildroman2 has joined #ruby
kp666 has joined #ruby
chinmay_dd has joined #ruby
rdark has joined #ruby
j0n3 has quit [Read error: Connection reset by peer]
ismaelga has quit [Ping timeout: 264 seconds]
amclain has quit [Quit: Leaving]
fabrice31 has joined #ruby
chinmay_dd has quit []
haxrbyte has joined #ruby
haxrbyte_ has joined #ruby
wolfleemeta_____ has quit [Read error: Connection reset by peer]
wolfleemeta_____ has joined #ruby
gluten_hell_ has joined #ruby
sinkensabe has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
ki0 has joined #ruby
guardianx has quit [Remote host closed the connection]
jenrzzz has joined #ruby
lele has joined #ruby
lele is now known as Guest24
jud^ has joined #ruby
noonius has joined #ruby
oo_ has quit [Remote host closed the connection]
ki0 has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 264 seconds]
haxrbyte_ has quit [Read error: Connection reset by peer]
P1RATEZ has joined #ruby
jud has quit [Ping timeout: 245 seconds]
DerisiveLogic has joined #ruby
DerisiveLogic has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_seanc_ has quit [Quit: _seanc_]
ohaibbq has quit [Quit: Leaving...]
AlphaAtom has joined #ruby
wolfleemeta_____ has quit [Remote host closed the connection]
wolfleemeta_____ has joined #ruby
maasha has joined #ruby
doertedev has joined #ruby
<maasha> Hi
terlar has joined #ruby
<maasha> So it appears that Hash#[] is faster than Hash#key? - I find that a bit surprising.
stoffus has joined #ruby
sent1nel has joined #ruby
noonius has quit [Quit: noonius]
gagrio has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<apeiros> maasha: [] is special cased in the parser iirc
oo_ has joined #ruby
AxonetBE has joined #ruby
TheHodge has joined #ruby
<apeiros> and yes, it's a bit surprising. Array#[] is also faster than Array#at, even though #at was/is specifically for performance
<maasha> apeiros: right.
<maasha> I wonder if it is the same in rubinius.
<maasha> lemme see if I have it installed.
sent1nel has quit [Ping timeout: 272 seconds]
<maasha> hm, no.
hanmac has quit [Ping timeout: 265 seconds]
<maasha> hm, well, yes (homebrew is confusing me)
Papipo has joined #ruby
TheBrayn has joined #ruby
<maasha> apeiros: in rubinius key? is faster than [] :oP
<Mon_Ouie> It's more about the compiler than the parser though. If you try looking at the InstructionSequence, #[] compiles to a dedicated instruction opt_aref, while #at and #key? compile to the generic method call instruction
arietis has joined #ruby
<maasha> Mon_Ouie: and in rubinius? :o)
<Mon_Ouie> No idea, I don't have it installed to try it
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* maasha have high hopes for rubinius.
noonius has joined #ruby
<apeiros> I stopped having high hopes for rbx
<maasha> apeiros: how come?
<apeiros> not that you misunderstand me - it's still a nice project
timonv has joined #ruby
livathinos has joined #ruby
antgel has joined #ruby
haxrbyte has joined #ruby
Pathfinder has joined #ruby
haxrbyte_ has joined #ruby
dblessing has joined #ruby
gluten_hell_ has quit [Quit: Computer has gone to sleep.]
haxrbyte has quit [Ping timeout: 258 seconds]
hanmac has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
unshadow has joined #ruby
juanpaucar has joined #ruby
CamonZ has joined #ruby
iamninja_ has quit [Read error: Connection reset by peer]
joonty has joined #ruby
noonius has quit [Quit: noonius]
anisha has joined #ruby
juanpaucar has quit [Ping timeout: 272 seconds]
<unshadow> How would be the best way to generate all the numbers from 0000000 to 9999999, like 0000001, 0000002 etc.. untill 99999999 ?
<unshadow> I was thinking about creating 7 ranges from 0..9 then do each do for each of them, but that fells stupid
Jandre has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
<Mon_Ouie> A single range (0..9999999)
Nieralyte has quit [Quit: Nieralyte]
<unshadow> but that will ouput 0,1,2,3,4,etc... I want to start with 0000000, 0000001 etc..
<Mon_Ouie> They're the same numbers. You can just format them as a zero-padded string.
Hounddog has joined #ruby
<Mon_Ouie> >> "%05d" % 4
<ruboto> Mon_Ouie # => "00004" (https://eval.in/367079)
AlphaAtom has joined #ruby
<Mon_Ouie> The alternative is to just do the range on strings in the first place
<apeiros> unshadow: 0 is the number (Integer), 0000000 is the presentation (String)
<unshadow> but then I need to dedact or something the range from the zeros I need to padd
jgt2 has joined #ruby
<apeiros> uh, Mon_Ouie just showed you how to pad
glcx has quit [Changing host]
glcx has joined #ruby
nabn has joined #ruby
craigp has joined #ruby
AlphaAtom has quit [Client Quit]
<sevenseacat> >> "0000000".."9999999"
<ruboto> sevenseacat # => "0000000".."9999999" (https://eval.in/367081)
<sevenseacat> blargh
<apeiros> :D
<unshadow> XD
<sevenseacat> >> ("0000000".."9999999").to_a
<apeiros> >> ("0000000".."9999999").first(3)
<ruboto> sevenseacat # => (https://eval.in/367083)
<ruboto> apeiros # => ["0000000", "0000001", "0000002"] (https://eval.in/367083)
<unshadow> nice !
<flughafen> >> puts "hello sevenseacat"
<ruboto> flughafen # => hello sevenseacat ...check link for more (https://eval.in/367084)
<unshadow> Thanks apeiros !
bronson has quit [Ping timeout: 256 seconds]
<flughafen> unshadow: apeiros requires worship. not just a meer thanks
noonius has joined #ruby
noonius has quit [Client Quit]
diegoviola has quit [Quit: WeeChat 1.2]
thatslifeson has quit [Remote host closed the connection]
<apeiros> I like meer too
lxsameer has quit [Quit: Leaving]
<unshadow> all bow the mighty string range
P1RATEZ has quit []
ki0 has joined #ruby
AlphaAtom has joined #ruby
clauswitt has joined #ruby
shuber_ has quit [Remote host closed the connection]
TigerWol_ has joined #ruby
iamninja_ has joined #ruby
AlphaAtom has quit [Client Quit]
<adaedra> <flughafen> unshadow: apeiros requires worship. not just a meer thanks
<adaedra> apeiros: are you starting a religion?
<flughafen> apeirosism hah
ki0 has quit [Ping timeout: 246 seconds]
TigerWolf has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
TigerWol_ has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
noonius has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
ponga has quit [Remote host closed the connection]
vdamewood has quit [Ping timeout: 246 seconds]
AlphaAtom has joined #ruby
noonius has quit [Client Quit]
wolfleemeta_____ has quit [Quit: (null)]
wolflee has joined #ruby
cosmicexplorer has quit [Ping timeout: 250 seconds]
livathinos has quit [Ping timeout: 272 seconds]
Obfuscate has quit [Ping timeout: 256 seconds]
mjuszczak has quit [Ping timeout: 252 seconds]
Jandre has joined #ruby
Jandre has quit [Changing host]
Jandre has joined #ruby
gluten_hell_ has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
joshbamboo1 has joined #ruby
arietis has quit [Quit: Leaving.]
dumdedum has joined #ruby
mjuszczak has joined #ruby
sent1nel has joined #ruby
wallerdev has quit [Quit: wallerdev]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
WildBamboo-Josh has quit [Ping timeout: 258 seconds]
joshbamboo1 has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
joshbamboo1 has joined #ruby
<shevy> apeiros lol
<shevy> meer thanks - praise the oceans!
decoponio has joined #ruby
vtunka has joined #ruby
sent1nel has quit [Ping timeout: 255 seconds]
kalusn has joined #ruby
mjuszczak has quit [Ping timeout: 245 seconds]
haxrbyte has quit [Ping timeout: 252 seconds]
Obfuscate has joined #ruby
arup_r has quit [Remote host closed the connection]
antgel has joined #ruby
websoftwarez has joined #ruby
websoftwarez has quit [Changing host]
websoftwarez has joined #ruby
haxrbyte has joined #ruby
visof has joined #ruby
<visof> hi guys
tvw has joined #ruby
livathinos has joined #ruby
c0m0 has joined #ruby
<visof> i'm scrapping a web page which contain html tags which is filled using js, so can i scrap this?
<Darkwater> you'll have to run the js
selu has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
ponga has joined #ruby
chipotle has joined #ruby
choke has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
arup_r has joined #ruby
taiansu has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
zotherst2pidguy has joined #ruby
wallerdev has joined #ruby
turtil has joined #ruby
<Pathfinder> visof: You can scrap the rss instead if they do provide one...that would save you all that trouble :)
guardianx has joined #ruby
msgodf has joined #ruby
choke has joined #ruby
msgodf has quit [Remote host closed the connection]
msgodf has joined #ruby
hmnhf has joined #ruby
ponga has quit [Remote host closed the connection]
<zotherst2pidguy> is it just me, or netcat is a lovely name for a tool!
aryaching has joined #ruby
arup_r has quit [Remote host closed the connection]
<michael_mbp> hey
DaniG2k has joined #ruby
<michael_mbp> say I've got a hash, { :foo => '...' }
<michael_mbp> is there anyway to do some processing in the value there?
<michael_mbp> I'm in a sitation where I want to do it right there.
bruno- has joined #ruby
<apeiros> >> {foo: 1+1}
<ruboto> apeiros # => {:foo=>2} (https://eval.in/367097)
<apeiros> it's all code. so yes, sure you can.
ki0 has joined #ruby
<michael_mbp> will try wrapping it in a lambda
<apeiros> but it'll be executed at definition time. if you want at access time, you need something else.
<apeiros> yes, hash of procs is a way
<michael_mbp> that works...
echosystm has joined #ruby
<echosystm> in MRI, are all blocking calls capable of being "multi-threaded" ?
<apeiros> no
<michael_mbp> apeiros: creating an object tree within a config blog.
<apeiros> @ echosystm
<echosystm> eg. if i fire up two threads doing some openssl stuff that takes a long time, will they run in parallel?
<apeiros> oh, wait, that knowledge might be deprecated
<apeiros> in earlier rubies, native calls needed to manually pass control to the scheduler
<echosystm> im really confused about how one might write a concurrent application in ruby
<apeiros> that might actually have changed
<echosystm> basically what im getting so far, is that almost no one does that
<apeiros> openssl has some nasty global state
<apeiros> also ruby only runs one thread at a time. it does concurrency, not parallelism.
<apeiros> so you'll generally only see an improvement on IO bound problems, not CPU bound ones.
bruno- has quit [Ping timeout: 250 seconds]
<echosystm> yeah
<apeiros> for that you need to use either jruby (which does parallelism), or use forks.
<echosystm> all i want to know is that ruby is comparable to nodejs, for example
quimrstorres has joined #ruby
ki0 has quit [Ping timeout: 276 seconds]
<apeiros> nodejs is afaik also not thread capable. but my node knowledge is limited.
<echosystm> ok so
<apeiros> s/also//
leafybasil has quit [Remote host closed the connection]
<echosystm> how would i for example write a bit of software that receives web requests and also does some background stuff at the same time, but the background jobs could be turned off via calls to the web api?
<apeiros> with threads
* zotherst2pidguy will try to remmber apeiros: ruby only runs one thread at a time, it does concurrency, not parallelism. improvement on IO bount problems, not CPU bound ones.
quimrstorres has quit [Remote host closed the connection]
<echosystm> ok say i have a rack app using cuba
<echosystm> it has a start API endpoint and a stop endpoint
Jackneill has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
<echosystm> i need to first make sure my rack server uses threads and not processes, right?
<zotherst2pidguy> echosystem checkout puma
<flughafen> apeiros: you should change the topic to say "you can't ask a question until you've prayed to apeiros"
<apeiros> echosystm: sry, gotta do work
<echosystm> ok
<zotherst2pidguy> echosystem http://puma.io/
<echosystm> for anyone else...
<echosystm> so i've got my multi-threaded rack server running
<echosystm> how do i create a polling timer that runs a function every 10 seconds?
<zotherst2pidguy> echosystm can you share the code on github?
wolfleemeta has joined #ruby
echosystm_ has joined #ruby
<echosystm_> what's the ruby equivalent of setTimeout or setInterval in javascript?
<echosystm_> ugh disconnected
<zotherst2pidguy> echosystem http://puma.io/
<echosystm_> so i've got my multi-threaded rack server running
<zotherst2pidguy> echosystm can you share the code on github?
<echosystm_> how do i create a polling timer that runs a function every 10 seconds?
echosystm has quit [Read error: Connection reset by peer]
<echosystm_> what's the ruby equivalent of setTimeout or setInterval in javascript?
wolflee has quit [Read error: Connection reset by peer]
<apeiros> echosystm_: Thread.new do loop do sleep(10); do_stuff; end; end
<apeiros> note that threads by default die silently if an exception occurs
quimrstorres has joined #ruby
<echosystm_> ok how do you make them not die... silently?
<apeiros> also note that there's no direct equivalent to setTimeout/setInterval, since javascript *does not* do concurrency
<apeiros> echosystm_: Thread.abort_on_exception = true # raise all exceptions in the main thread
<echosystm_> i see
<apeiros> or begin/rescue/end around your code in your thread
<echosystm_> ok thanks!
<echosystm_> this is all i needed to know
<echosystm_> oh wait one other thing
vtunka has quit [Quit: Leaving]
<echosystm_> how do you stop a thread?
<apeiros> I doubt it is…
<zotherst2pidguy> lol
<apeiros> sleep stops a thread
<apeiros> sleep() stops it until it is woken up from outside
<apeiros> sleep(N) stops it for N seconds
krz has quit [Ping timeout: 276 seconds]
<echosystm_> i mean how do i kill a thread from the outside?
jsrn has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
<echosystm_> how does one thread stop another one, permanently
<apeiros> don't. do. that.
<zotherst2pidguy> get the process and kil()
<apeiros> that's why I said I doubt you know all you need to know.
<apeiros> killing a thread from outside is a horribly bad idea.
<echosystm_> okie doke
<zotherst2pidguy> echosystm_ its a good idea to share your code
jsrn has joined #ruby
<echosystm_> i havent written any code yet
<echosystm_> but i have enough info now to play around
<echosystm_> thanks!
<zotherst2pidguy> ok, why cuba again?
doobi-sham_ has quit [Remote host closed the connection]
<apeiros> echosystm_: note that it's exceptionally easy to shoot your foot when writing concurrent code
<apeiros> JS sidesteps that by not allowing concurrency in the first place
<echosystm_> yeah i know mano, i write network codes for the javas for years
<apeiros> and you kill threads from outside in java? o0
<apeiros> it's the same bad idea there too…
ponga has joined #ruby
<echosystm_> nah, i set some thing to tell it to kill itself
<echosystm_> the question was academic, i suppose
<ponga> im looking for a ruby conference video where it had "if whitespace had memory" "homeopathic code"
* zotherst2pidguy seppuku
<shevy> wheeee it's ponga
<ponga> shevy: can you remember the youtube video link
<shevy> no idea which video you mean though
<echosystm_> ok thanks guys!
<flughafen> shevy: mongoponga
<echosystm_> im out
<echosystm_> appreciate the help
echosystm_ has quit [Quit: leaving]
<ponga> flughafen: i seem to get this kind of mockery over freenode
<ponga> in other channel there's a guy who enjoys ponga! on me
<ponga> expecting me to reply "pinga!"
<zotherst2pidguy> can a single torrent be used to add rubyconf files?
<flughafen> ponga: not nearly as bad as getting BER jokes every day from shevy ;)
nii236 has quit [Quit: WeeChat 1.1.1]
<zotherst2pidguy> ping ponga
zotherst2pidguy has quit [Quit: leaving]
<ponga> oh ya i found it!
<ponga> this is it sir
postmodern has quit [Quit: Leaving]
zotherstupidguy has joined #ruby
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
<zotherstupidguy> anyone seen the classic japanese movie "harakiri" 1962 ?
<ponga> https://youtu.be/4_RJu_TrqO0?t=29200 more accurate time
withnale_ has joined #ruby
SuperTaz has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
iasoon has joined #ruby
ArchRogem has joined #ruby
<shevy> ponga ok I'll watch it as well
<ponga> shevy: its about less memory, less code
<ponga> totally ruby RELEVANT
craigp has quit [Ping timeout: 272 seconds]
kaspernj has joined #ruby
chrissonar has joined #ruby
<shevy> lol
<zotherstupidguy> no code faster than no code.
<shevy> "no code is faster than no code"
<shevy> hah
<zotherstupidguy> lol
<zotherstupidguy> :D
<shevy> almost at the same time
<zotherstupidguy> great minds think a like
<shevy> yeah
<zotherstupidguy> :P
<shevy> except that you stole my mind!!!
<zotherstupidguy> yeah i hit it first :)
iasoon has quit [Ping timeout: 265 seconds]
<shevy> well, I'd still want a squeak-like optional VM for ruby
<zotherstupidguy> i dont knw wht that is, link?
wallerdev has quit [Quit: wallerdev]
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga> "sometimes its faster"
<ponga> classic
arup_r has joined #ruby
<zotherstupidguy> the video is kinda great :D
<shevy> ok next guy has invisible drums
<zotherstupidguy> it would be nice to have arron.clone lol
iasoon has joined #ruby
<shevy> zotherstupidguy for instance like this pic http://blog.ofset.org/public/hilaire/squeak/squeakImageState.png
leafybasil has joined #ruby
<shevy> You can see the smalltalk code in one widget: self doesParentExist ifTrue:
juanpaucar has joined #ruby
<shevy> here again, nevermind the german text but the picture: http://www.od.shuttle.de/evb-1/squeakdoc/node3.html
<shevy> it actually reminds me of shoes a bit
edwinvdgraaf has joined #ruby
gluten_hell__ has joined #ruby
bluOxigen has joined #ruby
<AxonetBE> Hi, I have problems with my application starting usign passenger: http://www.nestor-nestor.com/
linduxed has quit [Ping timeout: 240 seconds]
<AxonetBE> I should have ruby version 2.2 ( usign chruby ) but randomly he is loading version 1.9.3 also with the wrong GEM_HOME variable
failshell has joined #ruby
denver has joined #ruby
idafyaid has quit [Ping timeout: 265 seconds]
iasoon has quit [Ping timeout: 276 seconds]
juanpaucar has quit [Ping timeout: 246 seconds]
hmnhf has quit [Ping timeout: 256 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
gluten_hell_ has quit [Ping timeout: 252 seconds]
<zotherstupidguy> AxonetBE use bundler
<AxonetBE> zotherstupidguy: I use bundler
<zotherstupidguy> ok, include ruby version in your Gemfile
hectortrope has joined #ruby
hectortrope has quit [Changing host]
hectortrope has joined #ruby
<adaedra> AxonetBE: maybe a problem with passenger's environment. How do you run it?
failshell has quit [Ping timeout: 256 seconds]
<zotherstupidguy> like tht source "https://rubygems.org"
<AxonetBE> zotherstupidguy: ok I added ruby "2.2.0" to my gemfile
<AxonetBE> but the strange thing is that is is randomly this error
craigp has joined #ruby
<AxonetBE> if I know will run cap production restart it will work
hectortrope has quit [Client Quit]
<AxonetBE> adaedra: with deploy user `which passenger`gives me /usr/local/bin/passenger
<AxonetBE> if I then do `chruby 2.2` and run `which passenger` returns /home/deploy/.gem/ruby/2.2.0/bin/passenger
hectortrope has joined #ruby
taiansu has joined #ruby
<adaedra> You should ensure the chruby is correctly issued in your initialization script, whatever it is
<AxonetBE> adaedra: initialization script of what?
<adaedra> Your passenger
<adaedra> Whatever launches it
quimrstorres has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
krz has joined #ruby
wookiehangover has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
taiansu has quit [Ping timeout: 258 seconds]
aswen has joined #ruby
oo_ has joined #ruby
Igorshp has joined #ruby
<zotherstupidguy> AxonetBE so you do bundler update without any errors, and when you do bundler exec ... , you get an error? whats the error you get?
GriffinHeart has quit [Remote host closed the connection]
<AxonetBE> zotherstupidguy: no I use capistrano to deploy and sometimes it works sometimes it fails
<AxonetBE> also on server reboot sometimes app not starting, sometimes it is
<jhass> that sounds extremely unlikely
<zotherstupidguy> i never used capistrano, but is there some kind of clean this mess script?
hmnhf has joined #ruby
bluOxigen has left #ruby [#ruby]
lordkryss has joined #ruby
<jhass> do you maybe have two services competing for port 80 or something?
tubuliferous has quit [Ping timeout: 265 seconds]
<zotherstupidguy> jhass how can we know that? portscan or process check?
<jhass> on systemd journalctl -ab with a good and a failed boot, on other systems it needs some more log fishing I guess
sdothum has joined #ruby
<zotherstupidguy> /var/log ...
<zotherstupidguy> but maybe netstat -tulpn | grep --color :80
<jhass> no
mduk has quit [Quit: WeeChat 0.3.7]
noonius has joined #ruby
<jhass> there can't be two services/processes listen to the same port
iamninja_ has quit [Read error: Connection reset by peer]
hmnhf_ has joined #ruby
<jhass> the competition would be who starts and binds to it first, the other one would fail after that
hmnhf has quit [Ping timeout: 272 seconds]
<zotherstupidguy> try fuser 80/tcp
<heftig> jhass: well, linux has SO_REUSEPORT which will round-robin incoming connections
DEA7TH has joined #ruby
<jhass> wait, really? I always thought it's only to evade the rebind timeout thingy
<zotherstupidguy> heftig so what does that mean, more than process for the same port?
<heftig> jhass: that's SO_REUSEADDR
quimrstorres has joined #ruby
<heftig> zotherstupidguy: multiple threads can bind, listen, and accept from the same port
<jhass> oh, you see how much of that I do daily :P
<heftig> zotherstupidguy: threads need not be in the same process
<jhass> anyway, doubt apache/nginx use that
DLSteve has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<zotherstupidguy> heftig each pid is for one process, inside the process will have many threads? grrrrrrrrrr crazy theards and concurrency talk again
<heftig> i was generalizing
<heftig> each process has at least one thread
oo_ has quit [Remote host closed the connection]
<zotherstupidguy> so threads dont get pids
<zotherstupidguy> a process gets a pid
oo_ has joined #ruby
<jhass> on linux posix threads get a pid
<zotherstupidguy> jhass that makes sense
aryaching has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
aryaching has quit [Client Quit]
<zotherstupidguy> fuser 80/tcp might return more than one pid
krz has joined #ruby
hmnhf__ has joined #ruby
<jhass> yes, under the conditions heftig mentioned above then (multiple bind calls from the same process or SO_REUSEPORT set)
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
wookiehangover has joined #ruby
<jhass> that's however still not what I was suggesting
mduk has joined #ruby
noonius has quit [Quit: noonius]
haxrbyte has quit [Remote host closed the connection]
ponga has joined #ruby
haxrbyte has joined #ruby
ki0 has joined #ruby
mtakkman has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
ki0 has quit [Read error: Connection reset by peer]
ponga has quit [Client Quit]
n008f4g_ has quit [Ping timeout: 245 seconds]
wolfleemeta has quit [Remote host closed the connection]
ki0 has joined #ruby
sent1nel has joined #ruby
wolfleemeta has joined #ruby
hmnhf_ has quit [Ping timeout: 272 seconds]
<heftig> jhass: depends on how you look at it. what getpid returns, the kernel calls 'tgid', and gettid gets the 'pid'
sigurding has quit [Quit: sigurding]
<jhass> are there separate namespaces for them though?
<heftig> nope
aryaching has joined #ruby
<heftig> it's just a bit of historical baggage that show the system wasn't originally designed for multithreading
A205B064 has quit [Ping timeout: 258 seconds]
sent1nel has quit [Ping timeout: 255 seconds]
turtil has quit [Ping timeout: 252 seconds]
msgodf has quit [Ping timeout: 258 seconds]
ArchRogem has joined #ruby
conta has joined #ruby
iamninja_ has joined #ruby
vtunka has joined #ruby
Azure has quit [Quit: Oops.]
Azure has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ebonics has quit [Remote host closed the connection]
ebonics has joined #ruby
Timba-as has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Rickmasta has joined #ruby
mtakkman has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 264 seconds]
Juanchito has joined #ruby
bruno- has joined #ruby
hmnhf__ has quit [Read error: Connection reset by peer]
emilkarl has quit [Quit: emilkarl]
hmnhf__ has joined #ruby
jack_rabbit has joined #ruby
msimkins has quit [Ping timeout: 252 seconds]
jtdowney has joined #ruby
sigurding has joined #ruby
doodlehaus has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
yaw has joined #ruby
yaw has left #ruby [#ruby]
cats has joined #ruby
SouL_|_ has quit [Ping timeout: 276 seconds]
msgodf has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
noonius has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jack_rabbit has quit [Ping timeout: 245 seconds]
Xoro has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
Schwarzbaer_ has joined #ruby
jack_rabbit has joined #ruby
_blizzy_ has joined #ruby
byprdct has joined #ruby
cajone has left #ruby [#ruby]
ndrei has joined #ruby
Papipo has quit [Remote host closed the connection]
<shevy> "Snake lets you use Python to its fullest extent to write vim plugins"
Papipo has joined #ruby
emilkarl has joined #ruby
noonius has quit [Quit: noonius]
agent_white has quit [Quit: gnight]
TigerWolf has joined #ruby
guardianx has quit [Read error: Connection reset by peer]
bruno- has quit [Quit: Lost terminal]
quimrstorres has joined #ruby
platzhirsch has joined #ruby
bruno- has joined #ruby
rodfersou has joined #ruby
vikaton has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
<gregf_> those should be 'more readable' and usable than vim macros :/
ebbflowgo has joined #ruby
gert7 has joined #ruby
sami has left #ruby [#ruby]
ebbflowgo has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
ebbflowgo has joined #ruby
fabrice31 has joined #ruby
bruno- has quit [Quit: Lost terminal]
rkazak has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
Xoro has joined #ruby
jack_rabbit has quit [Ping timeout: 245 seconds]
catsoup has left #ruby [#ruby]
gert7 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
lxsameer has joined #ruby
<shevy> hehe
<shevy> well, the vim extension language isn't a thing of beauty
phutchins has joined #ruby
chinmay_dd has joined #ruby
yqt has joined #ruby
serivich has joined #ruby
yqt has quit [Read error: Connection reset by peer]
yqt has joined #ruby
doodlehaus has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 258 seconds]
juanpaucar has joined #ruby
lxsameer has left #ruby ["Leaving"]
bruno- has joined #ruby
lordcalvert has joined #ruby
juanpaucar has quit [Ping timeout: 246 seconds]
bronson has joined #ruby
<lordcalvert> How can I check if an array of dates (days) contains 3 continuous days?
barkerd427 is now known as zz_barkerd427
<apeiros> lordcalvert: use each_cons(3)
<apeiros> or rather, each_cons(3).find or .any?
reinaldob has joined #ruby
<jhass> potentially .sort first
ndrei has joined #ruby
jottr has quit [Read error: Connection reset by peer]
jottr has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
<lordcalvert> apeiros, jhass: thanks
<ebonics> damn thats a convenient method haha
<apeiros> ebonics: when you need it, it totally is :)
noonius has joined #ruby
<ebonics> >> 1.upto(5).cons(2) { |e| puts e }
<ruboto> ebonics # => undefined method `cons' for #<Enumerator: 1:upto(5)> (NoMethodError) ...check link for more (https://eval.in/367187)
<ebonics> >> 1.upto(5).each_cons(2) { |e| puts e }
<ruboto> ebonics # => 1 ...check link for more (https://eval.in/367188)
doodlehaus has joined #ruby
<ebonics> >> b = []; 1.upto(5).each_cons(2) { |e| b << e }; b
<ruboto> ebonics # => [[1, 2], [2, 3], [3, 4], [4, 5]] (https://eval.in/367189)
<apeiros> uhm, just to_a
<apeiros> >> 1.upto(5).each_cons(2).to_a
<ruboto> apeiros # => [[1, 2], [2, 3], [3, 4], [4, 5]] (https://eval.in/367190)
<ebonics> o..
Hijiri has quit [Ping timeout: 276 seconds]
reinaldob has joined #ruby
<ebonics> >> 1.upto(5).each_cons(2).to_a.each_cons(2).to_a
<ruboto> ebonics # => [[[1, 2], [2, 3]], [[2, 3], [3, 4]], [[3, 4], [4, 5]]] (https://eval.in/367191)
<jhass> ?pry ebonics
<ruboto> ebonics, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
Hijiri has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chinmay_dd has quit []
<lordcalvert> aperios: So what is the easiest way to check if the 3 dates from each_cons() are connected? I did it like this: http://pastie.org/private/wfl5lmdbypcs92lkatinow
jimms has joined #ruby
hectortrope has quit [Quit: WeeChat 0.4.2]
hmnhf__ has quit [Ping timeout: 264 seconds]
<apeiros> lordcalvert: pro-tip - use tab completion for nicks.
<lordcalvert> apeiros: oops
<apeiros> lordcalvert: a) convert all strings to dates first
<jhass> .map {|date| Date.strptime("%Y-%m-%d", date) }.each_cons(3).find {|dates| dates[0]+2 == dates[1]+1 == dates[2] } ?
<apeiros> b) what jhass just showed, just that I'd use 3 variables instead of an array
<jhass> date_a, date_b, date_c?
ldnunes has joined #ruby
<apeiros> .find { |a, b, c| a+2 == c && b+1 == c }
<lordcalvert> apeiros: Why?
<apeiros> why what?
<apeiros> jhass: yours actually won't work
<jhass> :(
<apeiros> (true == dates[2])
<jhass> yeah, right
charliesome has quit [Quit: zzz]
<jhass> {|start, middle, end| start, middle = start+1, middle+1; start == end && middle == end } ? not too pretty
<apeiros> end is a keyword
<jhass> er, start+2 of course
ponga has joined #ruby
<jhass> yeah
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
nabn has quit [Ping timeout: 252 seconds]
<jhass> so I'm still curious about the variable names you choose :P
<apeiros> in this case, I'd be fine with a,b,c
<lordcalvert> Sometimes I need to check up to 10 dates, so using variables seems messy
<apeiros> dates = …map…; dates.each_cons(3).find_all { |a,b,c| # IMO obvious enough that they're dates
aganov has quit [Read error: Connection reset by peer]
<jhass> nest .each_cons(2).all?
<apeiros> but else I'd prolly go with dateN
sdothum has joined #ruby
<apeiros> lordcalvert: write a method
<apeiros> consecutive(*values)
<apeiros> and do the each_cons(2) there as jhass said
<jhass> might map.with_index first
<apeiros> what for?
aganov has joined #ruby
<jhass> yeah, I realized the moment I pressed enter :D
<jhass> skipped breakfast :/
<apeiros> the larger N in "find N consecutive dates", the more potential for optimizing, though.
<apeiros> but I'd go with each_cons(N) + each_cons(2) until that code is proven to be a bottleneck
qwertme has joined #ruby
reinaldo_ has joined #ruby
Feyn has quit [Ping timeout: 250 seconds]
reinaldob has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
idafyaid has joined #ruby
jenrzzz has joined #ruby
rrichardsr3 has joined #ruby
serivichi has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sent1nel has joined #ruby
<lordcalvert> I ended up doing this: http://pastie.org/private/puurl1ddgxfoirdgcxivgw
tkuchiki has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 272 seconds]
serivich has quit [Ping timeout: 272 seconds]
<apeiros> interesting idea for consecutive?
<hanmac1> another idea for consecutive would be to check the date difference between last and first, and compare it with the array size ;P
sent1nel has quit [Ping timeout: 276 seconds]
<apeiros> hanmac1: insufficient
<jhass> no, could have [2015-01-01, 2015-01-01, 2015-01-03]
<apeiros> [1,19,32,999,5]
Feyn has joined #ruby
<apeiros> would be valid with that check, but not fulfill the desired contract
kalusn has quit [Remote host closed the connection]
<hanmac1> apeiros: if its already sorted it might does what it should
<apeiros> hanmac1: still not
<apeiros> [1,1,1,1,5]
<apeiros> or any sorted combination with duplicates
devoldmx has joined #ruby
<hanmac1> yeah it also might not work for duplicates ... depending if they are possible in the data
reinaldo_ has quit [Read error: Connection reset by peer]
joelataylor has joined #ruby
zz_barkerd427 is now known as barkerd427
devoldmx has quit [Ping timeout: 246 seconds]
womble has joined #ruby
reinaldob has joined #ruby
kalusn has joined #ruby
rbennacer has joined #ruby
reprazent has joined #ruby
shazaum has joined #ruby
banister has joined #ruby
doodlehaus has quit [Remote host closed the connection]
sandelius has joined #ruby
sankaber has joined #ruby
<jokke> hi
<jokke> i'm trying to set up rack-cors
pandaant has quit [Remote host closed the connection]
<jokke> but the allow origin header isn't added
<jokke> i set debug to true and defined a logger
codecop has quit [Remote host closed the connection]
<jokke> and it logs the request headers which show the correct origin
<jokke> the response header contains X-Rack-Cors: preflight-hit; no-origin
yqt has quit [Ping timeout: 245 seconds]
ponga has quit [Remote host closed the connection]
<jokke> ooh
<jokke> ok
<jokke> never mind
<jokke> with https:// it works
codecop has joined #ruby
yqt has joined #ruby
ponga has joined #ruby
codecop has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 252 seconds]
failshell has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> oh, lordcalvert, that Array(values).flatten is pointless. bad even.
doodlehaus has joined #ruby
<apeiros> *values guarantees that values is an array
hoov has joined #ruby
<apeiros> and any user who needs to pass in an array can really just be bothered to put that * in front of their argument
<jokke> hm on production it doesn't work
<apeiros> last but not least: do not use Date.parse. that basically states "I don't know what format it uses, I'll let ruby guess and hope for the best"
<apeiros> use Date.strptime instead.
<apeiros> as a bonus, it's faster.
<apeiros> >> require 'date'; Date.strptime('2015-01-01', '%F')
<ruboto> apeiros # => #<Date: 2015-01-01 ((2457024j,0s,0n),+0s,2299161j)> (https://eval.in/367221)
<lordcalvert> apeiros: Okay, thanks
arup_r_ has joined #ruby
<apeiros> and: !!@dates.sort.each_cons(n).find --> @dates.sort.each_cons(n).any?
arup_r has quit [Ping timeout: 250 seconds]
<apeiros> any? returns true/false
<apeiros> and also short-circuits on first find
arup_r_ has quit [Client Quit]
<apeiros> personally, I'd move the parsing into a separate constructor too…
<apeiros> def self.from_strings(*strings, format: "%F"); new(*strings.map { |string| Date.strptime(string, format) }); end
failshell has quit [Ping timeout: 272 seconds]
doodlehaus has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
Igorshp has joined #ruby
<hanmac1> i tryed to use curry for that date transforming but the parameter are in the wrong order for me :/
marr has joined #ruby
<hanmac1> shevy & apeiros: let us make a rcurry method that does works like curry but with reversed parameters ;P
reinaldob has quit [Read error: Connection reset by peer]
rbennacer has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
<shevy> please hanmac1
<shevy> I have not much sanity to lose
<shevy> but I wish to retain it
<hanmac1> ruby needs more curry ;P
<apeiros> shevy: just give in already
<apeiros> sanity is overrated
quimrstorres has quit [Remote host closed the connection]
vtunka has quit [Quit: Leaving]
ki0 has quit [Remote host closed the connection]
NiVanc has joined #ruby
hectortrope has joined #ruby
oo_ has quit [Remote host closed the connection]
ki0 has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maasha has quit [Ping timeout: 246 seconds]
<NiVanc> can I choose a default value for a hash when using the implicit form?
<apeiros> "the implicit form"?
<apeiros> you mean the literal form? sadly no.
<canton7> {}, I assume?
<jhass> I bet on "no" (and on implicit form == literal)
<jhass> you can set it afterwards
<apeiros> Hash.new(default).merge({literal: "form"}) is what I usually use
<jhass> }.tap do |h| h.default = 123; end;
<NiVanc> menu = { "steak" => 25 }
<shevy> apeiros yeah one day perhaps - I may lose sanity and learn python, if only to compare ruby
<apeiros> using #default= is probably less expensive.
<NiVanc> menu.default = 0 like this then?
<apeiros> NiVanc: that's a literal. so answers above apply.
<apeiros> yes
<NiVanc> ok thanks
anaeem1 has quit [Remote host closed the connection]
qwertme has joined #ruby
linduxed has joined #ruby
pico-pete has quit []
ismaelga has joined #ruby
thiagovsk has joined #ruby
djellemah_ has joined #ruby
reinaldob has joined #ruby
<hanmac1> shevy i posted my rcurry idea: https://bugs.ruby-lang.org/issues/11161 let us see what will happen with it ;P
NiVanc has left #ruby [#ruby]
linduxed has quit [Client Quit]
failshell has joined #ruby
dstarh has joined #ruby
failshell has quit [Remote host closed the connection]
aep has quit [Ping timeout: 264 seconds]
Timba-as has quit [Quit: Be back later ...]
djellemah has quit [Ping timeout: 256 seconds]
thatslifeson has joined #ruby
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
ponga has quit [Remote host closed the connection]
thatslifeson has quit [Read error: Connection reset by peer]
thatslif_ has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
failshell has joined #ruby
JDiPierro has joined #ruby
Guest7 has joined #ruby
taiansu has joined #ruby
codecop has joined #ruby
codecop_ has joined #ruby
yaw has joined #ruby
kobain has joined #ruby
codecop has quit [Remote host closed the connection]
codecop_ has quit [Remote host closed the connection]
reinaldob has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DaniG2k has joined #ruby
reinaldob has joined #ruby
arup_r has joined #ruby
slash_nick has joined #ruby
User458764 has joined #ruby
chattsm has joined #ruby
juanpaucar has joined #ruby
ponga has joined #ruby
but3k4 has joined #ruby
bayed has joined #ruby
slawrence00 has joined #ruby
ddv has joined #ruby
nabn has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
Criten has left #ruby [#ruby]
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
mradmacher has joined #ruby
crazydiamond has joined #ruby
arup_r has quit [Remote host closed the connection]
ddv has joined #ruby
ddv has quit [Changing host]
<shevy> sanity
<shevy> where have you gone
<adaedra> into /dev/null
Timba-as has joined #ruby
bmurt has joined #ruby
<jhass> the real question is where did it come from so we can get a new one?
sgambino has joined #ruby
reinaldo_ has joined #ruby
arup_r has joined #ruby
iamjarvo has joined #ruby
<adaedra> from /dev/random
iamjarvo has quit [Max SendQ exceeded]
* apeiros comes from /dev/fortune_cookies
<shevy> hmm
<jhass> oh, we totally should write a kernel driver to provide that
iamjarvo has joined #ruby
<shevy> what devils are spawned from /dev
chattsm has quit [Quit: chattsm]
<adaedra> lp0 on fire
tkuchiki has joined #ruby
gambl0re has quit [Ping timeout: 272 seconds]
Ropeney has joined #ruby
yfeldblum has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
quimrstorres has joined #ruby
vdamewood has joined #ruby
qwertme has joined #ruby
griffindy has joined #ruby
<hanmac1> shevy: "linux - the operating system with the ten thousand daemons" ;P
lordkryss has quit [Quit: Connection closed for inactivity]
dopie has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
<adaedra> *-ten thousand daemons +systemd
reinaldo_ has quit [Read error: Connection reset by peer]
Igorshp has quit [Remote host closed the connection]
reinaldob has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
zzxc has joined #ruby
zzxc has joined #ruby
<hanmac1> adaedra: its a cannibalistic "survive of the fittest" in a highlander like "there can be only one" ;P
<adaedra> hehe
Igorshp has joined #ruby
<hanmac1> i think that will be cyclic ... now systemd is absorbing features, but once its big enough it will collide it itself and then explode like a supernova and then there will be many small daemons again
<adaedra> cycle of Linux
<adaedra> meanwhile, on the BSD world, everything seems stable.
pwattstbd has joined #ruby
chinmay_dd has joined #ruby
ponga has quit [Remote host closed the connection]
Anon12323 has joined #ruby
jerius has joined #ruby
Anon12323 has quit [Client Quit]
<shevy> oh man
<shevy> systemd
<shevy> is systemd integrated into the linux kernel?
<failshell> at the rate its adding features, it will replace the kernel eventually
<hanmac1> shevy no but systemd has its own kernel soon ;P
<jhass> hanmac1: you confuse systemd the project with the daemon
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> the systemd project hosts many small daemons, one of them being an init daemon named systemd
<adaedra> ssssh, how can we troll subjectively with facts.
<adaedra> :)
bruno- has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<hanmac1> hm i once found something like that ;p http://distrowatch.com/weekly.php?issue=20150330#community " The systemd Project Forks the Linux Kernel"
rbennacer has joined #ruby
simpyll has joined #ruby
<adaedra> This is strange
<dopie> anyone here use bitbucket?
<hanmac1> hm i once did found a non-april-fool news like that
ismaelga has quit [Remote host closed the connection]
<adaedra> I keep saying mm/dd/yyyy format is shit
<adaedra> and "30 March 2015" disturbs me somehow
<adaedra> dopie: a question?
Papipo has quit [Ping timeout: 246 seconds]
bigmac has joined #ruby
ArchRogem has joined #ruby
speakingcode has quit [Ping timeout: 265 seconds]
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
reinaldo_ has joined #ruby
<shevy> adaedra I love dd/mm/yyyy
[k- has joined #ruby
Papipo has joined #ruby
<shevy> I also prefer the longer variants but I am fine either way
<shevy> 30.03.2015
<shevy> 30 Mar 2015
<shevy> 30 March 2015
<adaedra> It's like the european standard
hmnhf__ has joined #ruby
Cust0sLim3n has quit [Ping timeout: 276 seconds]
<shevy> well
quimrstorres has quit [Remote host closed the connection]
<shevy> yyyy/mm/dd is also semi-ok
<adaedra> yyyy-mm-dd is iso standard
<shevy> but to have things like month first, then day, then year
<shevy> or year, then day, then month
<shevy> that would make me totally crazy
<adaedra> Don't go to America then :˚
<adaedra> s/America/USA/
fgo has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
GriffinHeart has joined #ruby
<mwlang> why choose to use ruby-install instead of rvm? What’s the gain?
<adaedra> Not sure you can compare those
baweaver has joined #ruby
<mwlang> best I can tell it’s most useful in a virtual server setting where you you want “just one ruby” installed
reinaldob has quit [Ping timeout: 264 seconds]
rbennacer has quit [Remote host closed the connection]
doodlehaus has joined #ruby
<adaedra> now let me check, because there are two projects with almost the same name out there
<nickjj> mwlang, if you just want 1 ruby i'd look into alternative means of getting ruby on the system
<adaedra> no, here it's ruby-build.
RegulationD has joined #ruby
Rollabunna has joined #ruby
<adaedra> nickjj: may be outdated.
quimrstorres has joined #ruby
kp666 has joined #ruby
<nickjj> adeponte, there are multiple options to get ruby 2.2.x on your system
<adaedra> You're talking to me?
<jhass> mwlang: you choose things over RVM because they only what you need and do that well without having a bunch of baggage you don't need that can break
Feyn has quit [Quit: Leaving]
<jhass> whether you agree with that assertion is largely opinion and you're free to make your own
unshadow has quit [Quit: leaving]
<nickjj> adaedra, yes. i took tab complete for granted haha
<adaedra> Anyway, ruby-install is one of these options, so I don't get the point.
arup_r has quit [Remote host closed the connection]
marr has quit [Ping timeout: 245 seconds]
ki0_ has joined #ruby
<nickjj> adaedra, it is until you want to upgrade the version of ruby and you end up having 30min of downtime
baweaver has quit [Remote host closed the connection]
<nickjj> or you hack together something with symlinks to install both versions side by side but now you have a lot of complication for nothing
JDiPierro has quit [Remote host closed the connection]
<adaedra> you don't have to shut down services when upgrading ruby, do you ?
sent1nel has joined #ruby
paulcsmith has joined #ruby
<adaedra> Install it to another root, and switch them in the init scripts once done
yfeldblum has quit [Remote host closed the connection]
ki0__ has joined #ruby
noonius has quit [Quit: noonius]
Cust0sLim3n has joined #ruby
mbeasley has left #ruby ["WeeChat 0.4.2"]
ki0 has quit [Ping timeout: 246 seconds]
<jhass> btrfs subvolumes <3
ki0_ has quit [Ping timeout: 256 seconds]
reinaldo_ has quit [Read error: Connection reset by peer]
sent1nel has quit [Ping timeout: 272 seconds]
JDiPierro has joined #ruby
reinaldob has joined #ruby
simpyll has quit [Ping timeout: 244 seconds]
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Jonah11_ has joined #ruby
ponga has joined #ruby
lordcalvert has quit [Ping timeout: 246 seconds]
TigerWolf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
neilhwatson has joined #ruby
JDiPierro has quit [Remote host closed the connection]
zotherstupidguy has quit [Ping timeout: 258 seconds]
<neilhwatson> Any serverspec users here? When testing multiple servers, using the rake file from advanced tips, failures do not indicate which host failed. How can I determine that?
anisha has quit [Ping timeout: 252 seconds]
helpa has quit [Remote host closed the connection]
thebastl has joined #ruby
helpa has joined #ruby
bronson has quit [Remote host closed the connection]
Rakko has joined #ruby
rbennacer has joined #ruby
nfk|laptop has joined #ruby
edwinvdgraaf has quit []
Psi-Jack has quit [Quit: reconnecting, BRB]
lavros has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haxrbyte has joined #ruby
sevenseacat has joined #ruby
bronson has joined #ruby
Psi-Jack has joined #ruby
Psi-Jack is now known as Guest86714
emilkarl has quit [Quit: emilkarl]
SouL_|_ has joined #ruby
qwertme has joined #ruby
hmnhf__ has quit [Quit: Konversation terminated!]
Guest86714 has quit [Changing host]
Guest86714 has joined #ruby
sent1nel has joined #ruby
EagleDelta has joined #ruby
Rollabunna has quit [Quit: Leaving...]
Guest86714 is now known as Psi-Jack
haxrbyte has quit [Remote host closed the connection]
danman has joined #ruby
Igorshp has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
iamjarvo has joined #ruby
hoov has quit [Ping timeout: 272 seconds]
hoov has joined #ruby
helpa has quit [Remote host closed the connection]
ki0 has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
Igorshp has joined #ruby
ki0__ has quit [Read error: Connection reset by peer]
helpa has joined #ruby
AlphaAtom has joined #ruby
beamed_down is now known as Beamed
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
ki0 has quit [Client Quit]
sent1nel has quit [Read error: No route to host]
jottr has quit [Ping timeout: 272 seconds]
sent1nel has joined #ruby
yqt has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
fgo has joined #ruby
anisha has joined #ruby
werelivinginthef has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwattstbd has joined #ruby
newbie has joined #ruby
newbie has quit [Client Quit]
sent1nel has quit [Ping timeout: 265 seconds]
Guest7 has quit [Ping timeout: 264 seconds]
ismaelga has joined #ruby
anaeem1 has quit [Ping timeout: 246 seconds]
reinaldo_ has joined #ruby
anisha has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
unshadow has joined #ruby
charliesome has quit [Quit: zzz]
tkuchiki has joined #ruby
Psi-Jack has quit [Quit: ZNC shutting down. I'll be back!]
Psi-Jack has joined #ruby
danman has quit [Quit: danman]
droidburgundy has joined #ruby
JDiPierro has joined #ruby
reinaldob has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
Papierkorb has joined #ruby
enebo has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
iamjarvo has joined #ruby
umgrosscol has joined #ruby
konsolebox has quit [Quit: Leaving]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
rippa has joined #ruby
Pathfinder has quit [Ping timeout: 252 seconds]
woodruffw has joined #ruby
HotCoder has quit [Read error: Connection reset by peer]
baroquebobcat has joined #ruby
dpatel has joined #ruby
Jandre has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
Jelvena has quit [Ping timeout: 252 seconds]
kinduff has joined #ruby
mikecmpb_ has joined #ruby
clauswitt has joined #ruby
reinaldo_ has quit [Read error: Connection reset by peer]
gsd has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
pandaant has joined #ruby
tagrudev has quit [Remote host closed the connection]
reinaldob has joined #ruby
ponga has quit [Remote host closed the connection]
billy71 has joined #ruby
<billy71> hi
<billy71> So I run bundler update and it updates the Gemfile lock
Papipo has quit [Ping timeout: 240 seconds]
tjohnson has joined #ruby
<billy71> I want to let it update the Gemfile itself.
<billy71> So why doesn't this happen?
sent1nel has joined #ruby
hanmac1 has quit [Quit: Leaving.]
<jhass> because that's how it works
<billy71> jhass: why?
<billy71> jhass: I mean, what is the point? When I come back later after many years I would have a Gemfile with outdated versions, I wouldn't be able to use it because the app would break.
<adaedra> It's exactly the point
ndrei has joined #ruby
<adaedra> So this way, you can get gems that works with the current application, as specified by the Gemfile
<jhass> the gemfile lists the dependencies your app needs, with optional version constraints known to work
speakingcode has joined #ruby
tubuliferous has quit [Ping timeout: 244 seconds]
<jhass> the Gemfile.lock lists the full resolved graph with specific versions you can get the exact same versions in all environments
<billy71> right
<jhass> *so you can
sent1nel has quit [Ping timeout: 256 seconds]
<billy71> jhass: but the versions of gems at the top in hierarchy aren't upgraded - why not?
<jhass> because you locked them down in your Gemfile
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<billy71> with other words, I would have to manually upgrade the versions in the Gemfile
<billy71> there is no automatic way doing this
<billy71> *sighs*
<adaedra> no
<adaedra> because your Gemfile is supposed to require versions that are known to work
<adaedra> it's the role of the Gemfile
<adaedra> updating them to upper versions may break things
<adaedra> it's why it's not automatic
<billy71> ok, so I am expected to upgrade it by hand
<billy71> but this is a bit tedious :/
neilhwatson has left #ruby [#ruby]
<jhass> then choose less strict constraints
kp666 has quit [Remote host closed the connection]
wildroman3 has joined #ruby
<billy71> jhass: even then I would have to upgrade some of them because the major number changed
<jhass> yes
<billy71> ok
<jhass> I even do that in individual commits so I can bisect breakages to them
<adaedra> it's the point of versionning
baroquebobcat has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
<billy71> ok
<billy71> thanks then
<billy71> in this case those are gems to sass style modules (far not all offer npm or some other sass package manager support) - so breaking is quite unlikely here
<billy71> also hard to test, I would test in browser and automatic testing is near to impossible because of subtle changes
anaeem1_ has joined #ruby
wildroman2 has quit [Ping timeout: 256 seconds]
<jhass> then don't specify a constraint
<jhass> your .lock will ensure you get the same version in production
<jhass> the Gemfile is to lock down stuff known to break
<billy71> hm
<billy71> So I always have to commit the .lockfiles, too. right
<jhass> absolutely
<jhass> else you loose the entire point of them
sent1nel has joined #ruby
mikecmpbll has joined #ruby
reinaldo_ has joined #ruby
tubuliferous has joined #ruby
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
websoftwarez has quit [Remote host closed the connection]
bruno- has joined #ruby
stoffus has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 272 seconds]
sinkensabe has quit [Remote host closed the connection]
reinaldob has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
mikecmpb_ has quit [Ping timeout: 255 seconds]
doertedev has quit [Ping timeout: 250 seconds]
Beamed is now known as beamed_down
thatslif_ has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
rhllor has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
gambl0re has joined #ruby
aganov has quit [Remote host closed the connection]
Rollabunna has joined #ruby
juanpaucar has joined #ruby
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
<jhass> and as a bonus, if you use bundle install --deployment there, you'll get faster CI and production deploys too, since the resolution doesn't need to happen again
lektrik has joined #ruby
<billy71> aha
<billy71> thanks
<billy71> though I use ruby only for dev tools
<billy71> (it is still great then)
GriffinHeart has quit [Remote host closed the connection]
bMalum has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
reinaldob has joined #ruby
reinaldo_ has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has quit [Remote host closed the connection]
doertedev has joined #ruby
fabrice31 has joined #ruby
fabrice31_ has joined #ruby
dpatel has quit [Quit: dpatel]
conta has quit [Quit: Leaving]
haxrbyte has joined #ruby
Igorshp has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
arturaz has quit [Ping timeout: 240 seconds]
Igorshp has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 264 seconds]
chinmay_dd has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
pdoherty has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
GaryOak_ has joined #ruby
airdisa has joined #ruby
willgorman is now known as willgorman|away
haxrbyte has quit [Ping timeout: 276 seconds]
Igorshp has quit [Ping timeout: 246 seconds]
airdisa has left #ruby [#ruby]
jtdowney has joined #ruby
nfk|laptop has quit [Ping timeout: 265 seconds]
denver has quit [Remote host closed the connection]
justinxr- has joined #ruby
Pumukel has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
casadei has joined #ruby
wildroman3 has quit [Remote host closed the connection]
reinaldob has joined #ruby
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kinduff has quit [Ping timeout: 250 seconds]
BlackGear has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wildroman2 has joined #ruby
nabn_ has joined #ruby
xjstin has quit [Ping timeout: 252 seconds]
beamed_down is now known as Beamed
thatslifeson has joined #ruby
sigurding has quit [Quit: sigurding]
gagrio has quit [Ping timeout: 272 seconds]
nabn has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
willgorman|away is now known as willgorman
bruno- has quit [Ping timeout: 272 seconds]
doertedev has quit [Quit: Lost terminal]
User458764 has joined #ruby
Psi-Jack has left #ruby ["Leaving"]
Igorshp has joined #ruby
Rakko has quit [Quit: Page closed]
failshell has quit [Read error: Connection reset by peer]
failshel_ has joined #ruby
failshel_ is now known as failshell
ChoiKyuSang has quit [Ping timeout: 276 seconds]
St1gma has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chinmay_dd has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
<hfp> Hey all! Would you know of a gem that could take a float and "translate" it to human fractions? ie you give it 0.52 and it will output 'half', or 0.7589 and it will output 'three quarters'?
AxonetBE_ has joined #ruby
AxonetBE has quit [Ping timeout: 264 seconds]
AxonetBE_ is now known as AxonetBE
anaeem1 has quit [Remote host closed the connection]
<jhass> >> 0.52.to_r
<ruboto> jhass # => (1170935903116329/2251799813685248) (https://eval.in/367335)
scuey has joined #ruby
<toretore> "human"
<jhass> >> 0.52.round(1).to_r
<ruboto> jhass # => (1/2) (https://eval.in/367337)
jottr has joined #ruby
reinaldob has joined #ruby
<hfp> Right but I mean specifically the string 'half' or ;three quarters'. It's to use with TTS. It's clucky to have the machine say "zero point five two" rather than "half"
IrishGringo has quit [Remote host closed the connection]
<jhass> >> {0.5r => "half"}[0.52.round(1).to_r]
<ruboto> jhass # => "half" (https://eval.in/367341)
<hfp> Interesting
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
<jhass> or keep it floats even and do a proximity search
User458764 has joined #ruby
paulcsmith has joined #ruby
Jonah11_ has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
AxonetBE has quit [Ping timeout: 272 seconds]
AxonetBE has joined #ruby
Jonah11_ has joined #ruby
baweaver has quit [Remote host closed the connection]
mhib has joined #ruby
<eam> ruby C extensions: what's the right way to store a pointer in an instance?
sepp2k has quit [Ping timeout: 256 seconds]
mistermocha has joined #ruby
tcrypt has joined #ruby
livathinos has quit []
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bruno- has joined #ruby
baroquebobcat has joined #ruby
baweaver has joined #ruby
<eam> nm I guess Data_Wrap_Struct
<billy71> Is ruby still popular for web dev?
<Fluent> Ruby on Rails
<Fluent> !=
<Fluent> Ruby
<Fluent> Stand alone Ruby, no
<jokke> there are many more web frameworks than RoR
mhib has quit [Quit: Leaving]
<jokke> (in ruby)
<jhass> >> MAP = {0.25 => "quarter", 0.5 => "half", 0.75 => "three quarter", 1.0 => "whole"}; LOOKUP = MAP.keys.each_cons(2).each_with_object({}) {|(a, b), h| m = (a+b)/2; h[a..m] = a; h[m..b] = b }; x = 0.7589; MAP[LOOKUP.find {|r, v| r.cover? x }.last] # hfp
<ruboto> jhass # => "three quarter" (https://eval.in/367346)
mhib has joined #ruby
<billy71> So Ruby on Rails, is it still popular?
Blaguvest has joined #ruby
<Fluent> Yes, but we all know that RoR is most popular
<jokke> sinatra, padrino, lotus, volt, etc
<Fluent> and the rest aren't really used
<jokke> Fluent: that's such bullshit :D
<hfp> jhass: Thanks, I hadn't thought of doing it this way
bruno- has quit [Ping timeout: 250 seconds]
<jokke> sinatra is _very_ widely used
<jokke> and very popular
<Fluent> Sure...
slash_nick has quit [Ping timeout: 246 seconds]
craigp has quit [Ping timeout: 272 seconds]
<Fluent> Pie chart confirmation or it didn't happen
bruno- has joined #ruby
<jokke> m(
aspiers has joined #ruby
Eiam has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has joined #ruby
<jokke> RoR is actually getting more and more replaced by micro frameworks
<wasamasa>
<jokke> it's too monolithic for many people
<jhass> I find the popularity question still so useless
<jhass> what motivates yours?
<billy71> it got some value - nothing is worse than finding out that a tool one uses and relies on is not maintained anymore and issues pile up
joelataylor has quit [Quit: Be back later ...]
<billy71> and then you take the next great tool (lol) and it also isn't developed anymore
<billy71> and so on
That1Guy has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
<billy71> turds all the way down
<jhass> popularity != maintainership
ChoiKyuSang has joined #ruby
joelataylor has joined #ruby
<jhass> I see many projects still being popular and hardly maintained
<jhass> and I see even more projects not popular and being excellently maintained
<billy71> hm
nateberkopec has joined #ruby
chrissonar has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
<billy71> sadly also usefulness doesn't necessarily correlate with being maintained
<jhass> and neither popularity
slash_nick has joined #ruby
<Fluent> It's hard for crap software to get popular
<toretore> hah
<Fluent> Implying usefulness (usually)
<Fluent> But there are some popular non useful things floating around
<jhass> yes, but the opposite doesn't follow
arietis has quit [Quit: Leaving.]
<billy71> I see crap being popular :/
mhib has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 245 seconds]
<jhass> and then the border of when somebody is considered popular is completely arbitrary
<jhass> it's such a useless metric to me, really
Pumukel has quit [Ping timeout: 256 seconds]
DaniG2k has quit [Ping timeout: 276 seconds]
<jhass> er, s/somebody/something/
joelataylor has quit [Ping timeout: 244 seconds]
mradmacher has quit [Quit: leaving]
reinaldob has joined #ruby
<GaryOak_> popularity is just about marketing
sevenseacat has quit [Quit: Me dun like you no more.]
<Fluent> Eh
jackjackdripper has joined #ruby
Dopagod has joined #ruby
Dopagod has joined #ruby
<GaryOak_> but after a bunch of people try out the gem, it generally is determined whether something is useful to a large number of people
<Fluent> To imply that it is only used for marketing is a bit false
<Fluent> That is true
<jhass> yeah, it's also useful to people that are too dumb to form their own opinion about stuff so they have to follow the masses to survive and feel cool
<billy71> some monkey patching gems are gems that became forgotten :/
<GaryOak_> monkey patching gems are generally poor quality
<billy71> yes, but using opinionated stuff can help preventing depressions. I find one rule very true: "Don't innovate unless you can use the innovation directly for money." - because something free will come out next month and your work becomes worthless, even inferior.
mistermocha has quit [Ping timeout: 264 seconds]
sent1nel has quit [Remote host closed the connection]
<jhass> as a business rule, maybe, as a personal rule that's pretty dumb
<GaryOak_> Facebook doesn't lose any money by open sourcing React
<GaryOak_> It's VirtualDOM was innovative
mtakkman has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
<billy71> right
<billy71> but when you are facebook such rules don't apply anyway :)
sp1rs has joined #ruby
michaeldeol has joined #ruby
<GaryOak_> and when you don't stand to make any money off of your innovation
DaniG2k has joined #ruby
<Fluent> Facebook makes plenty of bank
<billy71> I find most successful web service people re-use everything, cms with plugins, bootstrap/zurb, stock images, fonts.
rhllor has quit [Ping timeout: 276 seconds]
ght has quit [Ping timeout: 265 seconds]
<Fluent> Hmm, I wouldn't say everything
sanguisdex has joined #ruby
<Fluent> If you reuse everything it can turn out bad
<Fluent> Like plugins, attackers target those for that specific reason
bootstrappm has joined #ruby
<Fluent> It's widely used, so it's widely attacked, and often can lead to disclosure of information
Schwarzbaer_ has quit [Ping timeout: 245 seconds]
reinaldob has quit [Remote host closed the connection]
<billy71> right, but if that happens, are really heads rolling then? who is responsible if the web site owner hosts it by her/himself on some cloud?
<billy71> *and manages it using a cms
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<Fluent> The website admin
<billy71> hn
danman has joined #ruby
<billy71> when there is no admin? only the end user who wants to host and maintain it by her/himself (using a cms)?
michaeldeol has quit [Ping timeout: 255 seconds]
<Fluent> It's not bad to use a CMS. I'm simply saying that you shouldn't reuse everything you get. I like to have a simple CMS that doesn't come with too much bloat and build what I need instead of grabbing everything from other places already
Jarboe has joined #ruby
<Fluent> Also having phabricator is nice
wildroman2 has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
<Fluent> For example, if you want a user login system. Create it yourself, or use one you have looked over and trust. Some people just throw crap on their server if it works.
kinduff has joined #ruby
michaeldeol has joined #ruby
msgodf has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
<Fluent> I ran into that same thing, simply googled the login system the site had been using and found out it stored the username:pass in a .txt file on the server that was public accessable
<Fluent> accessible *
pdoherty has quit [Ping timeout: 240 seconds]
icebourg has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
rhllor has joined #ruby
sepp2k has joined #ruby
marr has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
taiansu has quit [Remote host closed the connection]
failshell has quit [Remote host closed the connection]
fgo has quit [Quit: WeeChat 1.1.1]
<billy71> that's interesting
<billy71> also wordpress doesn't offer brute force protection for its logins
mistermocha has quit [Ping timeout: 255 seconds]
joonty has quit [Quit: joonty]
taiansu has joined #ruby
bronson has quit [Remote host closed the connection]
<Fluent> You should easily be able to incorporate that logic
<billy71> Fluent: if I may ask - what CMS are you recommending? I thought about Drupal or WordPress. But I also got into node and the CMS there aren't so feature-rich and plugin-stuffed as the PHP ones.
tomaw_ has joined #ruby
xxneolithicxx has joined #ruby
baweaver has joined #ruby
<Fluent> Well, I'm working with a group of devs now, and we use Laravel with phabricator to push code in stages
<Fluent> Laravel/Vagrant/Homestead
<Fluent> All that good stuff
krz has quit [Ping timeout: 272 seconds]
hectortrope has quit [Quit: WeeChat 0.4.2]
<Fluent> phabricator acts as a management system too
babaganousha has quit [Ping timeout: 272 seconds]
devoldmx has joined #ruby
joelataylor has joined #ruby
mbff has joined #ruby
<adaedra> phabricator <3
<mbff> I am having a namespace issue with Sinatra... the post method in the namespace 404's ... https://gist.github.com/marshallford/4485c00c9d00009f4226
<mbff> When I remove the namespace the post works just fine
reinaldob has joined #ruby
jenrzzz has joined #ruby
failshell has joined #ruby
ghostmoth has joined #ruby
<Fluent> ::GoogleSpellcheck.run(jsonResponse["input"])
<Fluent> Maybe you are missing something there
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Fluent> >> output = ::GoogleSpellcheck.run(jsonResponse["input"])
<ruboto> Fluent # => uninitialized constant GoogleSpellcheck (NameError) ...check link for more (https://eval.in/367357)
<mbff> no... like I said everything works when i remove the namespace bit.. and the end
mrsolo has joined #ruby
<Fluent> Oh, so it works like that then
thebastl has quit [Quit: Leaving...]
<Fluent> But not with
<Fluent> Hmph
Pumukel has joined #ruby
<mbff> check my updated gist where I added my gemfile
<mbff> the GoogleSpellCheck is a gem
roshanavand has joined #ruby
baweaver has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
_seanc_ has quit [Quit: _seanc_]
roshanavand has quit [Client Quit]
maletor has joined #ruby
mtakkman has quit [Ping timeout: 264 seconds]
finisher has joined #ruby
al2o3-cr has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 255 seconds]
haxrbyte_ has joined #ruby
nfk|laptop has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
wildroman2 has joined #ruby
qwertme has joined #ruby
anaeem1_ has joined #ruby
taiansu has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 258 seconds]
Rollabunna has quit [Remote host closed the connection]
jottr has joined #ruby
DaniG2k has quit [Quit: leaving]
hectortrope has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
senayar has quit []
taiansu_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
baweaver has joined #ruby
iamjarvo has joined #ruby
ArchRogem is now known as ArchRogem[away]
ArchRogem[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tautvydas has joined #ruby
aspiers has joined #ruby
ArchRogem has joined #ruby
babaganousha has joined #ruby
mikecmpbll has quit [Ping timeout: 256 seconds]
michael_mbp has quit [Excess Flood]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
michael_mbp has joined #ruby
yxhuvvd has joined #ruby
haxrbyte has joined #ruby
yxhuvvd has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 256 seconds]
dfinninger has quit [Remote host closed the connection]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
yfeldblum has joined #ruby
dfinninger has joined #ruby
paulcsmith has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
_ixti_ has joined #ruby
baroquebobcat has quit [Ping timeout: 264 seconds]
tautvydas has quit [Remote host closed the connection]
reinaldob has joined #ruby
tautvydas has joined #ruby
michael_mbp has quit [Excess Flood]
That1Guy has joined #ruby
vdamewood has quit [Ping timeout: 258 seconds]
towski_ has quit [Remote host closed the connection]
havenwood has joined #ruby
michael_mbp has joined #ruby
Zai00 has quit [Quit: Zai00]
serivichi has quit [Ping timeout: 258 seconds]
wildroman2 has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 256 seconds]
zzxc has quit [Ping timeout: 244 seconds]
baroquebobcat has joined #ruby
gluten_hell__ has quit [Quit: Computer has gone to sleep.]
jottr has quit [Ping timeout: 276 seconds]
jackjackdripper has quit [Quit: Leaving.]
baroquebobcat has quit [Client Quit]
aswen has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
michael_mbp has quit [Excess Flood]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quimrstorres has quit [Remote host closed the connection]
bruno- has joined #ruby
mistermocha has joined #ruby
michaeldeol has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Schwarzbaer_ has joined #ruby
michael_mbp has joined #ruby
anew has joined #ruby
<anew> sudo apt-get install ruby-full will this install ruby 1.9.3 ? or more recent version?
shuber_ has joined #ruby
Pumukel has joined #ruby
zzxc has joined #ruby
<havenwood> anew: What version of what distro?
<bootstrappm> anew on elementary luna (based off ubuntu 12.04) it installs ruby 1.9.3
bruno- has quit [Ping timeout: 250 seconds]
<al2o3-cr> anew: debian or ubuntu?
<al2o3-cr> and version
reinaldob has quit [Read error: Connection reset by peer]
<al2o3-cr> oh what havenwood said
serivichi has joined #ruby
<anew> ubuntu 15.04
vickleton has joined #ruby
<al2o3-cr> anew: 2.0 i think
<anew> ok
phizzbuzz has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby
<anew> 2.1.2
anaeem1_ has quit [Remote host closed the connection]
Soda has joined #ruby
<al2o3-cr> ah yeah just checked it is 2.1
JDiPierro has quit [Remote host closed the connection]
<havenwood> anew: You can use the Brightbox packages for Ubuntu to get at the latest Ruby 2.2: https://www.brightbox.com/docs/ruby/ubuntu/
<al2o3-cr> or you could use rvm https://rvm.io/rvm/install
Jonah11_ has quit [Remote host closed the connection]
<al2o3-cr> oh havenwood whats brightbox package?
reinaldob has joined #ruby
<al2o3-cr> oh nice to know
<havenwood> al2o3-cr: The cloud provider Brightbox maintains up-to-date Ruby packages for Ubuntu. So you add ppa:brightbox/ruby-ng and can install ruby2.2, etc.
leafybasil has quit [Ping timeout: 255 seconds]
qwertme has joined #ruby
<al2o3-cr> ah cool good to know that :)
<al2o3-cr> just switch from debian wheezy to arch, man the difference :)
mtakkman has joined #ruby
<havenwood> al2o3-cr: It's nice on distros like Archlinux and Fedora where latest Ruby *just works*.
<al2o3-cr> havenwood: you're not kidding don't know why i didn't switch earlier :)
sent1nel has joined #ruby
<dudedudeman> aight, here's a fun one.
<shevy> dudedudeman beer
quimrstorres has joined #ruby
ixti has joined #ruby
<dudedudeman> i have a go to launch my app on my companies server. they've set up the dns name and all that fun stuff, but are leaving me to set it up and actually get it launched so you can use it when you visit the domain
<dudedudeman> we're using apache. and i have no clue what to do now.... lol
towski_ has joined #ruby
_ixti_ has quit [Ping timeout: 258 seconds]
superscott[8] has joined #ruby
sandelius has joined #ruby
<jhass> dudedudeman: two options: reverse proxy to a ruby application server (unicorn, puma, thin, ...) or passenger which can be run as an apache module
zzxc has quit [Ping timeout: 245 seconds]
<dudedudeman> puma is currently setup on the app now, jhass. i was using that to deploy the app to heroku
<dudedudeman> should i go down that route?
<jhass> yeah
* dudedudeman looks at going down puma route, still has no clue
<jhass> you open google.com
Contigi has joined #ruby
<jhass> then you enter apache reverse proxy
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dudedudeman> that's the ticket
sandelius has quit [Client Quit]
Hijiri has quit [Quit: WeeChat 1.0.1]
timonv has joined #ruby
phizzbuzz has joined #ruby
<dudedudeman> setting up a web server is definitely not something i'm a pro at
Raverix has joined #ruby
<Raverix> Hello, I'm having a problem with a Ruby Site, it was running an hour ago, we restarted the server, and it hasn't come back, and my usual troubleshooting tricks aren't helping me. I know that Apache is running, and serving assets, so I beleive the issue is related to Passenger/Rails/Ruby, can anyone give me ideas on how to troubleshoot this further?
freerobby has joined #ruby
<dudedudeman> ha, good timing.
djbkd has joined #ruby
thumpba has joined #ruby
linduxed has joined #ruby
thumpba_ has joined #ruby
wald0 has joined #ruby
<havenwood> Raverix: Have you been able to find the Passenger logs? If you haven't already I'd also ask in #passenger.
<havenwood> Raverix: What version of Passenger?
Jonah11_ has joined #ruby
thumpba has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
kinduff has quit [Ping timeout: 272 seconds]
dfinninger has quit [Remote host closed the connection]
mrsolo has quit [Quit: This computer has gone to sleep]
Channel6 has joined #ruby
<anew> An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot
<anew> continue.
<anew> i cant get past this error
<Raverix> havenwood: passenger-4.0.58, the logs don't appear to be showing me anything out of the normal.
Hounddog has quit [Read error: Connection reset by peer]
RegulationD has quit [Remote host closed the connection]
<bootstrappm> anew install nokogiri manually:
<bootstrappm> gem install nokogiri -v '1.6.6.2'
<bootstrappm> it's likely a native packages problem
<havenwood> Raverix: Do you have Passenger installed as a gem or as a package?
ght has joined #ruby
<bootstrappm> give this a shot:
<bootstrappm> sudo apt-get install libxslt-dev libxml2-dev
<bootstrappm> then try installing nokogiri manually
<anew> ^ bootstrappm is that for me ?
<bootstrappm> then try running bundler
<Raverix> havenwood: Unfortunately, I'm not positive. The regular ruby guys aren't here. Is there a way I can determine that?
<bootstrappm> yes
[k- has quit [Quit: Lingo: www.lingoirc.com]
timonv has quit [Ping timeout: 252 seconds]
<havenwood> Raverix: gem list passenger
serivichi has quit [Ping timeout: 244 seconds]
<havenwood> Raverix: Or check with your package manager if you have a passenger package installed.
baweaver has quit [Remote host closed the connection]
<anew> didnt work bootstrappm
<Raverix> I ran: gem list, and got passenger (4.0.58)
<bootstrappm> ....what part of everything I told you anew?
<havenwood> Raverix: So a gem install.
<anew> i did step 1, 2, 3 of what you said
<bootstrappm> the apt-get install stuff?
<anew> bundle install i still get the error 'an error occured while installing...'
<havenwood> Raverix: I'd probably try rerunning `passenger-install-apache2-module` and make sure that the recommended conf at the end is correct in your apache conf. Just to make sure that's setup correctly.
IrishGringo has joined #ruby
withnale_ has quit [Ping timeout: 246 seconds]
<havenwood> Raverix: I don't know.
<bootstrappm> anew did you try the apt-get install stuff?
<anew> bootstrappm, yes
<anew> then for step 2 i get this error
<anew> ERROR: Error installing nokogiri:
<anew> ERROR: Failed to build gem native extension.
<bootstrappm> is bundler still complaining about nokogiri?
<bootstrappm> okay
<bootstrappm> do gem install nokogiri -v '1.6.6.2'
<bootstrappm> and put the error message in a gist
kalusn has quit [Remote host closed the connection]
<al2o3-cr> anew: have you installed ruby-dev?
<havenwood> Raverix: If it doesn't start at that point, try going to the app's root directory and see if the app starts manually locally.
<Raverix> Havenwood: I appreciate your help none-the-less. Rerunning passenger-install-apache2-module now and hoping for the best.
<al2o3-cr> anew: sudo apt-get install ruby-dev
<Raverix> havenwood: Yeah, if I do rails c from the command line, it runs.
haxrbyte_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
haxrbyte has quit [Ping timeout: 252 seconds]
<al2o3-cr> anew: sudo apt-get install ruby-dev
<anew> al2o3-cr, already said that is installed
<bootstrappm> anew: sudo apt-get install zlib1g-dev
<al2o3-cr> oh i didn't see sorry
<anew> al2o3-cr, no i mean the console said that
<anew> not me
<anew> :p
scuey has quit [Ping timeout: 276 seconds]
<anew> bootstrappm, same error when i run bundle install
<anew> after zlib1g-dev
<bootstrappm> what did ubuntu say?
<bootstrappm> did it say you already have it installed?
<bootstrappm> or did it install it?
<anew> it installed it
<bootstrappm> and stop running bundler, focus on gem install nokogiri for now, that's your problem
<Senjai> anew: use ruby install
<anew> oh ok
Asher has quit [Quit: Leaving.]
<bootstrappm> anew send a new gist of the error gem install gives you
<anew> k
Asher has joined #ruby
mtakkman has quit [Ping timeout: 276 seconds]
arietis has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
finisher has quit [Quit: finisher]
Pumukel has quit [Ping timeout: 265 seconds]
Gate has joined #ruby
fmcgeough has joined #ruby
tvw has quit [Remote host closed the connection]
tjbiddle has joined #ruby
slawrence00 is now known as logart
finisher has joined #ruby
<bootstrappm> anew anything?
mikecmpbll has joined #ruby
anaeem1 has joined #ruby
baweaver has joined #ruby
Timba-as has quit [Quit: Be back later ...]
Timba-as has joined #ruby
jenksy has joined #ruby
failshell has quit [Remote host closed the connection]
<jenksy> Is this the correct channel for assistance with Gems 2.4.x on windows?
<wallerdev> sure
<jenksy> I'm trying to gem install pry and getting the SSLv3 error
User458764 has joined #ruby
<wallerdev> whats the error message
<jenksy> I'm reading github notes and it appears there's no fix for Windows with gems 2.4.x?
<jenksy> sec
<jenksy> fix in question listed here: https://gist.github.com/luislavena/f064211759ee0f806c88
reinaldob has quit [Read error: Connection reset by peer]
zzxc has joined #ruby
<jenksy> error: ERROR: Could not find a valid gem 'pry' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
<wallerdev> so did you try manually upgrading rubygems?
reinaldob has joined #ruby
<jenksy> no, because the gist doesn't mention 2.4, and that's where I got confused
ArchRogem has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jenksy> I keep seeing cross posts where 2.4 is broken on windows
krz has joined #ruby
<jenksy> which is my situation
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jenksy> thought I'd confirm with the community before proceeding
<wallerdev> ah
JDiPierro has joined #ruby
mistermocha has joined #ruby
chinmay_dd has quit []
bitcycle has joined #ruby
<wallerdev> i think most of the community doesnt use windows
<jenksy> I agree
<jenksy> unfortunatley my work requires I use windows
<jenksy> I'd be on a linux desktop if that were an option. The issue I'm tryign to solve is installing pry on windows.
<bitcycle> Hey all. I'm trying to escape both single and double quotes inside a string that's currently stored in a variable. Is that possible with ruby in a nice way?
haxrbyte has joined #ruby
Timba-as has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
ArchRogem has joined #ruby
<wallerdev> what version of ruby are you on
<jenksy> wallerdev: any thoughts, or am I up microsoft creek without an update?
haxrbyte_ has quit [Read error: Connection reset by peer]
<jenksy> ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
<jenksy> apparently our codebase is sensitive to gem / ruby changes.
<wallerdev> oh
<wallerdev> lol
<jenksy> yup. Watir automation in a QA role
<jenksy> Firefox updates break code too... so.. it's ... sensitive. :D
<wallerdev> bitcycle: as in prepend a backslash?
baweaver has joined #ruby
chipotle has quit [Quit: cheerio]
baroquebobcat has joined #ruby
<jenksy> bitcycle: 'This isn\'t a bad string'
<bitcycle> wallerdev: Yes. But, do it for both single + double quotes with one command.
dumdedum has quit [Quit: foo]
finisher has left #ruby [#ruby]
joelataylor has quit [Quit: Be back later ...]
JDiPierro has quit [Remote host closed the connection]
failshell has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joelataylor has joined #ruby
The_Phoenix has joined #ruby
arietis has quit [Quit: Leaving.]
yfeldblum has quit [Remote host closed the connection]
The_Phoenix has quit [Max SendQ exceeded]
<wallerdev> bitcycle: um
<wallerdev> >> puts %q{'hello' "world"}.gsub(/['"]/) { |m| "\\#{m}" }
<ruboto> wallerdev # => \'hello\' \"world\" ...check link for more (https://eval.in/367366)
The_Phoenix has joined #ruby
<wallerdev> like that?
<wallerdev> lol
<wallerdev> jenksy: can you install other gems?
The_Phoenix has quit [Max SendQ exceeded]
postmodern has joined #ruby
haxrbyte has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 240 seconds]
<jenksy> wallerdev: not sure... I'm liable to break something if I start tinkering.. I could try, though? presumably no, is my guess
<wallerdev> might be easiest to just download the gems manually and install them from the .gem file if you dont need to install much
<jenksy> I just want pry, so if that's an option, I'd do it
franco2 has joined #ruby
MasterPiece has quit [Read error: Connection reset by peer]
ReachingFarr has joined #ruby
franco2 has quit [Client Quit]
* jenksy wonders how to do it.
joelataylor has quit [Ping timeout: 246 seconds]
speakingcode has quit [Ping timeout: 276 seconds]
<wallerdev> uhh
<wallerdev> i think its like
<wallerdev> are you on 32 bit or 64 bit
mjuszczak has joined #ruby
That1Guy has joined #ruby
platzhirsch has left #ruby [#ruby]
Channel6 has quit [Quit: Leaving]
bMalum has quit [Quit: bMalum]
<wallerdev> can see the versions here https://rubygems.org/gems/pry/versions
linduxed has quit [Quit: WeeChat 1.1.1]
reinaldob has quit [Read error: Connection reset by peer]
<jenksy> wallerdev: 64 bit
reinaldob has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
<jenksy> oh hey
<jenksy> I just needed to manually add the .PEM file to the correct thinger
<jenksy> we're laughing
<wallerdev> lol
<jenksy> rtfm, maybe, next time.
<jenksy> thanks for the hand holding
ArchRogem has joined #ruby
* jenksy now has pry
* jenksy tips his hat to wallerdev
jenksy has left #ruby ["Thanks for the help, guys! Keep on keepin' on!"]
michaeldeol has joined #ruby
dorei has joined #ruby
lkba has joined #ruby
clauswitt has joined #ruby
<mbff> I am having a namespace issue with Sinatra... the post method in the namespace 404's ... https://gist.github.com/marshallford/4485c00c9d00009f4226
quimrstorres has quit [Remote host closed the connection]
jtdowney_ has joined #ruby
thatslifeson has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
<dudedudeman> Is this the same question from #sinatra?
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
linduxed has joined #ruby
jtdowney has quit [Ping timeout: 276 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
lavros has quit [Quit: leaving]
jtdowney_ has quit [Client Quit]
slash_nick has quit [Ping timeout: 245 seconds]
That1Guy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalusn has joined #ruby
thatslifeson has joined #ruby
<shevy> ack
<shevy> mbff is so evil
dfinninger has quit []
nabn_ has quit [Ping timeout: 272 seconds]
woodennails has joined #ruby
<al2o3-cr> hey shevy :)
P1RATEZ has joined #ruby
ravenreborn_ has joined #ruby
RegulationD has joined #ruby
Endretoft has joined #ruby
joelataylor has joined #ruby
leafybasil has joined #ruby
<shevy> hi al2424242
sent1nel has quit [Remote host closed the connection]
pragmatism has joined #ruby
x1337807x has joined #ruby
<al2o3-cr> :D
That1Guy has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
krz has quit [Ping timeout: 256 seconds]
mjuszczak has quit []
turtil has joined #ruby
Endretoft has quit [Client Quit]
reinaldob has quit [Read error: Connection reset by peer]
<mbff> i am evil haha
jmignault has joined #ruby
sent1nel has joined #ruby
<xxneolithicxx> hello
swgillespie has joined #ruby
leafybasil has quit [Ping timeout: 246 seconds]
Soda has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
aspiers has joined #ruby
reinaldob has joined #ruby
ismaelga has joined #ruby
krz has joined #ruby
Igorshp has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
<xxneolithicxx> need some advice rubyistas
<dudedudeman> go on
baroquebobcat has joined #ruby
duderonomy has quit [Ping timeout: 240 seconds]
<xxneolithicxx> im making a gem and it has to work on RHEL 5+/Ubuntu so thats 1.8.6+ MRI ruby and JRuby
ismaelga has joined #ruby
sandelius has joined #ruby
<xxneolithicxx> though the dependencies and the versions of them are slightly different when running on 1.8.6 MRI vs 1.9.3 MRI vs Jruby
<shevy> build two different gems then?
<shevy> and use only backwards-compatible ruby syntax
<xxneolithicxx> is the only way to handle this to basically code the logic of it into the gemspec to detect the version
bruno- has joined #ruby
anaeem1 has quit [Remote host closed the connection]
SuperTaz has joined #ruby
<shevy> you can restrict your gem through .gemspec
<xxneolithicxx> right the code itself currently runs fine on all, im more concerned about packaging/gemspec
kstuart has quit [Quit: WeeChat 1.1.1]
bruno- is now known as Guest63194
<shevy> ok so your code already works on both
<shevy> so you can set the minimal version to 1.8.6 right?
anaeem1 has joined #ruby
al2o3-cr is now known as gr33n7007h
<xxneolithicxx> yea
gr33n7007h is now known as al2o3-cr
Blaguvest has quit []
Lucky__ has joined #ruby
<GaryOak_> you can set a required ruby version >= in your gemspec
freerobby has quit [Quit: Leaving.]
<GaryOak_> Guess that's not what you want though
Pumukel has joined #ruby
<shevy> well I am not sure, he can build the minimal gem and it should work fine on 1.9.3
krz has quit [Ping timeout: 256 seconds]
<shevy> perhaps I am not seeing the problem
<GaryOak_> it's conditional deps, where they are different for each ruby version
<xxneolithicxx> well kinda im just trying to make sure if making my gemspec dynamic is the standard approach to handling it. since my gem dependencies are different for MRI vs Jruby
<xxneolithicxx> right both, conditional deps by version for MRI and different gems altogether for JRuby
<adaedra> I think there's a platform: argument for deps
<adaedra> it works in Gemfiles, don't know for gemspecs
anaeem1 has quit [Ping timeout: 276 seconds]
<adaedra> for ruby version, you may have to check manually using ruby version constant
mjuszczak has joined #ruby
<adaedra> gemspec is a ruby file, you can throw ruby in it
baweaver has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xxneolithicxx> is there a list of ruby platform values i can reference anywhere
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
kinduff has joined #ruby
<mwlang> hmmm….do people actually unfollow and (re)follow others on Twitter? I haven’t been using Twitter all that long, but last three months, I’m seeing a lot of “follows” in my mailbox that are repeats (just searched “now following you on Twitter”).
<xxneolithicxx> Twitter is so meh to me like Fb
shuber_ has quit [Remote host closed the connection]
swgillespie has joined #ruby
phizzbuzz has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
tubuliferous has quit [Ping timeout: 256 seconds]
Rollabunna has joined #ruby
<adaedra> mwlang: seems normal to me
Senjai has joined #ruby
Senjai has quit [Changing host]
edwinvdg_ has joined #ruby
<mwlang> adaedra: I guess I’m getting enough followers for this new pattern to start manifesting.
iamjarvo has joined #ruby
<adaedra> I think the rule is you don't care about who (un)follows you
<mwlang> adaedra: yeah, can I stop that email shy of just marking it spam?
<adaedra> go to your twitter account settings
mjuszcza_ has joined #ruby
<mwlang> heh, found it. Too easy. Another notch in the wall against FB. :-)
Guest63194 has quit [Ping timeout: 272 seconds]
* mwlang inching every closer to committing FB suicide
<mwlang> *ever*
livathinos has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
<dudedudeman> man, i dislike facebook, but i love being connected to people that are close to me
juanpaucar has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Ping timeout: 256 seconds]
jimms has quit [Read error: Connection reset by peer]
poguez_ has joined #ruby
jimms has joined #ruby
<havenwood> dudedudeman: You don't use Github for that?
* dudedudeman clones havenwood
tubuliferous has joined #ruby
<bootstrappm> dudedudeman agreed! Lets make another simpler facebook
<bootstrappm> on top of facebook
<dudedudeman> bootstrappm: let's call it, footbook!
<bootstrappm> even though its against their policies
<bootstrappm> pet project #23402, adding it to the list
<adaedra> Google tried, it didn't end well
<havenwood> or rather: https://diasporafoundation.org/
ReachingFarr has left #ruby [#ruby]
mjuszczak has quit [Ping timeout: 250 seconds]
livathinos has quit [Client Quit]
<bootstrappm> but diaspora suffers from that ill that plagues all non-profit for the social good type things
<GaryOak_> diaspora didn't end well either, although it's not ended
<bootstrappm> its ugly and not cool
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
<dudedudeman> literally the first time i am hearing of it
JDiPierro has joined #ruby
<wasamasa> gnu.io??
<mwlang> I’ve fiddled with diaspora. It’s kind of cool, but nothing remarkable.
<dudedudeman> much bootstrap, very wow
woodennails has joined #ruby
<GaryOak_> If diaspora was your dad, gnu social is your grandpa
freerobby has joined #ruby
B1n4r10 has joined #ruby
<mwlang> geez…three paragraphs to tell you what it is and I still don’t know what it is: https://gnu.io/social/about/
n3vtelen has joined #ruby
<n3vtelen> best package for http request
rbennacer has quit [Remote host closed the connection]
<mwlang> the author’s spot on: “ two projects sharing a codebase, and it was very difficult to explain exactly what GNU social was (or wasn’t).” :-p
<n3vtelen> like requests
kadoppe has quit [Ping timeout: 246 seconds]
tubuliferous has quit [Ping timeout: 272 seconds]
SuperTaz_ has joined #ruby
kadoppe has joined #ruby
SuperTaz has quit [Ping timeout: 248 seconds]
SouL_|_ has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Ping timeout: 250 seconds]
iamninja_ has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Ping timeout: 244 seconds]
iamninja_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
mrsolo has joined #ruby
<GaryOak_> n3vtelen: like sending them?
edwinvdg_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bitcycle has quit [Quit: WeeChat 1.1.1]
edwinvdgraaf has joined #ruby
visof has quit [Quit: Lost terminal]
michaeldeol has joined #ruby
rhllor has quit [Quit: rhllor]
michaeldeol has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
phizzbuzz has joined #ruby
billy71 has quit [Ping timeout: 250 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenksy has joined #ruby
c0m0 has quit [Ping timeout: 256 seconds]
<n3vtelen> GaryOak_: yes, get, post
rbennacer has joined #ruby
sinkensabe has joined #ruby
<GaryOak_> I'm using HTTPClient and it works well
haxrbyte has joined #ruby
<GaryOak_> There's a whole bunch to choose from
<al2o3-cr> n3vtelen: httparty is pretty neat
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> n3vtelen: There are quite a number of good options for Ruby HTTP clients. For just GET requests: require 'open-uri'; open 'https://duckduckgo.com', &:read
<havenwood> n3vtelen: HTTPClient is a good pure Ruby option that's not based on the stdlib's Net::HTTP.
<n3vtelen> thanks all of you
dseitz has joined #ruby
<havenwood> n3vtelen: Faraday is popular for supporting Rack-like middleware and modular backends (like it can use HTTPClient, Net::HTTP or others).
<anew> bootstrappm, sorry my neighbor came and talked for 40 minute
<anew> what should i do next
<havenwood> n3vtelen: I like the interface for the HTTP gem as well. Typhoeus is great for multiple requests. Curb is fast.
krz has joined #ruby
yh has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<havenwood> n3vtelen: Excon is another pure Ruby option like HTTPClient.
<n3vtelen> havenwood: actually I need it for working with Google Youtube API
sp1rs has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 240 seconds]
reinaldob has quit [Read error: Connection reset by peer]
<anew> An error occurred while installing pg (0.18.1), and Bundler cannot continue.
<anew> new error
reinaldob has joined #ruby
<havenwood> anew: Is PostgreSQL actually installed?
thatslifeson has quit [Remote host closed the connection]
<anew> sudo apt-get install postgresql postgresql-contrib
<anew> ?
gf3 has quit [Quit: LOLeaving]
<kinduff> anew: can you run it again with --verbose flag?
<bootstrappm> yeah but you also need libsql
<bootstrappm> sorry not that one
swgillespie has joined #ruby
<bootstrappm> its like libpq-dev i believe
<bootstrappm> yeah anew, install libpq-dev
barkerd427 is now known as zz_barkerd427
codecop has joined #ruby
codecop_ has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
codecop__ has joined #ruby
<anew> no .. same error
mockra has joined #ruby
martinbmadsen has quit [Quit: Bye!]
baweaver has joined #ruby
<bootstrappm> as kinduff says, give us the whole error message in a gist
<anew> ok
ohcibi has quit [Read error: Connection reset by peer]
<bootstrappm> install the pg gem as it tells you to and give us that error message
finisherr has joined #ruby
<n3vtelen> havenwood: wow! It has several packages :D
krz has quit [Ping timeout: 256 seconds]
<kinduff> anew: make sure to run it as gem install pg -v '0.18.1' --verbose
<kinduff> oh ok
rbennacer has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
<bootstrappm> anew you sure you installed libpq-dev?
<kinduff> ^
gf3 has joined #ruby
podman has joined #ruby
<anew> install: missing destination file operand after ‘libpq-dev’
<anew> Try 'install --help' for more information.
rbennacer has joined #ruby
<al2o3-cr> anew: what is the command you just run to get that error?
<bootstrappm> hm, anew: sudo apt-get install libpq-dev
<n3vtelen> I'm a python programmer
<bootstrappm> not just install
<bootstrappm> al2o3-cr: he ran "install libpq-dev" I tihnk
sinkensabe has joined #ruby
<al2o3-cr> oh ok
<n3vtelen> which book or document do you suggest?
Fluent has left #ruby ["That's how I feel about this channel"]
anaeem1 has joined #ruby
paulcsmith has joined #ruby
<bootstrappm> you have to install nodejs anew
sinkensabe has quit [Remote host closed the connection]
<bootstrappm> if you don't care about the version do: sudo apt-get install nodejs
sinkensabe has joined #ruby
<anew> man
<anew> thanks so much for the help
mrsolo has quit [Quit: This computer has gone to sleep]
<anew> i'd jump off a bridge if it wasnt for irc
<bootstrappm> no prob, what are you trying to install with all this stuff anew?
anaeem___ has joined #ruby
n008f4g_ has joined #ruby
<anew> this ruby code i found on github lol
anaeem1 has quit [Read error: Connection reset by peer]
avahey has joined #ruby
<kinduff> now you know!
aphprentice has joined #ruby
<kinduff> anew: what linux distro are you using?
baweaver has quit [Ping timeout: 264 seconds]
<anew> ububty 15.04
<xxneolithicxx> ububity? lol
<bootstrappm> lololol
<dudedudeman> ha, that's actually hilarious to say out loud and much funnier than ubuntu
<bootstrappm> hahahah i agree
ravenreborn_ has quit [Ping timeout: 244 seconds]
<anew> lmao
<xxneolithicxx> that just made my day
sigurding has joined #ruby
<anew> :D
slash_nick has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Textual IRC Client: www.textualapp.com]
Jonah11_ has quit []
phutchins has quit [Ping timeout: 264 seconds]
reinaldob has joined #ruby
jtdowney has joined #ruby
martinbmadsen has joined #ruby
thatslifeson has joined #ruby
aswen has joined #ruby
sinkensabe has joined #ruby
wallerdev has quit [Quit: wallerdev]
airdisa has joined #ruby
creakybones has joined #ruby
<kinduff> lmao
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kinduff> Ubuntu-Ububity-Boo
<bootstrappm> i'm hungry
<bootstrappm> feed me IRC
<kinduff> *feeds bootstrappm
tuelz has joined #ruby
* bootstrappm gobbles
sinkensabe has quit [Remote host closed the connection]
doc|work has joined #ruby
Zai00 has joined #ruby
<tuelz> I've got a test that works in minitest and I suspect this might be a more rspec specific question so I've asked there as well. I've got a test that starts a puma web server with rack and then later in the test attempts to kill that process. In minispec it works fine, but in rspec all execution is halted when the web server is brought up
<anew> man this is so annoying
<anew> i'm just trying to get this running
<tuelz> anew: errors?
<doc|work> hey, I'm in a bad place with a live server, have no experience with ruby, and could really do with some help if people can spare the time. I'm getting a phusion error which reads: "Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)". I've run bundle install, but still no luck. Any suggestions?
<tuelz> seems pretty straightforward to get running. Set env variables, setup a database, then launch
<Synthead> is there a built-in array method to test if an array contains one element?
<tuelz> doc|work: can you gist the Gemfile
<kinduff> tuelz: how are you turning on the rack server?
<doc|work> tuelz: one sec
<bootstrappm> Synthead: include?
<al2o3-cr> Synthead: Array#include?
<bootstrappm> that includes the question mark
<anew> i get a bunch of couldnt create db errors
<al2o3-cr> >> ["a", 1, "b", 2].include? 1
<ruboto> al2o3-cr # => true (https://eval.in/367397)
<anew> will gist it
crack_user has joined #ruby
<Synthead> bootstrappm, al2o3-cr should have been more specific! something equivalent to array.length == 1
<crack_user> hello guys
<umgrosscol> doc|work: Bundle install isn't reporting using rake-10.4.2 ?
<bootstrappm> Synthead that should do it, doesn't work for you?
Musashi007 has joined #ruby
<crack_user> some one knows how can I use gsub with regex and replace only the group of regex?
<tuelz> doc|work: what happens when you `gem install rack -v '10.4.2'`?
<Synthead> bootstrappm: it works, but I thought I'd ask in case there's an even better way to do it
<doc|work> umgrosscol: first item in the list is: Installing rake (10.4.2)
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
<Synthead> bootstrappm: reduce code smell
<bootstrappm> Synthead yeah, let me think
<doc|work> tuelz: running now
<doc|work> tuelz: ERROR: Could not find a valid gem 'rack' (= 10.4.2) in any repository
<doc|work> weird
<bootstrappm> Synthead nope, I think that's as good as it gets
<umgrosscol> doc|work: How are you starting the app?
drager has quit [Changing host]
drager has joined #ruby
<doc|work> tuelz: it suggests Rack but that doesn't work either
jenrzzz has quit [Ping timeout: 246 seconds]
<tuelz> doc|work: just starting simple, but do you have an internet connection?
rippa has joined #ruby
MasterPiece has joined #ruby
DerisiveLogic has joined #ruby
<kinduff> tuelz: you can get some inspiration from there
<doc|work> tuelz: yep, it's on a live server.
<Synthead> bootstrappm: ok, thanks :)
<tuelz> kinduff: thanks :)
<doc|work> umgrosscol: I'm not sure to be honest
<bootstrappm> tuelz hahahah. "Just starting simple, are you breathing?"
<doc|work> umgrosscol: this is an inherited project
sigurding has quit [Quit: sigurding]
<tuelz> bootstrappm: well I mean could be a local box with no connection to the interwebz....some shops keep their stuff behind a lot of firewall crap
<tuelz> but yeah it was along shot
<bootstrappm> its true, just the phrasing was funny
<tuelz> :p
<bootstrappm> ñD
<bootstrappm> :D *
<crack_user> I have this text "string1 string2" and I want to replace to "string1 mstring2m" lwith a regex like this /^string1 (string2)$/
<umgrosscol> doc|work: However you're starting it doesn't end up with the correct environment. It appears that you're installing the gems somewhere it's not going to look for them.
<tuelz> doc|work: I'm pretty lost, so if you listen to me I'm basically just taking shots in the dark. What's your `ruby -v`?
<doc|work> tuelz: I'm lost too
<doc|work> umgrosscol: thanks, ok
<doc|work> tuelz: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
<umgrosscol> doc|work: looking at the Gemfile, I'd assume it's expecting you to use capistrano to deploy it.
<doc|work> how do I check which env it's picking up
<doc|work> ?
<jhass> crack_user: don't use fake values
<doc|work> umgrosscol: yeah, I'm not sure. My coworker looked into the capistrano setup and said there was a file missing. He's no longer working here.
<umgrosscol> doc|work: In the application directory, type `bundle config`
<doc|work> to give some background. I was trying to run an assets precompile when it broke. Had the correct environment set, but that might give you some idea
<crack_user> jhass: these values doesn't invalidate the example
<jhass> crack_user: so in words you want to surround the second word in a string?
<doc|work> umgrosscol: I just get "Settings are listed in order of priority. The top value will be used."
<doc|work> no other details
<jhass> crack_user: that's much guessing, shows how good your example is ;)
<umgrosscol> doc|work: Okay. So it's not vendorizing the gems into the project directory.
shuber_ has joined #ruby
<doc|work> umgrosscol: how do I fix that? :/
<anew> when i run rake db:create db:migrate
mjuszcza_ has quit []
<umgrosscol> doc|work: That doesn't mean anything is broken.
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<umgrosscol> doc|work: Are you using bundle exec to run your commands?
<doc|work> umgrosscol: sorry, you lost me.
<doc|work> umgrosscol: I had, yeah
<umgrosscol> doc|work: What was the command line you ran that gave you the error?
airdisa has quit [Remote host closed the connection]
<doc|work> umgrosscol: that's the error through the server (phusion)
airdisa has joined #ruby
uri_ has joined #ruby
<doc|work> umgrosscol: mind if I pm you the url?
CamonZ has quit [Quit: Textual IRC Client: www.textualapp.com]
<umgrosscol> doc|work: Sure?
<crack_user> jhass: no I want to know how can I surroding the first group of a regex with a string, something like "string1 string2".gsub(/string1 (string2)/, "<mark>\\1<mark>")
dopie has quit [Quit: This computer has gone to sleep]
<bootstrappm> anew you have to edit the database credentials before you run rake
<bootstrappm> you have postgres installed right?
<crack_user> jhass: I want this to turn "string1 <mark>string2<mark>"
arietis has joined #ruby
shuber_ has quit [Ping timeout: 252 seconds]
<kinduff> >>"string1 string2".gsub(/^string1 (string2)$/, '\0 m\1m')
<ruboto> kinduff # => "string1 string2 mstring2m" (https://eval.in/367398)
<jhass> is string1 fixed or variable?
j416 has quit [Quit: o/]
<kinduff> closer i could get crack_user
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<anew> bootstrappm, yes i have postgres installed
<anew> i am used to mysql tho...
<bootstrappm> well get used to postgres its the best :P
<umgrosscol> doc|work: what versions does `ruby -v` report?
<jhass> well, let's assume your example
finisherr has quit [Quit: finisherr]
arietis has quit [Client Quit]
<doc|work> umgrosscol: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
<jhass> >> "string1 string2".gsub(/(?<=string1 )string2/, '<m>\1</m>')
<ruboto> jhass # => "string1 <m></m>" (https://eval.in/367399)
kalusn has quit []
<jhass> >> "string1 string2".gsub(/(?<=string1 )string2/, '<m>\\1</m>')
<ruboto> jhass # => "string1 <m></m>" (https://eval.in/367400)
<jhass> eh, right, \o
<umgrosscol> doc|work: what is GEM_HOME set to?
<jhass> you get it
<doc|work> umgrosscol: /root/.rvm/gems/ruby-2.1.0
<anew> bootstrappm, i dont even know where to start with this...
<umgrosscol> Okay. You're gem home needs to match the gem home of the environment.
<bootstrappm> anew do you know how to create a user in postgres?
<umgrosscol> when you're doing the install
<anew> is there phpmyadmin for postgres ?
<umgrosscol> either that or you can manually set the install path with an arg to bundle install
ChampS_ has joined #ruby
<doc|work> umgrosscol: how do I switch rvm to make it match?
<bootstrappm> there's phpPgAdmin but I wouldn't recommend using it
<ChampS_> hey :)
<bootstrappm> anew ^
<ChampS_> ive install ruby by rvm on my raspberry pi
<anew> argh
<kinduff> bleh
<umgrosscol> doc|work: It's not an rvm issue. Looks like your ruby version is fine.
<kinduff> >> "string1 string2".gsub(/^(string1) (string2)$/, '\1 m\2m')
<ruboto> kinduff # => "string1 mstring2m" (https://eval.in/367401)
<bootstrappm> give pgadmin a shot anew http://www.pgadmin.org/
<al2o3-cr> >> "string1 string2".gsub /(string2$)/, "<mark>\\1<mark>"
<doc|work> umgrosscol: rvm gemset list gives me an option that I think would match, as well as another 'default' one.
<ruboto> al2o3-cr # => "string1 <mark>string2<mark>" (https://eval.in/367402)
Musashi007 has quit [Quit: Musashi007]
<umgrosscol> doc|work: GEM_HOME or bundle install --path= is just the location the gems are going to be installed to.
<kinduff> >> "string1 string2".gsub(/^(string1) (string2)$/, '\1 <mark>\2<mark>')
<ruboto> kinduff # => "string1 <mark>string2<mark>" (https://eval.in/367403)
<umgrosscol> doc|work: the application environment states the GEM_HOME it is expecting.
<doc|work> ok, gotcha, one sec
<bootstrappm> crack_user: jhass is right, if string1 is variable none of these solutions will work
<kinduff> al2o3-cr looks better
aphprentice has quit [Remote host closed the connection]
<bootstrappm> is it fixed or variable?
<bootstrappm> ah wait, al2o3-cr's solution should!
<ChampS_> ruby: 2.2.1 rails: 4.2.1
<kinduff> simplequotes protip
<ChampS_> ive installe json 1.8.2
<ChampS_> but my redmine cant find it
<umgrosscol> doc|work: You could check the GEM_HOME path listed in the Environment variables spit out by the url you pointed me to. See if the gem is actually there.
<crack_user> jhass: string1 is variable
<ChampS_> i got the error msg "Could not find json-1.8.2 in any of the sources (Bundler::GemNotFound)"
<doc|work> umgrosscol: ok, running an install right now with the path arg set
<umgrosscol> doc|work: If the gem is there, and the version is correct, then I don't know what the issue is.
codecop_ has quit [Quit: Išeinu]
codecop has quit [Quit: Išeinu]
<jhass> crack_user: I won't help you any further until you describe your actual problem
<crack_user> jhass: the regex is variable, the users will input that
<jhass> tired of guessing
<ChampS_> but "bundle install" installed that dependency and I can find a filder in .rvm/gems/ruby-2.2.1/gems/json-1.8.2
<doc|work> umgrosscol: well, now I'm getting a white screen. Progress? :D
millerti has joined #ruby
devoldmx has quit [Remote host closed the connection]
<That1Guy> I'm trying to understand require and how to get it to pass info from 1 file to another
<kinduff> crack_user: what's the actual problem you're trying to solve?
tvw has joined #ruby
<al2o3-cr> crack_user: gist up a simple proper use case
devoldmx has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
aspiers has quit [Ping timeout: 272 seconds]
reinaldob has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
reinaldob has joined #ruby
<doc|work> umgrosscol: this is in the logs, https://gist.github.com/daveoconnor/5901754a3227f4060223. Any suggestions?
jespada has joined #ruby
qwertme has joined #ruby
<crack_user> jhass: well I actually have a application were users can input the regex to highlight text, until now all the regex are the type /(theregex)/ where the group are surrounded with html tag <mark>, know I have the case where I have a regex where only a part of regex is the group instead the whole regex like /part1 (part2)/
<doc|work> weird, the sprockets directory doesn't exist
<That1Guy> english_number has a gets.chomp in it that I'm trying to get to take from 10.5.3.rb, should I not be using gets.chomp, is there a better option?
<umgrosscol> doc|work: That looks like a new an interesting error.
<bootstrappm> help
<kinduff> crack_user: why not js and process that in the frontend?
<bootstrappm> nvm
<doc|work> umgrosscol: ok, so, other background that may be relevant. I did a precompile locally and scp'd the assets in. May be related?
<jhass> crack_user: sounds like it would be properly solved with a lookbehind like I've shown, can you instruct your users to do that?
<doc|work> umgrosscol: the workflow documentation for this (on our part) sucks :(
havenwood has quit []
pwattstbd has joined #ruby
<crack_user> jhas: my code actually is text.gsub!(Regexp.new(regex, true), "<mark>\\1</mark>")
devoldmx_ has joined #ruby
<al2o3-cr> crack_user: you can use <tab> to complete names :)
<crack_user> jhas: I works for regex like /(regex)/ but not for /regex (regex)/
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<umgrosscol> doc|work: Not sure. Haven't seen that error before.
devoldmx has quit [Ping timeout: 255 seconds]
<crack_user> al2o3-cr: pro tips thx
<al2o3-cr> crack_user: np
<doc|work> umgrosscol: ok, thanks for your help so far
<anew> does pgadmin have a gui ?
<crack_user> jhass: now I thing the best solutions is the two paramers of gsub should be user inputed instead the first one only
<crack_user> jhass: any other ideia?
<doc|work> umgrosscol: it's alive!
<jhass> crack_user: I mean you can do something like .gsub(/a (b)/) {|m| m.sub(/#{$1}/, "<m>#{$1}</m>") } but meh
<doc|work> umgrosscol: turns out it was a permissions error on the assets in the tmp folder. Thanks so much for your help.
kirun has joined #ruby
krz has joined #ruby
Hijiri has joined #ruby
<doc|work> tuelz: thanks to you too
rrichardsr3 has quit [Quit: The road to hell is paved with good intentions...]
ramfjord has joined #ruby
bruno- has joined #ruby
mrsolo has joined #ruby
tvw has quit [Ping timeout: 276 seconds]
<crack_user> jhass: well it works
ohcibi has joined #ruby
<jhass> crack_user: .sub($1, ... is sufficient actually
<jhass> telling users to use a lookbehind is really no option?
xaxisx has joined #ruby
<crack_user> jhass: what you suppose to mean with lookbehind?
slash_nick has quit [Quit: leaving]
<jhass> my earlier example
<jhass> (?<=...)
jenrzzz has joined #ruby
A205B064 has joined #ruby
tvw has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
bruno- has quit [Ping timeout: 250 seconds]
<crack_user> jhass: it doesn't work here
paulcsmith has joined #ruby
Pathfinder has joined #ruby
<jhass> >> "string1 string2".gsub(/(?<=string1 )string2/, '<m>\0</m>')
<ruboto> jhass # => "string1 <m>string2</m>" (https://eval.in/367406)
greenbagels has joined #ruby
wallerdev has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
<anew> could someone help me on what to do next here pl
<anew> plz
SouL_|_ has joined #ruby
jottr has joined #ruby
<crack_user> jhass: it is a solution, but I think the gsub(/a (b)/) {|m| m.sub(/#{$1}/, "<m>#{$1}</m>") } thing will have less impact and work with the existent information
sinkensabe has joined #ruby
<ChampS_> "Could not find json-1.8.2 in any of the sources (Bundler::GemNotFound)" anyone an idea?
<jhass> ChampS_: bundle install
jtdowney_ has joined #ruby
mjuszczak has quit []
wildroman2 has joined #ruby
<ChampS_> I did
<ChampS_> json is installed
<jhass> anew: edit your config/database.yml to a role that exists
aawe has left #ruby ["WeeChat 0.4.2"]
<jhass> ChampS_: bundle exec !! then
<ChampS_> drwxr-xr-x 9 Ben Ben 4096 May 19 21:56 json-1.8.2 in ~/.rvm/gems/ruby-2.2.1/gems/
Igorshp has joined #ruby
<anew> jhass how can i log into postgres, usually i use mysql and phpmyadmin
<ChampS_> ok ill try
<jhass> anew: sudo -u postgres -s; psql
<anew> totally lost, when i installed postgres, it didnt ask me for a root user and pw
<jhass> anew: sudo -u postgres -s; man createuser
antgel has joined #ruby
<jhass> anew: sudo -u postgres -s; man createdb
<anew> i run those consecutively 1, 2, 3?
<jhass> anew: no you, they're examples, start with the second
sinkensabe has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
<jhass> type, don't copy paste
<jhass> and split on ;
<anew> argh
<jhass> try to understand what the first one does
jtdowney has quit [Ping timeout: 256 seconds]
wolfleemeta has quit [Ping timeout: 276 seconds]
<ChampS_> what command should I exec?
<jhass> ChampS_: the one throwing the error
x1337807x has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
paulcsmith has joined #ruby
aryaching has quit []
wolfleemeta has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<ChampS_> redmine cant find json I've no idea what command that is
sinkensabe has joined #ruby
tvw has quit [Ping timeout: 252 seconds]
agent_white has joined #ruby
tautvydas has quit [Remote host closed the connection]
agent_white has quit [Read error: Connection reset by peer]
woodennails has quit [Quit: Textual IRC Client: www.textualapp.com]
tona has joined #ruby
<tona> hello how could i create one simple web page using ruby ?
<jhass> tona: how simple?
agent_white has joined #ruby
<jhass> what's your goal?
agent_white has quit [Read error: Connection reset by peer]
aswen has quit [Ping timeout: 240 seconds]
<tona> i would like to get values like hard disk, ram, processor for each computer into one web page , i want to recollect this information , when i type its url
<tona> jhass
<ytti> anyone else got this spam? http://p.ip.fi/Moso
<adaedra> you can use sinatra for this tona
<jhass> tona: I'd go for sinatra then, sinatrarb.com
reinaldo_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
<apeiros> ytti: nope
reinaldob has quit [Read error: Connection reset by peer]
<ChampS_> jhast any idea which command I could use?
taiansu_ has quit [Remote host closed the connection]
<jhass> ytti: not specifically, but the github crawler increased
duderonomy has joined #ruby
<jhass> ChampS_: where do you get the error exactly?
jenrzzz has quit [Ping timeout: 265 seconds]
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<tona> jhass one question , what commands could i get , ram, os level, processor, hardisk using sinatra ?
<ytti> jhass, apeiros thanks
<jhass> tona: take sinatra out of the equation first for that
<ytti> would be easier to report to github if others got it
<jhass> tona: figure out how to do it with ruby
<jhass> ?pry tona
<ruboto> tona, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<jhass> good to experiment on little snippets like that
<adaedra> tona: sinatra is for the web part of your project. For gathering system information, you'll need more tools, or do it yourself
Stalkr_ has joined #ruby
kinduff has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
codecop__ has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 264 seconds]
juanpaucar has joined #ruby
graft has joined #ruby
<graft> hey, what's a nice way to compact a hash? i.e., remove all the elements that have nil values?
<adaedra> #select ?
<al2o3-cr> graft: compact
<jhass> graft: ActiveSupport ships Hash#compact
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<anew> ok new errors lol
<jhass> outside: .reject {|_, v| v.nil? }
lkba_ has joined #ruby
<jhass> anew: I'd suggest you move your application into the home directory of the user you run it as
<jhass> anew: then sudo chown -R $USER it
jenrzzz has quit [Ping timeout: 244 seconds]
<anew> the app is in a dir for a website ?
chipotle has joined #ruby
<jhass> yeah, and the user you run it as isn't allowed to write to that directory
treehug88 has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
<anew> the user i run the rails app as ?
tubuliferous has joined #ruby
<anew> but isnt that just served up by apache like a website i dont understand
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
airdisa has quit [Remote host closed the connection]
finisherr has joined #ruby
martinbmadsen has quit [Remote host closed the connection]
<jhass> only if you set it up that way
hoov has quit []
seph429 has joined #ruby
<jhass> by running rails s you don't
juanpaucar has quit [Ping timeout: 272 seconds]
<anew> i only have root as user tho...
martinbmadsen has joined #ruby
<jhass> that's bad
<jhass> ?root
<ruboto> General advise in system administration: do not and that means never use sudo or root to "fix" things. Only use it if you exactly know why it would work and why it wouldn't work under any circumstances as normal user. Or if you're told to do it.
<anew> cant understand, if i created all this with php in the same dir
<anew> the website would be running
<anew> what's the difference with ruby in this same dir
martinbmadsen has quit [Remote host closed the connection]
<jhass> yes, Ruby isn't PHP
<GaryOak_> anew is gonna be a linux expert by the time the rails install gets working
<anew> lol
<anew> so who runs the ruby app ?
TheHodge has joined #ruby
<anew> argh want to kill myself
anaeem___ has quit [Remote host closed the connection]
<jhass> anew: the ruby community decided to use application servers to run webapps
airdisa has joined #ruby
tona has left #ruby [#ruby]
<jhass> similar to the Java and the Python community for example
<jhass> PHP is actually the exception
sinkensabe has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<jhass> cgi/fcgi is still strong with Perl I guess
martinbmadsen has joined #ruby
wallerdev has joined #ruby
<ChampS_> [22:13:38] <jhass> ChampS_: where do you get the error exactly? <<< when I open the website
<jhass> ChampS_: so with passenger?
tvw has joined #ruby
<jhass> did you setup passenger yourself?
<ChampS_> Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
<ChampS_> Error message:
<ChampS_> Could not find json-1.8.2 in any of the sources (Bundler::GemNotFound)
<ChampS_> Exception class:
<ChampS_> PhusionPassenger::UnknownError
<ChampS_> Application root:
<hoelzro> jhass: Perl moved on to PSGI a while ago
baweaver has joined #ruby
swgillespie has joined #ruby
<jhass> so I can count them to the application server people now?
JDiPierro has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<anew> man
<anew> anyone want to make $10
icebourg has quit []
icebourg has joined #ruby
reinaldob has joined #ruby
jenrzzz has joined #ruby
reinaldo_ has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
freerobby has quit [Quit: Leaving.]
<jhass> ChampS_: so what about my last question, was it you that setup passenger? if not, who did?
<anew> jhass i cant understand why var/www/ cant have my rails app and run it
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has quit [Ping timeout: 272 seconds]
<jhass> because how things work
<ChampS_> yes
Rollabunna has joined #ruby
bronson has quit [Remote host closed the connection]
shuber_ has joined #ruby
<jhass> anew: did you move host or is this still bluehost?
<anew> i moved
<anew> i bought a linode
<ChampS_> I used sudo gem install passenger
<anew> so everything is clean
hectortrope has quit [Quit: WeeChat 0.4.2]
sinkensabe has quit [Remote host closed the connection]
selu has quit [Quit: Textual IRC Client: www.textualapp.com]
taiansu has joined #ruby
gaboesquivel has joined #ruby
bmurt has quit []
<bootstrappm> anybody used anemone before?
<bootstrappm> it eats all the memory on one of my AWS instances then gets killed before its done with its job :/
B1n4r10 has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<ChampS_> jhass did I something wrong by installing passenger with "sudo gem install passenger"?
enebo has quit [Quit: enebo]
<jhass> ChampS_: it sounds as if you ran bundle install in a different Ruby environment as you run passenger in
sinkensabe has joined #ruby
<jhass> ChampS_: cheap workaround might be bundle install --deployment
<jhass> though your app might run with a ruby version you don't intended then
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 245 seconds]
sdrew has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
sinkensabe has quit [Remote host closed the connection]
shuber_ has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<anew> jhass please
<anew> i just want to get this up and running
<jhass> anew: I'd highly suggest you do as I said then, create a user for your app, move the app into its home (and make sure all files are owned by it), run an application server under it and then setup apache to reverse proxy to that
hectortrope has joined #ruby
<anew> jesus christ
<anew> where can i read how to do all this
<anew> because i dont even know where to begin
<jhass> anew: http://stackoverflow.com/a/10065352/2199687 a quick & dirty way to do a reverse proxy
wildroman2 has quit [Read error: Connection reset by peer]
<jhass> anew: man adduser
<jhass> anew: man mv
<jhass> anew: man chown
<anew> reverse proxy... why the hell do i need that
wildroman2 has joined #ruby
<anew> no not man, i mean htere arent any docs on the ruby site ???
swgillespie has joined #ruby
<jhass> the ruby side is simple
<anew> want to suicide
lxsameer has joined #ruby
<jhass> stop being so pathetic
<jhass> we all started were you are
<jhass> *where, even
bronson has joined #ruby
<anew> i dont care about ruby, i just neeed to run this one app
<anew> this fkng app i found that is not in php
<al2o3-cr> anew: chill
<jhass> this is 90% system administration and only 10% ruby
thebastl has joined #ruby
<anew> why do i need a user for this app let's start with that... what user runs apache? why cant the same user run the files inside var/www
<adaedra> it could
<jhass> because that's bad practice
<jhass> isolation is good to guard either side from flaws in the other
<jhass> you don't want your machine owned, right?
mjuszczak has joined #ruby
<anew> i dont give a f i dont even know if this site is going to make money or not
reinaldo_ has joined #ruby
jespada has quit [Ping timeout: 250 seconds]
<toretore> anew: how about you do less whining and more listening when people are nice enought to help you
<jhass> anew: then please from now on, every morning when you look into the mirror say: "I'm the kind of person that's responsible for spam mails"
mjuszcza_ has joined #ruby
CorySimmons has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
taiansu has quit [Remote host closed the connection]
taiansu has joined #ruby
mjuszczak has quit [Ping timeout: 246 seconds]
Hijiri has quit [Quit: WeeChat 1.0.1]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx_ has quit [Remote host closed the connection]
gambl0re has quit [Ping timeout: 264 seconds]
dseitz has joined #ruby
willgorman is now known as willgorman|away
mjuszcza_ has quit [Ping timeout: 272 seconds]
Gate has quit [Quit: Lost terminal]
mjuszczak has joined #ruby
swgillespie has joined #ruby
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zz_barkerd427 is now known as barkerd427
freerobby has joined #ruby
taiansu has quit [Ping timeout: 256 seconds]
n3vtelen has quit [Quit: Leaving]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
freerobby has quit [Client Quit]
CorySimmons has quit [Quit: Bye!]
timonv has joined #ruby
<anew> bin/rails server
<anew> shouldnt this just start my rails server in the var/www
Igorshp has quit [Remote host closed the connection]
mjuszczak has quit [Ping timeout: 244 seconds]
shazaum has quit [Quit: Leaving]
multi_io has quit [Ping timeout: 245 seconds]
Igorshp has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
djbkd has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gambl0re has joined #ruby
multi_io has joined #ruby
swgillespie has joined #ruby
Dopagod has quit [Ping timeout: 244 seconds]
jmignault has joined #ruby
reinaldo_ has quit [Read error: Connection reset by peer]
airdisa has quit [Remote host closed the connection]
reinaldob has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
greenbagels has quit [Quit: Leaving]
baweaver has quit [Remote host closed the connection]
mjuszczak has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crack_user has quit [Quit: Leaving.]
Igorshp has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
reinaldob has quit [Remote host closed the connection]
Beamed is now known as beamed_down
Hijiri has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
edwinvdgraaf has quit [Ping timeout: 265 seconds]
crack_user has joined #ruby
FernandoBasso has joined #ruby
jespada has joined #ruby
PaulCape_ has joined #ruby
ismaelga has quit [Remote host closed the connection]
edwinvdg_ has quit [Ping timeout: 276 seconds]
failshell has quit []
chipotle has quit [Quit: cheerio]
lidenskap has joined #ruby
AlphaAtom has joined #ruby
f3lp has joined #ruby
PaulCapestany has quit [Ping timeout: 250 seconds]
<anew> reading a rails tutorial
xaxisx has quit [Quit: xaxisx]
devoldmx has joined #ruby
tercenya has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
xaxisx has joined #ruby
mwlang has quit [Quit: mwlang]
casadei has quit [Remote host closed the connection]
zzxc has quit [Quit: Lost terminal]
tercenya has joined #ruby
<anew> when i chmod 0664 development.log it says operation not permitted
A124 has quit [Remote host closed the connection]
A124 has joined #ruby
Dopagod has joined #ruby
tercenya has quit [Client Quit]
sinkensabe has joined #ruby
EagleDelta has quit [Ping timeout: 258 seconds]
<bootstrappm> anew think you lost people's good will in here
sgambino has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrsolo has quit [Quit: This computer has gone to sleep]
<anew> meh
<anew> it's 11 i been doing this all day
<anew> i turned into a bad apple for a minute there
tuelz has quit [Ping timeout: 272 seconds]
<bootstrappm> for anybody else that encounters that anemone memory leak: add 'discard_page_bodies: true' to the options to Anemone.crawl
griffindy has joined #ruby
<bootstrappm> for the last thing you said anew, use sudo
_blizzy_ has joined #ruby
<anew> when i did that with sudo it asked me for my postgres password... i dont have a postgres password
<anew> bootstrappm, ^
pragmatism has quit [Quit: Textual IRC Client: www.textualapp.com]
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uri_ has quit [Ping timeout: 245 seconds]
<bootstrappm> when you did sudo chmod 0664 development.log it asked you for your postgres password?
xaxisx has quit [Quit: xaxisx]
<jhass> anew: when I said "understand what sudo -u postgres -s" does, I meant it
<anew> bootstrappm, yes
<bootstrappm> I think you have a really messed up system there then bud. try this: sudo implode
<bootstrappm> development.log has nothing to do with postgres
<anew> man
<anew> messed up system
<anew> i just reinstalled ubuntu
<anew> 30 min ago
<anew> and started from scratch with ruby
<bootstrappm> that's a joke. there's no way that command could give you a postgres message
<bootstrappm> AKA you're lying
<bootstrappm> AKA you remember something incorrectly
<anew> ...
<anew> i will screenshot it
<jhass> bootstrappm: I told them to switch to the postgres user to create their postgres users & dbs
<jhass> bootstrappm: they don't understand that they did that
lidenskap has quit [Remote host closed the connection]
<bootstrappm> ahhh
<bootstrappm> do 'exit' first anew
podman has quit [Quit: Connection closed for inactivity]
sinkensabe has quit [Remote host closed the connection]
<anew> ah
<anew> yes ok
<GaryOak_> Is there any reason a var would get mangled using the Sequel gem in a thread?
<bootstrappm> jhass what shell does postgres use by default?
<jhass> bootstrappm: I told them to sudo -u postgres -s
<jhass> so irrelevant
<anew> ok
<anew> chmod worked
tuelz has joined #ruby
<jhass> anew: what says whoami now?
mjuszczak has quit []
<anew> when i do rails -s is it supposed to hang tho? that = the server is runnign?
<anew> whoami = root
<bootstrappm> jhass the option -s starts an interactive shell no? was just wondering what shell you get when you do that. I interact w/ my postgres differently
<jhass> bootstrappm: it's the same as $SHELL, the current one
<anew> ah ok
<jhass> bootstrappm: and ^, hf trying to teach them not to work with root, I give up
<anew> so the server is running
<anew> but the 'webpage' just shows directories and files
<bootstrappm> does linode login w/ root by default? O_O
EagleDelta has joined #ruby
<anew> i just created this linode 30 min ago
dopie has joined #ruby
<bootstrappm> anew cool, when you SSH into it do you get root right off the bat?
<anew> i'm more concerned with getting this app up and running than securing the server, i will do that at a later time
<anew> yes
<bootstrappm> silly linode
rodfersou has joined #ruby
<anew> so server is running
pwattstbd has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<anew> but app is just a bunch of files...
shuber_ has joined #ruby
riskish has joined #ruby
<bootstrappm> okay let me try to explain it to you anew
<bootstrappm> you know about ports in linux?
<anew> ok
<bootstrappm> basically theres thousands of virtual "ports" on your server that somebody from the outside in can poke
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bootstrappm> when you hit www.google.com you're actually hitting www.google.com:80
<anew> yes
<bootstrappm> 80 being the port number
failshell has joined #ruby
<anew> ok
<bootstrappm> when somebody says that a program "binds" to a port it means they, exclusively, are listening on that port. Anybody from the outside that pokes the computer on that port will automatically be talking to them
<anew> so i need to set the port for ruby ?
mjuszczak has joined #ruby
swgillespie has joined #ruby
mpistone has joined #ruby
<bootstrappm> rails server by default listens on port 3000 or something, idk its been a while since I've used it
Channel6 has joined #ruby
sinkensabe has joined #ruby
<bootstrappm> so you need to do one of two things:
<bootstrappm> 1. Get ANOTHER server (apache or nginx) that IS listening on port 80 to forward to port 3000
<bootstrappm> 2. Have the rails server listen in on port 80
<adaedra> Go to the first solution.
umgrosscol has quit [Remote host closed the connection]
<bootstrappm> #2 usually isn't recommended, I forget why
thebastl has quit [Quit: Leaving...]
<adaedra> If it's a rails app, you'll probably need a real server to serve assets as rails don't do it by default in production
shuber_ has quit [Ping timeout: 258 seconds]
EagleDelta has quit [Remote host closed the connection]
premera has quit [Remote host closed the connection]
<anew> 'probably need a real server' so #1 or #2 ?
<anew> #1
<bootstrappm> #1
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
<anew> hmmm ok
<bootstrappm> which is what everybody was telling you to google: "reverse proxy"
<adaedra> the 'real' server will face the internet, and 'proxy' the requests to the ruby server
edwinvdgraaf has joined #ruby
<bootstrappm> tbh anew if you weren't looking to learn a bunch of linux / webapp fundamentals I would really recommend going back to PHP
<anew> so... when i run rails -s should i run that in tmux or something since it just keeps running?
<bootstrappm> ruby isn't really a toy language
womble has left #ruby ["Oooh! Shiny!"]
<anew> bootstrappm, well i wasnt, but i really want to run this app
casadei has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<anew> if i can jus set this up...
jmignault has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> ruby rocks, using ruby .cgi is trivial
<bootstrappm> anew you're thinking of nohup and shouldn't be necessary. rails -s will keep running as long as there's no fatal exception. If there is one of those nohup won't really help you much either, it'll just hide the problem
<anew> damn ok so forwarded the port
<anew> rails s is running
<anew> and page is sstill just a bunch of files and dirs
lidenskap has joined #ruby
<shevy> he tackles the problems one at a time :)
<adaedra> anew: some ruby servers allows to run in the background, if you want, once you'll get it working
danman has quit [Quit: danman]
baroquebobcat has joined #ruby
lidenskap has quit [Remote host closed the connection]
<bootstrappm> anew always give details. what web server did you choose and gist the conf files
<anew> well i dont know what i screwed up here or what is the next step
<anew> i did rails s
<anew> server runing - fine
bruno- has joined #ruby
<anew> i added .htaccess to forward th epoart like you said
<bootstrappm> okay so you're using apache
<bootstrappm> did you setup a vhost?
lidenskap has joined #ruby
<anew> yes all that i did before i started ruby
<bootstrappm> send us the conf files and the conf you used for the reverse proxy
<anew> i will hide the url in the htaccess ok
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<anew> htaccess
<anew> conf files = config.ru ?
<adaedra> no
<adaedra> config.ru is the startup file for rack apps
kirun has quit [Quit: Client exiting]
tvw has quit []
Igorshp has joined #ruby
<anew> which conf files do you need ?
xaxisx has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ldnunes has quit [Quit: Leaving]
finisherr has quit [Quit: finisherr]
Hijiri has quit [Quit: WeeChat 1.0.1]
<ChampS_> I've installed two versions of JSON, 1.8.1 and 1.8.2
<ChampS_> if I try to uninstall 1.8.1 its not possible
<bootstrappm> anew you're using Rails correct?
<bootstrappm> then send us the apache vhost
<jhass> ChampS_: normally it shouldn't matter, especially if you want to remove the older one
<bootstrappm> i don't think we need anything other than the vhost and that htaccess. If i'm wrong I'll just ask you for more later
<bootstrappm> right off the bat I can tell you you're issue is probably that you're rewriting not proxying
<bootstrappm> when the request gets to the bhost it just serves the files seeing them all as static
<bootstrappm> vhost*
<anew> ok
<anew> sending vhost now
devoldmx has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<anew> vhost
iamninja_ has quit [Read error: Connection reset by peer]
gregf has quit [Quit: WeeChat 1.1.1]
nfk|laptop has quit [Quit: yawn]
mpistone has quit []
<bootstrappm> okay yeah, not proxying at all anew. Here, follow these instructions: https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension
werelivinginthef has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 256 seconds]
<anew> ok
Musashi007 has joined #ruby
finisherr has joined #ruby
iliketurtles has joined #ruby
FernandoBasso has quit [Quit: leaving]
premera has joined #ruby
rbennacer has quit [Remote host closed the connection]
swgillespie has joined #ruby
jespada has quit [Quit: WeeChat 1.1.1]
AlphaAtom has quit [Ping timeout: 245 seconds]
airdisa has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
jtdowney_ has quit []
Hijiri has joined #ruby
decoponio has joined #ruby
iamninja_ has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
aphprentice has joined #ruby
jottr has joined #ruby
mrsolo has joined #ruby
<anew> sigh
<anew> followed
Mia has quit [Read error: Connection reset by peer]
<anew> nothing
Igorshp has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
Igorshp has joined #ruby
leafybasil has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
wallerdev has quit [Ping timeout: 276 seconds]
yxhuvud has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
<anew> ProxyPass / http://0.0.0.0:8080/
<anew> ProxyPassReverse / http://0.0.0.0:8080/
<anew> i should insert my domain IP here
<anew> ?
juanpaucar has joined #ruby
<adaedra> Good night & good luck
<anew> lol
duderonomy has quit [Ping timeout: 245 seconds]
vickleton has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has quit [Ping timeout: 272 seconds]
Raverix has quit []
<zenspider> you're STILL at it? :P
rbennacer has joined #ruby
<zenspider> I hope you slept
<GaryOak_> haha
jgt2 has quit [Quit: WeeChat 1.1.1]
<anew> lol
<anew> no sleep
pwattstbd has joined #ruby
yxhuvud has joined #ruby
lidenskap has quit [Remote host closed the connection]
maletor has quit [Ping timeout: 272 seconds]
riotjones has joined #ruby
crack_user has quit [Quit: Leaving.]
lidenskap has joined #ruby
<GaryOak_> my poor var is getting mangled trying to run Sequel in a thread
<GaryOak_> I don't know what's happening
airdisa has quit [Ping timeout: 250 seconds]
Paradox has quit [Remote host closed the connection]
Verelia has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
riotjone_ has quit [Ping timeout: 265 seconds]
<Aeyrix> anew you need to launch your rails app listening on 127.0.0.1:8080
<Aeyrix> And then set the 0.0.0.0:8080 in that configuration to 127.0.0.1:8080
<Aeyrix> I'd recommend Unix sockets over that, but that works for a start.
<Aeyrix> By default rails listens on port 3000.
kaspernj has quit [Remote host closed the connection]
<Aeyrix> These are really basic fundamentals. If you don't know this sort of stuff you need to go back and read.
<Verelia> When I use puts, does the string I output call .to_s to itself? Like, x = 10; puts "The value is #{x}" , x calls to_s correct?
<eam> hey now, everything's basic to the expert
<Aeyrix> No.
<Aeyrix> This is basic full stop.
<eam> Aeyrix: chill out
<eam> it is not
<Aeyrix> Uh
<Aeyrix> Knowing what a port is isn't basic?
<Aeyrix> Fairly sure you learn that when you learn what, say, Http is.
<eam> there's plenty of room for people to develop in ruby who don't know the entire BSD sockets interface -- as I'm sure you don't either
<Verelia> Aeyrix, You learn that when you buy a router and connect to Internet the first time :)
<eam> it's ok to not know things and it's ok to do things without fully knowing what you're doing
<Aeyrix> Eam
serivichi has joined #ruby
<Aeyrix> You should get that checked.
<Aeyrix> You might have neglect.
<eam> Aeyrix: I'm not going to tell you off because you don't know obscure unix details that I do. Seriously, be nice
<Aeyrix> I explicitly said (Aeyrix) I'd recommend Unix sockets over that, but that works for a start.
mockra has quit [Ping timeout: 272 seconds]
<shevy> Verelia yeah, essentially "#{}" will invoke .to_s for you so you don't have to do it manually, like 'foo '+x.to_s+' bar'
<Aeyrix> I was talking about TCP ports mate.
<Aeyrix> Stop talking.
<eam> you're a rude person
<Aeyrix> I know. :)
<Aeyrix> I'm a rude person when people are rude.
<Aeyrix> It helps them realise, generally.
<eam> it's sad, you need to understand that your rudeness toward anew isn't appropriate
<zenspider> jhass: ping
<Aeyrix> You mean the part where I suggest that you learn the fundamentals?
rodfersou has quit [Remote host closed the connection]
<shevy> anew will succeed in the end
<eam> shevy: yeah
* anew sheds a single tear
<Aeyrix> ^
<anew> thanks eam
<Aeyrix> anew: What's your current vhost conf?
<Aeyrix> eam is enjoying twisting my words so
<shevy> one snippet he showed recently was this one: https://gist.github.com/anonymous/3d13a2ab3aec5dbe4113
Zai00 has quit [Quit: Zai00]
<Aeyrix> I gave him advice after that though.
infinitone has joined #ruby
diegoviola has joined #ruby
sent1nel has quit [Remote host closed the connection]
<anew> yes i'm working thru the link that bootstrappm gave me, and then what you said about 127.0.0.1
Paradox has joined #ruby
<Aeyrix> Ok
<anew> but i need to sleep it's 1230 here and i am so dead
<Aeyrix> Wait what L
<anew> i will be back tomorrow i'm sure
<Aeyrix> Link *
<Aeyrix> Ok
<anew> Aeyrix, this link, is this correct?
<Aeyrix> Ah yeah.
<anew> ok
<Aeyrix> Yeah those guides are generally pretty solid.
<Aeyrix> As much as their platform isn't.
<shevy> haha
wildroman2 has quit [Remote host closed the connection]
<anew> ok going to bed... thanks
anew has quit [Quit: Leaving]
aphprentice has quit [Remote host closed the connection]
<Aeyrix> See ya.
<GaryOak_> who knew rails was so much work
Pathfinder has quit [Remote host closed the connection]
<jhass> Aeyrix: be a bit nicer in the future please
<jhass> after all it's one of the channel rules
<Aeyrix> jhass: Please tell me, in detail, where I wasn't nice.
<Aeyrix> And yes, I'm serious.
<jhass> people had the feeling you aren't, that's enough to give a word of warning
<shevy> the "Stop talking." part ;P
<Aeyrix> All I'm seeing is eam twisting my warning that you don't understand the fundamentals into being rude to me
<Aeyrix> After they misinterpreted what I'd said.
<shevy> poor eam will never again speak
<shevy> he lived through the perl era
<eam> Aeyrix: I took issue with "If you don't know this sort of stuff you need to go back and read."
<bootstrappm> probably around the "go back and read" without specifying what to read as well as "no this is basic full stop", asserting a subjective viewpoint as absolute. Especially intimidating to a noob
<eam> that's not an attitude conducive to learning
<eam> Aeyrix: it's not a big deal
<Aeyrix> It is.
<Aeyrix> It is indeed a big deal.
Rollabunna has joined #ruby
<bootstrappm> and whats up w/ DigitalOcean's platform? I was about to move my company servers over to them but will refrain if they're no bueno
<jhass> zenspider: your ping is about ^ ?
<Aeyrix> jhass: Eam is not conducive to my helping people out.
<shevy> eam the troublemaker!
<Aeyrix> Although most of my chats happen in #rails so
<eam> :(
baweaver has quit [Remote host closed the connection]
<shevy> well this was one part I was wondering
<eam> shevy: the thing is, I am
<Aeyrix> bootstrappm that's a talk for another channel.
<shevy> because the topic, setting up a rails server, that was a lot about rails right?
<Aeyrix> My advice would be don't.
shuber_ has joined #ruby
<Aeyrix> But my reasons stem from working in the industry.
<bootstrappm> asking because you mentioned it Aeyrix
<Aeyrix> Only in context. :P
snockerton has quit [Quit: Leaving.]
<bootstrappm> poor anew was working on that for my whole work day
sepp2k has quit [Quit: Leaving.]
<Aeyrix> Nobody could help them connect Apache to Rails?
<bootstrappm> i remember when i first starting trying to get a rails app in prod in like 2007, boy that was frustrating
rbennacer has quit [Remote host closed the connection]
<bootstrappm> yeah, i helped him a bunch aeyrix
<bootstrappm> but as eam says, when you know nothing everything seems complicated
<Aeyrix> I got lucky. My first foray into rails was after Django.
<bootstrappm> last i checked he was trying to reverse proxy w/ RewriteRule which is when i sent him that link
<Aeyrix> Hm.
<Aeyrix> I'll write him a configuration when I get into work.
<zenspider> jhass: yeah. sorry. got distracted debugging a nokogiri build issue.
<jhass> thanks then
Rollabunna has quit [Ping timeout: 256 seconds]
<diegoviola> there's a company that wants to hire me to work with node.js and other stuff that I'm not very familiar with
Paradox has quit [Quit: off to herp the derps]
shuber_ has quit [Ping timeout: 276 seconds]
<Aeyrix> Gross
<Aeyrix> I mean
<Aeyrix> Sure
Paradox has joined #ruby
<Aeyrix> NodeJS is a the future right?
<diegoviola> Aeyrix: No, it's not
<zenspider> diegoviola: learning opportunity?
<GaryOak_> Do it do it
<diegoviola> zenspider: sure, I don't mind learning
<Aeyrix> Do you mind learning Node though?
baweaver has joined #ruby
<Aeyrix> It's frustrating tbh
infinitone has quit [Remote host closed the connection]
<Aeyrix> Everything is a callback
<GaryOak_> I think it works fine, if you understand javascript
<Aeyrix> Everything has irritating scoping
<bootstrappm> anybody use bitbucket for hosting OS code?
<diegoviola> Aeyrix: if it doesn't frustrate me within the first 24 hours or 2 weeks, I don't mind
<Aeyrix> Good metric
<Aeyrix> Do it then
<Aeyrix> Good to add to resume if it doesn't die off like Dart
<ebonics> you can use coffeescript to ease the transition
<ebonics> it's ruby-esque
<diegoviola> But I'm not a JS person by any means
<Aeyrix> Opal
<diegoviola> I think it's silly that everyone is going for JS these days
<bootstrappm> diegoviola then it will definitely frustrate you within the first 24 hours / 2 weeks
<Aeyrix> Get used to BabelJS
belak has joined #ruby
<diegoviola> bootstrappm: how so?
<GaryOak_> Why wouldn't you when you can hire 'full-stack' devs
<bootstrappm> diegoviola most important thing you can learn is to separate your code into modules
Musashi007 has quit [Quit: Musashi007]
<diegoviola> oh
Paradox has quit [Client Quit]
<Aeyrix> GaryOak_ because full stack devs only work until a certain size
<Aeyrix> Then it's just infeasible
Paradox has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
<bootstrappm> diegoviola in a billion different ways depending on which modules you're using. nested callback hell, promises, race conditions, making sure a variable isn't being touched by several different async functions at once, etc.
<ebonics> oo js is getting lambdas
wildroman2 has joined #ruby
<Aeyrix> Lmao
<GaryOak_> Aeyrix: Doesn't mean a company won't hire them, thinking they'll save money
<belak> So, I've been looking at a bunch of different ruby microframeworks and I'm not particularly sure which one I should be going with... they all look pretty decent
<GaryOak_> belak: depends what you need
<Aeyrix> GaryOak_ I meant infeasible to work with.
<bootstrappm> better question: if my company code is on bitbucket should i just make it public or put it on a github repo because of the communtiy?
<diegoviola> Why would people want to hire me to write JS?
<Aeyrix> Probably Github
<GaryOak_> Aeyrix: that's never stopped a businessman
<belak> GaryOak_: what do you mean?
<Aeyrix> GaryOak_ yes it has
<bootstrappm> diegoviola i think you're probably more qualified to answer that question than us
<Aeyrix> A sensible one
<GaryOak_> belak: like are you just learning, or trying to build something specific
<GaryOak_> Aeyrix: that's true
baweaver has quit [Ping timeout: 244 seconds]
<belak> GaryOak_: a little of both... I'm fairly new to ruby, but I do have a specific app I want to write... it's a tiny (hopefully) service which will fetch files from somewhere like github and render them... like a personal file rendering service
<diegoviola> I'm still confused as to how and why JS managed to get into the server-side
<diegoviola> It was already silly on client side
<GaryOak_> node happened
<bootstrappm> and it got more robust in terms of architecture
Eiam_ has quit [Max SendQ exceeded]
<diegoviola> GaryOak_: yes but is there really a need for it?
Stalkr_ has quit [Quit: Leaving...]
<bootstrappm> yes, IO-bound work w/ little load on CPU
<GaryOak_> diegoviola: is there a need for Ruby? I mean we've got Python ;)
<diegoviola> it's not like we couldn't do async I/O before it
<bootstrappm> whoa
<diegoviola> epoll/kqueue existed for years
<bootstrappm> shots fired
<bootstrappm> somebody tazer garyoak
<diegoviola> GaryOak_: sure, good point
<GaryOak_> belak: some are better/easier for apis vs rendering templates
<diegoviola> GaryOak_: I don't mind that
<GaryOak_> JS is a natural fit for async IO
<bootstrappm> behold, optic blast! https://github.com/frankpinto/redprint
psyprus has quit [Changing host]
psyprus has joined #ruby
<bootstrappm> just made it for work
<eam> languages generally aren't created on the basis of need, as much as on the basis of someone scratching an itch and experimenting with new ideas
casadei has quit [Remote host closed the connection]
<GaryOak_> besides JS lol
thiagovsk has quit [Quit: Connection closed for inactivity]
<eam> I like to think node was started by someone who had a sense of humor
<bootstrappm> and for those that didn't get the reference: https://www.youtube.com/watch?v=_mzgH694N3Q
<belak> GaryOak_: which are there for both of those/
<belak> ?
FernandoBasso has joined #ruby
iliketurtles has joined #ruby
<GaryOak_> belak: like grape is not really a microframework but it's made for APIs, Sinatra is pretty generic, Angelo is built with async in mind
lifenoodles has quit [Ping timeout: 240 seconds]
aspiers has joined #ruby
<wasamasa> angelo?
<GaryOak_> or roda is more tree structured
<GaryOak_> wasamasa: angelo is a web framework built on reel
<wasamasa> reel?
wildroman2 has quit [Read error: No route to host]
<belak> Roda looks nifty
<GaryOak_> wasamasa: celluloid
<Aeyrix> Padrino best framework
wildroman2 has joined #ruby
jtdowney has joined #ruby
edwinvdgraaf has joined #ruby
<bootstrappm> Used Padrino for a year and a half for our first admin interface
<bootstrappm> beautifully fast at the beginning
<bootstrappm> once we got bigger it was really hacky trying to add new features to it
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thatslifeson has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
<bootstrappm> generating new sections for the resources using our styles instead of the built-in ones comes to mind
lifenoodles has joined #ruby
edwinvdgraaf has joined #ruby
jtdowney has quit [Read error: Connection reset by peer]
marxxX has joined #ruby
Eiam has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
jerius has joined #ruby
<Aeyrix> Interesting.
baroquebobcat has quit [Ping timeout: 255 seconds]
<Aeyrix> I generally use Sinatra or Rails.
<Aeyrix> And by generally I mean always.
<belak> What's the overall opinion Lotus?
<belak> *on lotus
<Aeyrix> I haven't had a chance to use it thoroughly yet.
<belak> It looks nifty
bogdanteleaga has quit [Ping timeout: 246 seconds]
<Aeyrix> Oh man
<Aeyrix> the website
<vikaton> >> "FAM".lowcase
<ruboto> vikaton # => undefined method `lowcase' for "FAM":String (NoMethodError) ...check link for more (https://eval.in/367427)
<vikaton> >> "FAM".lower_case
<ruboto> vikaton # => undefined method `lower_case' for "FAM":String (NoMethodError) ...check link for more (https://eval.in/367428)
<Aeyrix> downcase
<vikaton> >> "FAM".downcase
<ruboto> vikaton # => "fam" (https://eval.in/367429)
<vikaton> thanks m8
wallerdev has quit [Quit: wallerdev]
<Aeyrix> Gotcha covered. :>
<belak> What's the recommended way to learn ruby? Is pickaxe still a thing, or was that rails?
<Aeyrix> Is there a recommended way?
wallerdev has joined #ruby
<Aeyrix> I just kind of built things with it until I remembered methods well enough.
<belak> heh
<belak> That
<belak> That's fair
baweaver has joined #ruby
<belak> Sorry, getting used to a different keyboard
marxxX has quit [Ping timeout: 246 seconds]
<Aeyrix> So Lotus uses its own ORM?
serivichi has quit [Ping timeout: 256 seconds]
<Aeyrix> "persistence framework".
<belak> So it would seem
Hijiri has quit [Ping timeout: 272 seconds]
<Aeyrix> Does anyone actually use DataMapper?
gregf has joined #ruby
veduardo has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
<vikaton> 7:00:59 PM <DerisiveLogic> Because ruby is a retarded language with training wheels
<vikaton> smh kids these days
gambl0re has quit [Ping timeout: 264 seconds]
<Aeyrix> Don't you know? Languages easy to read and write have training wheels.
opes has quit [Ping timeout: 258 seconds]
<vikaton> Ruby give them, but I dont wanna use them
* baweaver is tempted to make a Java crack
<belak> vikaton: hah, former coworker of mine used to say that all the time
<Aeyrix> Only real programmers use the one true language: x86 Assembly.
<Aeyrix> Even on ARM.
<demophoon> ^
<vikaton> true
<demophoon> Garbage collection is a training wheel
<baweaver> https://xkcd.com/378/ - relevant
<vikaton> lol
<baweaver> The 'Real' language conundrum is quite frankly a waste of time
<demophoon> heh, isn't the computer itself a training wheel? you could just do all of these things with pen and paper
<vikaton> ofc
Contigi has quit [Ping timeout: 272 seconds]
sent1nel has joined #ruby
bogdanteleaga has joined #ruby
<eam> the runtime cost of the training wheels is a serious engineering consideration, however
<vikaton> runtime cost?
<eam> indirection, gc, bounds checking - these things make code slow
mistermocha has joined #ruby
blazes816 has joined #ruby
Igorshp has quit [Remote host closed the connection]
mbff has quit [Remote host closed the connection]
<vikaton> eam, use Crystal then, rocket training wheels :P
<eam> I'm working on a gem to talk to a high performance db right now, the slowest part of the gem is marshalling and unmarshalling ruby VALUEs - hundreds of times slower than the actual query
<vikaton> nice
<Aeyrix> Of course it is.
blazes816 has quit [Remote host closed the connection]
DEA7TH has quit [Ping timeout: 252 seconds]
<Aeyrix> Write it in Go.
<vikaton> ew Go :(
<Aeyrix> Or, you know, in C.
<eam> go also has many expensive runtime costs
<vikaton> write it in Crystal :[
<Aeyrix> Loool
lifenoodles has quit [Ping timeout: 272 seconds]
edwinvdgraaf has quit [Read error: Connection reset by peer]
<eam> I'm writing it in ruby because speed isn't a concern for this particular portion of the application, but it is elsewhere and those parts are indeed written in C
tcrypt has quit [Ping timeout: 252 seconds]
edwinvdgraaf has joined #ruby
<eam> hard to do things like zero-copy in ruby
<Aeyrix> Ah ok
havenwood has joined #ruby
Igorshp has joined #ruby
Ropeney has joined #ruby
lifenoodles has joined #ruby
airdisa has joined #ruby
ebbflowgo has joined #ruby
ebbflowgo has left #ruby [#ruby]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iliketurtles has quit [Quit: zzzzz…..]
swgillespie has joined #ruby
veduardo has quit [Ping timeout: 256 seconds]
kstuart has joined #ruby
airdisa has quit [Ping timeout: 265 seconds]
lnr has joined #ruby
spider-mario has quit [Remote host closed the connection]
spider-mario has joined #ruby
lxsameer has quit [Quit: Leaving]
SouL_|_ has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
<Verelia> Anywhere I can find The well grounded rubyist 2nd edition or do I have to buy it?
duderonomy has joined #ruby
sankaber has joined #ruby
<zenspider> "training wheel"... you keep using this term. I do not think it means what you think it means.</enigo-montoya>
<baweaver> Inigo
* baweaver whistles
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
* baweaver still needs to read the book version
Igorshp has quit [Remote host closed the connection]
arescorpio has joined #ruby
Igorshp has joined #ruby
finisherr has quit [Quit: finisherr]
millerti has quit [Remote host closed the connection]
Hijiri has joined #ruby
crack_user has joined #ruby
mjuszczak has quit []
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haxrbyte has joined #ruby
Igorshp has quit [Ping timeout: 256 seconds]
iliketurtles has joined #ruby
ismaelga has joined #ruby
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
shuber_ has joined #ruby
icebourg has quit []
iliketurtles has quit [Remote host closed the connection]
iliketurtles has joined #ruby
haxrbyte has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
pwattstbd has quit [Quit: Textual IRC Client: www.textualapp.com]
veduardo has joined #ruby
lnr has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
ixti has quit [Ping timeout: 256 seconds]
TigerWolf has joined #ruby
aspiers has quit [Ping timeout: 250 seconds]
shuber_ has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Read error: Connection reset by peer]
mrsolo has quit [Quit: Leaving]
jottr has quit [Ping timeout: 240 seconds]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
DenSchub has quit [Remote host closed the connection]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<zenspider> baweaver: I tried to... it was a bit insane.
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
wildroman2 has quit [Read error: Connection reset by peer]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
<baweaver> zenspider: Those make for the best books though :D
wildroman2 has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
DenSchub has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
aspiers has joined #ruby
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
lnr has joined #ruby
lnr has quit [Max SendQ exceeded]
Joufflu has joined #ruby
<zenspider> z o m g t h a n k y o u
veduardo has quit [Ping timeout: 244 seconds]
<Aeyrix> I just disable join/quit.
<bootstrappm> what's the command for that?
<Aeyrix> /mode
<belak> Weechat has a nifty option which only shows join/parts if the person talked in the last X minutes
<Aeyrix> /mode #channel +b mask
<zenspider> Aeyrix: that's nice. I don't.
casadei has joined #ruby
<Aeyrix> I liked the part where you told me a cool story.
<zenspider> same
<Aeyrix> We should write a book.
wildroman2 has quit [Remote host closed the connection]
B1n4r10 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> belak: that is a nice feature. I have a filter for netsplits, which is nice (tho confusing when one happens because everyone else notices)
zcm has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<belak> I just see the nick list get a lot smaller
<belak> hehe
zcm has quit [Max SendQ exceeded]
<baweaver> We could probably rig helpa to whack flutters
zcm has joined #ruby
doodlehaus has joined #ruby
<jhass> baweaver: opposed to ruboto, helpa won't get ops here ;)
zcm has quit [Max SendQ exceeded]
<jhass> but if you'd write a cinch plugin to do that, that would actually be welcome
<jhass> it's on the todo for ruboto in fact
<Aeyrix> What base?
gregf has quit [Quit: WeeChat 1.1.1]
<baweaver> Write a GH issue and tag @baweaver
<baweaver> I can look into it
zcm has joined #ruby
zcm has quit [Max SendQ exceeded]
<jhass> ups
<shadeslayer> could someone explain why the private magic method is preferred over the public one in this code https://paste.kde.org/p21tqpvbo
<jhass> baweaver: sorry, ruboto won't be open source, so no GH issue
<Aeyrix> wat
<baweaver> Fair enough
bronson has quit [Remote host closed the connection]
<baweaver> jhass: Could cheat, Bitbucket private repo
<Aeyrix> jhass: Why not? o.O
bronson has joined #ruby
<jhass> Aeyrix: because reasons, not my decision
casadei has quit [Ping timeout: 258 seconds]
<Verelia> jhass, Any recommended book besides the well grounded rubyist since I can't really buy it right now?
<Aeyrix> o i c
ChampS_ has quit [Ping timeout: 276 seconds]
<Aeyrix> jhass: #ruby-specific or what?
<jhass> yeah
<Aeyrix> I'm sure there's some amusing irony here.
<jhass> and ops and stuff
<Aeyrix> In not open sourcing the #ruby bot.
edwinvdgraaf has quit [Remote host closed the connection]
<jhass> shadeslayer: pretty sure the later definition overrides the earlier one
Channel6 has quit [Remote host closed the connection]
<jhass> shadeslayer: it's the same method, you just tag it private at the second definition
Sawbones has joined #ruby
doodlehaus has quit [Remote host closed the connection]
idafyaid has quit [Ping timeout: 240 seconds]
<jhass> shadeslayer: same as def magic; end; def magic; end; private :magic essentially
sdrew has joined #ruby
juanpaucar has joined #ruby
tuelz has quit [Ping timeout: 265 seconds]
<jhass> so, smart filter back on, can't stand the join/part spam :P notify me (or any op) if there's another offender
iliketurtles has joined #ruby
graft has quit [Quit: Lost terminal]
<shadeslayer> jhass: ahh
<shadeslayer> I thought so
gregf has joined #ruby
lrcezimbra has joined #ruby