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