<lagweezle>
And apparently I read that later as my stop is up!
<lagweezle>
Thankee benzrf !
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Spami has quit [Quit: This computer has gone to sleep]
<benzrf>
lagweezle: :-)
sambao21 has quit [Quit: Computer has gone to sleep.]
mijicd has quit [Remote host closed the connection]
sambao21 has joined #ruby
leroylol has quit [Quit: Leaving]
aspires has joined #ruby
Lucky_ has joined #ruby
Lucky_ has quit [Client Quit]
TwinkleHood has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
combusean has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
lethe has joined #ruby
zkay11 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
gr33n7007h has joined #ruby
robbo__ has quit [Read error: Connection reset by peer]
yubrew has joined #ruby
Azure has joined #ruby
NukePuppy has quit [Ping timeout: 255 seconds]
bricker`1A has quit [Ping timeout: 255 seconds]
Lucky_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
yubrew has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
TwinkleHood has joined #ruby
maximski has joined #ruby
angusiguess has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
JensOfSweden has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 272 seconds]
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
amclain has joined #ruby
treehug88 has joined #ruby
RaptorJesus has quit [Remote host closed the connection]
dfinly has quit [Quit: Farewell]
angusiguess has quit [Ping timeout: 276 seconds]
RaptorJesus has joined #ruby
maximski has quit []
SevenWolf has quit [Quit: SevenWolf]
moted has quit [Quit: moted]
<wallerdev>
happy friday
<wallerdev>
;)
<wallerdev>
that wasnt meant to be a wink but ill go with it
goleldar has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
echevemaster has joined #ruby
cpruitt has joined #ruby
binaryhat has joined #ruby
crome has quit [Ping timeout: 258 seconds]
alexju has quit [Remote host closed the connection]
Wr3x has joined #ruby
crome has joined #ruby
yfeldblum has joined #ruby
<shevy>
I HATE YOU ALL!!!
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<shevy>
oops that was not what I meant honestly but let's stick to it
<Dalboz>
ror
<shevy>
#RubyOnRails
axl_ has quit [Quit: axl_]
deric_skibotn has quit [Ping timeout: 252 seconds]
binaryhat has quit [Quit: Leaving]
robustus has quit [Ping timeout: 252 seconds]
JaTochNietDan has quit [Ping timeout: 252 seconds]
bmurt has joined #ruby
robustus has joined #ruby
thomasxie has joined #ruby
moritzschaefer has quit [Ping timeout: 252 seconds]
combusean has joined #ruby
aspires has quit []
diegovio1a has quit [Quit: WeeChat 0.4.3]
JaTochNietDan has joined #ruby
Dalboz has quit [Quit: Leaving]
Sarco has quit [Ping timeout: 258 seconds]
gregf has joined #ruby
tkuchiki has joined #ruby
wallerdev has quit [Quit: wallerdev]
tkuchiki has quit [Ping timeout: 252 seconds]
dingus_khan has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
nowthatsamatt has joined #ruby
nowthatsamatt has quit [Client Quit]
dingus_khan has quit [Ping timeout: 252 seconds]
voodoofish340 has quit [Quit: Leaving.]
Retroid_ has quit [Read error: Connection reset by peer]
tacos1de has quit [Remote host closed the connection]
Retroid_ has joined #ruby
Hanmac1 has joined #ruby
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
cpruitt has quit [Quit: cpruitt]
hgl has joined #ruby
tacos1de has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
yubrew has joined #ruby
moted has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
yfeldblum has quit [Remote host closed the connection]
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TwinkleHood has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yubrew has quit [Ping timeout: 240 seconds]
cpruitt has quit [Client Quit]
rm_ has quit [Ping timeout: 240 seconds]
maestrojed has joined #ruby
NinoScript has joined #ruby
cpruitt has joined #ruby
yfeldblum has joined #ruby
St_Marx has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
end_guy has joined #ruby
St_Marx has joined #ruby
toastynerd has joined #ruby
jayne has quit [Read error: Connection reset by peer]
jayne has joined #ruby
<shevy>
hmm
<shevy>
can we uninclude a module?
angusiguess has joined #ruby
<shevy>
module Foo; TEST = '123'; end; class Bar; include Foo; end
<shevy>
now uninclude event
<shevy>
in this situation, TEST would be removed, and Foo would not show up in ancestors of class Bar
RaptorJesus has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
kireevco has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
dawkirst has joined #ruby
wallerdev has joined #ruby
hello_world101 has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
<bmurt>
hey all, is it posslbe to override a published gem's dependencies?
<bmurt>
the 'mail' gem wants mime-type ~> '1.16', but i have a v2.x installed
<bmurt>
i actually have both 1.16 and the v2.x installed and this is the error:
<bmurt>
Unable to activate mail-2.5.4, because mime-types-2.3 conflicts with mime-types (~> 1.16)
dawkirst has quit [Ping timeout: 258 seconds]
k03ll has joined #ruby
<shevy>
unsure
<shevy>
a workaround is to modify the .gemspec and build the new gem
<shevy>
via 'gem build *.gemspec'
<bmurt>
my manual process has been to edit the Gem file
radic has quit [Ping timeout: 264 seconds]
<bmurt>
hmm
<shevy>
I don't know how Gemfile works, only .gemspec sorry; but I am sure bundler also has means to rebuild a changed gem
<bmurt>
but then that new gem has to be hosted somewhere
<shevy>
well
koell has quit [Ping timeout: 255 seconds]
radic has joined #ruby
<bmurt>
i could fork then reference my github repo
<shevy>
the problem exists because the mail gem has that hardcoded dependency in the first place, but perhaps there exists a way to tell gem to ignore a dependency, let's see
GriffinHeart has quit [Ping timeout: 276 seconds]
dingus_khan has joined #ruby
<shevy>
ok here is one way:
<shevy>
-f, --[no-]force Force gem to install, bypassing dependency checks
<shevy>
another way perhaps:
<shevy>
--ignore-dependencies Do not install any required dependent gems
<shevy>
not sure if this works on a per-gem basis too
<shevy>
but if not you could file an issue reguest at the rubygems site
<shevy>
*request
dingus_k_ has joined #ruby
<bmurt>
i know the gem, for my needs, works on 2.5.3 and 2.5.4
<bmurt>
its just annoying have to edit the files when i test
<shevy>
but it still always feels like a second class citizen
tkuchiki has quit [Ping timeout: 264 seconds]
ixti has quit [Ping timeout: 252 seconds]
jackjackdrpr has joined #ruby
pwh has joined #ruby
LexicalScope has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
mesamoo has joined #ruby
Azure has quit [Quit: Blue Sky Fish]
<bmurt>
shevy: the problem now is, i used bundle install to install the gems, but since i forked and installed via git, gem list, etc. isn't aware of the gem
<bmurt>
cannot load such file -- mail (LoadError)
centrx has joined #ruby
hello_world101 has quit [Remote host closed the connection]
yubrew has joined #ruby
northfurr has joined #ruby
hj2007 has joined #ruby
abstrakt has joined #ruby
toastynerd has quit [Remote host closed the connection]
<hj2007>
I'm absolute beginner and trying to create a ROR app while following the tutorial on "http://guides.rubyonrails.org/getting_started.html". When I run "rails new blog", it says "This will create a Rails application called Blog in a blog directory". But in my case I see a directory named "new" is created instead of "blog". What am I doing wrong here?
<abstrakt>
hj2007, try #rubyonrails
maestrojed has joined #ruby
<hj2007>
ok, thanks
<abstrakt>
hj2007, rails is generally off topic here as it includes lots of things that don't exist in regular ruby
yubrew has quit [Ping timeout: 255 seconds]
<hj2007>
ok, I understand.
thomasxie has quit [Quit: Leaving.]
Azure has joined #ruby
northfurr has quit [Client Quit]
subbyyy has quit [Ping timeout: 258 seconds]
quillen has joined #ruby
quillen has left #ruby [#ruby]
<shevy>
bmurt hehe no idea, I avoid bundler like the plague; I work solely on .gemspec files, I think it should be mandatory that every gem has these
jackjackdrpr has quit [Quit: Leaving.]
jackjackdrpr has joined #ruby
<RubyPanther>
shevy: bundler agrees, and normally when you use it it generates a gemspec, then you load the gemspec from the Gemfile so that it works from both
BAMbanda has quit [Ping timeout: 258 seconds]
HashNuke has joined #ruby
oo_ has joined #ruby
<shevy>
cool
<shevy>
bmurt so there you go, according to RubyPanther you can get the .gemspec from bundler
<bmurt>
i was able to use the Gemfile and set a git repo, but when i execute the script, the gem cannot be found because bundler installs the git repo'd gem outside of the gem path
GriffinHeart has joined #ruby
speaking1ode has quit [Quit: leaving]
robbo__ has joined #ruby
jackjackdrpr has quit [Ping timeout: 252 seconds]
hello_world101 has joined #ruby
hello_world101 has quit [Remote host closed the connection]
davedev2_ has quit []
davedev24_ has joined #ruby
angusiguess has joined #ruby
<shevy>
hehehehe
endash has quit [Quit: endash]
<benzrf>
\] \]
mehlah has quit [Quit: Leaving...]
hello_world101 has joined #ruby
braincrash has quit [Quit: bye bye]
angusiguess has quit [Ping timeout: 252 seconds]
freezey has joined #ruby
<shevy>
benzrf will you work on a new gem
dingus_k_ has quit [Remote host closed the connection]
<benzrf>
shevy perhaps, what should it be
<benzrf>
i have been doing haskell tho
robbo__ has quit [Ping timeout: 245 seconds]
<shevy>
hmm
sriehl has joined #ruby
sriehl has quit [Client Quit]
timgauthier has joined #ruby
<shevy>
benzrf well considering that you do use sinatra
braincrash has joined #ruby
<shevy>
and I started to dig deeper into sinatra only like ... 4 or 5 weeks ago in total
<shevy>
something related to the web and ruby, something small but nifty and useful
freezey has quit [Ping timeout: 252 seconds]
subbyyy has joined #ruby
hello_world101 has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
decoponio has joined #ruby
<timgauthier>
wtf shevy...
<timgauthier>
:P
St_Marx has quit [Remote host closed the connection]
RaptorJesus has quit [Remote host closed the connection]
sptx00 has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Broken pipe]
Boohbah has quit [Write error: Broken pipe]
<timgauthier>
I started a project today and the template used haml
<timgauthier>
i fixed that though
<horrorvacui>
I like haml :(
einarj has quit [Ping timeout: 265 seconds]
<benzrf>
timgauthier: haml IS the fix, you heretic
<horrorvacui>
at least use slim :P
<timgauthier>
TAKE THAT EMPEROR
<timgauthier>
neverrrrrr
<timgauthier>
I just don't think in an organized enough manner that allows me to be effective with HAML
<horrorvacui>
how is that possible? :P
Asher has joined #ruby
<horrorvacui>
You don't indent right?
<horrorvacui>
Or is it more higher level than that?
<timgauthier>
I can't really easily write bulleted lists even
<horrorvacui>
I know what you mean. It's just not a natural format for you. I myself can't outline stuff.
bluOxigen has quit [Ping timeout: 245 seconds]
<timgauthier>
my thought processes lead to very messy outcomes, which i find are easier for me to turn into "modules" (html) that i can then move around my page and pull parts in and out of eachother. I mean i could probably rewrite the final parts into haml later but to actually start in haml isn't useful for me yet
<horrorvacui>
Ahh, makes sense now.
<timgauthier>
yes, so i use ERB
feature_creep has quit [Quit: feature_creep]
<timgauthier>
Because I am writing templates it works out okay
<horrorvacui>
I tend to just partial things up in haml and that gives me some of the benefits but I run into the same problems.
toastynerd has joined #ruby
<horrorvacui>
I like haml because I can't stand writing end tags.
<shevy>
timgauthier see man
<shevy>
timgauthier your use of templates makes me sad
<shevy>
this is why I put my faith in benzrf - he does not believe in templates either
<timgauthier>
haha
robbo__ has joined #ruby
<horrorvacui>
If I'm not mistaken though, slim is way faster than haml.
<shevy>
timgauthier one idea I once had was to abstract the whole html-css stack at least
<timgauthier>
why?
<shevy>
I also once wanted to have one DSL for all GUIs in ruby
<shevy>
so you would have:
<shevy>
Button.new
toastynerd has quit [Remote host closed the connection]
<shevy>
and it would not matter whether it would be a QtButton or a Gtk::Button
<timgauthier>
you sound like one of those crappy people who use javascript to do stuff on a webpage instead of just using proper html or css
St_Marx has joined #ruby
<timgauthier>
a <button> is just fine
<shevy>
now I have to admit that there are some cool effects with jquery
<shevy>
fade-in and fade-out I go for
<shevy>
timgauthier right but I mean ruby code - you don't really want to write a GUI element all in XML do you?
<horrorvacui>
SPA make me sad, I have to code more in Javascript.
<timgauthier>
no, i want to write my gui element in html
<timgauthier>
and use it as a partial
<timgauthier>
and you don't need fade in and fade out, css3 does have those functions, just a few elements don't do it properly on some things.
Boohbah has joined #ruby
<timgauthier>
i mean if you go from display none to display anything then it won't let you do a css transition (that is stupid)
sptx00 has joined #ruby
RaptorJesus has joined #ruby
<abstrakt>
horrorvacui, you just don't want to learn/change/adapt
<abstrakt>
SPA is amazing
<abstrakt>
horrorvacui, use coffeescript or something maybe
<horrorvacui>
I do
<horrorvacui>
I'm just a backend guy and it means less backend so that kinda makes me sad.
sleepee has joined #ruby
<shevy>
hehe
<abstrakt>
horrorvacui, uhh, no it doesn't really mean "less backend"
s2013 has joined #ruby
<abstrakt>
that type of thing making you sad just mean's you're lazy and you don't want to keep up with shit, which is a horrible trait in a programmer
<horrorvacui>
It does in the context of what I'm working on.
<abstrakt>
given that our industry in general moves so quickly towards new paradigms and technologies
<abstrakt>
horrorvacui, this attitude is, I've found, unfortunately quite systemic in the ruby world
<abstrakt>
don't know why
speakingcode has quit [Ping timeout: 252 seconds]
<horrorvacui>
I'm surprised you feel you can make those observations on a simple statement.
<abstrakt>
this is IRC, nothing should surprise you
Brando753 has quit [Read error: Connection reset by peer]
<horrorvacui>
Except it did.
<abstrakt>
I'm surprised you feel that backend is somehow superior to frontend, when in reality, it's probably the other way around
<abstrakt>
users use the front end
<horrorvacui>
I didn't say that...
<abstrakt>
and without users, you don't get paid
tacos1de has joined #ruby
<abstrakt>
except you obviously feel that way, otherwise why would you be "sad" about such a thing
<abstrakt>
unless, again you're basically just a lazy jerk who's stuck in your ways
<horrorvacui>
I only stated what I enjoy.
<shevy>
I like horrorvacui
<shevy>
he has a great nick
<shevy>
imagine how it sounds:
<shevy>
"bug fixed by HORROR MONSTER GUI"
<shevy>
erm
<shevy>
*guy
<horrorvacui>
I'm a big fan of design, I'm not at all sure what you are angry about.
<horrorvacui>
I love frontend. I just don't like javascript being the primary code I spend my time in.
<horrorvacui>
I love ruby so I want to use it for everything thats all.
<n88>
can any of you guys help me with a sidekiq issue ?
<abstrakt>
n88, on a friday night? (at least a friday night in north/south america)
<abstrakt>
n88, not the best time to get help, standard american business hours are much better
<abstrakt>
or maybe wait a few hours til europe wakes up, but it's the weekend for them too
recurrence has joined #ruby
dingus_khan has quit [Ping timeout: 260 seconds]
rm_ has quit [Ping timeout: 240 seconds]
<moring>
Friday night coding!
<moring>
ftw!
<moring>
on payday too!
RastaqWhere has joined #ruby
RastaqWhere has quit [Client Quit]
<moring>
oh wait
<moring>
out here is 12:25am already
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
gr33n7007h has quit [Quit: Leaving]
narendraj9__ has joined #ruby
narendraj9__ has quit [Client Quit]
yubrew has joined #ruby
haxx0r has joined #ruby
yfeldblum has joined #ruby
echevemaster has quit [Quit: Leaving]
Morkel has joined #ruby
alexju has joined #ruby
yubrew has quit [Ping timeout: 276 seconds]
osvimer has joined #ruby
willgorman has joined #ruby
drago777 has joined #ruby
Kruppe has joined #ruby
xiphias has joined #ruby
narojosh has joined #ruby
bluOxigen has joined #ruby
pdtpatrick has quit [Remote host closed the connection]
s2013 has quit [Ping timeout: 252 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
bricker`LA has joined #ruby
vpretzel has quit [Remote host closed the connection]
hermanmunster has joined #ruby
vpretzel has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
osvimer has quit [Quit: leaving]
robbo__ has quit [Ping timeout: 240 seconds]
abstrakt has quit [Quit: Leaving]
tesuji has joined #ruby
yacks has joined #ruby
sputnik13 has joined #ruby
cgcardona has joined #ruby
<cgcardona>
hi everyone. I have a project and part of the desired design is that a UI component can GET/POST to an API component which can GET/POST to a final layer. Each layer can then reply back to the layer above it w/ JSON. It's been requested that each component can be either on the same machine or distributed across multiple boxes. I've got the case where each component is distributed working correctly. But when it all runs on the same box I'm running
<cgcardona>
the issue of multiple web requests timing out on the single ruby process. I read that i could get it to work w/ passenger/nginx but I'm still running into the issue of the timeout. Barring performance concerns can anyone recommend how I might accomplish this? Thanks in advance.
<rcs>
cgcardona: You're probably having Request A -> Request B -> Blocking since Request A hasn't returned, right?
<cgcardona>
yes right that's what i think is happening rcs
<cgcardona>
of course it works fine across multiple boxes but not on 1 (yet)
<rcs>
So you need something that can handle more than one client at a time.
<cgcardona>
yes I heard that passenger and nginx could handle it.
<rcs>
Is there a reason not to run the same passenger/nginx stack on the local box to route requests through?
<cgcardona>
you mean what exactly? Create multiple running apps on the single box for each component?
<rcs>
Yep. Or just use something like unicorn that'll handle the preforking for you.
<rcs>
You'll still have concurrency problems if every process is busy handling request A, though, so nothing can handle B.
frobrob has quit [Ping timeout: 276 seconds]
<cgcardona>
hmmm. ok. perhaps I should rethink this architecture a bit. I really appreciate the help rcs
Zesty has joined #ruby
<rcs>
cgcardona: The quick way to get around it is to keep the "component pools" separate, so cotention on A doesn't cause contention on B
<rcs>
Whether that's through different ports, processes, whatever
<cgcardona>
ok i'll consider that.
Wr3x has quit [Remote host closed the connection]
l3vel has joined #ruby
zkay11 has left #ruby [#ruby]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
b1205 has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jamto11 has quit [Remote host closed the connection]
freezey has joined #ruby
freerobby has quit [Quit: Leaving.]
mary5030 has quit [Remote host closed the connection]
freezey has quit [Ping timeout: 240 seconds]
<n88>
any with sidekiq experience ?
phansch has joined #ruby
lxsameer has joined #ruby
dawkirst has joined #ruby
<horrorvacui>
n88 I've some why?
wqh has joined #ruby
KLVTZ has joined #ruby
<reactormonk>
which tool would you use for drawing graph-like structures? dot is too spacey.
<n88>
so my controller.rb hits the import method on the site class
dawkirst has quit [Ping timeout: 240 seconds]
<n88>
import reads the csv, creates a site record, and then tries to send off the site id to the worker
benzrf is now known as benzrf|offline
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has joined #ruby
<n88>
er... why is sidekiq trying to load a file from a previous go at this
einarj has joined #ruby
Shidash has quit [Quit: Leaving.]
yubrew has joined #ruby
narojosh is now known as narendraj
x1337807x has joined #ruby
b1205 has joined #ruby
<KLVTZ>
So I'm trying to generate the docs for ruby, I'm using RVM, but unfortunately it reports Your ruby version 2.1.2 is not supported. What are my options to install the missing documentation
<KLVTZ>
my goal is to run "ri Object#inspect"
<KLVTZ>
in my terminal for reference.
einarj has quit [Ping timeout: 240 seconds]
<KLVTZ>
the command i called was rvm generate docs
yubrew has quit [Ping timeout: 252 seconds]
mary5030 has joined #ruby
<KLVTZ>
Anybody have a clue?
vpretzel has quit [Remote host closed the connection]
luckyruby has joined #ruby
klaut has joined #ruby
tesuji has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
<jimbauds>
someone on the ruby-talk mailing list spam really hard! I'm the only one receiving these?
<KLVTZ>
jimbauds: damn. sorry to hear about that? I'm curious about what kind of spam was it?
<horrorvacui>
n88, sorry about the long reply but perhaps redis has residual stuff left in it. Try redis-cli flushall and repeat the attempt.
Shidash has joined #ruby
<jimbauds>
about an irc server and channel .. nothing about ruby! ;)
sputnik13 has joined #ruby
<n88>
horrorvacui: it seems to be something else
<jimbauds>
I don't know who is the admin for this mailling list but someone is playing with it!
<n88>
it is complaining about an unitialized constant
b1205 has quit [Ping timeout: 255 seconds]
<n88>
and namespacing my model
<n88>
inside the worker
<n88>
worker::model name unitialized constant
timonv has joined #ruby
moring has quit []
tesuji has joined #ruby
mary5030 has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
oo_ has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
jp123 has quit [Quit: Konversation terminated!]
coderhs has quit [Client Quit]
sepp2k has joined #ruby
Hanmac has joined #ruby
jprovazn_afk has quit [Quit: Odcházím]
Hanmac1 has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
kireevco has quit [*.net *.split]
xiphias has quit [*.net *.split]
Kruppe has quit [*.net *.split]
yacks has quit [*.net *.split]
drago777 has quit [*.net *.split]
willgorman has quit [*.net *.split]
oo__ has joined #ruby
kireevco has joined #ruby
yacks has joined #ruby
horrorvacui has quit [Quit: Leaving]
meatherly has joined #ruby
emptymag00 has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 245 seconds]
emptymag00 has joined #ruby
oo__ has quit [Remote host closed the connection]
l3vel has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 265 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Wolland>
make sure there are no spelling issues in your code
<jimbow>
yeah the code is good
<jimbow>
i'm trying to get into appacademy and the stuff they've sent me is super frustrationg :(
* jimbow
cries
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
roelof has joined #ruby
doev has joined #ruby
<roelof>
Can I somehow get in touch with someone of the ruby talk ML. It seems to me that ruby forum is hacked and sending a lot of spam by mis using email adresses of users
luckyruby has quit [Quit: Leaving...]
Prawnzy has joined #ruby
<Wolland>
jimbow: try creating a file and see where it gets created
<Wolland>
f = File.new("test.csv", "w")
<Wolland>
f.write("test")
<Wolland>
f.close
User458764 is now known as User458764_NotHe
<jimbauds>
I second that! About the mailing list!
klaut has quit [Remote host closed the connection]
GC_2 has joined #ruby
<roelof>
jimbauds: thanks, I think I saw some 300 - 400 spam mails
<jimbauds>
wow 138 new mail .. someone is hacking that mailing list a
<jimbow>
Wolland: a new .CSV file was created in the same directory
sinkensabe has joined #ruby
<roelof>
I already send a mail to the mailing list owner and to the owner of ruby forum
treehug88 has quit [Ping timeout: 265 seconds]
<Wolland>
list directory contents in the terminal with ls command
<roelof>
I think ruby forum is hacked again :(
<jimbauds>
ok thank you
<jimbauds>
:(
sinkensabe has quit [Remote host closed the connection]
toastynerd has joined #ruby
<roelof>
but I hope I can do more
<Wolland>
jimbow: try creating file with the same name as the one it's not finding, if it creates another one, there is a name difference, spelling, wrong ext, hiden extention, something
<roelof>
beats me, but Im sure the person who do this is mis using email adresses of users
obs has quit [Remote host closed the connection]
obs has joined #ruby
<jimbow>
all hacking is different
<roelof>
Hanmac: I think I have to search for more info about zip and cycle. I only know .each and for and friends
<jimbow>
i know how to use hack tools to get "hacking" done, but it's such a complicated area and i don't get why people would waste time going after ruby mailing lists
<roelof>
I did the course on codeacademy and there is no mentioned about these things
<Hanmac>
*gasp* #zip and #cycle are friends of #each too! ... #each has more friends than i on facebook ;P
<jimbow>
i learned how to use burp suite and sql injection commands as well as xss attacks
GC_2 has quit [Read error: Connection reset by peer]
RaptorJesus has quit [Remote host closed the connection]
GC_2 has joined #ruby
<jimbow>
i can tell by the sheer amounts of people complaining these guys are malicious
<jimbauds>
jimbow: bad boy you are :D
RaptorJesus has joined #ruby
<roelof>
Hanmac: thanks
<jimbow>
why learn something if you're going to make people miserable?
<jimbow>
jimbauds: i am a really nice person and i like to help out where i can
hgl has quit [Ping timeout: 240 seconds]
<Hanmac>
jimbow: hm if a site did not protect itself against simplest sql injection or xss ... then yeah i think its the site own fault ...
jack_rabbit has quit [Ping timeout: 240 seconds]
davedev24_ has quit [Remote host closed the connection]
<jimbow>
Hanmac: the only metaphor i can come up with to go against your statement is someone having a gun and shooting someone and then blaming the victim for not wearing body armor
scepticulous has joined #ruby
<jimbauds>
jimbauds: like me!
<jimbauds>
;)
<jimbauds>
jimbow: like me
<jimbow>
i sure hope so :)
rm_ has joined #ruby
davedev24_ has joined #ruby
<Hanmac>
jimbow: its more like wearing a "please shot me"-shirt
<jimbow>
Hanmac: not everyone knows security… i think of security along the lines of learning how to use a weapon
<jimbow>
and then you're deliberately killing people
brunops has quit [Ping timeout: 255 seconds]
<jimbow>
by attacking web services to oblivion
GC_2 has quit [Read error: Connection reset by peer]
<Hanmac>
i am 99% sure that the site developers did say that the site have holes there, but that would cost time and money to fix that and the small developers might not have the time for that
<jimbow>
why not do the sensible thing and help out instead of destroy?
<jimbow>
when i become proficient i will do just that
brunops has joined #ruby
Prawnzy has joined #ruby
<jimbow>
i'm not happy with knowing how to use tools, i want to make my own tools
<roelof>
jimbow: I think the right metafoor is not protecting your house and blame someone to take things out of your house
<jimbow>
roelof: you shouldn't even lock your house, saying that someone deserved to be robbed is ignorant
<jimbow>
we should all trust each other, but for whatever reason most people aren't like me and it makes me sad
<jimbow>
i used to live in the nation's wealthiest area…. i always left my doors and windows unlocked
<jimbow>
never got robbed
rm_ has quit [Ping timeout: 240 seconds]
<jimbow>
or had anyone tresspass
davedev24_ has quit [Ping timeout: 252 seconds]
<roelof>
I agree with you about the trust and sadly you true. We messed up the world very well
KanKava has joined #ruby
djbkd has quit [Remote host closed the connection]
<jimbow>
coming to think of it, i would do bad stuff only if the people were already bad to begin with… like thieves and pedophiles for example
<jimbauds>
wow you guys are great
<jimbauds>
;)
<roelof>
but still I think that every webmaster schould take of that his/her site is protected against things like sql injections and friends
brunops has quit [Ping timeout: 240 seconds]
<jimbow>
they should, but having a helping hand and a community where pepole look out for each other would make everything so much better and easier
<jimbow>
we'll all become a lot more productive than we already are as the result
<jimbow>
but you don't have to take my word for it
JPascal has joined #ruby
<jimbow>
it would weed out 99% of the malicious users
<roelof>
I agree with you
<roelof>
but I also think that will always be a dream
<jimbauds>
you guys are great
<jimbow>
because it'll change from "everyone is trying to attack me" perspective to "not many people are attacking me, but if someone does i can easily find him because he's part of a small group"
<zhando>
Hanmac: thanks... scrub is recent ruby behavior? 2.0+
Prawnzy has quit [Ping timeout: 264 seconds]
<zhando>
?
dseitz has joined #ruby
<Hanmac>
yeah but you should update if possible
jack_rabbit has quit [Ping timeout: 240 seconds]
<zhando>
Hanmac: will do. thx again. good night..
<banister>
Hanmac do you speak dutch?
klaut has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Sarco has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
<Hanmac>
nope
matchaw has joined #ruby
einarj has joined #ruby
nfk has joined #ruby
<Hanmac>
banister: i was once there for a week (trip with church kids for confi) but i dont speak dutch ... i only know the name for garlic "knoflock" or similar because i did it on my sandwiches
Eyes is now known as Eyess
<banister>
Hanmac it's kind of a debased/simplified german though right?
<roelof>
Hanmac: its knoflook
marr has quit [Ping timeout: 252 seconds]
<Hanmac>
roelof: i never knew how it was written i only heard the name
carraroj has joined #ruby
ndrei has joined #ruby
narendraj has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
<roelof>
Hanmac: NP
<roelof>
I live my whol life in the Netherlands
<banister>
roelof which city?
einarj has quit [Ping timeout: 240 seconds]
<roelof>
banister: Hengelo
<banister>
roelof oh ok, i'm from leiden :)
Prawnzy has joined #ruby
<roelof>
hmm, I thought I can use cycle for making all entries from a array capitalize but array.Capitalize.cycle do not work
<roelof>
banister: that is the other side
atraylen has joined #ruby
<jimbauds>
roelof: capitalize with a capitalize C?
<banister>
roelof array.map(&:capitalize)
<banister>
roelof cycle does something different
GC_2 has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
<roelof>
banister: as a beginner I have a lot to learn . Like I said I did the codeacademy course but I think that this course did not teach me everything
<banister>
roelof hoe gaat het
<roelof>
I think I will look for a free book on the net which can teach me things like zip , map and so on
<roelof>
banister: goed
codeurge has joined #ruby
<banister>
roelof i tried to learn dutch but was disturbed by all the throaty, coughing sounds
codeurge has quit [Max SendQ exceeded]
<roelof>
banister: als ik het goed begrijp &: is het huidig element
ndrei has quit [Remote host closed the connection]
JBreit has left #ruby ["Leaving"]
ikaros has quit [Quit: Ex-Chat]
<roelof>
when do you use zip and cycle and when map ?
Morkel has quit [Quit: Morkel]
timonv has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
<Hanmac>
roelof: use zip when you need to connect multible enumerable, use it with cycle if you want one of the arrays is shorter than the other
HashNuke has quit [Quit: Connection closed for inactivity]
<roelof>
Hanmac: and map if something has to be done with all the items of a array ??
ecksit has joined #ruby
toastynerd has quit [Remote host closed the connection]
<banister>
roelof a = (1..100); b = ["a", "b", "c"]; a.zip(b.cycle).take(10)
<banister>
>> a = (1..100); b = ["a", "b", "c"]; a.zip(b.cycle).take(10)
<banister>
roelof "the ruby programming language" by o'reilly is the best IMO
Prawnzy has quit [Ping timeout: 264 seconds]
<banister>
roelof if you can speak german though (and i hear dutch is very very close to german) you can join one of Hanmac's free ruby bootstrapping sessions, he presents them over google hangouts and often has between 30-50 students - you can typically ask him anything (except rails related stuff)
relix has joined #ruby
User458764 is now known as User458764_NotHe
<roelof>
sorry: I only speak Dutch very well. German and English not so good
thomasxie has quit [Quit: Leaving.]
rm_ has joined #ruby
JPascal has joined #ruby
Prawnzy has joined #ruby
jimbauds has quit [Ping timeout: 255 seconds]
<banister>
roelof dutch is a mixture between baby english and baby dutch spoken by a child with a bad cold and cough
<banister>
and baby german*
dawkirst has joined #ruby
Guest77218 has joined #ruby
<roelof>
banister: thanks for the compliment
<Hanmac>
LIES! all LIES!
User458764_NotHe has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 265 seconds]
lkba has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
Balticman has joined #ruby
<roelof>
Hanmac: my ears
<roelof>
banister: I found a pdf of the book and I will look if it's a book suitable for me
klaut has joined #ruby
oo_ has quit [Remote host closed the connection]
alexju has quit [Remote host closed the connection]
byteoverfl0w has quit [Quit: Leaving... have a good one...]
lkba has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
byteoverfl0w has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Prawnzy has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
Prawnzy has joined #ruby
einarj has quit [Ping timeout: 245 seconds]
byteoverfl0w has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
timonv has joined #ruby
timonv has quit [Remote host closed the connection]
timonv has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 240 seconds]
sski has joined #ruby
tesuji has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderhs has joined #ruby
<coderhs>
Is the mailing list hacked?
<coderhs>
I am getting tones.of spam
<Hanmac>
coderhs: yeah or the server itself, because it also has spam from other registered users
<coderhs>
Damn
yubrew has joined #ruby
sinkensabe has joined #ruby
einarj has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
coderhs has quit [Client Quit]
Wolland has quit []
coderhs has joined #ruby
<coderhs>
Is there any way we.could help.fix.the.issue with the mailing list?
mikecmpbll has joined #ruby
rm_ has joined #ruby
<Hanmac>
just ignore it and it will disappear itself ;P
yubrew has quit [Ping timeout: 240 seconds]
ecksit has quit [Ping timeout: 240 seconds]
coderhs has quit [Client Quit]
rm_ has quit [Ping timeout: 240 seconds]
atraylen has joined #ruby
alexju has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
yfeldblum has joined #ruby
angusiguess has joined #ruby
jamto11 has joined #ruby
Xeago has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
Quintus_q has joined #ruby
eka has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
<Quintus_q>
What’s this excessive spamming on the Ruby-Talk mailinglist?
<Quintus_q>
Any indications if countermeasures are taken?
Prawnzy has quit [Ping timeout: 264 seconds]
<Quintus_q>
I’ve send a mail to ruby-talk-owner@ruby-lang.org about it, but looks as if the server has been hacked or so
<shevy>
dunno
<shevy>
it has been spammed since the ancient days by now
<shevy>
Hanmac haha that's a creative hoax
Ishiro has quit [Quit: Computer has gone to sleep.]
<Hanmac>
just wait until there is spam from you too on the ML
<shevy>
lol
<Quintus_q>
Brmpf. There is spam with MY email address on the ML
frobrob_ has quit [Ping timeout: 260 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
Quintus_qc has joined #ruby
jackneill has quit [Ping timeout: 252 seconds]
Quintus_q has quit [Quit: Valete!]
Quintus_qc is now known as Quintus_q
mikecmpbll has joined #ruby
jackneill has joined #ruby
AndChat|102836 has joined #ruby
<AndChat|102836>
Tech book shop in amsterdam?
<AndChat|102836>
Dutchies help me out
ascarter has joined #ruby
doev has quit [Quit: Verlassend]
Quintus_q has quit [Quit: WeeChat 0.4.3]
<shevy>
only pot shops and pet shops, the latter being the cover for a pot shop
Quintus_q has joined #ruby
s2013 has joined #ruby
<Hanmac>
hm it seems the spam has stopped
tharindu has joined #ruby
sleepee has joined #ruby
agjacome_ has quit [Quit: leaving]
dangerousdave has quit [Read error: Connection reset by peer]
<Quintus_q>
Wait some time... Maybe it starts again
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
dangerousdave has joined #ruby
<Hanmac>
i was once in Amsterdam ... on each street cross was 1) a BurgerKing 2) a McDonalds 3) a textile shop 4) a electronic shop ... the fun thing ... 500m at the next street cross, the same constellation again ;D
narendraj has quit [Quit: Connection closed for inactivity]
Ishiro has joined #ruby
cgcardona has quit [Quit: cgcardona]
<shevy>
lol
GodPuppet has joined #ruby
<shevy>
Hanmac no divers-shop?
GriffinHeart has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
sigurding has quit [Quit: sigurding]
connor_goodwolf has joined #ruby
<Hanmac>
not last time i checked ;P but i think i saw more coffee shops than BurgerKing & McDonalds combined ;P
<shevy>
perhaps you looked more for them
<shevy>
:P
GodPuppet has quit [Remote host closed the connection]
Takle has joined #ruby
rm_ has joined #ruby
postmodern has quit [Quit: Leaving]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
last time i was in amsterdam was 1977
connor_goodwolf has quit [Ping timeout: 240 seconds]
Takle has quit [Ping timeout: 245 seconds]
s2013 has quit [Ping timeout: 276 seconds]
rm_ has quit [Ping timeout: 240 seconds]
atraylen has quit [Ping timeout: 252 seconds]
User4587_ is now known as User458764_NotHe
<shevy>
when you were born!
User458764_NotHe is now known as User4587_
maximski has joined #ruby
GriffinHeart has joined #ruby
yfeldblum has joined #ruby
ascarter has joined #ruby
connor_goodwolf has joined #ruby
carraroj has joined #ruby
einarj has quit []
einarj has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
tharindu_ has joined #ruby
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
thomasxie has quit [Remote host closed the connection]
angusiguess has joined #ruby
WilfredTheGreate has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tesuji has quit [Ping timeout: 276 seconds]
WilfredTheGreat has quit [Ping timeout: 246 seconds]
phutchins has joined #ruby
shemerey has joined #ruby
bmurt has joined #ruby
<bmurt>
morning
<shevy>
hey bmurt
<shevy>
did you figure out your gem problem
User4587_ is now known as User458764_NotHe
sinkensabe has quit [Remote host closed the connection]
Xeago has joined #ruby
sinkensabe has joined #ruby
<bmurt>
nah
<bmurt>
was gonna re-ask about the gemfile and git
<bmurt>
i mean, i made some progress and was able to grab my forked version, but the script wasn't able to find it
User458764 has joined #ruby
User458764 has quit [Client Quit]
Hanmac1 has joined #ruby
User458764_NotHe has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
<bmurt>
unless... i installed to vendor/bundle and did a require 'vendor/bundle/ but im stilllearning and may be talking out my ass
phansch has quit [Quit: WeeChat 0.4.3]
m8 has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
Xeago has quit [Ping timeout: 276 seconds]
Rollabunna has joined #ruby
timonv has joined #ruby
tvw has joined #ruby
thomasxie has joined #ruby
koell has quit [Ping timeout: 240 seconds]
<bmurt>
shevy: it got to the point that i was attempting to use geminabox
<bmurt>
:/
yeticry has joined #ruby
timonv has quit [Ping timeout: 260 seconds]
tvw has quit []
Fire-Dragon-DoL has joined #ruby
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasxie has quit [Quit: Leaving.]
qwyeth has joined #ruby
circ-user-ihA0J has joined #ruby
<bmurt>
shevy: got it to work i think using bundle exec: bundle exec ruby -w aws_scrape.rb
yubrew has joined #ruby
circ-user-ihA0J has quit [Remote host closed the connection]
timonv has joined #ruby
<bmurt>
that forced it to utilize the mechanize, nokogiri, and forked mail gem
Ishiro has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
<jhass>
bmurt: another possibility is adding require 'bundler/setup' to your script
ndrei has joined #ruby
<bmurt>
ahhh interesting
<bmurt>
ty jhass
yubrew has quit [Ping timeout: 240 seconds]
jemendja has joined #ruby
jemendja has quit [Client Quit]
angusiguess has quit [Ping timeout: 276 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
kirun has joined #ruby
Fire-Dragon-DoL has joined #ruby
djbkd has joined #ruby
rm_ has joined #ruby
tharindu_ has quit [Quit: Leaving...]
banister has joined #ruby
yfeldblum has joined #ruby
Quintus_q has quit [Quit: WeeChat 0.4.3]
moritzschaefer has quit [Ping timeout: 252 seconds]
SHyx0rmZ has quit [Ping timeout: 252 seconds]
djbkd has quit [Ping timeout: 240 seconds]
rm_ has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Remote host closed the connection]
cina has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
mijicd has joined #ruby
Fire-Dragon-DoL1 has joined #ruby
djcp has joined #ruby
djcp has quit [Client Quit]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Fire-Dragon-DoL has quit [Ping timeout: 260 seconds]
badhatter has joined #ruby
timonv has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
badhatter has quit [Remote host closed the connection]
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
timonv has joined #ruby
Atttwww has joined #ruby
ringarin has joined #ruby
Takle has joined #ruby
timonv has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
naw has quit [Read error: Connection reset by peer]
naw has joined #ruby
Sarco has joined #ruby
Sarco has left #ruby [#ruby]
bluenemo has quit [Quit: Verlassend]
scepticulous has joined #ruby
newUser1234 has joined #ruby
shout_user has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
pyreal has joined #ruby
pyreal has quit [Client Quit]
Ishiro has joined #ruby
sleepee has quit [Quit: Leaving]
mehlah has joined #ruby
xcv_ has quit [Remote host closed the connection]
Zesty has joined #ruby
superflat has joined #ruby
superflat has left #ruby [#ruby]
cashnguns has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
<bmurt>
the new battle shevy is throwing it into cron :/
<jhass>
also the community standard is two space indent
<alirezataleghani>
I have a problem on ruby in combination with mongoDB
<jhass>
and newlines between method definitions
frosgy has joined #ruby
<alirezataleghani>
how can I store a NumberLong via ruby on a mongoDB with the help of "bson" gem?
maximski has quit []
<jhass>
fafa: you declare json as a development dependency, yet you require it in the library
mercwithamouth has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
<jhass>
fafa: you also probably want to add a license, most commonly MIT
mehlah has quit [Ping timeout: 265 seconds]
kilk_ has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
<DouweM>
fafa: use the naming guide jhass links to for the gem name, file names and class names. all are off
hfp has quit [Quit: bye]
qwyeth has quit [Remote host closed the connection]
<DouweM>
fafa: require your libraries at the top of the file, not inside the NexmoTts module
frogssgy has quit [Ping timeout: 245 seconds]
<DouweM>
fafa: use symbols for @mode and @response_method instead of strings
<DouweM>
fafa: use spaces around ==
rm_ has joined #ruby
<DouweM>
fafa: your current rescue block on line 31 does very little
<jhass>
fafa: your mode and response_mode methods are a bit silly, I'd recommend something like raise ArgumentError, "invalid x: #{param}" unless ["a", "b"].include? param; @param = param
Quintus_q has joined #ruby
<DouweM>
fafa: "response" is a very unclear method name
sputnik13 has joined #ruby
hfp has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<DouweM>
fafa: you set mode and response_method as accessors, but then override them with completely different functionality
JPascal has joined #ruby
<jhass>
fafa: also you define attr_accessors for them and then later override the getters with methods that take an argument and are actually setters
<DouweM>
fafa: in parameterize, use spaces around { for the block, and before }
<DouweM>
fafa: put comments like the one in parameterize on a line of its own, and use a space after #
<jhass>
I'd call the { / } one personal style
<jhass>
I use {|param| code }
<DouweM>
jhass: it's wide spread, but sure, there are defactors ;)
<DouweM>
fafa: document the env vars used
<DouweM>
fafa: splitting things up into methods is good, but the current mode and response_method env vars are quite useless as they're never used outside of #call
sputnik13 has quit [Ping timeout: 252 seconds]
<DouweM>
(not env vars, instance vars)
<DouweM>
fafa: use newlines to split methods up into logical parts
<DouweM>
fafa: strive to list arguments and their respective ivar assignments in the same order, as you're not doing in #initialize
timfoo has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
<DouweM>
fafa: if Nexmo returns an error message, raise the error instead of just returning the text
<DouweM>
fafa: when would you want to use a response method other than json?
ponga has joined #ruby
timfoo has joined #ruby
<jhass>
I wonder if he's even still following... :P
mehlah has joined #ruby
<DouweM>
haha so do I, but once I get started critiquing it's hard to stop :P
<DouweM>
fafa: your "require 'nexmo'" in the readme won't work because that's not what the file is named. related to the naming issues mentioned earlier
<DouweM>
fafa: use a 1.9-style hash in the readme.
<fafa>
aah
<DouweM>
fafa: also, why does it exist at all when there's already a nexmo gem? :P
<fafa>
thanks a ton for the suggestions
<fafa>
there is a gem
<fafa>
but it is only for message
<fafa>
*messages
<fafa>
but not for calls
<fafa>
and tts
<fafa>
so i thought i should make one
yfeldblum has quit [Ping timeout: 252 seconds]
<DouweM>
fafa: then extend that gem. frankly, its API looks nicer than yours, and having one gem for everything is probably better
<fafa>
(1st gem)
<fafa>
right
<DouweM>
instead of two different ones that do use the same namespace, which is a bad idea anyway
<fafa>
good thought
<fafa>
i just thought i should learn the best practises
<fafa>
and then contribute
<DouweM>
fafa: makes sense, start by reading their code to pick up how they expect the code ;)
<jhass>
if the maintainer is nice, PRs are an excellent way to learn the best practices
<fafa>
right
<DouweM>
that too
<fafa>
thank you for the advice guys
robbo__ has joined #ruby
freerobby has quit [Quit: Leaving.]
<schneier>
Quintus_q: that's hardly info, just explains why it stopped
feature_creep has joined #ruby
<Quintus_q>
schneier: Well, at least it’s an official response.
<eka>
maxwell_dong: and why on earth you say it's me?
beneggett has quit [Ping timeout: 245 seconds]
<Takle>
What Eka said
beneggett has joined #ruby
<maxwell_dong>
because you have a suspect nickname
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eka>
maxwell_dong: because what?
<maxwell_dong>
you are a terrorist
<ponga>
is ruby pre-installed in Windows 7 like OSX?
* eka
I smell troll
<eka>
ponga: don't think so
<Takle>
Okay seems legit for accusations :D
<Solnse>
ponga: no
fafa has quit [Disconnected by services]
<Solnse>
but I think there's a one click installer for windows.
<maxwell_dong>
is it true that >75% of ruby on rails developers are homosexual?
<maxwell_dong>
i am gay
<ari-_-e>
does anybody have ops?
<Solnse>
maxwell_dong: why? trolling for a date?
<maxwell_dong>
jw
<jhass>
ari-_-e: Mon_Ouie and apeiros are most active
<eka>
maxwell_dong: I'm not on rails, why you presume ruby is rails?
<csmrfx>
I don't use rails
<ari-_-e>
jhass: ah, and you already pinged apeiros
<csmrfx>
but even if bisexual, that has nothing to do with ruby or rails
<csmrfx>
get him!
<maxwell_dong>
the syntax of rails
koell has joined #ruby
<maxwell_dong>
is designed to encourage
* csmrfx
yells RAAA and charges
<maxwell_dong>
homosexuals
<csmrfx>
trollosexual
<eka>
to encourage to what?
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<maxwell_dong>
to be degenerate
rm_ has quit [Remote host closed the connection]
<eka>
how many drinks did you have today?
<csmrfx>
get a skout or account and leave #ruby to dev stuff, ok, you won't get any sex from here
* maxwell_dong
vomits
rm_ has joined #ruby
<jhass>
ari-_-e: general freenode tipp though: /msg ChanServ ACCESS #channel LIST
<maxwell_dong>
you homosexuals make me sick
maxwell_dong has left #ruby [#ruby]
<jhass>
wow he left on its own?
<DouweM>
wow
<ari-_-e>
jhass: ah, thanks
banister has joined #ruby
cashnguns has quit [Remote host closed the connection]
donpepp has quit [Ping timeout: 252 seconds]
banister_ has joined #ruby
Machine has quit [Disconnected by services]
Machine has joined #ruby
SilverKey has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
Atttwwww has joined #ruby
donpepp has joined #ruby
banister has quit [Ping timeout: 276 seconds]
Atttwww has quit [Ping timeout: 240 seconds]
Atttwww has joined #ruby
Machine has quit [Disconnected by services]
andreas__ has joined #ruby
Atttwwww has quit [Ping timeout: 264 seconds]
AndChat| has quit [Ping timeout: 276 seconds]
rm_ has joined #ruby
WilfredTheGreat has joined #ruby
WilfredTheGreate has quit [Ping timeout: 246 seconds]
pwh has quit []
michael_lee has quit [Ping timeout: 240 seconds]
endash has joined #ruby
b1205 has joined #ruby
mercwithamouth has joined #ruby
Fire-Dragon-DoL has joined #ruby
Lucky__ has joined #ruby
vpretzel has quit [Remote host closed the connection]
mikesplain has joined #ruby
Lucky__ has quit [Client Quit]
xcv has joined #ruby
xcesariox has joined #ruby
IceDragon has joined #ruby
xcesariox has quit [Max SendQ exceeded]
amargherio has joined #ruby
donpepp has quit [Ping timeout: 240 seconds]
sheperson has quit [Ping timeout: 240 seconds]
xcesariox has joined #ruby
jmurray has quit [Ping timeout: 240 seconds]
xcesario_ has joined #ruby
alexju has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 240 seconds]
sheperson has joined #ruby
Rainicorn has joined #ruby
donpepp has joined #ruby
sinkensabe has joined #ruby
WilfredTheGreat has quit [Ping timeout: 246 seconds]
WilfredTheGreat has joined #ruby
xcesariox has quit [Ping timeout: 255 seconds]
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros>
sorry guys, was cooking /cc jhass
<jhass>
no worries, thanks
kireevco has joined #ruby
timonv has joined #ruby
michael_lee has joined #ruby
wallerdev has joined #ruby
sinkensabe has quit [Remote host closed the connection]
dangerou_ has quit [Read error: Connection reset by peer]
Ishiro has quit [Quit: Computer has gone to sleep.]
dangerousdave has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
closer has quit [Ping timeout: 252 seconds]
sunya7a has quit [Ping timeout: 252 seconds]
closer has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
lethjakman has joined #ruby
IceDragon has quit [Ping timeout: 276 seconds]
IceDragon has joined #ruby
LekeFly has joined #ruby
rm_ has quit [Ping timeout: 264 seconds]
sunya7a has joined #ruby
yfeldblum has joined #ruby
Arkaniad has joined #ruby
<shevy>
wow
sski has quit [Remote host closed the connection]
<shevy>
you two are cooking
sski has joined #ruby
mehlah has quit [Quit: Leaving...]
<eka>
kind of "breaking bad" cooking?
rm_ has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
sski has quit [Ping timeout: 260 seconds]
<RoryHughes>
What is the difference between "class Child < Parent;end" and "class Child;class Parent;end;end"
tacos1de has quit [Ping timeout: 272 seconds]
l3vel has joined #ruby
tacos1de has joined #ruby
<jhass>
one makes Child a subclass of Parent, the later defines a new class Parent inside the namespace Child
phansch has quit [Ping timeout: 252 seconds]
<jhass>
so they're not really comparable at all
Ishiro has joined #ruby
lethe has joined #ruby
<RoryHughes>
For the latter, when would you ever namespace using a class or is what i wrote absurd anyway?
enebo has joined #ruby
aep_ is now known as aep
sunya7a has quit [Ping timeout: 240 seconds]
<jhass>
some gems do that so you can do Gemname.new instead of Gemname::Client.new or something similar
coderhs has joined #ruby
<Mon_Ouie>
For the same reason you'd namespace inside a module: because the so-called Child class is used within that class
<Mon_Ouie>
e.g. if you have a Tree class, you would probably have a Tree::Node as well
byteoverfl0w has joined #ruby
<RoryHughes>
Mon_Ouie: So writing a class inside another doesn't create any meaningful connection between them, it just makes the Child accessible as Parent::Child ?
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Mon_Ouie>
Yes. Also the fact you're inside the Parent class body affects constant look up
<Mon_Ouie>
(you can access Parent::Foo as just Foo)
lethe has quit [Ping timeout: 240 seconds]
<RubyPanther>
I would argue that the namespace effects are "meaningful"
stonevil has joined #ruby
<RoryHughes>
RubyPanther yeah they are but the class doesn't act any different other than the way its accessed differently
<RoryHughes>
Mon_Ouie jhass thanks for clarifying
xcesario_ is now known as cesario
stonevil has quit [Client Quit]
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
<RubyPanther>
In practice Foo gives you Parent::Foo instead of SomeOther::Foo, so the behavior will be different based on namespace
soulcake has joined #ruby
anaeem1_ has joined #ruby
moritzs has joined #ruby
mijicd has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
LadyRainicorn has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
zorak has quit [Ping timeout: 260 seconds]
phansch has joined #ruby
moritzs has quit [Ping timeout: 240 seconds]
yubrew has joined #ruby
sheperson has quit [Read error: Connection reset by peer]
sheperson has joined #ruby
WilfredTheGreat has quit [Read error: Connection reset by peer]
j75 has joined #ruby
timonv has quit [Remote host closed the connection]
alxgnon has joined #ruby
LadyRainicorn has joined #ruby
timonv has joined #ruby
tesuji has joined #ruby
sheperson has quit [Client Quit]
yubrew has quit [Ping timeout: 276 seconds]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mr_snowf1ake has joined #ruby
jamto11 has joined #ruby
dawkirst has joined #ruby
dawkirst_ has joined #ruby
lkba has joined #ruby
dawkirst_ has quit [Client Quit]
dawkirst_ has joined #ruby
tesuji_ has joined #ruby
<mostlybadfly>
oh yay finally figured out my first program :D
coderhs has joined #ruby
tesuji has quit [Ping timeout: 255 seconds]
l3vel has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 265 seconds]
LekeFly has joined #ruby
allenchun has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
dawkirst has quit [Remote host closed the connection]
gorpon has quit [Ping timeout: 252 seconds]
zorak has joined #ruby
<j75>
mostlybadfly: nice work!
jamto11 has quit [Ping timeout: 276 seconds]
<mostlybadfly>
i was getting frustrated with not getting how to pass through variables to a class and set up methods but finally hehe. also got a simple db to store to and select from
<mostlybadfly>
it's just asking for game title, year, and system, storing it then giving you a list of your saved game collection hehe, but it'll be a skeleton for a recipe building program i want to do
dangerou_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
jadedgnome has joined #ruby
agjacome has joined #ruby
LadyRainicorn has joined #ruby
moritzs has joined #ruby
Quintus_q has left #ruby ["Valete!"]
<shevy>
mostlybadfly how did you solve passing variables to a class
<LadyRainicorn>
passing variables to a class?
donpepp has quit [Ping timeout: 276 seconds]
dawkirst_ has quit [Remote host closed the connection]
<mostlybadfly>
i don't know if it is the best description. i guess i just didnt GET how to instantiate from user input then all of a sudden it was like oh duh now i know
yfeldblum has joined #ruby
<mostlybadfly>
you know the required variables i wanted to use, but I realized it was like nothing at all hehe
b1205 has quit [Ping timeout: 276 seconds]
Solnse has quit [Ping timeout: 260 seconds]
donpepp has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
shemerey has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
LadyRainicorn that's what he wrote!
* LadyRainicorn
does not understam
<mostlybadfly>
yeah i'm not even using the write term properly
<LadyRainicorn>
nd what that would entail
<LadyRainicorn>
rofl
yfeldblum has quit [Ping timeout: 240 seconds]
IcyDragon has joined #ruby
yakko has joined #ruby
Rollabunna has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
Arkaniad has quit [Ping timeout: 252 seconds]
brunops has joined #ruby
IcyDragon is now known as IceDragon
lkba has quit [Ping timeout: 245 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
jheg has joined #ruby
donpepp has quit [Ping timeout: 240 seconds]
rezzack has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
freerobby has joined #ruby
freerobby has quit [Client Quit]
donpepp has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
phansch has quit [Ping timeout: 245 seconds]
<Mon_Ouie>
And yet That's a question that comes up very often
toastynerd has joined #ruby
donpepp has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
Kilo`byte has quit [Ping timeout: 252 seconds]
Solnse has joined #ruby
freerobby has joined #ruby
maximski has joined #ruby
amundj has joined #ruby
wallerdev has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Kilo`byte has joined #ruby
Arkaniad has joined #ruby
donpepp has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Ishiro has quit [Quit: Computer has gone to sleep.]
cashnguns has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
dangerousdave has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
rm_ has quit [Ping timeout: 260 seconds]
anaeem1 has quit [Ping timeout: 255 seconds]
Hanmac has quit [Ping timeout: 276 seconds]
skysploit has quit [Remote host closed the connection]
stantona has quit [Ping timeout: 276 seconds]
dawkirst has joined #ruby
<bga_>
well
yakko_ has joined #ruby
<bga_>
jhass i just dont see any bouded vars in class ... end
<jhass>
you shouldn't need them
yakko has quit [Ping timeout: 265 seconds]
maximski has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
<bga_>
i agree. in big projects i shoild stay away from closures for class and put constants into class body as you (but allMask is unrelated to String). But i use ruby as bash mainly and want simple code.
Xeago has joined #ruby
kirun has joined #ruby
<jhass>
like is path_parts
<jhass>
that stuff belongs to File,Dir,Pathname and Sh
<jhass>
and no matter if big project or not, using define_method when neither the method name nor the receiver is dynamic is just silly
<jimbow>
how long does it take to master a new programming language if someone never programmed nor has any knowledge of programming concepts
jack_rabbit has joined #ruby
Nahra has quit [Remote host closed the connection]
<jhass>
jimbow: that's very individual and "master" is very vague
<jhass>
but expect a few years, which doesn't mean you can't be a productive programmer earlier
<jimbow>
jhass: well, how long did it take you?
<jimbow>
thanks, i'm trying my best in becoming a great programmer and designer
Nahra has joined #ruby
<jimbow>
but it's really difficult
dawkirst has quit [Remote host closed the connection]
<jhass>
2-3 years for ruby but I knew a couple of languages before, though I haven't reached the same level of understanding for any other language yet
<jhass>
the most important thing is to just pick projects and actually program
<jhass>
everything else comes while doing that
yubrew has joined #ruby
gruz0[russia] has joined #ruby
<gruz0[russia]>
ку
b1205 has quit [Ping timeout: 260 seconds]
SegFaultAX has quit [Excess Flood]
<andreas>
jimbox: I've been working with ruby 40+ / week for 3 years
<andreas>
and there's still a lot out there I'm learning
<andreas>
sorry, jimbow :)
SegFaultAX has joined #ruby
<benzrf>
jimbow: dont listen to them!!!
<andreas>
lol
<benzrf>
i know ruby so well im literally better at it than the creator and it only took me a year B)
<jimbow>
benzrf: how do you know that?
<benzrf>
jimbow: because im being sarcastic
<benzrf>
or at least facetious
jack_rabbit has quit [Ping timeout: 240 seconds]
<benzrf>
jimbow: look at it this way
<benzrf>
jimbow: how long does it take to master writing?
<benzrf>
that's a meaningless question
<shevy>
10 years
<benzrf>
a better question is, how long does it take to become good at writing
<benzrf>
but there is no such thing as mastering writing
Ishiro has quit [Quit: Computer has gone to sleep.]
<benzrf>
same for programming
<jimbow>
less, writing could take 1 year at the most
<benzrf>
in any particular paradigm
<jhass>
but neither for writing nor for programming "good" is very objectively measurable either
<arrubin>
The flip flop operator is useful in Perl for things like reading a file where there is a line that marks the beginning of something and then another line that marks the end.
<arrubin>
The flip flop operator can return true starting when it sees the beginning marker and keep doing so until it sees the end marker.
atraylen has joined #ruby
gruz0[russia] has joined #ruby
<jhass>
hm, def flipflop(a, b); @last ||= false; if !@last && a; @last = true; elsif @last && b; @last = false; end; @last; end; if I got that right
<rkazak_>
arrubin: thanks for the explain.
GriffinHeart has joined #ruby
<benzrf>
jhass: yo i was about to impl it o-o
<shevy>
oh so like a container that has to be open to get input, and is closed to no longer receive input
<jhass>
though multiple distinct ones in one context possible of course
<jhass>
hm, the ||= is borked
byteoverfl0w has joined #ruby
Nahra has quit [Remote host closed the connection]
<j75>
iset
<arrubin>
Why are you trying to implement it? Ruby has the flip flop operator.
<benzrf>
syntactic position and method call resets
<benzrf>
:-o
bricker`LA has quit [Quit: leaving]
<benzrf>
i want the stack frame that called me
<benzrf>
well i guess theres a way to cheat
endash has quit [Quit: endash]
<rkazak_>
cheat = be creative….
<RubyPanther>
Creativity is the programmer's #1 enemy
Guest49208 is now known as j75
<rkazak_>
sometimes....
<RubyPanther>
"a programming language that has been engineered to promote good style and design can still be used to write terrible code if the coder is sufficiently creative." http://queue.acm.org/detail.cfm?id=1039535
maximski has quit [Ping timeout: 245 seconds]
<RubyPanther>
That's why I had to give up Perl, it actually _encouraged_ me to be creative and even (horrors) expressive
GriffinHeart has quit [Remote host closed the connection]
<j75>
Perl is way too messy
hello_world101 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
<RubyPanther>
Perl is a fine language, if you're boring enough not to be creative or expressive when given a chance
<shevy>
hahaha
<RubyPanther>
Ruby teaches me, just do it the freakin' normal way, mkay?! Saves me from myself, without the bondage of Java
<arrubin>
RubyPanther: That is a matter of convention, not Ruby enforcing anything.
n_blownapart has quit []
<benzrf>
RubyPanther: youd love python
Martxel has joined #ruby
maximski has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<RubyPanther>
Exactly! The convention of "any way is good" is more than subtly different than "you can do it any way, but please do it the right way if you can"
maximski has quit [Client Quit]
_808chris has joined #ruby
<arrubin>
RubyPanther: Nothing in Ruby enforces such a convention.
<arrubin>
There are such conventions in Perl too.
<shevy>
like "write beautiful code" ?
akonny has joined #ruby
<RubyPanther>
benzrf: I've used baby python, but I don't go any further in than I can figure out in the REPL
<arrubin>
There is an entire book on a topic, and a tool that will point out deviations from the convention, and these conventions are widely used.
<arrubin>
s/a topic/the topic/
<_808chris>
howdy, I have a very weird issue. I'm getting "`require': cannot load such file -- spec_helper (LoadError)" even though spec_helper exists.. same thing with require_relative.. any ideas?
<benzrf>
RubyPanther: the philosophy of python is practically 'do things the right way that everybody agrees on because it makes everything understandable'
<jhass>
_808chris: fix your $LOAD_PATH
momomomomo has joined #ruby
dwts has quit [Ping timeout: 252 seconds]
<benzrf>
RubyPanther: and the language design is full of 'this is possible to implement but it feels too clever'
<benzrf>
i.e. in python, you cant put more positionals after a splat
<benzrf>
because even though there are ways for it to work, it isnt OBVIOUS
jimbow has quit [Remote host closed the connection]
j75 has quit [Quit: WeeChat 0.4.1]
<benzrf>
*in a param list
<benzrf>
but also in a call apparently
<RubyPanther>
Ruby is the same way, there is lots of stuff that the language "can" do that you should not do
<rkazak_>
benzrf: yes.
<benzrf>
yes, but in python it's enforced at a language level
Bish_ is now known as Bish
<benzrf>
:-)
<benzrf>
i.e. there's stuff that the language could do that it does ont
<benzrf>
*not
dwts has joined #ruby
<benzrf>
not just stuff the language can do that you shouldnt
lagweezle has quit [Quit: leaving]
<_808chris>
jhass, thanks that works.. but how do configure this so I dont need to keep "$LOAD_PATH.unshift(File.dirname(__FILE__))" on every file?
<_808chris>
is there something i can do globaly?
<andreas__>
-I
<benzrf>
RubyPanther: in ruby, there's stuff you CAN do but shouldnt
<andreas__>
ruby -Ipath
<jhass>
_808chris: that depends on what you're doing
<benzrf>
RubyPanther: in python, there's stuff the LANGUAGE can do but doesnt
centrx has joined #ruby
<rkazak_>
:)
yubrew has joined #ruby
<_808chris>
jhass, just trying to test a simple Sinatra app :/
<RubyPanther>
Yeah, Ruby knows if you have to protect yourself from yourself by force, you're just going to build something even more disgusting to get around it. You have to buy in to the convention of doing things the Right Way as the first choice, and the Other Way only when you have to. Also it is assumed that the Other Way is a kludge and would get fixed given time
<andreas__>
_808chris: if you execute with ruby -Ipath/to/spec_helper
<_808chris>
andreas__, using a rake task
<jhass>
-spec_helper
<jhass>
ruby -Ispec for example
<jhass>
or in your Rakefile
<rkazak_>
RubyPather: or maybe not… as it ends up as the de facto std…
Jetchisel has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 252 seconds]
<RubyPanther>
In Perl the Other Way is just a personal choice, therefor opinion, therefor it is personally offensive and oppressive to tell somebody there is a Right Way. It denies their individuality as a person.
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
jackneill has quit [Remote host closed the connection]
<RubyPanther>
But I'm way too unique of an individual for it to be safe to map all my opinions to my code. Not even Future-Me will be able to understand Past-Me, the human condition doesn't allow for being understood at that level.
shevy has joined #ruby
Nahra has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 265 seconds]
<pontiki>
RubyPanther: do you understand what you just said?
<_808chris>
jhass, andreas__ thanks for the help, I can't seem to figure out how to add that flat the my rake task http://pastebin.com/HWeCL01x
SCommette has joined #ruby
rm_ has quit [Read error: No route to host]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
<_808chris>
*flag
rm_ has joined #ruby
Prawnzy has joined #ruby
<jhass>
what's your testing framework?
<RubyPanther>
pontiki: Yes, of course... I'm curious what you mean, it seems an odd question.
Nahra has joined #ruby
<_808chris>
minitest
<_808chris>
minitest-spec actually
<benzrf>
sometimes i wonder if RubyPanther is a troll
<pontiki>
you just said future-you can't understand past-you. seems like it works. :)))
DouweM has quit [Read error: Connection reset by peer]
<RubyPanther>
benzrf: When you're considering if you should call people names, the standard convention is "no, don't do it."
<pontiki>
seriously, though, you are right, for a significant passage of time, the thing you coded in the past can become gibberish in the intent to the future-you
<RubyPanther>
pontiki: It is rooted in the experience of opening up a .pm file, saying, WTF, what idiot wrote this, what the heck is going on, what does this code even _do_... and the realizing *I* wrote it... 6 months earlier
<pontiki>
the "What idiot wrote this crap?" "Oh, it's mine"
<jhass>
:8
<pontiki>
*exactly* :)
<jhass>
_808chris: via the libs option
<jhass>
that actually was a typo :P
j75 has joined #ruby
<RubyPanther>
It is _exactly_ the same emotional feeling as if I read abstract poetry I wrote as a teenager. I can't still feel how I felt then. It feels familiar, but not like it is me, like I watched a close friend doing it.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
feature_creep has joined #ruby
akonny has quit [Quit: akonny]
<RubyPanther>
I can read Ruby code I wrote 5 years ago, and it is only a mild, "WTF, oh, okay, I used to use ugly patterns"
<rkazak_>
well it’s only to be expected as your experience grows…
<RubyPanther>
if it is C it is even easier, because I never knew enough C to do anything clever or optimized
<rkazak_>
:) - 2 c || ! 2 c
<RubyPanther>
old SQL, I'd write it exactly the same way now, usually
<rkazak_>
and then there’s ADA
<andreas__>
yuck ADA
<rkazak_>
:)
<pontiki>
c'mon, Ada isn't an acronym
DouweM has joined #ruby
WillAmes has joined #ruby
<Mon_Ouie>
ALL 3-letter sequences are acronyms
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<pontiki>
except when they're just names
<rkazak_>
ok...ok...
<j75>
like my username for example
gorpon has joined #ruby
<shevy>
joker75
<j75>
lol
<RubyPanther>
If I had to use a static imperative language other than C, Ada would be a fine choice
<rkazak_>
OMG ! enough now.
<RubyPanther>
I'd rather use Ada than PASCAL/Delphi
Rollabunna has joined #ruby
<RubyPanther>
I guess Pascal probably isn't an acronym either
<rkazak_>
Hmmm, COBOL - keeps on going!
dawkirst has joined #ruby
<RubyPanther>
COBOL is so bad that it can be fun to write
<RubyPanther>
pass-by-value is its own Special experience
<rkazak_>
NCR NEAT3 assembler…
<_808chris>
jhass, i dont understand why this is required. on all the tutorials i see there is never a mention of load_path
unknown007 has quit [Ping timeout: 260 seconds]
tessi has joined #ruby
<jhass>
never used minitest, maybe the default is test instead of spec or something like that
feature_creep has quit [Quit: feature_creep]
<RubyPanther>
Ada is like Java with less boilerplate and better concurrency
Rollabunna has quit [Ping timeout: 252 seconds]
<shevy>
_808chris it is not required, just use gem-dir structures and install into ruby site dir path and you will never ever need require_relative
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
<_808chris>
i've gotten it working .thanks jhass andreas__ shevy
<andreas__>
yw
akonny has joined #ruby
_808chris has quit [Quit: Leaving]
andreas__ has quit [Quit: Leaving]
andreas__ has joined #ruby
gruz0[russia] has quit [Quit: This computer has gone to sleep]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
mijicd has joined #ruby
gruz0[russia] has joined #ruby
t0rc has joined #ruby
jamto11 has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Xeago has joined #ruby
Fire-Dragon-DoL has joined #ruby
Burgestrand has joined #ruby
n_blownapart has joined #ruby
shevy has quit [Ping timeout: 264 seconds]
gruz0[russia] has quit [Quit: Leaving]
<n_blownapart>
hi I'm learning some math with the euler project. the last time I pasted one people here said it was poorly written. any comments on this one? ( ultimately I was able to see how euler #3 worked in ruby) thanks
gigetoo has quit [Remote host closed the connection]
Prawnzy has quit [Ping timeout: 264 seconds]
<jhass>
you never use p, you only use the index
<jhass>
so do 0.upto(9) do |i| or 10.times do |i|
near77 has joined #ruby
frosgy has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Remote host closed the connection]
gigetoo has joined #ruby
<jhass>
you don't need to require 'mathn' to have to access to Prime, require 'prime' suffices
GC_2 has quit [Quit: Leaving]
<near77>
hi
<near77>
anyone did anything of machine learning in ruby?
<n_blownapart>
jhass: ok if I could clarify. This was written by someone else who posted his answers on a website. I had another of his answers rewritten by a friend and was finally able to understand it. so youre saying that line 5 should be using upto instead of that range?
gregf has quit [Quit: WeeChat 0.4.3]
Nahra has quit [Remote host closed the connection]
<jhass>
only i is used, never p, so yeah
anaeem___ has quit [Remote host closed the connection]
Nahra has joined #ruby
<n_blownapart>
jhass: very sorry, but where are you referring to p?
<jhass>
primes[0..10].each_with_index do |p, i| # <- there, p is never used
badhatter has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
<n_blownapart>
jhass: interesting. ok so the program does work and returns 997651. so one pipe variable is not being used at all and doesn't throw an error?
<andreas__>
n_blownapart: of course it doesn't throw an error, why would it?
<jhass>
and we call those block parameters or block variables
marr has joined #ruby
<rkazak_>
Hmm, we are all learning here right?
charliesome has joined #ruby
mehlah has joined #ruby
ascarter has quit [Client Quit]
<n_blownapart>
rkazak_ thanks . yeah I would have assumed a block variable unused (not referencing anything) would throw an error. jhass
Moeh has joined #ruby
<andreas__>
n_blownapart: I didn't mean to offend you, I don't know any language that would do that...
rm__ has joined #ruby
<Moeh>
Hey, I have ruby installed through RVM and would now like to execute a ruby script via a cronjob. Do I need to write a bash script as wrapper around it or can I execute the ruby script directly from the cron job?
<n_blownapart>
andreas__: no worries not offended, just in the dark...
<jhass>
Moeh: iirc there's something like rvm do, rvm do 2.1.1 ruby script.rb or something like that
Burgestrand has quit [Quit: Burgestrand]
feature_creep has joined #ruby
<jhass>
Moeh: try rvm help do
<andreas__>
Moeh: you could also do something like source "$HOME/.rvm/scripts/rvm" && source .rvmrc
<pontiki>
Moeh: 'runner' is for rails code, like you'd use in `rails runner "Do.this"`
<pontiki>
'command' is for shell commands
<pontiki>
and you can create your own job types as well
<pontiki>
the whenever README is pretty clear on this
matchaw has quit [Ping timeout: 255 seconds]
andreas has quit [Quit: Leaving]
<n_blownapart>
jhass: ok thanks very much. I need to sort that out. why name the reference 'is' ?
afast has joined #ruby
matchaw has joined #ruby
<jhass>
n_blownapart: that was just for demo purposes, just an array to collect the i's ;)
<n_blownapart>
jhass: got it thanks!
<jhass>
could've written .each_with_index.to_a.map(&:last) and .times.to_a but that's less clear ;)
<Moeh>
pontiki: It’s working, thanks!
centrx has joined #ruby
<Burgestrand>
Does anybody know the name of a gem that allows you to spin up a background thread, schedule blocks to be run on that thread some time in the future, and wait for the result of said block in the originating thread? Similar to a threadpool of size 1, I suppose.
pwh has quit []
claymore has quit [Quit: Leaving]
<pontiki>
nw, Moeh
<pontiki>
glad i can help someone today
sambao21 has quit [Quit: Computer has gone to sleep.]
qwyeth has joined #ruby
kirun has quit [Quit: Client exiting]
t0rc has quit [Quit: WeeChat 0.4.3]
feature_creep has joined #ruby
<n_blownapart>
jhass: many thanks.
decoponyo has joined #ruby
atmosx has joined #ruby
<afast>
Burgestrand: Spawnling?
<KLVTZ>
so Ruby Version Manager requires that the terminal starts in the login shell so i can open multiple bash tabs and still have ruby available. However, I am bother by the two second delay in the terminal having to login to the shell. Is there a way to combat this delay?
<afast>
are you using rvmrc?
<Burgestrand>
afast: thanks! Unfortunately looks like it's both a bit unmaintained, and for rails, but it is similar to what I need to do.
decoponio has quit [Ping timeout: 255 seconds]
<afast>
unmaintained doesn't mean it doesn't work
<KLVTZ>
afast: none
<KLVTZ>
i just installed rvm normally
<KLVTZ>
would i need to create .rvmrc?
<Burgestrand>
afast: true! Actually, it looks like it's maintained, just haven't had a release in a while. Either way, it's for rails, and I'm not doing this for a web project.
<afast>
Burgestrand: have you tried just using Thread.new do; ... end ?
Ishiro has quit [Quit: Computer has gone to sleep.]
<Burgestrand>
afast: yeah, I've written my own implementation of what I need, but it's not yet finished and I need to find all edge cases, so I was going to scout for existing work before I reimplement something that already exist.:)
jezen has joined #ruby
feature_creep has quit [Quit: feature_creep]
<KLVTZ>
Nevermind, I resovled it, I added [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" from .bash_profile to the .bashrc
<KLVTZ>
i don't need to call login shell any longer
Takle has quit [Remote host closed the connection]
<afast>
Burgestrand: it looks like you could use Spawnling anyway... have you tried it at least?
feature_creep has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
<Burgestrand>
afast: looking through the source at the moment. Looks like it might not require rails, so it's a possibility. Thanks for the pointer.
<afast>
Burgestrand: yw
SCommette has quit [Quit: SCommette]
dvabr has joined #ruby
cashnguns has quit [Remote host closed the connection]
angusiguess has joined #ruby
TorpedoSkyline has joined #ruby
<TorpedoSkyline>
is the preferred place to get ruby gems still RubyGems.org? or do we have an alternative now?
olivier_bK has joined #ruby
<pontiki>
that's still the place
<TorpedoSkyline>
ok thanks
jezen has quit [Remote host closed the connection]
SCommette has joined #ruby
Takle has joined #ruby
hobo has joined #ruby
jhass is now known as jhass|off
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has joined #ruby
GriffinHeart has joined #ruby
enebo has quit [Client Quit]
angusiguess has quit [Ping timeout: 255 seconds]
cgcardona has quit [Quit: cgcardona]
ndrei has quit [Ping timeout: 276 seconds]
matchaw has quit [Ping timeout: 240 seconds]
GriffinHeart has quit [Ping timeout: 260 seconds]
SCommette has quit [Quit: SCommette]
klaut has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
mr_snowf1ake has joined #ruby
__class__ has joined #ruby
feature_creep has quit [Quit: feature_creep]
SCommette has joined #ruby
SCommette has quit [Client Quit]
shevy has joined #ruby
mengu__ has joined #ruby
<shevy>
well
<shevy>
I was down
andrewlio has quit [Quit: Leaving.]
mengu has quit [Ping timeout: 240 seconds]
<shevy>
turned out the cable was not connected into the main computer
<gizmore>
thank you both, but i was wondering in general how i could implement it the foo! way
<ari-_-e>
gizmore: in general?
<ari-_-e>
gizmore: give an example
<gizmore>
my cxg paste should be a good example
<ari-_-e>
ok, well in that case you can use replace
<gizmore>
well, at least it shows the problem with patching string class
<gizmore>
which is bad, admitted, so... the problem is that string has no value setter?
<ari-_-e>
... it does. replace.
<ari-_-e>
shevy even linked to the doc
<gizmore>
hmmm... thanks
dseitz has joined #ruby
<ari-_-e>
assigning to self will never work though
<gizmore>
yup! thank you very very much :) understood :)
hobo has left #ruby [#ruby]
<gizmore>
and makes sense! ... just couldn´t find a setter :)
wu_ has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gizmore>
so thank you shevy ... i thought i should use replace instead of trim, and did not imagine it could be the setter! appreciated
<shevy>
setters in ruby can be weird
<shevy>
when I first did something like: class Foo; def bla=(i) I was surprised that I can not use return inside bla=
dingus_khan has quit [Remote host closed the connection]
thepreacher has joined #ruby
QKO has quit [Remote host closed the connection]
<gizmore>
shevy: i assume it returns self implicitly?
mengu has joined #ruby
<shevy>
gizmore methods like that will return i
<shevy>
I omitted that inside that method one of course would do: @bla = i
<shevy>
just as in an attr_writer
freerobby has quit [Quit: Leaving.]
<gizmore>
ah right
weems has quit [Read error: Connection reset by peer]
<gizmore>
ah well... thanks
pwh has joined #ruby
<gizmore>
i would assumed self instead of the arg :S
QKO has joined #ruby
<gizmore>
funny how my "stupid" questions enlight me :]
mengu__ has quit [Ping timeout: 252 seconds]
<dseitz>
It is a trade-off to maintain RHS
<gizmore>
btw, i am admin of a hacking challenge website. I did a lot of php past the years, but now doing some ruby... i am wondering if there are some common known pitfalls in ruby that would make some good ruby starter challenges
<shevy>
we all have our dark past gizmore
<gizmore>
;)
<shevy>
the number one pitfall is being cleverer than your own code
<shevy>
like combining method_missing with various ways to eval()s and meta-programming
<gizmore>
method_missing is a bad idea mostly
<shevy>
since I have a small and very lazy brain my golden rule is that I will write and use only code that is simple to understand instantly
<shevy>
I won't write a NASA mars rover
<gizmore>
good code is indeed gnu/linux style
<shevy>
but my ruby code is more pleasant than shell scripts
<gizmore>
one purpose very good
Atrumx has joined #ruby
<shevy>
and I can use ruby-gnome - take that ncurses GUIs!
<gizmore>
hehe
<shevy>
though htop is awesome
<gizmore>
i am working on an irc bot atm :)
Rollabunna has joined #ruby
<shevy>
I always point out that the author of htop started gobolinux when he was still a student
<shevy>
nowadays he is into lua
<shevy>
gizmore haha that was my first project in ruby
<gizmore>
neat :)
<shevy>
though it was both a bot and a client
n_blownapart has quit []
tectonic has joined #ruby
<gizmore>
wanna see a snippet of mine?
<shevy>
the problem is, I was using select( [$stdin], nil, nil, 1.1 )
<shevy>
and whenever I see that, I need to look at the docs because I cant remember what this is
<wu_>
but controller should only be written once, ie a standard LD-PATCH handler that takes JSON-LD/Turtle. so the whole ACtionController abstraction can be tossed. routes can just be direct URI hierpart -> filesystem paths, so you can toss the synthetic URIs and regex routingv framework wizardry
combusean has joined #ruby
mengu__ has quit [Ping timeout: 240 seconds]
dingus_khan has quit [Remote host closed the connection]
<benzrf>
wu_: gross
<shevy>
wu_ sinatra by default is really not doing much, it's more like sugar over rack; with plain sinatra well what can you do without any addons... you can call URL requests... use some erb views... well that's it more or less otu of the box
<benzrf>
synthetic URIs are the only way to go for dynamic websites
<benzrf>
look at php, it did filesystem code
<benzrf>
and see how well it turned out :I
<shevy>
it works well
<shevy>
people move from php to other languages
<wu_>
depth-first subtree ranges on filesystem paths with sortable values in the name segments. why do you even need SQLite or an ORM again for 98% of use-cases ?
<benzrf>
:-)
<shevy>
not from other languages to php
<shevy>
:-)
pwh has quit []
<gizmore>
php is nice for beginners
<wu_>
if every resource isn't a file, and i have to use some wonky ruby code or write SQL to lok at it, meh
<benzrf>
noocode:
<benzrf>
*no
<benzrf>
gizmore: php is not nice for beginners
<gizmore>
you do mypage.php, and it works without knowing why and how
<shevy>
yeah
<benzrf>
php is nice for beginners the way crack is nice for beginners
<shevy>
that is the single thing ruby failed to understand
<benzrf>
it is pleasant the first time you use it, then it destroys your mind and body
<gizmore>
that´s the good point about php, and that´s pretty much it
<centrx>
PHP is an abomination and a scourge on the face of the earth.
<shevy>
lol centrx
<centrx>
Crack is more powerful than PHP
<benzrf>
i am not so sure
<shevy>
crack addicts have it harder to leave crack than php folks do leaving php behind in the stinking pile of s*** it deserves to remain
<shevy>
but it also primes people for other languages
<gizmore>
shevy: i also have written something like ActiveRecord... but it sucks in comparison
<gizmore>
mine sucks
<gizmore>
i spent a lot of time inventing wheels in php :)
<gizmore>
today it helps me to understand other software
<afast>
lol, part of it are in spanish for me
<gizmore>
you can switch language in topmenu
lobstah has joined #ruby
<afast>
oh I know, it was just funny :)
<gizmore>
:P
djbkd has joined #ruby
<gizmore>
we are still looking for translators ...
<gizmore>
at least my pileofpoo is open source :)
<gizmore>
unlike many other php sites from scratch
SCommette has joined #ruby
SCommette has quit [Client Quit]
jamto11 has joined #ruby
<atmosx>
hello, if anyone wnats a keybase.io invitation pm me
SCommette has joined #ruby
<shevy>
hey atmosx
<atmosx>
hey whats' up shevy
<atmosx>
how's work?
byteoverfl0w has quit [Quit: Leaving... have a good one...]
predator217 has joined #ruby
Photism has quit [Quit: Leaving]
<shevy>
atmosx I am no longer at that old company, currently just focusing on a few exams in june and then looking to find a lab focusing on virology, as I realized that virology is about a million times more interesting than cancerbiology
<shevy>
atmosx did you get to finish your web thingy?
<atmosx>
which one?
gorpon has quit [Quit: Konversation terminated!]
freerobby has joined #ruby
gorpon has joined #ruby
<shevy>
that one you mentioned a while ago in regards to ... uhm... the thing you could use in a lab and it gives back useful results related to molecular biology?
<atmosx>
oh yeah, the first version
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
predator117 has quit [Ping timeout: 252 seconds]
<atmosx>
but now he wants to add more fuctionality, so I have work to do. Probably in the summer
<atmosx>
he wants to do score-alignment
jamto11 has quit [Ping timeout: 240 seconds]
<atmosx>
so I need to at what % there's a match... e.g. searching for protein substrate in bacterias that normally do not produce it
<Lemur>
Oi benzrf
<Lemur>
working around Pry remote as well?
<benzrf>
Lemur: hmmm?
<benzrf>
Lemur: have you been reading the logs
<Lemur>
I've been working on things with it trying to fix a few bits
<Lemur>
Noticed you had a PR on there.
<benzrf>
Lemur: oic
<benzrf>
yeah thats old
<benzrf>
it doesnt do much :\
<benzrf>
back from when i was trying to make Quick
<benzrf>
before i finally got fed up with my own shitty brittle code
<Lemur>
mainly fixing the docs and separating the module a bit
<Lemur>
Ah, Mon_Ouie is on here too
<benzrf>
i tried to think of something i could use besides FUSE
<benzrf>
but it seems like anything else would defeat my whole goal of software agnosticism
<Lemur>
Trying to think of a way to patch the editor through a remote session
<Lemur>
I'm working through a conference talk on Pry among other things, and Pry Remote could save a ton of time with a bit of TLC
Xeago has joined #ruby
<shevy>
atmosx I see, so you are now having to do statistical evaluations?
shalto has joined #ruby
<Lemur>
few PRs out on that one
<shevy>
and homology modeling / sequence similarities
<shevy>
damn bioinformatics algorithms
<Lemur>
I'll likely post the slides out at the end of this week along with a ton of fun things you can do in Pry
ringarin has quit [Ping timeout: 240 seconds]
<Lemur>
beyond some of the more basic features that everyone always covers
<Lemur>
Someone was being cheeky though and hid a nyan-cat in there.
shalto has left #ruby [#ruby]
yubrew has joined #ruby
<Lemur>
_pry_.commands.commands['nyan-cat']
<atmosx>
shevy: yes kinda. I will also add the ability to add custom start/end codons and a few other sthings
<Lemur>
Curious: banister == banisterfiend?
<atmosx>
shevy: I was planning to do a PoC. But now that he added some 'real requirements' I'll do a login scheme and everything
<atmosx>
psql support instead of sqlite3 etc.
<Lemur>
heh, there's a pry channel, even better
<atmosx>
there's also the possibility to search/fetch .fasta files from blast automatically... that would be cool too.
aneong has quit [Remote host closed the connection]
<atmosx>
anyway, I'll see in the summer. I have 4 exams for before the state exams
<atmosx>
and the thesis
<shevy>
sounds like a lot of work ahead
lethjakman has joined #ruby
<atmosx>
yeah
<atmosx>
unfortunately.
yubrew has quit [Ping timeout: 264 seconds]
jezen has joined #ruby
tyfighter has quit [Ping timeout: 260 seconds]
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
tyfighter has joined #ruby
keen______ has joined #ruby
shalto has joined #ruby
tesuji_ has quit [Ping timeout: 240 seconds]
keen_____ has quit [Ping timeout: 240 seconds]
shalto has quit [Quit: Leaving]
jezen has quit [Ping timeout: 264 seconds]
rm__ has quit [Ping timeout: 255 seconds]
aneong has joined #ruby
aneong has left #ruby [#ruby]
rm__ has joined #ruby
alxgnon has quit [Remote host closed the connection]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cephalostrum has joined #ruby
maroloccio has joined #ruby
subbyyy has joined #ruby
thepreacher has quit [Quit: Leaving]
feature_creep has joined #ruby
koell has quit [Read error: Connection reset by peer]
m8 has quit [Quit: Sto andando via]
tylersmith has joined #ruby
cgcardona has joined #ruby
<shevy>
man
gorpon has quit [Ping timeout: 265 seconds]
<shevy>
so many browser games demand flash AND on top of that often a download of some .exe
mengu_ has quit [Ping timeout: 255 seconds]
pyon has quit [Quit: Page closed]
tacos1de has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]