apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
CpuID has joined #ruby
claptor has joined #ruby
<bradland> you might like benchtool then. it lets you store a list of "targets" in a yaml file, rather than constantly copy/pasting in to a terminal
<bradland> although i know plenty of people just set up shell scripts for that sort of thing
<apeiros> oh, derp. might actually be my code. I haven't yet implemented a connection pool. and I glanced over the fact that puma - of course - uses multiple threads…
<bradland> porfa: are you installing the mysql gem, or the mysql2 gem?
<bradland> it says on the Sequel github page that mysql2 adapter is included, so you shouldn't need the mysql gem.
<bradland> also, the mysql gem is depreciated.
<porfa> hmmm
<bradland> that guide is pretty old by now
<bradland> it's best to double check the project home pages when it comes to installs
shime_ has joined #ruby
lxndryng has quit [Quit: Leaving]
<bradland> very few authors have the time to go back and updated old articles
<bradland> it's kind of a peve of mine that authors include install instructions in this type of guide to begin with.
<porfa> ok, how do i remove a gem then? (do i need to remove the mysql gem to install mysql2 ? )
<bradland> gem uninstall mysql
<bradland> are you using sequel?
rylev has quit [Remote host closed the connection]
hephaestus_rg has joined #ruby
<bradland> read that section
<porfa> i am trying to, first time.. i’ve looked into the other database ruby stuff, and sequel looks the more simple/perfect for my simple needs and perfect for someone who doesn’t have much experience
<porfa> ok
<bradland> ok, cool. in that guide
<bradland> where it says to use DB = Sequel.connect('mysql://user:password@localhost/blog')
<bradland> change the mysql:// to mysql2://
nanoyak has joined #ruby
<bradland> and you're good
<porfa> thank you!! :)
<bradland> you bet :) you'll like sequel
shime has quit [Ping timeout: 256 seconds]
<porfa> !!! gem install mysql2 worked! :o thank you so much.. now time to meddle in this!!!
longfeet has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
dc_ has joined #ruby
pontiki has joined #ruby
DadoCe has quit [Remote host closed the connection]
pontiki has quit [Client Quit]
sdwrage has joined #ruby
nanoyak has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
ta_ has joined #ruby
nanoyak has joined #ruby
jso has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
nanoyak has quit [Client Quit]
ta_ has quit [Ping timeout: 264 seconds]
CpuID has joined #ruby
rylev has joined #ruby
mozzarella has joined #ruby
blizzy has joined #ruby
bronson has joined #ruby
cyberarm has joined #ruby
spicymagpie has joined #ruby
nclbr has quit [Quit: Leaving...]
DadoCe has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Guest18 has joined #ruby
nanoyak has joined #ruby
<spicymagpie> porfa, did you solve your problem?
Fire-Dragon-DoL has quit [Quit: Leaving.]
Mia has quit [Read error: Connection reset by peer]
_ixti_ is now known as ixti
ponga has joined #ruby
jerematic has joined #ruby
<bradland> probably going to catch a lot of flack in here for this, but salesforce.com is a really interesting project.
<bradland> are there any OSS ruby projects that endeavor to build something similar
<bradland> not really the CRM part, but the technology that drives it
<spicymagpie> be more specific
<bradland> so, salesforce started life as database.com
sea_local has joined #ruby
<bradland> which was a collection of tools for defining an online database, plus interface
<bradland> plus a lot of the glue that ties a database together
<bradland> things like validations
<bradland> you know, it is a lot like a web-version of MS Access
<bradland> another product that developers love to hate, but was really great for business people who had a higher than average technology aptitude
<spicymagpie> hmmm
<bradland> i'll give a specific example
Heskie has quit []
Tuxero has joined #ruby
<bradland> in salesforce.com, you have all these "objects", which are like the object part of ORM
<bradland> they map to database tables, or something like it
<bradland> i don't know how they implement them, but you can define "fields", which are just column definitions
<bradland> all this is done through a web GUI
ponga has quit [Ping timeout: 264 seconds]
Synthbread has quit [Ping timeout: 272 seconds]
<bradland> their product (Salesforce CRM) is built on a tool (database.com)
<bradland> the programmer side of me is more interested in the tool than the product
CpuID has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
<bradland> rails is actually kind of close to what database.com is (as a tool), but it stops short
<bradland> there are no web-GUIs for defining ActiveRecord objects
<bradland> it's one layer of abstraction lower
fedexo has quit [Ping timeout: 255 seconds]
mloveless has joined #ruby
DadoCe has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 246 seconds]
<skinux> How do I do this inclusively? https://gist.github.com/skinuxgeek/6eb482b9a441fce1f610
DadoCe has joined #ruby
Guest18 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<spicymagpie> bradland: it's quite difficult to do what you want unless you have seattlerb's Ruby parser.
<spicymagpie> inclusively? what you mean, skinux?
<bradland> skinux: you could use a range (1..50).each { |i| print i }
<skinux> I'm wondering the same thing. it's an exercise on CodeAcademy for Ruby.
<bradland> >> (1..50).each { |i| print i }
<eval-in_> bradland => 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849501..50 (https://eval.in/243965)
<bradland> ah, i don't know what they mean by inclusively
<bradland> i was thinking you meant without the outside variable assignment
<bradland> i = 0 is outside your loop
<bradland> but they may be talking about something different
<skinux> Use a while loop to print out the numbers 1 through 50, inclusive. While the example above counts down, you will want to count up.
<bradland> there's also Fixnum#upto
<bradland> >> 1.upto(50) { |i| print i}
<eval-in_> bradland => 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849501 (https://eval.in/243966)
apeiros has quit [Remote host closed the connection]
<spicymagpie> skinux: it means you must consider both numbers 1 and 50 in your operation
apeiros has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<spicymagpie> with a while, people tend to do while (i < 50) and that stops before 50, not rocket science.
<bradland> ah, inclusive of 50
<bradland> that makes more sense
Cache_Money has quit [Quit: Cache_Money]
DadoCe has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
yokel has joined #ruby
havenwood has quit [Remote host closed the connection]
marr has quit []
rylev has quit [Remote host closed the connection]
kl has joined #ruby
goodenough has joined #ruby
mloveless has quit []
rylev has joined #ruby
x77686d has joined #ruby
pwnz0r has joined #ruby
bigmac has quit [Ping timeout: 264 seconds]
<skinux> I just can't figure out what they mean by inclusive.
<bradland> inclusive of the beginning and the end of the range provided
<bradland> so, numbers 1 to 50, inclusive of 1 and 50
<bradland> as yourself the question, if you use `while (i < 50)`, will that include 50? why? why not?
<jhass> it helps to explain the interval notations, [0, 50], vs [0, 50) vs (0, 50] vs (0, 50)
Cache_Money has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<skinux> I tried defining I to equal 1, but it didn't help.
<bradland> skinux: have you run your code? what did it output?
havenwood has joined #ruby
<bradland> paste the output in to the gist comment
<skinux> 234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950nil
<Tuxero> hello o/
<bradland> i = 0
<bradland> while i < 50 do print i i+=1
<bradland> derp, sry
Photism has joined #ruby
longfeet has quit [Ping timeout: 245 seconds]
<bradland> skinux: your output is not from the code in your gist
Tuxero has left #ruby [#ruby]
<skinux> Yes it was. And that worked.
<bradland> oh, you updated your gist, sry
<skinux> I got past that lesson finally. Thanks.
jerematic has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
commmmodo has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
<skinux> How about this for printing "Ruby!" to console 30 times? "Ruby!".times(30)
<rpag> you're missing the printt
<skinux> It says print "Ruby!".times(30) is wrong
<rpag> 30.times { print "Ruby!" }
<skinux> Duh....
<skinux> Thanks
^wald0 has joined #ruby
<jhass> print "Ruby!"*30
<bradland> part of the "fun" of these coding courses appears to be figuring out exactly how they want you to solve their problem
timonv_ has quit [Ping timeout: 264 seconds]
<bradland> there's more than one way to do just about anything in ruby
<rpag> you could match against whatever is written to stdout and allow it to be solved however.
alex88 has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Quit: Zai00]
JimmyNeutron has quit [Read error: Connection reset by peer]
ooesili has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
jobewan has joined #ruby
alex88 has quit [Remote host closed the connection]
siggy has joined #ruby
x77686d has quit [Quit: x77686d]
ooesili has quit [Client Quit]
Sawbones has joined #ruby
pdoherty has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
davedev2_ has joined #ruby
robustus has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
pawprint has joined #ruby
pdoherty has quit [Ping timeout: 255 seconds]
yokel has quit [Ping timeout: 265 seconds]
otertore has quit [Quit: This computer has gone to sleep]
ponga has joined #ruby
yokel has joined #ruby
sevvie has joined #ruby
virtualize has quit []
bronson has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
roshanavand has quit [Ping timeout: 244 seconds]
rylev has quit [Remote host closed the connection]
taiansu has quit [Remote host closed the connection]
ponga has quit [Ping timeout: 252 seconds]
Megtastique has quit []
sagittarian has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
<sagittarian> are class objects callable? what does the DelegateClass(Hash) syntax mean?
yokel has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
sdwrage_ has joined #ruby
<waxjar> that's just a method starting with a capital
virtualize has joined #ruby
blizzy is now known as yiff
yiff is now known as blizzy
blizzy is now known as bluefox
bluefox is now known as blue_fox
sdwrage has quit [Ping timeout: 245 seconds]
blue_fox is now known as blizzy
yokel has joined #ruby
<sagittarian> i thought that identifiers beginning with a capital are constants
Sawbones has quit [Remote host closed the connection]
blizzy is now known as cat
cat is now known as blizzy
<sagittarian> or classes or modules, which are kinds of constants
blizzy is now known as blizzard
blizzard is now known as blizzy
c355E3B has joined #ruby
<waxjar> >> def Lookma; "hi"; end; Lookma
<eval-in_> waxjar => uninitialized constant Lookma (NameError) ... (https://eval.in/243998)
<waxjar> >> def Lookma; "hi"; end; Lookma() # hehe
<eval-in_> waxjar => "hi" (https://eval.in/243999)
<sagittarian> >> def lookma; 'hi'; end; lookma
<eval-in_> sagittarian => "hi" (https://eval.in/244000)
<sagittarian> so what's the difference, when should you start with a capital?
<sagittarian> and why does it insist on parens for your version (but of course doesn't for mine)?
<waxjar> idk, ruby-core has a few methods like String() and Integer() to do conversions
<waxjar> other than that, probably best to not use methods starting with capitals
mac__ has joined #ruby
scripore has joined #ruby
blizzy is now known as gayfox
gayfox is now known as blizzy
teddyp1cker has joined #ruby
pwnz0r has quit [Remote host closed the connection]
hephaestus_rg has quit [Ping timeout: 265 seconds]
teddyp1cker has quit [Ping timeout: 264 seconds]
vikram_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
larissa has quit [Quit: Leaving]
longfeet has joined #ruby
fedexo has joined #ruby
<brixen> Rubinius 2.5.0 is out, y'all https://github.com/rubinius/rubinius/releases/tag/v2.5.0
^wald0 has quit [Quit: ^wald0]
jerematic has joined #ruby
VBlizzard has joined #ruby
sevvie has quit [Ping timeout: 276 seconds]
Synthbread has joined #ruby
blizzy has quit [Disconnected by services]
VBlizzard is now known as blizzy
sevvie has joined #ruby
lzco has joined #ruby
jerematic has quit [Ping timeout: 265 seconds]
astrobunny has joined #ruby
blizzy has quit [Quit: Leaving]
mac__ has quit [Read error: Connection reset by peer]
sevvie has quit [Ping timeout: 264 seconds]
mac__ has joined #ruby
michaeldeol has joined #ruby
sevvie has joined #ruby
Dopagod has quit [Read error: Connection reset by peer]
hephaestus_rg has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
sevvie has joined #ruby
cmoneylulz has joined #ruby
Synthbread has quit [Ping timeout: 272 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmoneylulz has quit [Remote host closed the connection]
bean has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
bean has joined #ruby
kavita has joined #ruby
sevvie has quit [Ping timeout: 272 seconds]
gregf has quit [Quit: WeeChat 1.0.1]
jefus_ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
jefus has quit [Ping timeout: 276 seconds]
StableEvan has joined #ruby
ponga has joined #ruby
centrx has joined #ruby
c355E3B has quit [Quit: Leaving]
pontiki has joined #ruby
<pontiki> g'd ev'ning
taiansu has joined #ruby
kavita is now known as abaddha
ponga has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
fedexo has quit [Ping timeout: 245 seconds]
^wald0 has joined #ruby
gregf has joined #ruby
shime_ has quit [Ping timeout: 245 seconds]
cyberfab007 has joined #ruby
hiyosi has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
hephaestus_rg has quit [Ping timeout: 252 seconds]
iMe has quit [Ping timeout: 264 seconds]
cyberfab007 has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
iMe has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
taiansu has quit [Remote host closed the connection]
TgMts has quit [Ping timeout: 244 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
^wald0 has quit [Quit: ^wald0]
ta_ has quit [Ping timeout: 244 seconds]
<porfa> yellow! first time using anything related to db with ruby…. so.. client = Mysql2::Client.new(:host => "localhost", :username => "root")
timonv_ has joined #ruby
<porfa> where do i put the password? can i do , :password => “lol”) after the username? because it fails to connect.. dunno why
n008f4g_ has quit [Ping timeout: 245 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
Sawbones has joined #ruby
<porfa> snap.. forgot “require “mysql2”” :x
taiansu has joined #ruby
Tarellel has joined #ruby
Tarellel has left #ruby [#ruby]
rpag has quit [Quit: Leaving]
timonv_ has quit [Ping timeout: 272 seconds]
taiansu has quit [Remote host closed the connection]
Tarellel has joined #ruby
Tarellel has left #ruby [#ruby]
try has quit [Ping timeout: 245 seconds]
zorak8 has quit [Ping timeout: 252 seconds]
<riceandbeans> porfa: you mean you forgot 'requre pg'
<porfa> hmm no… i mean.. did i? ;_;
<porfa> i just want to put my ruby finds on a database :(
lzco has quit [Remote host closed the connection]
FDj_ has quit [Read error: Connection reset by peer]
<centrx> porfa, I think that might have been a joke from riceandbeans about Postgres being better than MySQL
omosoj has joined #ruby
FDj has joined #ruby
<porfa> ….! well, as a noob a deserve
<porfa> that
DefV has joined #ruby
<pontiki> nah
<pontiki> they didn't tag it with an emoticon
<centrx> good point, emoticon = error correction code
drkush has quit [Quit: No Ping reply in 210 seconds.]
<pontiki> ^
drkush has joined #ruby
<centrx> porfa, It sure looks like :password is one of the options for Mysql2::Client.new, so the error must be something else
Tarellel has joined #ruby
Tarellel has left #ruby [#ruby]
tectonic has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
siggy has quit [Quit: siggy]
ta_ has joined #ruby
nanoyak has joined #ruby
robustus|Off has joined #ruby
robustus|Off is now known as robustus
nateberkopec has joined #ruby
bronson has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
shime has joined #ruby
brlkid has joined #ruby
pdoherty has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
omosoj has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 276 seconds]
<porfa> it outputted this “ => #<Mysql2::Client:0x000000017a5de0>” does this mean the connection is OK?
<porfa> ok / in place
omosoj has joined #ruby
ohaibbq has quit [Quit: Leaving...]
pdoherty has quit [Ping timeout: 245 seconds]
<centrx> porfa, probably
<centrx> porfa, you can check by running a simple query like select * from information_schema.tables
iamninja has joined #ruby
ponga has joined #ruby
iMe has quit [Ping timeout: 256 seconds]
iMe has joined #ruby
lzco has joined #ruby
ponga has quit [Ping timeout: 255 seconds]
<omosoj> why can a class have only one superclass?
lzco has quit [Remote host closed the connection]
<omosoj> i mean, why not allow multiple inheritance?
LouisRoR has joined #ruby
<centrx> omosoj, Mixins (included modules) are basically multiple inheritance
<centrx> omosoj, "true" multiple inheritance can be ambiguous and problematic. Mixins seems to handle that nicely
<omosoj> but modules are generally inessential functionality or characteristics, right?
<omosoj> (i'm trying to learn all this right now)
<omosoj> why is multiple inheritance problematic?
djbkd has joined #ruby
<omosoj> hmm, i kinda see how it's weird for one thing to inherit from two other actual things
jglover has joined #ruby
jbw has quit [Ping timeout: 264 seconds]
yeticry has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
<omosoj> what about if there's a class OldArtifact, and a class Chair. why shouldn't you be able to inherit from both if you find an old chair?
<jglover> q!
<omosoj> ah, k
<jglover> oh this isn't vim
<centrx> omosoj, yes multiple inheritance seems unnatural to me
djbkd has joined #ruby
<centrx> omosoj, The first 'answer' on the Stack Overflow talks about it being used primarily for 'traits', and modules are often used like traits in Ruby
_djbkd has joined #ruby
_djbkd has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 240 seconds]
yeticry has joined #ruby
it0a has quit [Quit: WeeChat 1.1]
abaddha has quit [Remote host closed the connection]
<omosoj> is rails well designed from an OO perspective?
<epitron> multiple inheritance is weird because you need to run multiple constructors
<epitron> and you could have instance variable collisions
<epitron> a shaky proposition
<omosoj> epitrong, for variables like 'name'? (common ones)
<epitron> yeah
<omosoj> ah, that makes sense
<epitron> you could setup something where each superclass is namespaced
<epitron> but you would get still have issues with collisions if the subclass wanted to modify them
<epitron> like, say both classes defined @name
<epitron> and you wanted to set @name
bdamos has joined #ruby
<epitron> ??? :)
<Sawbones> Is flux just a glorified event system?
Rollabunna has joined #ruby
<omosoj> i see
<epitron> you'd have to invent some way of saying "modify @name of SuperclassA"
<epitron> or of superinstance
<epitron> you'd need names for all these things, on top of the actual language features
djbkd has joined #ruby
evanjs has quit [Remote host closed the connection]
abaddha has joined #ruby
<omosoj> i see. so ruby just decided it's not worth it
<epitron> yeah
<epitron> mixins are a lot simpler
<epitron> you get the same benefit, without a lot of the pain
nanoyak has quit [Quit: Computer has gone to sleep.]
<omosoj> there's no overlap problem?
havenwood has quit [Remote host closed the connection]
abaddha has quit [Read error: Connection reset by peer]
<epitron> well, a mixin KNOWS it's ALWAYS going to be mixed in
<epitron> a multiply-inherited class doesn't
abaddha has joined #ruby
<omosoj> right - okay, so it's designed to co-exist with the classes it will be included in
<epitron> so your default mental model is always "ok, i gotta be careful not to clobber anything" :)
cpt_yossarian has quit [Ping timeout: 252 seconds]
teddyp1cker has joined #ruby
CustosLimen has joined #ruby
agjacome has quit [Quit: leaving]
<epitron> mixins are often also designed to be mixed into certain classsses
<omosoj> what is a 'mixin'? a module?
<epitron> so they know what the class they're being included in does, and its protocol, and its state variables
<epitron> yeah
<omosoj> when is mixin used instead of module
<omosoj> just slang/informal?
<epitron> a mixin is just doing:
<epitron> >> class Butts; include Enumerable; end
<eval-in_> epitron => Butts (https://eval.in/244031)
ta_ has joined #ruby
<omosoj> k
<epitron> Enumerable is just a plain old module
<epitron> full of methods
<epitron> those become instance methods of Butts
<omosoj> what about extending? is that a mixin too?
<epitron> extending is mixing into an instance
<epitron> "hello".extend(Butts)
<epitron> (different butts)
<epitron> >> module Butts; def woot!; :yes; end; end; s = "yay"; s.extend(Butts); s.woot!
<eval-in_> epitron => :yes (https://eval.in/244032)
<epitron> if you do extend inside a class, it'll make the included module's methods into class methods
<omosoj> whoa, i didn't know you could do it outside a class
<epitron> you can do it whenever you like!
<epitron> ruby is craaaazy!
<omosoj> lolz
<epitron> here's a neat trick
Sawbones has quit [Remote host closed the connection]
<omosoj> i'm trying to understand this rails codebase and there are a million modules and everything is split into a different method. i think this means it's well designed, but so hard for me to understand
teddyp1cker has quit [Ping timeout: 255 seconds]
<centrx> heh
<centrx> one line per file, that's what I always say
<epitron> >> module Butts; def woot!; :YES; end; extend self; end ; s = "yay"; s.extend(Butts); [Butts.woot!, s.woot!]
<eval-in_> epitron => [:YES, :YES] (https://eval.in/244033)
<epitron> extend self turns all the module's instance methods into class methods :D
<epitron> it staples itself to itself
<centrx> ChickenButt
<epitron> omosoj: the rails codebase is really annoying to follow
zaza has joined #ruby
<epitron> if a method has more than 1 line, DHH makes a new method :)
<omosoj> double extension? cool
ta_ has quit [Ping timeout: 276 seconds]
<epitron> not double... auto
<epitron> autoextended
zaza has quit [Max SendQ exceeded]
<epitron> it might make more sense to pry into the rails stack
<epitron> do you use pry?
<omosoj> oh, extended from inside the module?
<epitron> yep
<epitron> the Kernel module does that
ferr has quit [Ping timeout: 264 seconds]
<epitron> it has an "extend self" in there
<omosoj> interesting
ferr has joined #ruby
<epitron> Kernel is then included into Object
<omosoj> i haven't figureo ut how to use pry with rails. i do bindings.pry when i do tests, but otherwise i use the rails console
<epitron> oh
soul11201 has joined #ruby
<omosoj> why does dhh break everything up so much? how can someone keep track of everything? especially new devs to the project?
<epitron> well, if you use "pry-rails", the rails console becomes pry, and gets some new rails-specific commands
<epitron> i dunno!
<omosoj> i generated and printed out a UML chart of the controllers and models and they're all in front size 6 b/c there are so many
<epitron> maybe that's the hazing ritual :)
<epitron> hahahah
<epitron> i personally find it easier to understand live code
yokel has quit [Ping timeout: 264 seconds]
<epitron> pry-stack_explorer will let you walk the stack
<epitron> if you pry into your controller, you can zip up and down
kl has quit [Ping timeout: 246 seconds]
<epitron> so, pry-rails, pry-stack_explorer, and better_errors
<epitron> and binding_of_caller
<epitron> :)
<epitron> put those in your gemfile and smoke it
<epitron> the problem with looking at the whole codebase at once is that you don't know which parts are salient
<omosoj> wowza
<epitron> like, most of that codebase will be support
<epitron> only a few of those methods are "Core"
<epitron> i.e. run on every request
CpuID has joined #ruby
<timanema> breaking up the code like that makes it nice for testing also it makes things easier to understand using proper naming
yokel has joined #ruby
cpt_yossarian has joined #ruby
<epitron> timanema: do you understand the rails codebase?
<omosoj> timanema, that makes sense
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<omosoj> but didn't dhh say testing is overrated? integration testing is better or something?
braincrash has quit [Quit: bye bye]
<epitron> it's best to test the things that are likely to break
<timanema> epitron: it takes time, like any large codebase but yeah with time you understand the flow and function of it
<epitron> ie: i used to see people write activerecord tests :)
<epitron> i was like, "dude, that's already got a million tests"
<epitron> "why are you testing validations?"
jobewan has quit [Ping timeout: 276 seconds]
<epitron> timanema: ok... but ... you specifically.. :)
<timanema> omosoj: dhh has changed his mind a lot over the years, he once was a big TDD supporter but he is ever changing
<bradland> i feel you epitron digging through rails (and friends) is a complete pain in the ass
<epitron> last time i dug into rails was like 2008
<bradland> i get a little aggitated at 6 calls deep
<omosoj> timanema, is there a systematic way to understand a rails codebase?
<bradland> which i know isn't a lot
<epitron> bradland: "object disoriented" :)
<omosoj> haha
<epitron> omosoj: start with the code, and learn outwards ;D
<epitron> s/code/core/
<bradland> i keep rubymine around for digging around in projects like rails, because it has really great tools for jumping around
<bradland> plus the visual debugger
<epitron> omosoj: look for the main rails initializer
<epitron> that's where the magic happens
<epitron> it creates all the core objects
<epitron> wires everything up
coderhs has joined #ruby
<epitron> configures everything
<omosoj> application.rb?
<epitron> no, it's in the rails codebase
<timanema> omosoj: you need to have an objective to start off with. If you want to change something in particular its easier because you work out from there understanding how everything interact with that one thing you want to change
coderhs has quit [Client Quit]
<bradland> yeah, a project the size of rails, you only ever learn by using/developing
x77686d has joined #ruby
<epitron> omosoj: this looks kinda interesting -- https://github.com/rails/rails/blob/master/guides/source/initialization.md
<omosoj> timanema, yeah... i fixed a few bugs that way, but they're giving me larger bugs to solve and my understanding isn't increasing lol
<bradland> also, recognize what you need to know and what you don't
diegoviola has joined #ruby
<bradland> because you can't learn it all
<omosoj> oof, i tried learning that the other day epitron
<omosoj> but yeah i need to understand what's going on at the root, otherwise i'll always be taking things on faith
<bradland> omosoj: this is a better formatted version: http://guides.rubyonrails.org/initialization.html
braincrash has joined #ruby
<epitron> omosoj: werd
jglover has quit [Ping timeout: 264 seconds]
<epitron> man, the code is a lot different now
<timanema> omosoj: you have already done more than me I have just logged bug reports pointing to where the issue is. So maybe you know more than you care to admit. Maybe its just a matter of confidence
<epitron> ah, timanema just implicitly answered my earlier question :)
lampd1 has quit []
<omosoj> timanema, oh, i don't mean i've fixed bugs in rails, i'm talking about the small rails app i'm working on
<epitron> rails is totally different, after Katzing
<epitron> i can't find that main initializer anymore
<epitron> it's been spread around
oo_ has joined #ruby
<epitron> post-Katz
<omosoj> interesting
lzco has joined #ruby
<epitron> it's got singletons all over the place
<epitron> that's the very first thing, it looks like
<epitron> omosoj: you were right earlier -- application.rb :)
ta_ has joined #ruby
lzco has quit [Remote host closed the connection]
lzco has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
<omosoj> :) broken clocks are right twice a day...
<SparkMasterTape> !fortune
<SparkMasterTape> wrong channel
<omosoj> hm, ruby mine looks interesting
<epitron> There is no sincerer love than the love of food.
<epitron> -- George Bernard Shaw
iMe has joined #ruby
<epitron> rubymine is pretty bloated
CpuID has quit [Quit: This computer has gone to sleep]
<epitron> it has some code intelligence features, but ughhhh
<epitron> you also can't open a new tab without first creating a new file via some weird dialog
maximski has joined #ruby
<omosoj> i'm a 100% visual thinker/learner. are there visualization features?
<epitron> probably
<omosoj> can you guys read code like a newspaper? fluently?
<epitron> why don't you just draw rails?
<epitron> your own picture will be better
<omosoj> i should
<bradland> omosoj: depends on the code lol
diegovio1 has joined #ruby
<epitron> then you can blog about it :)
<epitron> or write a book!
<epitron> VISUAL RAILS
ta_ has quit [Ping timeout: 276 seconds]
diegoviola has quit [Ping timeout: 240 seconds]
<omosoj> lol, i've already dreamed about creating a plugin for sublimetext that lets you navigate in a visual way instead of with the file explorer
<epitron> pry + reading code + drawing pictures should get sort you out, omosoj
<epitron> if only sublime's GUI toolkit was open
<epitron> it's using Skia for rendering, but i don't think you can do much Graphically with Python plugins
bigmac has joined #ruby
<omosoj> hm, that stinks
<epitron> omosoj: have you seen code bubbles?
timanema has quit [Quit: leaving]
gwb3_ has joined #ruby
timanema has joined #ruby
diegovio1 is now known as diegoviola
<omosoj> i'm like a genius visually, and borderline retarded verbal learner. lol
<omosoj> no
<epitron> (make sure to switch it to 1440p)
arup_r has joined #ruby
<epitron> hahah
<epitron> i can relate to that, omosoj
carvantes has joined #ruby
<gwb3_> Hello, I'm trying to write a method that converts temperature to celsius or fahrenheit based on whether or not the user-provided string includes "C" or "F" - how would I write this in the form of a conditional?
Guest9754 has joined #ruby
gwb3_ is now known as coderwill
<bradland> omosoj: you should watch the light table promo videos from early on
<omosoj> whoa, code bubbles looks like exactly what i want
coderwill is now known as Guest97825
Guest97825 is now known as codervvill
<epitron> coderwill: "if input =~ /^(\d+)(C|F)$/; temp = $1.to_i; type = $2; case type; when "C" then <calculatuion>; when "F" then <other calculuation>; end; end; end; end; end; end; end
<bradland> codervvill: "80F".include?('F')
<bradland> >> "80F".include?('F')
<eval-in_> bradland => true (https://eval.in/244039)
<codervvill> ah, thank you all so much.
<omosoj> hm, lt-ruby looks interesting. is that what you're talking about bradland?
<epitron> bradland: code bubbles is better than light table :)
<epitron> light table originally planned on ripping them off
<bradland> i like epitron's solution codervvill
<epitron> i think microsoft owns the patent though
shime has quit [Ping timeout: 240 seconds]
<bradland> extract the unit of measure, then case that
<epitron> my solution is sorely in need of linefeeds
<epitron> yes.. "unit" is a better name than "type" :)
<bradland> omosoj: i haven't looked at lighttable since the early days
<bradland> it was very fisual
lzco has quit [Remote host closed the connection]
<codervvill> 10-4, thank you both, bradland and epitron
<bradland> *visual
<epitron> good luck with your ruby thermostat codervvill!
<codervvill> gracias!
<omosoj> hm, i need to try this out.
Guest9754 is now known as steffes
ponga has joined #ruby
maximski has quit []
hgl has quit [Ping timeout: 255 seconds]
steffes_ has joined #ruby
goodenough has quit [Remote host closed the connection]
dfinninger has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
dfinninger has quit [Remote host closed the connection]
hgl has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
JoshGlzBrk has joined #ruby
<omosoj> hm, setting up eclipse for ruby/rails seems difficult.
timonv_ has joined #ruby
<epitron> whoa there...
steffes is now known as guest1241234
<epitron> what're you doing THAT for?
oo_ has quit [Remote host closed the connection]
uxp has joined #ruby
scripore has joined #ruby
mac__ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
timanema has quit [Ping timeout: 244 seconds]
<omosoj> it's not necessary for codebubbles?
Rollabunna has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
<omosoj> Note that the newest versions of Code Bubbles require Java 7 and Eclipse 4.X. http://cs.brown.edu/~spr/codebubbles/
uxp_ has joined #ruby
<centrx> omosoj, Eclipse is crap
<centrx> even for programming in Java
<omosoj> yeah, my motivation dropped to 1% when i saw that i had to download that
uxp_ has quit [Client Quit]
uxp_ has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
taiansu has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<omosoj> procrastination... :)
<porfa> can anyone help me build a simple mysql query to test on ruby sequel+mysql2 gem ? i tried… conn.query ("SELECT * FROM 'information_schema'")
icebourg has joined #ruby
fandi has quit [Ping timeout: 256 seconds]
<porfa> conn.server_info displays the myqslversion, so i assume it is connected and working properly
<omosoj> is there a name for the style of coding where everything is broken up into different classes and methods?
<centrx> object oriented?
<omosoj> k :)
nanoyak has joined #ruby
fandi has joined #ruby
ferr has quit [Remote host closed the connection]
<centrx> omosoj, single-responsibility principle is a relevant concept
Joufflu has joined #ruby
seal has joined #ruby
<omosoj> k, each object (classes & methods) should do only one thing, right?
iamninja has quit [Quit: ZZZzzz…]
<centrx> yes, it's an ideal, an extreme
seal has quit [Client Quit]
<centrx> one example formulation is that every class should only have one public method (other than initializer)
<centrx> but this is too extreme and crazy most of the time
<omosoj> so basically every instance of the class can do only one thing?
<omosoj> (in relation to other objects)
mac__ has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
dfinninger has joined #ruby
<centrx> omosoj, third paragraph here is pretty good: http://en.wikipedia.org/wiki/Single_responsibility_principle
<omosoj> hm, so how would you handle this problem? you'd send information to one of the classes, then pass it to the next class, which returns it to the original object?
<omosoj> i guess i still don't understand why things are in classes and how to decide how to make them interact
timanema has joined #ruby
<omosoj> are there classes in functional languages?
studiotate has joined #ruby
<omosoj> pry-rails is awesome
<centrx> a class represents a real idea or object, e.g. if you have a card game, you might have a Dealer, Players, a Deck, etc.
<omosoj> but why have your program reflect the reality? hm. are there other paradigms?
<omosoj> fantasy oriented design? :)
<centrx> imperative, object-oriented, and functional are the main ones
<centrx> the program reflects reality so developers can reason about it
<centrx> imperative is at its core a sequence of steps that get executed, this is an intuitive concept for people
steffes_ has quit []
^wald0 has joined #ruby
Tricon has quit [Ping timeout: 272 seconds]
mroach has joined #ruby
steffes has joined #ruby
<omosoj> yeah, sql is imperative, right? i get that
<centrx> object-oriented is things with attributes and behaviors, this is also fundamentally an intuitive concept: every Thing in the world has attributes and behaviors/interactions
timanema has quit [Ping timeout: 264 seconds]
<omosoj> are there classes in functional programming?
<centrx> the meta-SQL like T-SQL and PL/SQL is imperative
<centrx> but a query itself is more like functional even, it's dealing with a data set or subset as a whole
bronson has joined #ruby
<centrx> omosoj, functional programming has classes, but they seem to be used differently, I'm not really familiar with pure FP
MasterPiece has joined #ruby
Sawbones has joined #ruby
<centrx> Ruby has functional programming-like things such as blocks/their associated functions
<omosoj> hm, looks like they (haskell at least) has type classes
<centrx> arr.map { |x| x * 2 }, that's a very FP kind of thing
<centrx> right so you could say "even numbers" is a type class
<centrx> and then would define that as 2k
<omosoj> ah, interesting
Xeago has quit [Remote host closed the connection]
<centrx> or in Ruby something like: (1..Infinity).map { |x| x * 2 }
sdwrage_ has quit [Quit: This computer has gone to sleep]
abaddha has quit [Remote host closed the connection]
abaddha has joined #ruby
ascarter has joined #ruby
astrobunny has quit [Remote host closed the connection]
<porfa> where can i host a simple html file so i can show it to someone in here so i can explain better what i need/aim to do?
<porfa> (my goals with ruby that is)
<centrx> gist.github.com
<Cat_1> gist.github.com
<Cat_1> jinx
<porfa> hah!
<Cat_1> If you want to try it out you can use jsfiddle
iMe has quit [Ping timeout: 245 seconds]
<Cat_1> it's more interactive
joast has joined #ruby
abaddha has quit [Ping timeout: 245 seconds]
philwantsfish1 has quit []
philwantsfish has joined #ruby
tus has quit []
zorak8 has joined #ruby
iMe has joined #ruby
<omosoj> if i type ls SampleApp into pry, i get a constant and instance variable. what is SampleApp::Application?
<omosoj> sorry, this is a rails question i guess
<porfa> so i made a script that outputs me this page in through sinatra — http://jsfiddle.net/p896y1j8/ and i’ve also made another script, that fetches me data from some other site, and makes me this other page through sinatra http://jsfiddle.net/yLLfrfns/ . as you can see, both tables have the same column names and the same number of columns… but i want them on a single page (as i will do more scripts to fetch me data from other sites and such) i
<porfa> possible for me to put this in a single page so i can check all the deals in ONE page instead of having to run multiple sinatra’s in diferent ports?
dfinninger has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<porfa> i would love to put this in a mysql db as centrx sugested, but.. i have no knowledge at all on how to do that / menage mysql.. if someone can shed some light on this.. i’d be very thankfull and my craving for extreme couponning would be gratefull too!
bronson has quit [Remote host closed the connection]
<porfa> do i need to create a single table on mysql or multiple tables? (one for each site? (this makes no sense to me atm..)
<centrx> porfa, You might want to use SQLite, it is much simpler
<porfa> i alredy have mysql server running localy (owncloud and a prestashop dev install)
<centrx> ok cool
<centrx> porfa, The core of your DB would probably be a table called "offers"
<porfa> that means i should use SQLite or i can use mysql? also, i’ve menage to make a connection to a newly created db inside my myqsl server
<porfa> ok centrx i follow you
<centrx> If you have MySQL all set up it doesn't matter, keep using it
longfeet has quit [Read error: Connection reset by peer]
<centrx> it's not that much different
<porfa> but i would just need one single table right? even if i keep on addind this offer sites
<porfa> ?
<porfa> ok!
pdoherty has joined #ruby
<omosoj> if soemone has a minute can they help me understand this: https://gist.github.com/anonymous/92186bc16ca4b71c15db
<centrx> porfa, You could dump everything in the offers table, but that's not the best design
<centrx> porfa, Another component is you might have temporary tables or "staging" tables where you put the data from the sites when you initially download it
<centrx> porfa, Then you do other things to put them in the same format in the offers table
<porfa> i would preffer to use a table for each offer site, as i will keep on recording this offers as historical/records of old offers, so i’ll know if they had a better offer in the past
<porfa> ok
<centrx> ok the question is does that need to be different tables?
<centrx> you can put it all in one table, and have a "site" column that identifies which site it came from
<centrx> This is assuming the sites all have relatively similar data
<porfa> it will be about 400 or more offers daily, wont that be a stress on mysql after a couple of days?
goodenough has joined #ruby
<centrx> porfa, these database systems typically work with millions or billions of records
<porfa> w…what? :o
<centrx> You might encounter performance issues after a while, but those are addressed with other database features like "indexes"
<centrx> omosoj, I guess ls is a pry command to show the methods in a class?
<porfa> ok, so one single table it is.. as i gather and learn more with time.. if i need to, i’ll make a new database.
<centrx> yes that's fine
<centrx> you will probably run into places where adding more tables will help
pdoherty has quit [Ping timeout: 245 seconds]
<omosoj> centrx, what does :: mean? Rails::Console. is Console a constant, or a module?
<omosoj> i know it's a subpart, but what is it exactly
thatslifeson has quit [Ping timeout: 244 seconds]
<centrx> In this case it's apparently a class
<centrx> oh ::
<centrx> :: is the scope resolution operator
<centrx> Console is a class inside the module Rails
<omosoj> okay
<porfa> centrx: thank you for the light, that will keep me entertained for hours! :)
<centrx> sweet
tectonic has quit []
<omosoj> if i do ls Rails, it says Console is a constant. is it both?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<centrx> classes are constants or something like that
<omosoj> k
<omosoj> what does #<Class:Object>#methods mean?
<centrx> it's just a way of writing out a representation of the object
<omosoj> which object?
nanoyak has quit [Quit: Computer has gone to sleep.]
<centrx> >> Object.inspect
<eval-in_> centrx => "Object" (https://eval.in/244053)
<centrx> >> Object.new.inspect
<eval-in_> centrx => "#<Object:0x41274200>" (https://eval.in/244054)
<centrx> So #<X:1234> is just sort of a name for this object
<centrx> a visible representations of it
<centrx> Can't have that be, say printing out all the code in the class definition that would be wild
<omosoj> hm
roombadaboomba has quit [Ping timeout: 264 seconds]
<omosoj> the object Rails::Console?
<centrx> >> Rails::Console
<eval-in_> centrx => uninitialized constant Rails (NameError) ... (https://eval.in/244055)
<centrx> oh it doesn't have Rails
<centrx> What's in a name
<centrx> Would a rose smell as sweet?
<omosoj> :)
sevenseacat has joined #ruby
Rollabunna has quit [Remote host closed the connection]
sdwrage_ has joined #ruby
diegoviola has quit [Remote host closed the connection]
soxet has quit [Ping timeout: 264 seconds]
DANYAL has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
startupality has joined #ruby
ss_ has joined #ruby
gkwhc has joined #ruby
havenwood has joined #ruby
<gkwhc> anyone use redmine here?
lampd1 has joined #ruby
<gkwhc> i am having alot of ruby trouble installing
yokel has joined #ruby
freerobby has joined #ruby
ta_ has joined #ruby
<Cat_1> How are you installing Ruby?
<Cat_1> I've used redmine for a while.
lxsameer has joined #ruby
<gkwhc> i keep on getting this error
<gkwhc> NameError: undefined method `add_options' for class `ActionView::Helpers::InstanceTag'
<sevenseacat> i love the idea of rubymine, but my gawd its ugly on linux
<sevenseacat> thats not installing ruby... thats a rails error
<gkwhc> while installing the redmine plugin
<gkwhc> oh
<Cat_1> Correct.
<Cat_1> Make sure your plugin is compatible with the version of rails you're running on Redmine...
<Cat_1> If you're not using something like rvm or chruby, you probably should be
<sevenseacat> hah i totally misread redmine as rubymine
ss_ has quit [Ping timeout: 272 seconds]
bigmac has quit [Ping timeout: 255 seconds]
<Cat_1> I also like RubyMine, it's useful in some contexts specifically debugging, but it always crashes on me
<omosoj> can someone walk me through this: https://gist.github.com/anonymous/92186bc16ca4b71c15db
<Cat_1> I want to get into continuous deployment for my personal projects, but I'm not sure what app/platform to use
<gkwhc> Cat_1: yeah im using rvm. i think everytime i run bundle install it updates rails to the newest version, which is incompatible with the plugin
Deele has quit [Ping timeout: 244 seconds]
rbennacer has joined #ruby
<Cat_1> I've used to Atlassian suite at work
<gkwhc> not sure how to limit to the old version tho
<Cat_1> in the Gemfile specify the version
<Cat_1> versions you need
<sevenseacat> Cat_1: travis?
<Cat_1> with a =(version #)
DANYAL has left #ruby [#ruby]
Photism has quit [Quit: Leaving]
ta_ has quit [Ping timeout: 276 seconds]
roombadaboomba has joined #ruby
brlkid has quit [Quit: ô¿ô]
<Cat_1> omosoj- Looks like pry
<omosoj> Cat_1, it is...
<Cat_1> What is your question?
<Cat_1> What do the methods do?
<omosoj> first, Rails::Console returns the class Console in the module Rails, right?
<Cat_1> Seems that way
pawprint has quit [Ping timeout: 265 seconds]
<omosoj> k
steffes has quit [Remote host closed the connection]
<omosoj> why are those three lines returned, and what are they? i guess i understand the third line, but not hte first two
<Cat_1> Lines 2 3 and 4?
rbennacer has quit [Ping timeout: 246 seconds]
<omosoj> 2 & 3
teddyp1cker has joined #ruby
russt has joined #ruby
<Cat_1> Looks like they are inherited methods
<Cat_1> If I had to hazard a guess
<gkwhc> Cat_1: i see. however its giving alot of dependency version complaints...this has been test on the version im using, so i dont see why i should be getting so many errors
<omosoj> ah, that makes sense. but why wouldn't it inherit all methods, rather than just a couple?
<omosoj> and what's the difference between #<Class:Rails::Console>#methods and Rails::Console#methods
<Cat_1> Woof, TravisCI is expensive
<sevenseacat> free for open source projects... havent looked at the paid tier
<shevy> #<Class:Rails::Console>#methods does not make any sense; I guess you take the output of #inspect for the first. The second is the ruby-way to invoke a method
soxet has joined #ruby
<Cat_1> I'm trying to develop a non-open-source pap
<Cat_1> app
<sevenseacat> ah
<omosoj> shevy, i don't understand
steffes has joined #ruby
<sevenseacat> i should develop something
<shevy> omosoj you wrote #<Class:Rails::Console>#methods
<shevy> omosoj this is typical #inspect output
pawprint has joined #ruby
<shevy> >> class Foo; end; foo = Foo.new; puts foo.inspect
<eval-in_> shevy => #<Foo:0x41fae13c> ... (https://eval.in/244069)
<shevy> >> module Bla; class Foo; end; end; foo = Bla::Foo.new; puts foo.inspect
<eval-in_> shevy => #<Bla::Foo:0x41b57ef8> ... (https://eval.in/244070)
startupality has quit [Quit: startupality]
teddyp1cker has quit [Ping timeout: 272 seconds]
<omosoj> but there's no alphanumeric defining anything
ta_ has joined #ruby
startupality has joined #ruby
<shevy> so what
<shevy> you can redefine #inspect and #to_s
<Cat_1> Class: usually is a way to invoke a class(klass?)
<omosoj> shevy, this is what i'm looking at: https://gist.github.com/anonymous/92186bc16ca4b71c15db
soul11201 has quit [Quit: No Ping reply in 180 seconds.]
startupality has quit [Client Quit]
<shevy> I have no idea what that means. I don't use pry.
<Cat_1> Class is a first-class object in ruby
<Cat_1> It's an instance of class Class
<Cat_1> I'm pretty sure everything inherits from class
<Cat_1> including Rails
soul11201 has joined #ruby
<shevy> :)
michaeldeol has joined #ruby
<shevy> >> Class.ancestors
<eval-in_> shevy => [Class, Module, Object, Kernel, BasicObject] (https://eval.in/244071)
<Cat_1> Class inherits from itself?
<Cat_1> it's like..inception
<shevy> nah, that is always the case for ancestors
<shevy> >> Module.ancestors
<eval-in_> shevy => [Module, Object, Kernel, BasicObject] (https://eval.in/244072)
<omosoj> yeah class inherits from itself
<shevy> >> Class.class.to_s+Module.class.to_s+Object.class.to_s+Kernel.class.to_s+BasicObject.class.to_s
<omosoj> (i think... it is a class after al)
<eval-in_> shevy => "ClassClassClassModuleClass" (https://eval.in/244073)
<shevy> well Module is a class too
teddyp1cker has joined #ruby
ta_ has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Client Quit]
<shevy> boggles the mind, doesn't it
<shevy> would be more fun if Class would be a module like Kernel
<Cat_1> So it looks like omosoj that Pry is just listing the available methods Inherited by Object and Class.
<Cat_1> as well as the actual methods of Rails::Console
<Cat_1> Pry's pretty powerful, I haven't actually used it to its full potential
<Cat_1> If I need a full-strength debugger I just open up RubyMine
<omosoj> how do lines 3 and 4 differ?
<omosoj> and why wouldn't (on line two), why wouldn't it inherit more than 1 method?
<shevy> that is non-standard ruby output omosoj
skinux has quit [Quit: skinux]
<shevy> go use regular ruby; .ancestors; .instance_variables(false)
<shevy> and .instance_methods
<Cat_1> Don't know, yaml_tag might be monkey-patched on there.
<Cat_1> by Rails
<shevy> rails sort of redefined ruby!
<Cat_1> Anyway, back to my dilemma
<Cat_1> TravisCI expensive
<shevy> give it a few more versions and it'll be its own programming language
<Cat_1> Atlassian doesn't look taht expensive
<shevy> how expensive is expensive
<Cat_1> Shevy- you mean like angular?
<Cat_1> :)
<shevy> and btw you could always ask them for a discount
<jalcine> NOOO
<shevy> because you have eight kids to nourish
<Cat_1> Travis CI wants $129/month
<jalcine> hahah
<shevy> whoa
<jalcine> set up drone.io and call it a day
<shevy> that means like what... 1000 users at least?
<Cat_1> Atlassian with Bamboo and JIRA runs $30/month
<sevenseacat> i think we're migrating to atlassian at work
freerobby has quit [Quit: Leaving.]
<Cat_1> Yeah we've been on it and it's a dream.
<Cat_1> Teamcity is also a contender
pothepanda has joined #ruby
jonesthedolphin has joined #ruby
<Cat_1> but I'd have to download it and install it in a VM or something.
<Cat_1> I like that Atlassian has it all in the cloud you can host it all
MasterPiece has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
<Cat_1> Interesting, Bamboo requires an Amazon EC2 account
<Cat_1> that's $$$ right there.
psy_ has quit [Ping timeout: 252 seconds]
klmlfl has joined #ruby
nuck has joined #ruby
teddyp1cker has quit [Ping timeout: 246 seconds]
maoko has joined #ruby
iMe has quit [Ping timeout: 256 seconds]
icebourg has quit []
taiansu has quit [Remote host closed the connection]
Oberon4278 has quit []
booly-yam-3799 has quit [Ping timeout: 264 seconds]
iMe has joined #ruby
taiansu has joined #ruby
MasterPiece has joined #ruby
<Cat_1> Hmm so it looks like $80/month for an instance..
<Cat_1> of Bamboo w/ EC2 costs
klaas has joined #ruby
<Cat_1> Oh
<Cat_1> Looks like it's $50/month + EC2 costs.
zorak8 has quit [Ping timeout: 256 seconds]
<Cat_1> TravisCI is looking more and more reasonable now
soul11201_ has joined #ruby
soul11201 has quit [Ping timeout: 245 seconds]
Darryl___ has joined #ruby
astrobunny has joined #ruby
timonv_ has joined #ruby
vozcelik has joined #ruby
ponga has joined #ruby
LouisRoR has quit [Ping timeout: 245 seconds]
yokel has quit [Ping timeout: 244 seconds]
<Cat_1> Oooh Jenkins runs locally. THink I'll just run that in a vM
timonv_ has quit [Ping timeout: 264 seconds]
pawprint has quit [Ping timeout: 245 seconds]
<omosoj> in rails console when i do ls Rails or something, what is Rails there?
ponga has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
russt has quit [Read error: Connection reset by peer]
russt has joined #ruby
<sevenseacat> same thing Rails is anywhere else
<sevenseacat> a constant
<omosoj> what does that mean, constant?
<sevenseacat> Rails.cass
<sevenseacat> *Rails.class
joekain has joined #ruby
<omosoj> what is it assigned to?
gomix has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
MasterPiece has quit [Remote host closed the connection]
ta_ has joined #ruby
<sevenseacat> huh?
davedev2_ has quit [Ping timeout: 246 seconds]
<omosoj> constnats are assigned a value
<omosoj> was is Rails assigned to?
<omosoj> or what is assigned to Rails
<sevenseacat> do you want me to go digging through the source code for you, or what?
<omosoj> :)
<Cat_1> Rails is a first-class object attached to Class. It isn't assigned to anything. IT's like asking what Array is assigned to
<sevenseacat> (if you said yes, my response was going to be 'lol do it yourself')
Obfuscate has joined #ruby
<Cat_1> Google first-class object
<Cat_1> it'll help you out
<omosoj> sevenseacat, would you like me to ask you that, just to help you get some satisfaction?
ta_ has quit [Ping timeout: 276 seconds]
<sevenseacat> nah
vozcelik has quit [Quit: Textual IRC Client: www.textualapp.com]
<Cat_1> I'm assuming sevenseacat will not obtain satisfaction, perhaps mild annoyance
<sevenseacat> pretty much
<omosoj> lol. k, looking that up
<omosoj> Cat_1, but it is a constant?
gomix has joined #ruby
ewnd9 has joined #ruby
<Cat_1> Lexically, the names of constants look like the names of local variables, except that they begin with a capital letter. By convention, most constants are written in all uppercase with underscores to separate words, LIKE_THIS. Ruby class and module names are also constants, but they are conventionally written using initial capital letters and camel case, LikeThis.
<omosoj> ohhhhh, interesting!
<Cat_1> The classes they represent are not constant, but the names themselves are constants.
<omosoj> yes, that makes it clear
<Cat_1> This should be fairly standard across programming language
<Cat_1> if the class/function definition name was NOT constant, how would you refernce it?
<Cat_1> *reference
gkwhc has left #ruby [#ruby]
<omosoj> yes, i see. makes sense
<omosoj> do you know why they call the core of rails railties?
<Cat_1> Because they want to be intelligent and witty.
<Cat_1> You should go call up DHH and ask him
<omosoj> lol. but what does it even mean? is it supposed to be cutesy? or is there actually information conveyed?
<Cat_1> railties are the things that hold rails together.
<Cat_1> in real life.
<sevenseacat> indeed
<Cat_1> like, the kinds of rails that trains ride on
<Cat_1> I hate the popular naming of products lately.
<omosoj> oh, two words.
<Cat_1> most gems
<Cat_1> like what the fuck does puffing-billy do?
<Cat_1> beats the shit out of me
<sevenseacat> now im curious
<Cat_1> it's a proxy gem
<omosoj> yes, rail ties make a lot of sense. lol ive' been pronouncing it railties in my head.
<sevenseacat> because i know what puffing billy is, but not in terms of gems
<omosoj> rail-tees
<Cat_1> you can use it in conjuction with VCR for capturing stuff
<Cat_1> to play back during tests
<omosoj> what about gems like bourbon. lol
<Cat_1> it's pretty neat actually
<sevenseacat> puffing billy is the name of a train, i dont know if has any other meaning
<Cat_1> Exactly
Akagi201 has joined #ruby
<Cat_1> So usually these gem authors get on my nerves with their cutesy naming schemes
<Cat_1> then again I haven't written any gems
<sevenseacat> bourbon, cocaine, crack, etc.
<sevenseacat> all actual gems
<Cat_1> I'm getting cranky
<Cat_1> I think it's time for bed.
<sevenseacat> lol
<omosoj> yes, me too. i mean, for me it's fine if there's a lot of style in the name, but hopefully it would explain what it does in some way too
<sevenseacat> i havent written any gems either, so
duncannz has joined #ruby
rbrs has joined #ruby
<omosoj> they're easy enough to do. you've never tried?
guest1241234 has quit [Quit: Connection closed for inactivity]
<omosoj> creating a popular or useful one is a different story...
duncannz has quit [Max SendQ exceeded]
<sevenseacat> oh ive written ones for personal use, but not published any
<Cat_1> I've written gems for my work, but they're usually named something specific to the job
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<Cat_1> like webservice or spatial-plugin
duncannz has joined #ruby
booly-yam-3799 has joined #ruby
duncannz has quit [Max SendQ exceeded]
duncannz has joined #ruby
djbkd has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
Sawbones has quit [Remote host closed the connection]
duncannz has joined #ruby
Sawbones has joined #ruby
<omosoj> can someone help me understand this: git_path = File.expand_path('../../../.git', __FILE__)
<centrx> File has a bunch of utility methods for dealing with filenames, directories, and paths
<centrx> that command means follow the given path '../../../.git'
<centrx> and because it's a relative path, there has to be a starting point, which in this case is __FILE__
<centrx> __FILE__ is a special Ruby keyword that references the current filename/path
StableEvan has quit [Ping timeout: 244 seconds]
teddyp1cker has joined #ruby
bronson has joined #ruby
siaw has joined #ruby
<siaw> i’m a beginner. i want to ask. how is it that some app are created for android and iOS and even on the web and yet all those platforms are able to access same data? example. i can like a picture on my instagram on my computer. on my phone, i can unlike the same picture of follow someone. but the likes count are updated no matter if i’m on phone or on web? how is this done that all platforms are able to communicate with the same database?
<omosoj> okay. so that is the first line of rails in rails/railties/bin. it goes back to the .git folder. i see, thanks
keen__________36 has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
<pontiki> hey
<omosoj> siaw, it's not too complicated. there's software running on your local machine that communicates with a server over the internet. the server hosts all the information
<omosoj> hello pontiki
iMe has quit [Ping timeout: 246 seconds]
mroach has quit [Quit: mroach]
keen__________36 has joined #ruby
<siaw> so the same app for the same one user on android, iphone and the web all communicate with the same central server right?
<omosoj> there is one central server, yes
<omosoj> but there can be different apps on the 'client' side
bronson has quit [Ping timeout: 245 seconds]
klmlfl has quit [Remote host closed the connection]
<siaw> omosoj: i see. is there an example service you can name that take care of this?
iMe has joined #ruby
<omosoj> what do you mean?
booly-yam-3799 has quit [Ping timeout: 240 seconds]
<omosoj> facebook has a client side app running in your browser, and when you use it your computer communicates with its servers
<siaw> yes. but like Heroku for example. can host postgresql data. can i write my app to communicate with the same web app on iOS
<siaw> ?
<siaw> for example?
<omosoj> yeah
<pontiki> you can write: a) a web app that runs on IOS safari b) a native IOS app that talks to your web app. it really doesn't matter, it's all basically HTTP
<sevenseacat> if your app had an API that the iOS app could communicate with
joekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> whether your web app is delivering HTML, JSON, JSONP or XML, your client (in IOS or Android or desktop browser or ???) can talk to the web app
<pontiki> you get to set it up how you like
astrobun_ has joined #ruby
<Nilium> If you can code it, you can do it. If you have two thingies that can communicate, everything else is just protocols and other implementation details.
nfk has joined #ruby
<lampd1> \o/
Channel6 has quit [Quit: Leaving]
<Nilium> Thingies is a technical term.
<lampd1> siaw: you could build a rails app and make your own api
<Nilium> I should really stop using "thingies" and "smashing" as technical terms at work
<pontiki> oh, why, nilium?
<pontiki> those are great terms
<Nilium> "If you smash some data into this thingy"... I love saying it, but it's oh-so imprecise
<lampd1> sometimes its best to speak conceptually if someone's asking for advice
<Nilium> I secretly just want all programming to be as awesome as particle accelerators.
<omosoj> "smash the thingy" *junior dev hit printer with his chair*
<lampd1> and it can also be fun to see what solution they come up with if you don't give them answers in black and white
<Nilium> omosoj: I know a few people would like to do that.
<pontiki> questions are more important than answers :)
<pontiki> we suffer from that here, i think, always giving out answers instead of questions
astrobun_ has quit [Remote host closed the connection]
<siaw> thanks a lot guys
<Nilium> I occasionally am too tired or impatient to step someone through something basic
psy_ has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Ping timeout: 264 seconds]
teddyp1cker has quit [Remote host closed the connection]
<Nilium> Plus whenever anyone asks me anything technical and I go full-Socrates, they just get mad at me for not giving them the answer.
MasterPiece has joined #ruby
teddyp1cker has joined #ruby
<Nilium> Kind of amazing nobody's asked me to drink poison yet.
<omosoj> have you guys read throught the rails core?
<omosoj> (closely)
<Nilium> I've never used Rails and probably never will
<pontiki> what do you conceive of as rails core?
<sevenseacat> looked at little parts of it sometimes
<omosoj> pontiki, all of it, lol. i mean just rails
<sevenseacat> to see how specific methods work
<sevenseacat> other than that, no
<omosoj> do you guys read code as fast as you read newspapers?
<sevenseacat> newspapers are linear, code is not
<Nilium> I would say I read other people's code pretty slowly.
pdoherty has joined #ruby
teddyp1cker has quit [Ping timeout: 244 seconds]
_5kg has joined #ruby
<Nilium> Slower still if it's a dynamically typed language, since they're garbage for readability, usually.
<omosoj> sevenseacat, yes. because it refers to other parts of the code?
<sevenseacat> omosoj: its as if you had to read and understand parts of every page of the newspaper, to read and understand a single article.
<omosoj> yes, lol
<omosoj> how do you deal with this?
<lampd1> its kind of like a newspaper
<omosoj> and don't say by not reading any code :)
<lampd1> because you can have headline articles that continue in the middle of the paper
<lampd1> :P
<Nilium> And then have to usually refer to other newspapers because inevitably someone cited a dependent newspaper
<sevenseacat> what do you mean 'deal with it'?
<sevenseacat> like, what are you actually trying to do
<omosoj> understand a codebase and understand what hte app is doing, how to improve it, add to it, etc
<Nilium> Find the entrypoint, follow it in.
wallerdev has joined #ruby
<lampd1> profiling, knowledge, wisdom, and patience
<lampd1> :P
<omosoj> i just get lost and exhausted
<sevenseacat> if you dont have a specific purpose, thats very easy to do
lzco has joined #ruby
<sevenseacat> and 'understand how it works' isnt a specific purpose
<Nilium> Nice thing about Go, by the way, is that all of my programs in Go can spin up a server and I can get a stack trace for all running goroutines at runtime
<Cat_1> I usually pick and endpoint and start from there.
pdoherty has quit [Ping timeout: 245 seconds]
<Nilium> It's pretty handy.
<Cat_1> Handy thing about Haskell is, I can define all my inputs at runtime, so it makes testing obsolete!
<omosoj> man i still don't even understand how a server works.
<Cat_1> :-p
<sevenseacat> neither do i. so?
<Cat_1> a "server" is pretty oblique
djbkd has joined #ruby
<Cat_1> If you're talking about a generic "server"
<omosoj> i don't understand what's happening electronically with a rails app
ta_ has joined #ruby
<sevenseacat> you dont know how a lot of things in your computer works - does that stop you from using it?
<Cat_1> electrons are getting pushed around your computer until an answer pops out
<centrx> Rails apps use 1's and 0's to transmit data over the web
<Cat_1> You can call it magic if you want
<sevenseacat> you dont know how a lot of things in your house work - you still manage to live there
<Nilium> They're not really getting pushed
<omosoj> what does it mean for an app to be running?
<centrx> if it's transmitting 1's it's running
<omosoj> what is running?
<centrx> otherwise, 0s
<Cat_1> Now we're going to get into existentialism here
<pontiki> do you know what it means for a programming to be running on your computer?
<sevenseacat> i sense trolling
<Cat_1> what is a program, if it's not running.
<omosoj> a program?
<pontiki> ah
<Nilium> I sense someone's about to explain what a process is
<pontiki> hooked again
<Cat_1> I'm just tired enough for this to be like "whoadude" territory
<omosoj> yeah i guess i'm asking about the basics
<Nilium> I was almost going to start saying bad things about Haskell but decided I don't care enough about Haskell to do so
<centrx> This might explain some of it: https://github.com/alex/what-happens-when
<Cat_1> Is a program still a program if nobody's around to execute it?
<Nilium> Is a daemon a somebody?
<Nilium> Do we attribute life to services?
<omosoj> lol it's not philosophical at all
<Cat_1> If we kill a daemon do we commit murder?
<Nilium> Is there love on the bytecode field?
<Cat_1> If I terminate a rogue process is it self-defense?
lzco has quit [Ping timeout: 264 seconds]
<pontiki> but if we start it up again, are we performing a resurrection?
<Cat_1> Can I sue my program for not behaving properly?
<Cat_1> OMG GUYS WE'RE JESUS
sinkensabe has joined #ruby
<pontiki> no no no, we are GOD
<Cat_1> I can feel myself going mad with power
ponga has joined #ruby
<Nilium> No, the processes are Jesus, we're just the assholes who stabbed them with a spear
<pontiki> the daemon is jesus
<Nilium> We're basically evil
<sevenseacat> only basically?
<lampd1> essentially
<Cat_1> Evil's like a sliding scale
<pontiki> I AM BEYOND YOUR MERE MORTAL COMPREHENSION
<Nilium> I'm an English major, you don't want me to go beyond "basically"
<omosoj> where do instances of a class exist? in memory?
<Cat_1> On one side you have like, Republicans.
<omosoj> and how long do they exist? just enough time for process a request?
<Cat_1> those are just mildly evil
<Cat_1> and then you have Hitler on the other side
<Cat_1> that's pretty darn evil
ta_ has quit [Ping timeout: 255 seconds]
djbkd has quit [Ping timeout: 255 seconds]
<Cat_1> in fact we can measure evil in Hitlers
<pontiki> someone did that
<Cat_1> omosoj - depends on your level of garbage collection
<Nilium> I have seen this done before
<pontiki> and Godwin defeats the whole thing
<Nilium> Well, you can't define a Godwin before you define a unitary Hitler.
tobiii has joined #ruby
tobiii has left #ruby [#ruby]
<pontiki> Godwin's law exists even in the absense of hitler
<omosoj> how many classes exist at once?
<pontiki> because you always have hitler potential
<Nilium> pontiki: You speak madness.
<omosoj> are there some that stay instantiated for the whole time the app is up?
<Nilium> But now it's dependent on the Hitler unit again because we're measuring potential in Hitlers
<pontiki> Nilium: i thought that was well established by now
<lampd1> omosoj: binding.pry
<Nilium> Nevermind that we now have Hp and Hv for Hitler potential and Hitler villainy
<Cat_1> omosoj - You should really take a class in Compilers and Operating Systems
<sevenseacat> is the hitler unit like probability - everything is measured on a scale of 0 to 1?
<Cat_1> This will answer all your questions
<omosoj> lampd1, ?
<Nilium> Crap, now we've got Hb for Hitler probability
yokel has quit [Ping timeout: 256 seconds]
dc_ has quit [Remote host closed the connection]
<omosoj> Cat_1, yeah, i think that's what i'm thinking about
<pontiki> need a dump stat anyway
oo_ has joined #ruby
<Cat_1> A basic 4-year CS course shoudl answer all your questions
ponga has quit [Ping timeout: 265 seconds]
zdaniel has joined #ruby
<lampd1> or, you know... just researching things on the internet when you want to know more about it
<pontiki> too bad the really good text books are so expensive
<sevenseacat> i did one of those. i still have questions.
<Nilium> I did a four-year English degree and somehow I'm a software engineer ╰(✿˙ᗜ˙)੭━☆゚.*・。゚
hmsimha has quit [Ping timeout: 252 seconds]
<lampd1> instead of accruing a mountain of debt to gain access to widely available information
yokel has joined #ruby
davedev24_ has quit [Ping timeout: 264 seconds]
<Cat_1> I became a physics major. I laugh at CS majors when they say things are hard. I literally did rocket science.
<Nilium> I'm also the only person on my team that isn't in love with PHP and node.js ╰(✿ ಠ益ಠ)੭━☆゚.*・。゚
<Nilium> They are horrible people for this.
<omosoj> alright guys, enjoy your evenings. adios
davedev24_ has joined #ruby
omosoj has quit [Quit: leaving]
<sevenseacat> oh man, physics
<sevenseacat> Cat_1: i salute you
<pontiki> andy tanenbaum's books are the ultimate
<sevenseacat> i have a few of those
<Nilium> Physics isn't hard, just gotta model the universe. ಠ_ಠ
<Nilium> And the other universes, if there are other universes.
<Cat_1> I know a few guys who LOVE node.js
<zdaniel> Hey all, I'm trying to wrap my head around ruby meta programming. I'm an experienced developer, so I feel like I'm having more trouble with this than I should. in this article, http://ruby-metaprogramming.rubylearning.com/html/seeingMetaclassesClearly.html, he says "Objects can't hold methods. Most objects don't need to hold methods." What?
<Cat_1> I have to clean up their messes a lot.
<Nilium> Cat_1: Strangle them all
<Nilium> Please
<pontiki> if you want to make an apple pie, first you must invent the universe?
<sevenseacat> i dislike javascript on a fundamental level.
<lampd1> ^
<Nilium> I've been cleaning up our messes of node.js at work and it's only made worse by the lack of documentation, lack of comments in general, lack of anything indicating anything else, etc.
<Cat_1> Yup
<Nilium> I like Javascript when it's used the way Lua is: not much and in isolated bits and pieces.
<Cat_1> I hhave comments that say "<developer who wrote this> what does this do?"
<pontiki> i get yelled at for commenting code :()
<sevenseacat> i write a little bit of javascript with jquery; thats about it
<Nilium> It's not a god damn systems programming language! (╯°□°)╯︵ ┻━┻
<Cat_1> zdaniel - hang on whiel I review it
<lampd1> i like prototypejs
<zdaniel> pontiki, don't you know that all of your code should be self commenting???
<zdaniel> sorry **documenting
<lampd1> kind of telling about how long ago i actually thought javascript was cool
<Nilium> zdaniel: I feel bad for once believing that.
<pontiki> what can never be self documented is the reason for choosing a particular implementation
soul11201_ has quit [Quit: No Ping reply in 180 seconds.]
<zdaniel> Nilium, I think its one of those things that is true **sort of**
<lampd1> zdaniel: sometimes you just can't
<pontiki> plus, given the way rails spreads code all over the damn place, where things come from is sometimes unclear
<sevenseacat> code can document the 'how'. it cannot document the why
<zdaniel> your code should clearly explain the what, but it can't ever reasonably explain the why.
<zdaniel> lol
<sevenseacat> amen dood
<pontiki> "because i sed so"
<Cat_1> Self-documenting code is great if we all live in an imaginary world where there are not bugs in anything we reference.
<Nilium> I can understand it with static typing because at least type names explain something, hopefully about use, variable names hopefully explain purpose, but once you get into how something is flowing through multiple parts of a program, self-documentation ceases to exist
soul11201 has joined #ruby
<Cat_1> but I can't tell you how many hacks I"ve seen (Due to a bug in <component> we need to do it this way)
<lampd1> like... when you have to build a 75 item numerically ordered hash map that gets written out to a tab delimited .txt file but needs to have very specific datatypes for values stored per key
<Nilium> And at work we have zero documentation explaining how anything moves through our systems, so I'm terrified of changing anything
<sevenseacat> Cat_1: i dont mind that, as long the comment has some references for the bug
<sevenseacat> so the readers can find more information on said bug, see if its resolved, etc.
<zdaniel> the thing is that something like 80% of code has an obvious why.
<pontiki> one of my padawans did give me a great compliment tho, about the "best-written piece of code I've ever seen" because of the commentary i put in it
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<lampd1> (currently working on a project that has a worker that does just that) lol... about 1:1 ratio of comments to code in one piece
<Nilium> It's made my currently-six-months of employment as a software engineer extremely touchy and painful because there's just nothing I have to go off of when I approach anything at work
MasterPiece has quit [Remote host closed the connection]
<Nilium> But we sure do like to talk about tribal knowledge
<zdaniel> like the method "translate_to_spanish", well what the hell do you think that does.
<Nilium> You know, that nice way of saying "we didn't write it down, but it's in someone's head"
<Nilium> And I keep trying to point out that we _really_ need to start writing documentation because otherwise we'll end up with every new person on the dev team having the problems I'm having
<zdaniel> Nilium, f that. We've had a bunch of senior devs leave that has completely ruined our "tribal knowledge:
<Cat_1> zdaniel-catalan spanish, castellan spanish, mexican spanish, puerto rican spanish, peruvian spanish...which spanish?
<Nilium> zdaniel: That's what I'm even more afraid of.
<zdaniel> Cat_1, they all sound the same, whatevs.
<pontiki> and likely it's not; it was argued over around a table at some point, people chatted each other, and someone wrote the code, but they've been on another project for a year, that was after 3 intervening projects...
<sevenseacat> what is this 'documentation' you speak of
<Cat_1> zdaniel - haha no, they have different rules for verb conjugation and pronunciation
<Cat_1> puerto ricans conjugate everything in the third person when talking in the secon dperson
<pontiki> and all people have left are vague memories having known about it at some point in the past
<zdaniel> zdaniel, everyone should just speak english anyway.
<zdaniel> haha
<Cat_1> catalan spanish speakers speak with a lisp
<Cat_1> and have weird-ass conjugations
Sawbones has quit [Remote host closed the connection]
<Nilium> I'm basically doing maintenance on the system that the last two people who quit were working on at this point
<sagittarian> i think if you said 'catalan spanish' to a catalonian you would start a fight
<zdaniel> so do some catalans speak with Clojure?
<Nilium> They left after about 5 months or something, full of "tribal knowledge" of the things I'm working on
<Nilium> All of it node.js
<pontiki> well played, zdaniel
<Nilium> All of it undocumented
<lampd1> ouch Nilium
<zdaniel> also, "catalonian" is a beautiful word.
<zdaniel> I enjoy saying it.
<Nilium> And everyone at work wonders why I keep saying "fuck node.js" whenever anyone mentions it
<lampd1> how many LOC?
siaw has quit [Quit: siaw]
<Cat_1> zdaniel - it looks like it's a "no variable holds a method to an object, it just holds a reference to an object" kinda thing. It seems objects can't hold methods, they can just hold references to methods
<Nilium> Not sure.
<sagittarian> node.js is awesome, obviously if you write crap code for it then it's going to be crap, but that's not the fault of node.js
<Cat_1> which is why metaprogramming can exist
<Nilium> sagittarian: node.js's concurrency model is garbage, so it is sort of node.js's fault
<zdaniel> so what does an instance method (as we write it in a class definition) refer to?
<sagittarian> Nilium: you mean the whole asynchronous IO thing?
<sagittarian> callbacks everywhere?
<Nilium> Yes. If you say "promises," go to hell.
<zdaniel> in regards to our node.js conversation, there are no stupid languages, just stupid developers. Except brainfuck.
<Nilium> The promises are a lie ಠ_ಠ
<sagittarian> they work for me
<Nilium> Brainfuck is a fantastic, rigid language.
* pontiki offers Nilium cake
<sagittarian> and there are a lot of other possible solutions of course
<Nilium> sagittarian: Promises are callbacks arranged differently.
<sagittarian> yes, so?
<Nilium> Meaning it's still callback hell.
<Cat_1> Instance methods are methods
<Cat_1> specific to that instance
<Nilium> What it needs is proper coroutines.
<sagittarian> okay, those are coming with ES6
<sagittarian> anyway i have to go to work
<sagittarian> ruby is awesome too
<Nilium> Generators aren't really coroutines, but they're definitely an improvement, if that's what you mean.
vvhh has joined #ruby
<zdaniel> ruby is my favorite. I walk my dog to the coffee bean and we code together.
<lampd1> lol
<Nilium> I like Ruby, I can't imagine writing anything big in it.
ta_ has joined #ruby
<lampd1> i can
<Cat_1> For various definitions of "big"
<Nilium> I would probably go insane just because I'm a fan of static typing.
<zdaniel> I can't imagine writing anything -critical- in it.
<sevenseacat> i work with Rails every day. ive written very little non-Rails ruby code.
<zdaniel> ftfy
<lampd1> define critical zdaniel
<Cat_1> OK we're getting into circlejerk territory
<Nilium> I have significant trouble working with existing codebases in Ruby, Javascript, etc. —any dynamically typed language — just because I have no idea what anything is.
<Cat_1> I"m going to bed
vvhh has quit [Quit: Bye]
<sevenseacat> see ya Cat_1
<zdaniel> I've worked on huge rails projects and loved the code base and the developers.
sigurding has joined #ruby
<lampd1> Nilium: that's what breakpoint debugging is for ;)
<sevenseacat> ive worked on sizable Rails codebases and wanted to murder the original developers.
vvhh has joined #ruby
steffes has quit [Remote host closed the connection]
<Cat_1> When I start looking at dynamically typed langauges I always have to start at an endpoint and trace the flow through the program
<Nilium> Plenty of other people don't have the problem I have, but I have to work with horrible code at work, so I'd rather force strict, static typing than let my coworkers continue ejaculating garbage into our repositories
<zdaniel> but I wouldn't write the code that powers a breathing aparatus in ruby.
<sevenseacat> though what I think is sizable, really isn't.
<Cat_1> You can't just jump right into the middle of things and know what's going on
<Nilium> It's not a case of "static typing makes everything better," it's a case of "I want to put a shock collar on my coworkers to prevent worse things from happening"
<Cat_1> @zdaniel you'd be hard pressed to find anyone who would take that level of risk in certifying that code in anything but machine language or a proven embedded language
sigurding has quit [Client Quit]
astrobun_ has quit [Remote host closed the connection]
<zdaniel> good point.
sigurding has joined #ruby
<Cat_1> I currently write code for a huge application that spans several smaller servicers
<Cat_1> *services
<sevenseacat> i would never want to write any code that had anything to do with life or death.
<Nilium> Also, if I had to pick a dynamic language to use, I'd pick Ruby.
sagittarian has quit [Ping timeout: 252 seconds]
<sevenseacat> deciding life or death, rather.
<lampd1> nope, ecommerce is bad enough
<Nilium> I'm pretty sure that's just because I like Ruby though.
<lampd1> bout as far up on the stress scale as i wan't to go
<sevenseacat> lampd1: yeah i agree
<lampd1> want*
<zdaniel> Anytime any body tells me they don't like ruby I get confused.
<Cat_1> Whenever I think it has reached its max size, I always find places where the person who wrote it originally made bad assumptions or was inefficient.
<zdaniel> Its so...easy.
<Cat_1> Ruby is easy until you really Ruby
<pontiki> well, i have the same reaction to people saying perl is so hard to read
<sevenseacat> i would rather not even deal with anything financial-related but sometimes you have to.
<Nilium> Also, after running cloc on one of the projects I'm maintaining, it's about 11k SLOC. Multiply that by a few projects of similar size.
ta_ has quit [Ping timeout: 276 seconds]
<Cat_1> hmmm
<zdaniel> Cat_1 says : Do you even ruby bro?
<Cat_1> I wonder what my project rates as cloc
<Nilium> Also, the total number of comment lines in that codebase is 461 lines.
<Cat_1> I think someone did that
<Cat_1> and it turns out we have a ton more javascript than ruby
<sevenseacat> `rake stats` says the largest app i work on is about 11K LOC
<sevenseacat> though i dont think it counts everything
<zdaniel> github thinks one of our rails applications is a javascript application lol
<zdaniel> just by the pure amount of js
<zdaniel> also Cat_1, thanks for the insight on that article!
steffes has joined #ruby
<sevenseacat> i get that a lot with our rails apps, they get labelled as css, sass, or js/coffeescript
<Cat_1> Rake stats says 50k in one service and 33k in another app
bluOxigen has joined #ruby
<Cat_1> that's our 2 biggest out of like...10 apps that run together.
<Cat_1> at least i think so
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
<Cat_1> there's some java core mixed in there
<Cat_1> which I don't even want to think about.
<Nilium> I remember at one point GitHub thought my VM was a Ruby project 'cause the assember's written in Ruby and it used to eclipse the VM itself in LOC
<Cat_1> *shudder*
davedev24_ has quit [Ping timeout: 256 seconds]
<pontiki> stats like that are generally not very helpful
<sevenseacat> theyre interesting though
<Cat_1> Ther's just a lot of code to sift through
<Cat_1> nboody likes working in the java version
steffes has quit [Remote host closed the connection]
<sevenseacat> like with the css/js one, the LOC eclipses ruby LOC by far yet we care so much less about the organization and maintenance of it
<pontiki> as a recovering QA person, stats can alwasy be interesting
<Cat_1> all those tickets stay until the endddd
<Nilium> Oh, one other nice-ish thing about some statically typed languages: generating call graphs from source code.
<sevenseacat> "so much less" how do i English
vvhh has quit [Ping timeout: 276 seconds]
<zdaniel> pontiki, did your test suites take 6 hours to run?
<pontiki> that's fine english
<zdaniel> because ours do.
jonesthedolphin has quit [Remote host closed the connection]
<pontiki> um
Sawbones has joined #ruby
<Cat_1> OK really time to sleep!
<Cat_1> 3 a.m. here.
<Nilium> Usually full of holes because you can't tell where something connects via a callback in another library, but still a nice way to get an overview of a project.
<Nilium> Toodles.
<pontiki> some of the test suites ran for 120 hours
<zdaniel> pontiki, you should literally burn that building down.
* lampd1 works on and maintains a PHP project that has ~1,654,385 LOC just in *.php files
<pontiki> actually, it's been turned into the new apple headquarters
<sevenseacat> lampd1: jesus christ
vvhh has joined #ruby
<lampd1> yeah, one of its dbs is 3.5 GB
<lampd1> \o/
bronson has joined #ruby
<Nilium> Only 3.5gb? O_o
pawprint has joined #ruby
<sevenseacat> the only dbs ive worked with close to that size were ones that kept images in the db
<Nilium> That's tiny.
<sevenseacat> and other uploaded files
<Nilium> Or maybe I'm just too used to the DBs we have at work.
<lampd1> all text, stores slugs for image paths in some cases
<zdaniel> we have considerably more in our database.
<pontiki> one really shouldn't compare like that...
<zdaniel> like...astronomically more.
<Nilium> I've never bothered to actually sum the size of our DBs but it's definitely not measured in GB.
<lampd1> its an ecom store, not super data driven
* sevenseacat checks db size of current spree app
diegoviola has joined #ruby
<lampd1> and gets purged of old content here and there
<sevenseacat> 2.1MB :D
<lampd1> ;)
dc_ has joined #ruby
Sawbones has quit [Remote host closed the connection]
<sevenseacat> wait, i should include the cms db as well
Sawbones has joined #ruby
<lampd1> yeah i didn't include cms db ;)
<sevenseacat> aw shit
<lampd1> dont even have a clue what that looks like
<lampd1> never have to mess with it
<lampd1> :P
* sevenseacat feels like quite small fry now
<Nilium> I work in analytics, so you can probably guess how important data is.
teddyp1cker has joined #ruby
<lampd1> sevenseacat: tbh, i wish i was running a spree install instead of php
<lampd1> ;)
bronson has quit [Ping timeout: 245 seconds]
oo_ has quit [Remote host closed the connection]
<lampd1> ever since i started getting into ruby/haml/sass/yaml i don't even want to look at php/phtml/css/xml
cpt_yossarian has quit [Ping timeout: 264 seconds]
<lampd1> have so far only worked on a couple simpler production things w/ ruby, hoping to branch out and start doing a bit more
dc_ has quit [Ping timeout: 244 seconds]
<Nilium> The only production stuff we have at work in Ruby is some build automation stuff I wrote.
<Nilium> It's done a ton to speed up some aspects of development for what it touches.
^wald0 has quit [Quit: ^wald0]
sigurding has quit [Quit: sigurding]
<lampd1> im doing some api <=> tab delimited .txt flatfile scheduled stuff
<lampd1> and build out a microsite with middlemanapp
<lampd1> built*
<lampd1> which is just a static site generator
<lampd1> but was a fun way to familiarize with ruby haml and sass basics
ta_ has joined #ruby
<Nilium> I mainly just use Ruby for text processing jobs right now.
<lampd1> yeah, thats pretty much what my connector does
<lampd1> has to munge data from and to text files
<pontiki> i like middleman
<Nilium> I've started slowly rewriting a lot of our node.js garbage in Go because they're all intended to be long-running processes, so I'd rather have a language with good concurrency support built-in
<lampd1> nice, i want to check Go out but just haven't had the time
<pontiki> so many things to learn!!
<lampd1> yep :/
<lampd1> trying to focus on ruby for now :)
<Nilium> It's nice, just get used to not having generics and avoid interface{} as a catch-all type.
Sawbones has quit [Remote host closed the connection]
<pontiki> lol i don't even know what that means
<Nilium> I come mainly from a C background, so the whole generics thing just doesn't bug me. It's always a little weird that it comes up so much for other people.
<pontiki> maybe future me will
timonv_ has joined #ruby
bronson has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
x77686d has quit [Quit: x77686d]
<centrx> Is Python 3 the new Perl 6?
Sawbones has joined #ruby
V_Ve has quit [Ping timeout: 245 seconds]
<Nilium> No, Python 3 is actually released and in use. It's just shunned by the community because they're a bunch of weirdos.
<Nilium> Can't expect much from people that call themselves pythonistas.
<Nilium> That is my Python jab for the night.
timonv_ has quit [Ping timeout: 252 seconds]
MasterPiece has joined #ruby
<centrx> hah
bronson has quit [Ping timeout: 244 seconds]
sigurding has joined #ruby
dfinninger has joined #ruby
<lampd1> kinda looks like http://pear.php.net/
<lampd1> :P
Sawbones has quit [Ping timeout: 264 seconds]
zdaniel has quit [Quit: WeeChat 1.1]
soul11201 has quit [Quit: http://quassel-irc.org - ???????]
booly-yam-3799 has joined #ruby
armyriad has quit [Ping timeout: 264 seconds]
ponga has joined #ruby
ponga has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
oleo is now known as Guest22837
iMe has quit [Ping timeout: 255 seconds]
oleo__ has joined #ruby
rippa has joined #ruby
antgel has joined #ruby
jonesthedolphin has joined #ruby
booly-yam-3799 has quit [Ping timeout: 244 seconds]
Guest22837 has quit [Ping timeout: 265 seconds]
iMe has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
soul11201 has joined #ruby
Parker0 has joined #ruby
carvantes has quit [Quit: WeeChat 0.3.7]
timonv_ has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
oo_ has joined #ruby
<shevy> are you guys good javascripters
<shevy> I wanna pimp up my knowledge base and am not sure what is good for pimping
cpt_yossarian has joined #ruby
<havenwood> shevy: Opal.
<havenwood> shevy: I just close my eyes real tight and pretend JavaScript doesn't exist.
<havenwood> Works, sometimes.
<shevy> well the problem is with opal, I don't quite know where to start or how to do things that make stuff awesome
<shevy> I was very content with me when I used jquery to now drag around arbitrarily html objects
soul11201 has quit [Read error: Connection reset by peer]
<shevy> div { h2 'hello world!'; drag }
<shevy> \o/
russt has quit [Quit: russt]
Sawbones has joined #ruby
Parker0 has quit [Ping timeout: 245 seconds]
ewnd9 has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 272 seconds]
Trynemjoel has joined #ruby
<lampd1> prototypejs :P
<ips|malc> has anyone ever worked with the stackexchange api ?
vdamewood has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
akhkharu has quit [Quit: Connection closed for inactivity]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lesterc has joined #ruby
<lesterc> ist
cyberarm has quit [Remote host closed the connection]
<lesterc> Greetings! Ruby newbie here - can someone point me to some docs on how to manipulate binary data in Ruby?
<wasamasa> that would be the most basic way to start off
* lesterc reads. (thanks wasamasa)
vvhh has quit [Ping timeout: 255 seconds]
<wasamasa> I remember an interesting looking gem though that wrapped a DSL around this process
booly-yam-3799 has joined #ruby
diegoviola has joined #ruby
timonv_ has quit [Remote host closed the connection]
vvhh has joined #ruby
<lesterc> I'm reading about parslet - http://kschiess.github.io/parslet/transform.html
<lesterc> peg-based parser
<wasamasa> there it is: https://github.com/dmendel/bindata
sdwrage_ has quit [Quit: This computer has gone to sleep]
vvhh has quit [Client Quit]
vvhh has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
mostlybadfly has quit [Quit: Connection closed for inactivity]
amasna has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
martinium has joined #ruby
<lesterc> wasamasa: interesting I'll definitely have a look - ta!
martinium has joined #ruby
martinium has quit [Changing host]
x1337807x has joined #ruby
vvhh has quit [Ping timeout: 276 seconds]
sinkensabe has joined #ruby
pdoherty has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
studiotate has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
carvantes has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Jetchisel has joined #ruby
lesterc has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
SOLDIERz has joined #ruby
diegoviola has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
SOLDIERz has quit [Client Quit]
ponga has joined #ruby
leafybasil has joined #ruby
<ips|malc> damn stackoverflow is down
djbkd has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
giuseppesolinas has left #ruby ["Leaving"]
bluOxigen has quit [Ping timeout: 264 seconds]
havenwood has quit [Remote host closed the connection]
<lampd1> k=-1;h={};order_info.flatten.each { |v| k=k+1; h[k]=v }
<lampd1> is this a bad was to do this?
sigurding_ has joined #ruby
vvhh has joined #ruby
<lampd1> also, is stackoverflow down for anyone else?
ponga has quit [Ping timeout: 244 seconds]
<lampd1> >> order_info=["wat","is","going","on"];k=-1;h={};order_info.flatten.each { |v| k=k+1; h[k]=v }
<eval-in_> lampd1 => ["wat", "is", "going", "on"] (https://eval.in/244164)
<lampd1> >> order_info=["wat","is","going","on"];k=-1;h={};order_info.flatten.each { |v| k=k+1; h[k]=v };return h
<eval-in_> lampd1 => unexpected return (LocalJumpError) ... (https://eval.in/244165)
sigurding has quit [Ping timeout: 244 seconds]
<lampd1> >> order_info=["wat","is","going","on"];k=-1;h={};order_info.flatten.each { |v| k=k+1; h[k]=v };h
<eval-in_> lampd1 => {0=>"wat", 1=>"is", 2=>"going", 3=>"on"} (https://eval.in/244166)
sigurding_ is now known as sigurding
<wasamasa> why not use with_index and iterate over it?
duncannz has quit [Remote host closed the connection]
bluOxigen has joined #ruby
<lampd1> values of "" won't have an index will they?
<lampd1> or am i just dumb
<wasamasa> >> %w[wat is going on].map.with_index { |e, i| [i, e] }.to_h
<eval-in_> wasamasa => {0=>"wat", 1=>"is", 2=>"going", 3=>"on"} (https://eval.in/244167)
iMe has quit [Ping timeout: 265 seconds]
blueOxigen has quit [Ping timeout: 246 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
antgel has quit [Ping timeout: 244 seconds]
<lampd1> >> %w["wat", "is", "going", "on", ""].map.with_index { |e, i| [i, e] }.to_h
<eval-in_> lampd1 => {0=>"\"wat\",", 1=>"\"is\",", 2=>"\"going\",", 3=>"\"on\",", 4=>"\"\""} (https://eval.in/244168)
<lampd1> >> %w["wat", "is", "going", "on", ""].with_index { |e, i| [i, e] }.to_h
<eval-in_> lampd1 => undefined method `with_index' for ["\"wat\",", "\"is\",", "\"going\",", "\"on\",", "\"\""]:Array (NoMethodError) ... (https://eval.in/244169)
shime has joined #ruby
iMe has joined #ruby
<epitron> isn't a hash with keys as indexes also known an array? :)
<wasamasa> yes it is
<epitron> >> %w[wat is going on]
<eval-in_> epitron => ["wat", "is", "going", "on"] (https://eval.in/244170)
<epitron> :D
<epitron> done!
<wasamasa> lampd1: why the hell are you doing this
antgel has joined #ruby
<wasamasa> lampd1: and why are you changing your requirements, are you going all ##c on us
<lampd1> do what?
<lampd1> i have to parse tab delimited flat-files
<lampd1> and interface with an api
<lampd1> some of the files it reads have ~ 75 "columns"
<epitron> if you want to parse TSVs, you can use the CSV module
bluOxigen has quit [Ping timeout: 245 seconds]
<wasamasa> ^
<wasamasa> don't pull an xy-problem on us
<lampd1> oh, i just need to re-assign some numerical keys to make another test file
<wasamasa> just use the CSV module, ideally by turning each row into a hash
<lampd1> :)
<wasamasa> or if you need to process a csv file, use `csvfix`
<lampd1> im just reversing something i've already done for a test case
<lampd1> they're .txt files
<wasamasa> ...
<lampd1> we're talking ancient ERP system here
<lampd1> :)
<wasamasa> you're a webdeveloper, aren't you
lkba has joined #ruby
<lampd1> yep, i didn't build this ancient system tho
<wasamasa> nobody cares about the extension except <insert glorious webserver>
<wasamasa> it's about the contents ffs
<lampd1> im just building an api <=> cruddy erp bridge
<apeiros> stop right there
* apeiros needs to get his popcorn first!
<lampd1> lol
* wasamasa searches for his popcorn kernels to cook some
<epitron> wasamasa: i actually perfer to map each row to a Struct, instead of using a hash
<epitron> Row = Struct.new(:field1, :field2, etc.)
<epitron> .each_row { |row_fields| Row.new(*row_fields) }
ponga has joined #ruby
<epitron> CSV is actually kinda annoying sometimes
<epitron> the interface could be improved
<wasamasa> oh sure it can
<wasamasa> still better than parsing it by hand and getting it wrong
lkba_ has quit [Ping timeout: 246 seconds]
<epitron> CSV.open(...).each_hash {} => should automatically assume the first row is header names
<epitron> CSV.open(...).each_row {} => should automatically NOT use header names
<epitron> (and not assume the first row is a header)
<epitron> there's like 3 things i've ever used CSV for :)
CpuID has joined #ruby
<epitron> 1) reading rows without headers, 2) reading hashes with headers, 3) writing rows
<epitron> it would be nice if the options were methods, actually
asmodchan has joined #ruby
<epitron> CSV.open(...).without_headers.each_row
rbrs has quit [Remote host closed the connection]
<epitron> CSV.open(...).as_tsv.each_row
<amasna> can we make a site like chimpout.com and spread truth about niggers?
Cache_Money has quit [Quit: Cache_Money]
<epitron> TROLOLOL
<amasna> ?
steffes has joined #ruby
Alina-malina has quit [Ping timeout: 245 seconds]
<sevenseacat> ...wat
<amasna> you think that's funny?
<amasna> i want to make a site like chimpout.com in rails
asmodlol has quit [Ping timeout: 252 seconds]
<amasna> chimpout.com talks truth about niggers
rikai has joined #ruby
<amasna> these are recent articles of niggers being niggers
<epitron> you're in the wrong channel
<epitron> you want #racistrails
<amasna> this isn't #ruby?
<epitron> this is not for rails questions
<amasna> oh
<sevenseacat> sigh
<lampd1> Dir.glob(order_files) do |parse|
<lampd1> File.open(parse, 'r').each do |record|
<lampd1> record.split("\r").each do |line|
<lampd1> records = []
<lampd1> line.split("\t").each do |field|
<lampd1> field.chomp!
<lampd1> records << field
<lampd1> end
<lampd1> orders << records.map.with_index { |e, i| [i, e] }.to_h
<sevenseacat> racist questions arent welcome in ruby on rails either
<lampd1> end
<lampd1> end
lampd1 was kicked from #ruby by apeiros [gist]
Sawbones has quit [Remote host closed the connection]
<epitron> lol
<amasna> sweet
<sevenseacat> apeiros: wanna sort out amasna while youre there?
lampd1 has joined #ruby
<amasna> i'm still here though that's all that matters
<epitron> that's probably automatic
<lampd1> haha
<lampd1> way to go automods
<lampd1> no filter for the n word
<lampd1> but you have "flood protection"
<amasna> nigger is not a bad word
<apeiros> oy
<epitron> words are not bad -- only the people who use them
<amasna> neighbor is what you don't want to call black people
<amasna> call them niggers all you want
amasna was kicked from #ruby by apeiros [not ok]
<sevenseacat> thanks :)
<lampd1> ty
amasna has joined #ruby
amasna was kicked from #ruby by apeiros [not ok]
lolmaus has joined #ruby
<epitron> he's coming back
bluOxigen has joined #ruby
<apeiros> lampd1: of course it's not ok. didn't see because I was afk for a bit
<epitron> that was probably a Tor IP
steffes has quit [Ping timeout: 246 seconds]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
Xoro__ has joined #ruby
booly-yam-3799_ has joined #ruby
booly-yam-3799 has quit [Ping timeout: 256 seconds]
<apeiros> so, but now after yesterday's glorious 1ms api response time, it's time to get the first app in working (albeit repulsively ugly) order :D
<epitron> what are you making?
<apeiros> yet another web framework :)
<apeiros> because the world does not have enough of them!
<lampd1> \o/
studiotate has joined #ruby
Hobogrammer_ has joined #ruby
<lampd1> its working kind of now
<lampd1> oop
<lampd1> just loaded for a second then gave me a 521
<lampd1> Ray ID: 1aa9faf693000c47
<lampd1> shoot, wrong chn sry
Heskie has joined #ruby
spicymagpie has quit [Quit: Leaving]
Hobogrammer has quit [Ping timeout: 240 seconds]
dling has joined #ruby
C1V0 has quit []
Alina-malina has joined #ruby
<apeiros> interesting. so sloccount values 8k LoC at ~$240k
<sevenseacat> nothing wrong with more web frameworks, as long as theyre documented and usable
<sevenseacat> theres always a market for them
<apeiros> mine doesn't need documentation. it's self explaining!
<apeiros> j/k
<sevenseacat> i was really excited for lotus, and then the documentation was nonexistent... its probably gotten better, but when youre aiming to be productive, it doesnt help
<apeiros> yeah
<apeiros> also if it's hard to set up
<apeiros> if joe & jane average give up after ~30min, adoption rate will probably be terrible
<lampd1> wat
<sevenseacat> so i'll stick with rails for real work for now, but always interested in alternative
<lampd1> SLOC just told me what i wrote in ~50hrs should have taken me 2.14 months
Pisuke has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
<apeiros> if you're interested in alpha/beta testing, I'd love to ping you. will probably be a couple of months, though, before I'm willing to show it
<sevenseacat> apeiros: sure :)
<lampd1> i'd definitely be interested as well
ponga has quit [Remote host closed the connection]
<apeiros> note taken :D
ponga has joined #ruby
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
sigurding has quit [Quit: sigurding]
wallerdev has quit [Quit: wallerdev]
spider-mario has joined #ruby
<lampd1> heh... "Total Estimated Cost to Develop = $ 30,881,908"
giuseppesolinas_ has left #ruby ["Leaving"]
giuseppesolinas has joined #ruby
iMe has quit [Ping timeout: 246 seconds]
<shevy> apeiros I thought you only work on some database, now you are working again on another web framework? wasn't this what you did in your php days as well?
Stoge88 has joined #ruby
<shevy> sevenseacat cats don't need documentation. All they need is dancing mice in animated .gif format
martinium has quit [Remote host closed the connection]
<sevenseacat> sloccount says that ticketee, the test app we've built for rails 4 in action, is worth $36,938
<apeiros> shevy: not database. an orm. which is part of that framework. and yes, actually that framework revives some of the ideas I had for the php framework.
* cats nods
<apeiros> though I can do it quite more elegant than back then.
ponga has quit [Read error: No route to host]
<Nilium> sloccount was never very good at cost estimates.
<sevenseacat> this is true.
iMe has joined #ruby
psy_ has quit [Ping timeout: 276 seconds]
<apeiros> Nilium: you just have to use it in your salary review
<sevenseacat> it gives a better LOC estimate than rake stats though
<apeiros> "but what I built for you is worth 27mio $! I need a pay rise!"
<apeiros> s/need/earn/
<sevenseacat> "yes, but we only charged the client 10K for it - should we pay you 10K then?'
<Nilium> You say "Yes." and then you grab them by the collar and shake them violently.
<Nilium> According to the Onion, this is guaranteed to get a raise.
sdwrage has joined #ruby
<sevenseacat> i should try that
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
razieliyo has quit [Ping timeout: 245 seconds]
<Nilium> I haven't tried it yet because I'd want a better reason to get fired than trying to violently shake my boss.
<shevy> why do you want to shake it up with your boss man
<shevy> is it because he has a big bushy beard
decoponyo has joined #ruby
<sevenseacat> yeah. i have to learn about that negotiation stuff. im a total pushover
<Nilium> I work for what amounts to $12 an hour.
<sevenseacat> "sorry youre not getting a pay rise this year" "...okay :("
sinkensabe has quit [Remote host closed the connection]
<sevenseacat> (repeat every year)
<Nilium> I'm probably at least the most justified in violently shaking some people.
hiyosi has joined #ruby
JohnBat26 has joined #ruby
Joufflu has quit [Quit: Peace]
anaeem1 has joined #ruby
<apeiros> s/sorry you're not getting/I'm happy I can again get around not to give you/
<sevenseacat> yeah i know
<shevy> sevenseacat simply point out that you have 8 kitten to raise
fgo has joined #ruby
<Nilium> I have three gophers on my desk and they all having a drinking problem. I need to fund their drinking.
<apeiros> "my market value is higher than what you pay me" worked for me last year.
decoponio has quit [Ping timeout: 264 seconds]
<Nilium> I may use that one once I've been in my position for a year.
bluOxigen has joined #ruby
<shevy> yeah but you are living in a country with good economics apeiros, try that in greece
<apeiros> shevy: unless your financial situation doesn't allow it - moving is an option
<Nilium> In Greece: "My market value is higher than what you pay me and I'm leaving the country and warning everyone else about you without a raise"?
robbyoconnor has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<sevenseacat> i'm too worried that i'd just be told 'well go get your market rate elsewhere then'
<apeiros> sevenseacat: yes. that's essentially what you have to be ready to accept. tho, only psychopaths fire you over asking for it.
carvantes has quit [Quit: WeeChat 0.3.7]
<apeiros> but if you don't get the pay rise at that point, you absolutely should shop around.
commmmodo has quit [Quit: commmmodo]
<Nilium> sevenseacat: Think of all the pain in the ass they'd have training someone new (nobody actually trains anyone, I think), losing that delicious "tribal knowledge," and otherwise the sheer hassle of just replacing someone and getting them up to speed.
studiotate has quit [Quit: Computer has gone to sleep.]
TrOuBLeStArTeR has joined #ruby
<Nilium> The cost of downtime might outweigh the pay raise. Might not. But, yeah, I guess just be prepared to abandon ship if they don't care.
<sevenseacat> yeah but then i have to find somewhere else to work
<Nilium> The fun thing for me is that no matter what raise I could ask for here, it would still be below my market rate.
<TrOuBLeStArTeR> hi all
<wasamasa> name of the game?
<apeiros> sevenseacat: come on, it's not like you were unemployable! I think you'd get quite a lot of job opportunities if you'd ask around.
<sevenseacat> probably. i dunno.
<sevenseacat> i'll be quiet noe.
<sevenseacat> now even
<Nilium> I'd hire her. Would get more Ruby people on my team, and eventually we'd be able to mutiny and hang those who didn't follow our lead.
wallerdev has quit [Quit: wallerdev]
<Nilium> I must destroy PHP and Javascript ಠ_ಠ
<apeiros> if we get the additional head count, I'd hire her too. but that'd mean moving to switzerland :-D
Zai00 has joined #ruby
<Nilium> Switzerland always seems like a nice place.
<Nilium> I doubt I'd ever learn to adjust to not living in the US, myself, though.
<sevenseacat> i work with a guy from switzerland. we make jokes about his neutrality.
<wasamasa> Nilium: forget about javascript
<Nilium> Can't. node.js has to die.
<wasamasa> Nilium: PHP could be doable for a very specific definition of "destroy" though
Heskie has quit []
<wasamasa> I mean, javascript has turned into the new C
<Nilium> Granted, I fully expect node.js to wither out and die on its own anyway.
<wasamasa> a language shit compiles to
<sevenseacat> it doesnt seem to be dying
<wasamasa> running at high speed on loads of platforms
<Nilium> We have very different understandings of "high speed"
<wasamasa> let's define high speed as faster than ruby and python and whatnot
<Nilium> I define high speed as being able to do everything I need in 16ms or less, and I need to do a lot.
<sevenseacat> i havent found many cases that ruby has been too slow for
<sevenseacat> but everything i do is on tiny scale
<Nilium> sevenseacat: Try i = 0 ; while i < 2**31 ; i += 1 ; end
hmsimha has joined #ruby
* sevenseacat watches it go
mbug has joined #ruby
<Nilium> It'll take a while. Ruby's not great at this.
<sevenseacat> oh it definitely will take a long time
<Nilium> I would've used 63 but that might take until the heat death of your computer at least.
<sevenseacat> hah
Spami has joined #ruby
alex88 has joined #ruby
<wasamasa> let's bash languages by using benchmark code that's as far as possible from reality
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<Nilium> Doing anything arithmetic-heavy in Ruby (i.e., not dropping down to C) generally fares very poorly. Unfortunately, most of what I spend my personal time on is math-heavy since game dev and all that, so Ruby doesn't do well there.
<Nilium> Hence why I have a Ruby C extension for doing vector/matrix/quaternion math.
<Nilium> wasamasa: It's good for illustrating a point.
roombadaboomba has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
<wasamasa> Nilium: not really
<wasamasa> Nilium: using a specialized library would be
<Nilium> Yes, I illustrated _why_ I use a specialized library.
<wasamasa> because counting up to infinity takes too long, sure
ponga has joined #ruby
<wasamasa> that's something I always do in my job!
<Nilium> I'm pretty sure 2**31 is not infinity.
<Nilium> Or are you ignoring the part where the bottleneck is the arithmetic?
sinkensabe has joined #ruby
n008f4g_ has joined #ruby
sundjango has joined #ruby
Sawbones has joined #ruby
<porfa> can anyone help me out just understanding the synthax for mysql2 + sequel ?
<shevy> chuck norris could do so
<porfa> i just want to perform a single select on my created db, i’ve menaged to connect to it alredy… but im not being able to perform anything on
<Nilium> 3am, sleep time
iMe has quit [Ping timeout: 240 seconds]
iMe has joined #ruby
<sevenseacat> see ya dood
slawrence00 has joined #ruby
roshanavand has joined #ruby
<porfa> i get nothing…!
Sawbones has quit [Ping timeout: 252 seconds]
lampd1 has quit [Remote host closed the connection]
<sevenseacat> what do you expect to get?
CpuID has quit [Quit: This computer has gone to sleep]
josephndenton has joined #ruby
dennis1 has joined #ruby
Trieste has quit [Read error: Connection reset by peer]
Trieste has joined #ruby
LouisRoR has joined #ruby
yokel has quit [Ping timeout: 264 seconds]
agjacome has joined #ruby
yokel has joined #ruby
<apeiros> porfa: it's generally a good idea to answer follow up questions
taiansu has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 264 seconds]
<porfa> sorry, i wasn’t here… im mixing sequel and mysql2.. i’v ebeen mixing tutorials...
Spami has quit [Quit: This computer has gone to sleep]
<apeiros> porfa: but in this case, I'm fairly certain you did get something - an exception, because the query is invalid.
vvhh has quit [Read error: Connection reset by peer]
<sevenseacat> youre not mixing anything because youre not using sequel
<porfa> i’ll read more before i try and waste everyone’s time, sorry
vvhh has joined #ruby
vvhh has quit [Remote host closed the connection]
SOLDIERz has quit [Quit: Be back later ...]
<sevenseacat> in that code sample
<sevenseacat> yeah i have a bad habit of not tagging people when i answer them, when theres no other conversation going on
Stoge88 has quit [Read error: Connection reset by peer]
<sevenseacat> so my bad in this caswe
ziyadb has joined #ruby
jheg has joined #ruby
dc_ has joined #ruby
<porfa> DB = Sequel.mysql2(‘testdb’, :user => 'user', :password => 'password', :host => 'localhost') <—— now this looks more like it am i right?
<apeiros> sevenseacat: normal IMO
<sevenseacat> porfa: that will probably connect to mysql using sequel
anaeem1 has quit [Read error: Connection reset by peer]
alex88_ has joined #ruby
<apeiros> porfa: you run that in pry (or irb), right?
<porfa> and i want to use sequel! irb
<apeiros> ah, yes, you do. paste shows as much.
<apeiros> in that case: if it doesn't raise, then it looks good :)
ta_ has joined #ruby
alex88 has quit [Ping timeout: 244 seconds]
anaeem1 has joined #ruby
Deele has joined #ruby
dseitz has joined #ruby
<porfa> it worked! i just created a test table using irb!!! yeahhhh
<sevenseacat> \o/
dc_ has quit [Ping timeout: 276 seconds]
<porfa> been using computers for almost two decades now, always wanted to get into programing.. never got the chance… i’ve been messing with ruby for 6weeks and i alredy learned alot.. im loving ruby and all the stuff im being able to do with it!! (automation and stuff!!! ) and now knowing i can put and edit stuff from databases with it… !! im like.. amazed!
<porfa> i’ve done some ms-dos batch files before if that counts .. LOL.
<sevenseacat> progress :)
ta_ has quit [Ping timeout: 245 seconds]
<porfa> everytime i press enter on irb and it shows what i want.. i feel so rewarded… its like.. unexplainable!
<apeiros> heh :)
dennis1 has quit [Quit: WeeChat 0.4.2]
sundjango has quit [Remote host closed the connection]
dennijensen has joined #ruby
kostitas has joined #ruby
Xeago has joined #ruby
dionysus69 has joined #ruby
alex88_ has quit [Ping timeout: 264 seconds]
wald0 has joined #ruby
pawprint has quit [Ping timeout: 265 seconds]
dimaursu16 has quit [Ping timeout: 264 seconds]
<wald0> where i can found info/docs for this? "method(:method_name)"
alex88 has joined #ruby
jusmyth has joined #ruby
BoomerBile has quit [Read error: Connection reset by peer]
pdoherty has joined #ruby
bluenemo has joined #ruby
mclee has joined #ruby
alex88 has quit [Ping timeout: 256 seconds]
commmmodo has joined #ruby
MasterPiece has quit [Ping timeout: 265 seconds]
JohnBat26 has quit [Ping timeout: 245 seconds]
lkba has quit [Ping timeout: 264 seconds]
taiansu has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
<apeiros> window.setTimeout argument order is so annoying.
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
alex88 has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
commmmodo has quit [Ping timeout: 255 seconds]
jgt has joined #ruby
<jgt> hey
<jgt> is there anything in the stdlib that will try to create a url for me?
<jgt> something like
<jgt> make_link("google.com")
<jgt> make_link("http://google.com")
dimaursu16 has joined #ruby
<apeiros> I doubt something like that is in stdlib
<jgt> I could of course make one myself, but it’s not cool to duplicate standard tools
vvhh has joined #ruby
ponga has quit [Quit: Leaving...]
iMe has quit [Ping timeout: 272 seconds]
<shevy> jgt not in stdlib, only cgi is part of stdlib
<shevy> jgt btw what should the above output?
<dseitz> URI:HTTP.build would be a look
<dseitz> URI::HTTP.build -- if I could only type :)
alex88 has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
iMe has joined #ruby
alex88 has joined #ruby
zwer_h has joined #ruby
booly-yam-3799_ has quit [Ping timeout: 245 seconds]
<shevy> >> URI::HTTP.build "http://google.com"
<eval-in_> shevy => uninitialized constant URI (NameError) ... (https://eval.in/244185)
Dolphi has joined #ruby
<jgt> shevy: I showed what it should output; it should check for a protocol, and add one if not found
yokel has quit [Ping timeout: 272 seconds]
steffes has joined #ruby
<dseitz> require 'uri'
<shevy> jgt ah yes now I seee the leading "http" part
MasterPiece has joined #ruby
<dseitz> it actually takes either a hash or an array; components are userinfo, host, port, path, query, fragment [in that order for Array]
yokel has joined #ruby
zwer has quit [Ping timeout: 250 seconds]
<apeiros> dseitz: I don't think that solves his problem of "add protocol if missing"
<apeiros> it's a single line of code anyway
codecop has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
<jgt> dseitz: Looks good! Thanks for that :)
<jgt> >> URI::HTTP.build({host: "google.com"})
<apeiros> and what could possibly go wrong? :D
<eval-in_> jgt => uninitialized constant URI (NameError) ... (https://eval.in/244186)
<shevy> >> require 'uri'; URI::HTTP.build({host: "google.com"})
<eval-in_> shevy => #<URI::HTTP http://google.com> (https://eval.in/244187)
<jgt> apeiros: it does seem to add the protocol
<apeiros> jgt: it does also fail if the protocol is already there
<apeiros> so back to square one
<dseitz> yeah shoot it does
<apeiros> just write it yourself
steffes has quit [Ping timeout: 255 seconds]
<apeiros> gist it if you're done
<jgt> oh yeah
<jgt> darn
ponga has joined #ruby
<apeiros> s/if/when/
goodenough has quit [Remote host closed the connection]
kl has joined #ruby
jusmyth has quit [Quit: Leaving.]
dennijensen has quit [Quit: WeeChat 0.4.2]
atmosx has joined #ruby
red_horned_rihno has joined #ruby
atmosx has quit [Client Quit]
red_horned_rihno has quit [Read error: Connection reset by peer]
otertore has joined #ruby
claw___ has joined #ruby
Hobogrammer_ has quit [Ping timeout: 246 seconds]
alex88_ has joined #ruby
taiansu has quit [Remote host closed the connection]
<jgt> if url =~ /:\/\// then url else "http://#{url}" end
<shevy> hehehehe
<jgt> that’s probably enough, right?
bronson has joined #ruby
<shevy> that even is apeiros style of code by the way, he loves "if foo then" components for some reason
<jgt> would be nicer to use some method that returns an actual boolean though
<jgt> I don’t necessarily love that syntax, but it’s easier to play with irb that way
<apeiros> url = "http://#{url}" unless url =~ %r{\Ahttps?://}
cpruitt has joined #ruby
cpt_yossarian has quit [Ping timeout: 255 seconds]
alex88 has quit [Ping timeout: 256 seconds]
<apeiros> I'd be explicit. =~ /:\/\// matches anywhere in the string. even though it should not occur in an url elsewhere.
<jgt> apeiros: so you think I should list all the protocols to capture against?
atmosx has joined #ruby
<apeiros> jgt: that's one way. or you use something like \A\w+://
Sawbones has joined #ruby
bluenemo has quit [Quit: Verlassend]
bronson has quit [Ping timeout: 244 seconds]
gr33n7007h has joined #ruby
nuck has quit [Quit: Computer has gone to sleep.]
<atmosx> anyone using sasl with freenode here?
Sawbones has quit [Ping timeout: 245 seconds]
<apeiros> yes
<porfa> help with sequel please … i have a string inside “Titu” how do i pass this to sequel ? —— dataset.insert(:name => ‘*HOW_do_i_pu_Titu_here’) ??
<apeiros> porfa: so Titu is a constant?
<porfa> i have no idea what that means :(
charliesome has quit [Quit: zzz]
<apeiros> that might be part of your problem :D
<apeiros> porfa: gist your full code please.
<porfa> i know titu is a text string
<porfa> i dont have any code, it’s on irb atm
<apeiros> the stuff in irb is not code? and you can't copy & paste your irb session?
pothepanda has quit [Ping timeout: 252 seconds]
jonesthedolphin has quit [Ping timeout: 265 seconds]
<sevenseacat> apparntly not
<ips|malc> hi, i want to fetch a HTTP JSON API with. do you know any ruby htttp client or gem for that?
<apeiros> porfa: look, everytime *I* have to work to help you solve *your* problem, I'm less and less inclined to help you.
* sevenseacat is bored
<porfa> it’s ok, i’ll keep on reading, thanks though
<porfa> ok, i’ve made the code “clean” gisting it.. and again, thanks
<arup_r> :)
Xeago has quit [Remote host closed the connection]
martinium has joined #ruby
martinium has joined #ruby
<apeiros> porfa: just name: titu, without quotes
<porfa> thank you
<apeiros> porfa: also Titu is not the same as titu. ruby is case sensitive.
ta_ has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
vvhh has quit [Quit: Bye]
<porfa> i know, that was a typo, sorry about that.. been awake almost 24h, not your fault sorry again
alex88_ has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
bdamos has quit [Remote host closed the connection]
<sevenseacat> so go get some rest
cpt_yossarian has joined #ruby
LouisRoR1 has joined #ruby
vvhh has joined #ruby
martinium has quit [Ping timeout: 244 seconds]
elfuego has left #ruby [#ruby]
ta_ has quit [Ping timeout: 240 seconds]
ohcibi has joined #ruby
LouisRoR has quit [Ping timeout: 245 seconds]
iMe has quit [Ping timeout: 246 seconds]
atmosx has quit [Quit: WeeChat 0.4.4-dev]
<arup_r> porfa: You should sleep at-least 8 hours in 24 hours..
iMe has joined #ruby
sigurding has joined #ruby
<shevy> lol hanmac listen to this: https://www.youtube.com/watch?v=hONT-Yl04Ls that so reminded me of you
<shevy> and also hanmac https://www.youtube.com/watch?v=baUY9LFlYh0 listen to it for an hour and you will become insane in the brain
alex88 has joined #ruby
vvhh has quit [Quit: vvhh]
YamakasY has quit [Excess Flood]
HoloIRCUser2 has joined #ruby
SparkMasterTape has quit [Quit: Leaving]
HoloIRCUser2 has left #ruby [#ruby]
ta_ has joined #ruby
blizzy has joined #ruby
startupality has joined #ruby
YamakasY has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
c355E3B has joined #ruby
sigurding has quit [Quit: sigurding]
jheg has quit [Quit: jheg]
djbkd has joined #ruby
MasterPiece has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
c355E3B_ has joined #ruby
ta_ has joined #ruby
c355E3B__ has joined #ruby
<sevenseacat> man, javascript drives me nuts but i need to get better at it
djbkd has quit [Ping timeout: 252 seconds]
try has joined #ruby
SparkMasterTape has joined #ruby
c355E3B has quit [Ping timeout: 256 seconds]
c355E3B__ is now known as c355E3B
mostlybadfly has joined #ruby
c355E3B_ has quit [Ping timeout: 256 seconds]
roshanavand has quit [Ping timeout: 264 seconds]
leafybasil has joined #ruby
CpuID has joined #ruby
CpuID has joined #ruby
ta_ has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
<jgt> sevenseacat: js drives everyone nuts, even if they’re good at it
arietis has joined #ruby
cyberarm has joined #ruby
kirun has joined #ruby
alex88 has quit [Remote host closed the connection]
taiansu has joined #ruby
iMe has quit [Ping timeout: 252 seconds]
<jgt> Rails’ link_to helper is a bit odd
<jgt> it appears it needs at least two args
<jgt> if you want the name to be the same as the url, you have to pass nil
bronson has joined #ruby
<jgt> so you’d do `link_to nil, url`
<shevy> that is crazy
<jgt> if the order was the other way around, you could just do `link_to url`
iMe has joined #ruby
<shevy> yeah
<jgt> rails ¯\_(ツ)_/¯
<shevy> are there any other methods that require a mandatory nil argument as the first one?
MasterPiece has joined #ruby
<jgt> shevy: Likely, but I’m not that intimately familiar with the codebaser
<jgt> s/codebaser/codebase/
<icbm> How to do something like this: define_method(:foo, array_of_required_params) { bar :foo, *array_of_required_params }
<icbm> i.e. I want to create a method (or just a block) with programmatically definable parameters.
ponga has quit [Remote host closed the connection]
ponga has joined #ruby
maximski has joined #ruby
Zai00 has quit [Quit: Zai00]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mynameis has joined #ruby
bronson has quit [Ping timeout: 246 seconds]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
maximski has quit [Max SendQ exceeded]
taiansu has quit [Ping timeout: 245 seconds]
maximski has joined #ruby
<waxjar> icbm: define_method(:foo) { |*array_of_required_params| ... }
ponga has quit [Read error: No route to host]
maximski has quit [Max SendQ exceeded]
ponga has joined #ruby
<icbm> waxjar: Thought I tried that. I'll try again. Thanks.
maximski has joined #ruby
sigurding has joined #ruby
MasterPiece has quit [Remote host closed the connection]
<icbm> waxjar: I'd like to get the usual "3 for 2" error message if user supplies wrong number of arguments.
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<icbm> This just allows any # of args.
bahar has quit [Ping timeout: 246 seconds]
ta_ has joined #ruby
hgl has quit [Ping timeout: 240 seconds]
<icbm> ps = [:a, :b]; define_method(:foo) { | ?ps? | fnarg :foo, *ps }
Trynemjoel2 has joined #ruby
<shevy> if you use *foo then this means a variable amount of arguments
<waxjar> then take two arguments in the block: { |a, b| }
<icbm> I don't know the arity beforehand.
<icbm> Imagine all this wrapped up in a def pass_through(methd, arity) ... end
oleo__ has quit [Quit: Verlassend]
Trynemjoel has quit [Ping timeout: 272 seconds]
TrOuBLeStArTeR has quit [Ping timeout: 255 seconds]
<waxjar> hmm, i don't think you can do that, unless you build a string to eval
hgl has joined #ruby
Akuma has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
<waxjar> but that's icky
oleo has joined #ruby
<icbm> Yeah. That's where I got too. :/
Akuma has quit [Client Quit]
kostitas has quit [Quit: Leaving]
ewnd9 has joined #ruby
cpt_yossarian has quit [Ping timeout: 240 seconds]
martinium has joined #ruby
martinium has joined #ruby
yokel has joined #ruby
jheg has joined #ruby
<porfa> ihow can i make ruby output 1 or 0 instead of true/false when doing and .include? (is this possible?)
ziyadb has quit [Quit: Connection closed for inactivity]
<icbm> blah && 1 || 0
MasterPiece has joined #ruby
<porfa> nice…! :)
j0n3 has joined #ruby
<gr33n7007h> >> (?a..?z).include?(?a) ? 0 : 1
<eval-in_> gr33n7007h => 0 (https://eval.in/244200)
j0n3 has quit [Max SendQ exceeded]
<icbm> even better
TrOuBLeStArTeR has joined #ruby
booly-yam-3799_ has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
martinium has quit [Ping timeout: 252 seconds]
yokel has quit [Ping timeout: 240 seconds]
pawprint has joined #ruby
j0n3 has joined #ruby
yokel has joined #ruby
banister has joined #ruby
russt has joined #ruby
mrdtt has joined #ruby
wald0 has quit [Quit: Lost terminal]
arietis has joined #ruby
pawprint has quit [Ping timeout: 245 seconds]
mrdtt has quit [Max SendQ exceeded]
nclbr has joined #ruby
startupality has quit [Quit: startupality]
mrdtt has joined #ruby
CustosLimen has quit [Ping timeout: 245 seconds]
pdoherty has joined #ruby
TrOuBLeStArTeR has quit [Quit: Going offline, see ya! (www.adiirc.com)]
CustosLimen has joined #ruby
mrdtt has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
steffes has joined #ruby
mrdtt has joined #ruby
commmmodo has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
pdoherty has quit [Ping timeout: 244 seconds]
antgel has joined #ruby
steffes has quit [Ping timeout: 265 seconds]
commmmodo has quit [Ping timeout: 276 seconds]
slawrence00 has joined #ruby
ta_ has joined #ruby
arietis has quit [Quit: Textual IRC Client: www.textualapp.com]
fantazo has joined #ruby
pico-pete has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
astrobunny has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
iMe has quit [Ping timeout: 255 seconds]
iMe has joined #ruby
ewnd9 has quit [Ping timeout: 265 seconds]
tokik has joined #ruby
taiansu has joined #ruby
c355E3B has quit [Quit: Leaving]
jonathanwallace has joined #ruby
yokel has quit [Ping timeout: 245 seconds]
yokel has joined #ruby
oo_ has joined #ruby
jobewan has joined #ruby
<porfa> cananyone have a quicklook at this? obviously something is verywrong here… how can i make the dataset.insert for each do ? https://gist.github.com/anonymous/3a5498fcdb27f1388347
evanjs has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
freerobby has joined #ruby
SOLDIERz has joined #ruby
jusmyth has joined #ruby
<porfa> hmm ok found what was wrong!
<porfa> this is all so beautiful!
evanjs has quit [Remote host closed the connection]
cpt_yossarian has joined #ruby
SOLDIERz has quit [Ping timeout: 246 seconds]
ta_ has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 276 seconds]
pontiki has joined #ruby
<pontiki> morning...
thomas has quit [Quit: leaving]
iMe has quit [Ping timeout: 245 seconds]
ewnd9 has joined #ruby
<apeiros> moin mouse
hs366 has joined #ruby
SOLDIERz has joined #ruby
iMe has joined #ruby
jefus__ has joined #ruby
spider-mario has quit [Remote host closed the connection]
Xeago has joined #ruby
ewnd9 has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
jefus_ has quit [Ping timeout: 245 seconds]
thomas has joined #ruby
sigurding has quit [Quit: sigurding]
jusmyth has quit [Quit: Leaving.]
anaeem1 has quit [Remote host closed the connection]
kl has quit [Ping timeout: 245 seconds]
krz has joined #ruby
freerobby has quit [Quit: Leaving.]
fightback has joined #ruby
ta_ has joined #ruby
cpt_yossarian has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
dc_ has joined #ruby
noop has joined #ruby
nclbr has quit [Remote host closed the connection]
fandi has quit [Quit: Leaving]
<shevy> mouse?
ta_ has quit [Ping timeout: 245 seconds]
<jgt> is there an array method that returns the array with nil values removed?
dc_ has quit [Ping timeout: 246 seconds]
<apeiros> jgt: .compact
<jgt> apeiros: excellent. Grazie.
Sawbones has joined #ruby
teddyp1cker has quit [Read error: Connection timed out]
sevenseacat has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
nateberkopec has joined #ruby
bashusr has joined #ruby
Sawbones has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
lkba has joined #ruby
zorak8 has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
tkuchiki has joined #ruby
JohnBat26 has joined #ruby
chinmay_dd_ has joined #ruby
JohnBat26 has quit [Client Quit]
ARCADIVS has quit [Quit: ARCADIVS]
JohnBat26 has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jheg has quit [Quit: jheg]
fightback has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 264 seconds]
thomas1 has joined #ruby
chinmay_dd_ has quit [Ping timeout: 264 seconds]
yokel has joined #ruby
iMe has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
thomas is now known as Guest39663
thomas1 is now known as thomas
oo_ has joined #ruby
davedev24_ has joined #ruby
ta_ has joined #ruby
iMe has joined #ruby
yokel has quit [Ping timeout: 246 seconds]
alex88 has joined #ruby
phoo1234567 has joined #ruby
Guest39663 has quit [Quit: Lost terminal]
oo_ has quit [Ping timeout: 244 seconds]
yokel has joined #ruby
nickjj has quit [Quit: Leaving]
phoo1234567 has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
nickjj has joined #ruby
phoo1234567 has joined #ruby
jleclanche has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jleclanche> is there a way to modify the rubygem root dir for local installs? (~/.gem by default)
MartynKeigher has joined #ruby
ascarter has joined #ruby
<jhass> yes, just set the GEM_HOME environment variable
ta_ has quit [Ping timeout: 244 seconds]
<jhass> if your project uses bundler, there's the --path option
<jleclanche> thanks!
taiansu has quit [Remote host closed the connection]
blueOxigen has joined #ruby
LouisRoR1 has quit [Ping timeout: 244 seconds]
bluOxigen has quit [Ping timeout: 245 seconds]
steffes has joined #ruby
parduse has joined #ruby
<shevy> hmmm
<shevy> I wonder if I have a design problem
codecop has quit [Remote host closed the connection]
<shevy> I have a project here where the top namespace is a module; the reason is that I want to be able to include on it, and then use a bunch of methods
wmoran has joined #ruby
iRockZ has quit [Quit: Connection closed for inactivity]
<shevy> however had - I also want to have the option to redirect all puts and print statements into a specific object sometimes (which is also part of the top namespace)
fandi has joined #ruby
<jhass> I would always move methods that should be included into whatever (main, Kernel, Object) into their own module that has nothing else in it
steffes has quit [Ping timeout: 252 seconds]
<jhass> including your main namespace into main/Object, renders the entire point of having a namespace nil
leonmaia has joined #ruby
<wmoran> Anyone on who can help a Ruby newbie understand how Ruby behaves differently on FreeBSD?
alex88 has quit [Ping timeout: 246 seconds]
<Cat_1> Ruby should not behave differently
<Cat_1> what are you seeing?
russt has quit [Quit: russt]
<wmoran> For example, installing the Ruby 2.1 port and I don't have a gem command ... makes it hard to follow tutorials
<Cat_1> Did you install rubygems?
<wmoran> If I try to install the ruby-gem port, it tries to install Ruby 2.0 ... I'm pretty sure I don't want 2 versions of Ruby installed at once, sounds like a recipe for confusion
<Cat_1> Seems like you're gonna hve to download from source my friend!
<wmoran> Should I just ditch 2.1 and install 2.0? is 2.1 experimental or something?
<Cat_1> Your package manager probably isn't up to date
<Cat_1> try updating whatever package manager you use
<jhass> wmoran: I think you'll have more luck at your OS channel
<wmoran> ^^^ See above ... FreeBSD
<Cat_1> There are a TON Of package managers out there
<jhass> it's a package management question, not so much a ruby question
<Cat_1> seems like a OS-specific problem
<wmoran> There is only 1 package manager for FreeBSD
<jhass> try to find the maintainer(s) of the packages
virtualize has quit []
<wmoran> 800+ people on here and nobody's using Ruby on FreeBSD ... that's of concern
<wmoran> Thanks for the feedback, though
<Cat_1> Technically we are using ruby on a flavor of BSD...
<jhass> none of the highly actives ones I know of at least, you know how it is in IRC ;)
<Cat_1> OSX is forked off of BSD
<Cat_1> so I know it's possible :)
<Cat_1> but it really just sounds like a package manager issue.
<Cat_1> You can always compile from source
<Cat_1> but nobody ever likes to do it that way...
<wmoran> It's certainly possible on FreeBSD ... there seems to be a lot of support for it ... but it seems as if the installation is rather customized
<wmoran> See this page, for example: https://wiki.freebsd.org/Ruby
alex88 has joined #ruby
<jhass> wmoran: I'm sure you could get chruby working and maybe ruby-build or ruby-install
<apeiros> wmoran: I'd give rvm a shot
alex88 has quit [Changing host]
alex88 has joined #ruby
pdoherty has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> if it works on freebsd, it'll give you an installation of ruby which is quite common
soxet has quit [Ping timeout: 245 seconds]
<Cat_1> Looks like there's a dedicated ruby channel somewhere for your flavor
<Cat_1> this isn't it I think
<Cat_1> try #rubyports
<wmoran> Cat_1, thanks ... I'll have a look
<Cat_1> on EFNet
alex88_ has joined #ruby
<Cat_1> not Freenode
<wmoran> ugh
sinkensabe has joined #ruby
alex88_ has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
commmmodo has joined #ruby
<Cat_1> just going off your distro's page :)
alex88_ has joined #ruby
alex88_ has quit [Read error: Connection reset by peer]
alex88 has quit [Ping timeout: 256 seconds]
dfinninger has joined #ruby
pdoherty has quit [Ping timeout: 264 seconds]
alex88 has joined #ruby
virtualize has joined #ruby
alex88 has quit [Read error: Connection reset by peer]
commmmodo has quit [Ping timeout: 256 seconds]
russt has joined #ruby
ta_ has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
virtualize has quit [Client Quit]
mrdtt has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has joined #ruby
Xeago has quit [Remote host closed the connection]
alex88 has joined #ruby
wmoran has quit [Quit: Leaving]
DadoCe has joined #ruby
tvw has joined #ruby
lesterc has joined #ruby
agjacome has quit [Quit: leaving]
cashnguns has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
giuseppesolinas has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 264 seconds]
fgo has quit [Ping timeout: 256 seconds]
freerobby has quit [Quit: Leaving.]
DadoCe has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
soxet has joined #ruby
try has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
kl has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
virtualize has joined #ruby
Morkel has joined #ruby
teddyp1cker has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
taiansu has joined #ruby
sinkensabe has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 245 seconds]
commmmodo has joined #ruby
oo_ has joined #ruby
DadoCe has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
booly-yam-3799_ has quit [Ping timeout: 244 seconds]
sinkensabe has joined #ruby
iMe has quit [Ping timeout: 272 seconds]
scripore has joined #ruby
mac__ has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
DadoCe has quit [Ping timeout: 272 seconds]
iMe has joined #ruby
Morkel has quit [Quit: Morkel]
Mon_Ouie has quit [Ping timeout: 265 seconds]
<shevy> ruby is for everyone
<shevy> even your grandma
iamninja has quit [Quit: ZZZzzz…]
Megtastique has joined #ruby
<cashnguns> word to your grandmam
c355E3B has joined #ruby
freerobby has joined #ruby
astrobunny has joined #ruby
martinium has joined #ruby
martinium has joined #ruby
ascarter has joined #ruby
ptrrr has joined #ruby
sinkensabe has quit [Remote host closed the connection]
MasterPiece has quit [Quit: Leaving]
JoshGlzBrk has joined #ruby
jschoolcraft has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
astrobunny has quit [Ping timeout: 245 seconds]
martinium has quit [Ping timeout: 256 seconds]
davedev2_ has joined #ruby
teddyp1cker has joined #ruby
jheg has joined #ruby
noop has quit [Read error: Connection reset by peer]
<pontiki> she's dead
dfinninger has quit [Remote host closed the connection]
<pontiki> but she's still using ruby
<pontiki> it's amazing, really
joelbrewer has joined #ruby
red_horned_rihno has joined #ruby
alex88 has quit []
davedev24_ has quit [Ping timeout: 245 seconds]
virtualize has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
<shevy> cool
<shevy> zombies use ruby
<joelbrewer> hey folks, I've been programming in ruby for a while and would like to deploy a sinatra app to my VPS (Digital Ocean). What is the best way to handle deployment? I'd like to be able to just push from my local repo and have everything automatically deployed..
enebo has joined #ruby
<pontiki> DO has this thing called Dokku, which works like Heroku
<pontiki> i've not used it, but it's basically a push to deploy thingie
kaspertidemann has joined #ruby
<Cat_1> Isn't that Docker?
<Cat_1> or a fancy name for it anyway
<Cat_1> Depends what you mean by "deployed"
jgt has quit [Ping timeout: 272 seconds]
<Cat_1> Capistrano used to be the "Thing"
<Cat_1> currently Docker is the "thing"
jobewan has quit [Ping timeout: 246 seconds]
<joelbrewer> pontiki: ooh. nice. The link do the github repo was purpled, so apparently I've seen this before... haha
<joelbrewer> Cat_1: isn't Docker for setting up environments?
<Cat_1> Vagrant/PUppet/Chef were a thing
ponga has quit [Quit: Leaving...]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<joelbrewer> pontiki: you mentioned you don't use dokku. What is your flow?
<pontiki> Dokku makes good use of Docker
JoshGlzBrk has quit [Ping timeout: 256 seconds]
Channel6 has joined #ruby
<pontiki> capistrano is still very much a thing
<pontiki> but it's not all that great a fully provisioning a server
yokel has quit [Ping timeout: 256 seconds]
JoshGlzBrk has joined #ruby
<joelbrewer> pontiki: Hmm. Do I need to "fully provision" a server if I'm simply pushing code?
ponga has joined #ruby
<pontiki> not especially
bronson has joined #ruby
davidhq has joined #ruby
ascarter has joined #ruby
<pontiki> but a lot of folks have adopted the provision, deploy, and forget concept
<pontiki> disposable servers
<nickjj> there's still a lot of things to consider besides just your code
bluOxigen has quit [Read error: Connection reset by peer]
^wald0 has joined #ruby
<joelbrewer> nickjj: fair enough. Like restarting the server, installing dependencies, etc?
bronson has quit [Remote host closed the connection]
<nickjj> who will own the files? how are you handling logging? what's going to restart the server if it goes down? do you want to be able to ssh into the box? plans to protect your host with a firewall?
ponga has quit [Client Quit]
bronson has joined #ruby
bronson has quit [Remote host closed the connection]
bluOxigen has joined #ruby
bronson has joined #ruby
<joelbrewer> nickjj: true. However, this is a very small project (personal website), so simply being able to automate pushing my code would probably suffice for now. I'll add additional automation as necessary..
bronson has quit [Remote host closed the connection]
<nickjj> is the website static?
bronson has joined #ruby
<joelbrewer> nickjj: What is your definition of static?
yokel has joined #ruby
joekain has joined #ruby
bronson has quit [Remote host closed the connection]
<nickjj> are you doing any custom programming in your handlers or just serving templates/html?
<pontiki> it's not static if it's a sinatra app
agjacome has joined #ruby
<joelbrewer> nickjj: yeah, it's a sinatra app.
<joelbrewer> nickjj: that's why I was confused.. haha
<nickjj> yes but what are your handlers doing?
aswen has joined #ruby
<joelbrewer> nickjj: what do you mean by "handlers"? I'm not familiar with that term re sinatra
<nickjj> when i think of a small personal website, i imagine 3-4 pages that do not change and maybe a contact form
<nickjj> i never used sinatra, the thing that maps a url end point to a response
<nickjj> get 'foo' { # stuff goes here } or whatever its syntax is
<bradland> joelbrewer: nickjj is talking about your route defnitions
<bradland> are you doing any work in your routes, or are you just serving pages built from templates?
<nickjj> yeah, what he said
<joelbrewer> nickjj: Gotcha :) Well, to be honest the site isn't complete yet. I was likely going to add some dynamic content though.
zorak8 has quit [Ping timeout: 272 seconds]
<bradland> cool
<joelbrewer> nickjj: Eventually, I would like to add a "portal" for my clients to pay me online
<nickjj> ah, i only brought that up because if you want a simple way to push code and deploy you could have just used github pages for free
<bradland> what we like to do (at my company) is build the static parts using middleman, then mount sinatra applications on URLs where we need application functionality
<bradland> that way we get the benefits of the dead easy performance of the static site, plus the ability to plug in application functionality where needed
<bradland> i wouldn't start there though
<bradland> you're fine starting with sinatra and learning it first
<bradland> it's a fun little framework
aswen has quit [Ping timeout: 245 seconds]
<joelbrewer> bradland: Yeah, I like it. I built a little blog on it a while ago. I just didn't nail the deployment part. I've mostly used heroku...
<bradland> to answer your deployment question more directly, joelbrewer, i would use capistrano if you're deploying to a VPS
<nickjj> what's preventing heroku's free tier from working on this project btw?
psy_ has joined #ruby
<joelbrewer> And pontiki rokku looks cool, but I'm wondering if it's overkill for my current needs?
<nickjj> i'm not a fan of heroku but for small projects it's really handy to quickly get it up and running
<bradland> the git based deployment method works great with heroku because they provide the toolchain
teddyp1cker has quit [Remote host closed the connection]
<bradland> when you try to do a git based deployment workflow on your own, you just end up re-solving the same problems that capistrano has already solved
red_horned_rihno has quit [Quit: Leaving]
<bradland> arguably, capistrano can be (and is by default) git-based anyway
teddyp1cker has joined #ruby
<pontiki> joelbrewer: deploying a simple sinatra app shouldn't require much of anything at all beyond capistrano
<joelbrewer> nickjj: bradland: Yes, I've used heroku in the past, but I wanted to level up my dev ops skills :) Plus I've got an open DO droplet to use
olivier_bK has joined #ruby
<bradland> very cool
<joelbrewer> pontiki: awesome, capistrano sounds like a plan.
<nickjj> joelbrewer, ok. i like learning stuff -- there's more than enough good reason to setup a DO instance in my book
<bradland> so, keep in mind that you're talking 'deployment', not 'provisioning'
noop has joined #ruby
<bradland> which are different once you're flying solo :)
<pontiki> but, if you do want to really level up, then explore dokku, and also things like puppet and / or chef
<nickjj> *that's
<pontiki> for $5 / mo, it's arguably a great learning investment
<nickjj> yeah
<joelbrewer> pontiki: gotcha! I've certainly heard all these buzz-words, I just haven't dug in. What do I gain from using puppet/chef?
<pontiki> puppet/chef/docker/etc are *the* tools of devops
spacemud has quit [Ping timeout: 264 seconds]
<bradland> puppet and chef treat provisioning (the act of installing your web/app/db/etc servers) as code
fantazo has quit [Quit: Verlassend]
<pontiki> i.e.: automatable and repeatable
<joelbrewer> pontiki: awesome.
<nickjj> hey don't forget about ansible
<bradland> so instead of logging in and typing `sudo apt install apache2`, you'd build a chef cookbook to define your server
<bradland> then run it against your server
<bradland> ansible and salt
<pontiki> ansible! i haven't actually looked at ansible yet, but yeat
<pontiki> yeah*
<bradland> there are so damn many devops tools out there right now, it's nuts
<pontiki> a rich and growing field, thank heavens
<bradland> how much python do you need to know in order to use ansible?
<bradland> tooooootally OT... sry
<nickjj> none, it's all configured with yaml
<bradland> whew
<bradland> may give it a shot then
<nickjj> you only have to bust out python if you want to make your own modules
teddyp1cker has quit [Ping timeout: 264 seconds]
<nickjj> but even then you could use ruby, it just needs to export json
<bradland> right now i use sprinkle
<joelbrewer> sounds awesome. And.. back to capistrano. Any good resources for learning it?
<nickjj> but you'll find most modules written in python
larissa has joined #ruby
<bradland> not crazy about the direction they've gone with some of the tools though
<pontiki> devotion to duty: https://xkcd.com/705/
<joelbrewer> I mean, besides google, stack overflow and documentation.. haha
<bradland> sprinkle now requires all 'templates' to go in a single directory, which drives me nuts
<nickjj> joelbrewer, if you're starting from ground 0 -- i'd probably recommend learning to setup a server automatically before deploying code
<bradland> i'd do it by hand once
<bradland> then jump to a devops tool immediately
<pontiki> cap v.3 seems to still be lacking in good documentation
<bradland> really?
<pontiki> lots of complaints from folks
JoshGlzBrk has quit [Ping timeout: 245 seconds]
<bradland> heh
<bradland> folks
<joelbrewer> nickjj: you're saying I shouldn't start with cap?
<bradland> my experience is that "folks" can't be bothered to read more than a few paragraphs before a project "lacks documentation"
<shevy> START WITH CAPS LOCK MAN
<shevy> yes bradland
spacemud has joined #ruby
<nickjj> joelbrewer, i would do what brad said -- setup your server by hand once
<bradland> capistrano solves a different problem
<shevy> documentation sucks
<joelbrewer> I've configured servers by hand before.
dimaursu16 has quit [Ping timeout: 256 seconds]
<shevy> but I read examples
<nickjj> then look into ways of automating it, setup your server again (this time automatically)
<nickjj> then once your server is setup and solid, worry about deploying code
<shevy> I could only learn ruby-gtk because of the demo examples
<bradland> it's important to understand the difference between provisioning and deployment
<pontiki> joelbrewer: have you set up ruby in a production server environment?
<bradland> with heroku, everything is in place: web server, app server, and db server
<bradland> heroku specifies APIs and endpoints for you to connect to
<bradland> the act of pushing your app to heroku is "deployment"
<joelbrewer> pontiki: Yes, I've setup a sinatra app before
<bradland> with DO, you have to install your own web/app/db/etc server
<bradland> that process is called "provisioning"
<joelbrewer> pontiki: I used linode
<bradland> capistrano handles deployment
<bradland> chef/puppet/ansible/salt handle provisioning
<pontiki> does linode already have a working ruby in place?
<bradland> no
<joelbrewer> bradland: Yeah, I've done provisioning.. but it's always been manual ("sudo apt-get install...")
<bradland> ok, cool
<nickjj> although ansible and salt are very good at deploying too
<bradland> if you've done it on your own before, then you should be save to drop right in to a devops tool
freerobby has quit [Quit: Leaving.]
<bradland> the key is to understand what you're automating
JoshGlzBrk has joined #ruby
<bradland> some people jump right in to using a pre-built chef cookbook, then they don't understand what's wrong when they can only get the default vhost to serve
<bradland> when you're starting out, stick to passenger for your app server
<joelbrewer> bradland: gotcha. From my understanding there are two parts that need automation 1) provisioning and 2) deployment -- you all seem to recommend starting with learning how to automate provisioning?
<pontiki> wat?
jheg has quit [Quit: jheg]
<pontiki> setting up nginx+puma is so *easy*
<pontiki> or nginx+unicorn
<joelbrewer> pontiki: Yea, i've already got puma installed on my DO
spacemud has quit [Ping timeout: 240 seconds]
<bradland> yes, if you start with deployment, you'll be deploying your app to a server which cannot run your app :)
<joelbrewer> bradland: well.. I already have a node app running on my droplet :)
<bradland> i only recommend passenger if you've not already learned how to run another app server
<joelbrewer> bradland: so it has nginx+postgres
<bradland> so if you've got puma running, no reason to switch
jheg has joined #ruby
jheg has quit [Client Quit]
<bradland> i was working from the assumption that this was a fresh start
<bradland> if you already have a node app running, you're probably going to want to just hand provision then
<joelbrewer> bradland: I see, I should have clarified. It's a fresh start with regards to ruby. However, it does have nginx running
jheg has joined #ruby
jheg has quit [Client Quit]
<bradland> put puma behind nginx, and jump straight to capistrano deployment
jgt has joined #ruby
<joelbrewer> bradland: cool. Or maybe I should provision another droplet for use with ruby and automate that?
<joelbrewer> there are so many options...
<bradland> if you're feeling spunky
<joelbrewer> haha
<bradland> haha
<bradland> devops is pretty cool
teddyp1cker has joined #ruby
jheg has joined #ruby
<bradland> you'll feel like a wizard when you get it all in place and your provsioning tool runs for 14 minutes straight installing tons of software
<bradland> and at the end you have a complete, working server
<joelbrewer> yeah, I like it. I just feel like I'm in the dark ages with it.
spacemud has joined #ruby
<nickjj> joelbrewer, you can do all of this locally to test
jheg has quit [Client Quit]
<bradland> it's a lot to wrap your head around
<pontiki> there are many folks with lots of arcane knowledge in this area
<nickjj> just grab a virtual machine and run your automation tools against that instead of your DO host
<joelbrewer> bradland: what provisioning tool(s) would you recommend I start with
<bradland> i run a local VM starting from a debian net-inst image
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> but that's because i run debian in production
<bradland> choose whichever distro you use in production
<joelbrewer> bradland: gotcha
<pontiki> then learn another distro :)
<bradland> i'd look at ansible, chef, puppet, and salt
<pontiki> and then learn another provisioning tool :)
jheg has joined #ruby
jheg has quit [Client Quit]
<bradland> take in to account that my goals are to learn as little as possible lol
<bradland> i have a business to run!
<pontiki> i need to follow my own advice here, too
<bradland> (that's tongue in cheek, btw)
<bradland> i do try to manage how much i have to learn though
<bradland> i have to
ziyadb has joined #ruby
<c355E3B> Im a fan of ansible
jheg has joined #ruby
jheg has quit [Client Quit]
<pontiki> well, there's learning, and then there's learning on the job
<joelbrewer> bradland: yeah. same..
agjacome has quit [Read error: Connection reset by peer]
<bradland> i like chef, but it's a lot to learn
<pontiki> i like to maximize the former, minimize the latter
<nickjj> i'm a big fan of ansible too
<joelbrewer> bradland: is there *one* tool that could automate a lot of my provisioning? Starting with 4 tools seems a bit overwhelming
oo_ has joined #ruby
<pontiki> okay, i'm going to look at ansible!!
<c355E3B> Its nice because you dont need to install anything on the server to get started with it
<bradland> ^^ yeah that
<bradland> bootstrapping (used to be) is a pain in the ass
DadoCe has joined #ruby
<bradland> that's why i chose sprinkle way back when
<c355E3B> Also if your going to play around with provisioning servers, i would recomend setting up vagrant
<bradland> c355E3B: do you use ansible with vagrant?
<c355E3B> yes
ta_ has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
<c355E3B> if you write a multi-machine vagrantfile its the best test enviorment ive found to date
dimaursu16 has joined #ruby
<nickjj> i just use it with linux containers, but vagrant works too
oo_ has quit [Ping timeout: 255 seconds]
<joelbrewer> hmmm. there are *so* many tools. Like I said.. is there *one* or *two* tools I could use to automate a lot of my provisioning? Keep in mind, this is just a low-traffic sinatra site..
DadoCe has quit [Ping timeout: 264 seconds]
<c355E3B> they all do the most of the same stuff
zorak8 has joined #ruby
<joelbrewer> Eventually, I would love to learn all of these. But lets say I want to have the site deployed this weekend. What is a solid stack that I could learn in just a couple days?
<nickjj> joelbrewer, a lot of those are only for local testing
blueOxigen has joined #ruby
<c355E3B> if your comming from just sshing into the server and changing stuff ansible is the easiest to get started with
bluOxigen has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
<bradland> ansible for provisioning and capistrano for deployment
TrOuBLeStArTeR has joined #ruby
<joelbrewer> bradland: awesome. That's what I was looking for :)
tectonic has joined #ruby
<bradland> vagrant is great for bootstrapping your VPS container consistently, but IMO, it's not critical
jordanm has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
<joelbrewer> bradland: cool. I've looked into vagrant a little bit but haven't used it on any projects yet.
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
<nickjj> joelbrewer, think about it like this
josephndenton has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lzco has joined #ruby
<nickjj> let's say you have a mac and your DO droplet is running debian -- you could use vagrant to setup debian on your mac, then use ansible to provision the debian box -- now you can use the same provisioning steps to automate both your DO droplet and the vagrant VM running debian
c355E3B has quit [Quit: Leaving]
steffes has joined #ruby
<nickjj> basically you can go nuts testing stuff without blowing up your DO instance every time you want to try something new
<joelbrewer> nickjj: I see. So vagrant lets me mimic my production environment locally
ta_ has joined #ruby
<nickjj> yes
<bradland> if you ever care to be blown away by just how hands-off a software project can make their setup, have a look at how taiga.io does a demo vm
<nickjj> joelbrewer, you can also deploy your code to the VM and have it act as a staging server
<bradland> flat out, the best, most effortless demo deploy i've ever used
<bradland> amazing really
<bradland> i wish my infrastructure were that automated lol
<joelbrewer> bradland: ha. wow.
lzco has quit [Remote host closed the connection]
<riceandbeans> it should be with configuration management
steffes has quit [Ping timeout: 256 seconds]
<bradland> *should*
<bradland> pontiki: is pumactl working these days?
<bradland> or rather, do you use it, or some other process management tool?
<bradland> one of the things that keep us on the passenger wagon is the consistent toolchain
mikepack has joined #ruby
<nickjj> bradland, i wrote my own process management systemv init script
<nickjj> and by wrote i mean copied from gitlab and then stripped/rewrote it to work for unicorn/puma/sidekiq
<bradland> sounds a lot like something i'm not going to do lol
Tuxero has joined #ruby
ptrrr has quit [Quit: ptrrr]
spacemud has quit [Ping timeout: 252 seconds]
<nickjj> hah yeah, it's pretty lame but it runs a proper service
<nickjj> although now a days i would just use systemd
banister has joined #ruby
joelbrewer has quit [Read error: Connection reset by peer]
booly-yam-3799_ has joined #ruby
ta_ has quit [Ping timeout: 240 seconds]
joekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikepack has quit [Ping timeout: 272 seconds]
<bradland> i wish we had the capital for a full time devops guy
<bradland> right now we have to treat much of our infrastructure as a black box
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> plug the box in, turn it on. if it doesn't work, find another box.
giuseppesolinas has joined #ruby
ascarter has joined #ruby
joelbrewer has joined #ruby
<nickjj> ouch
spacemud has joined #ruby
mac__ has quit [Quit: This computer has gone to sleep]
scripore has quit [Quit: This computer has gone to sleep]
ascarter has left #ruby [#ruby]
startupality has joined #ruby
josephndenton has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
mbug has quit [Ping timeout: 276 seconds]
scripore has joined #ruby
mac__ has joined #ruby
c355E3B has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
steffes has joined #ruby
<shevy> just like sex
<bradland> i repeat: if it doesn't work, find another box.
<bradland> hey shevy, have you tried the Rack gem? https://rubygems.org/gems/Rack
booly-yam-3799_ has quit [Ping timeout: 244 seconds]
<shevy> well yes but I never really understood how you can use it for anything standalone really
<shevy> except for the ascii lobster
dfinninger has quit [Ping timeout: 264 seconds]
<shevy> that guy was true flipper
<bradland> apeiros just found it by searching `gem search '^rack$'`
scripore has quit [Client Quit]
mac__ has quit [Client Quit]
teddyp1cker has quit [Remote host closed the connection]
<shevy> I only use the webinterface
<bradland> lol
teddyp1cker has joined #ruby
pdoherty has joined #ruby
<bradland> watch -n3 ./bin/Rack
<bradland> oh yeah baby
<bradland> just drop this right in a tmux tile
<bradland> i'm good to go
<shevy> omg
<shevy> you ARE having sex
<bradland> is it bad that i don't recognize one of these?
<shevy> just like me listening to https://www.youtube.com/watch?v=-7XGSmdrEjk
<bradland> like, literally, have no idea what i'm looking at here
<shevy> no idea
<shevy> today's world is alien to me
ascarter has joined #ruby
KanKava has joined #ruby
<shevy> I am just watching random videos leading me to the dark parts of youtube
<bradland> "related"
<shevy> actually, I am ok with ruby
<shevy> I still don't understand all of ruby, but I am somewhat semi-proficient with it
athan has joined #ruby
<bradland> more like "path to moral turptitude"
<shevy> pffft moral
anaeem1_ has quit [Remote host closed the connection]
<bradland> or turpitude
bronson has joined #ruby
anaeem1 has joined #ruby
<bradland> if you can, you know, actually spell the big words you throw around to impress stangers
ndrei has quit [Read error: No route to host]
ndrei_ has joined #ruby
<bradland> i only know that word because it was in my employment contract, and i brought it up as potential issue
giuseppesolinas has quit [Quit: This computer has gone to sleep]
pdoherty has quit [Ping timeout: 244 seconds]
teddyp1cker has quit [Ping timeout: 255 seconds]
spider-mario has joined #ruby
cyberarm has quit [Ping timeout: 245 seconds]
tus has joined #ruby
jgt1 has joined #ruby
ta_ has joined #ruby
<arup_r> shevy: Yo
josephndenton has joined #ruby
jgt has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 252 seconds]
anaeem1 has quit [Ping timeout: 255 seconds]
tectonic has quit []
Azure has quit [Ping timeout: 255 seconds]
codecop has joined #ruby
dc_ has joined #ruby
<blizzy> hello, I am trying to use the gem RestClient, however, I keep getting the error '301 Moved Permanently (RestClient::MovedPermantly)
<blizzy> '
^wald0 has quit [Quit: ^wald0]
<bradland> blizzy: restclient should follow 301s for GET requests.
<bradland> probably going to need more context
<bradland> what type of request are you making?
<blizzy> a GET request
joekain has joined #ruby
lampd1 has joined #ruby
<bradland> are you using a rescue block?
<bradland> you're probably going to need to post some code
rocknrol_ has joined #ruby
<bradland> you can change the URL and remove any auth tokens, then gist/pastie it
MartynKeigher has quit [Read error: Connection reset by peer]
dc_ has quit [Ping timeout: 245 seconds]
metadave has joined #ruby
anaeem1_ has joined #ruby
commmmodo has quit [Quit: commmmodo]
<rocknrol_> how do I run the ruby file that I have op4en i vim?
<blizzy> ignore the first line indentation. https://gist.github.com/VBlizzard/cd4ef3d93c716f137bd7
ewnd9 has joined #ruby
<arup_r> !ruby %
<arup_r> rocknrol_: ^^^^
<rocknrol_> cool thanks
<arup_r> wc :)
<ips|malc> does anyone ever created a commandline command via thor?
<ips|malc> so that you can execute "thor XZY" ?
blueOxigen has quit [Ping timeout: 240 seconds]
tectonic has joined #ruby
www`bukolay`com has joined #ruby
<www`bukolay`com> hi
* www`bukolay`com hi
www`bukolay`com is now known as `www`bukolay`com
Fire-Dragon-DoL has joined #ruby
leonmaia has quit [Quit: Textual IRC Client: www.textualapp.com]
steffes has quit [Remote host closed the connection]
kl has quit [Ping timeout: 240 seconds]
try has joined #ruby
jeregrine has quit [Ping timeout: 265 seconds]
ewnd9 has quit [Ping timeout: 256 seconds]
rocknrollmarc has joined #ruby
rocknrol_ has quit []
steffes has joined #ruby
bluOxigen has joined #ruby
n1ftyn8 has quit [Ping timeout: 265 seconds]
abaddha has joined #ruby
maZtah has quit [Ping timeout: 272 seconds]
Fire-Dragon-DoL has quit [Client Quit]
Fire-Dragon-DoL has joined #ruby
jeregrine has joined #ruby
cstrahan_ has quit [Ping timeout: 265 seconds]
casual_ has quit [Ping timeout: 245 seconds]
booly-yam-3799_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
tiagonobre__ has quit [Ping timeout: 265 seconds]
rocknrollmarc has quit [Ping timeout: 256 seconds]
n1ftyn8 has joined #ruby
mac__ has joined #ruby
scripore has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
cstrahan_ has joined #ruby
maZtah has joined #ruby
casual_ has joined #ruby
tiagonobre__ has joined #ruby
blizzy has quit [Ping timeout: 264 seconds]
soulcake has joined #ruby
rocknrollmarc has joined #ruby
hgl has quit [Ping timeout: 264 seconds]
rkalfane has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
giuseppesolinas has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
booly-yam-3799_ has quit [Remote host closed the connection]
hgl has joined #ruby
booly-yam-5635 has joined #ruby
Kharma has quit [Ping timeout: 252 seconds]
electrical has quit [Read error: Connection reset by peer]
PhilK has quit [Read error: Connection reset by peer]
andrewstewart has quit [Read error: Connection reset by peer]
jeregrine has quit [Read error: Connection reset by peer]
sagittarian has joined #ruby
_chs_ has joined #ruby
incomprehensibly has joined #ruby
electrical has joined #ruby
PhilK_ has joined #ruby
_chs_ is now known as Guest81204
andrewstewart has joined #ruby
zrl has joined #ruby
steffes has quit []
jeregrine has joined #ruby
janmuffino has quit [Ping timeout: 246 seconds]
lzco has joined #ruby
blizzy has joined #ruby
joekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joekain has joined #ruby
jheg has joined #ruby
joelbrewer has quit [Ping timeout: 272 seconds]
Morkel has quit [Ping timeout: 276 seconds]
kl has joined #ruby
Morkel has joined #ruby
booly-yam-5635 has quit [Ping timeout: 246 seconds]
staticshock has quit [Ping timeout: 264 seconds]
russt has quit [Quit: russt]
Akagi201_ has joined #ruby
commmmodo has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
lzco has quit [Remote host closed the connection]
<porfa> hmm i need to select a div class that has spaces in it.. how to?… for ie.. neo.at_css('.deal-offer-special-omg-buy-now’) whatif “deal-title” was in fact “deal offer special omg buy now” ?
Akagi201 has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
StableEvan has joined #ruby
<ericwood> porfa: is "deal-title" an attr on the div?
Dolphi has quit [Quit: Leaving]
Kharma has joined #ruby
lzco has joined #ruby
<porfa> ericwood: no
<apeiros> porfa: a css class can't have spaces
<apeiros> and to match multiple classes, you do: .class1.class2.class3.…
bronson has joined #ruby
<ericwood> ask whoever wrote that markup to do a better job :P
sundjango has joined #ruby
mrmargolis has joined #ruby
sundjango has quit [Remote host closed the connection]
booly-yam-5635 has joined #ruby
zorak8 has quit [Ping timeout: 264 seconds]
cstrahan_ has quit [Ping timeout: 276 seconds]
fuhgeddaboudit has joined #ruby
<waxjar> porfa: just to clarify <div class="one two"></div> has two classes ("one" and "two"), not a single one ("one two")
abaddha has quit [Remote host closed the connection]
`www`bukolay`com has quit []
hs366 has quit [Ping timeout: 256 seconds]
fuhgeddaboudit has quit [Remote host closed the connection]
<porfa> waxjar: thank you, that cleared my problem and i fetched what i wanted :) !
bronson has quit [Ping timeout: 264 seconds]
fuhgeddaboudit has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
lzco has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
athan has quit [Ping timeout: 255 seconds]
nfk has quit [Quit: yawn]
mrmargolis has quit [Remote host closed the connection]
maximski has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
SOLDIERz has quit [Quit: Be back later ...]
fandi has quit [Quit: Leaving]
maximski has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mbug has joined #ruby
maximski has quit [Max SendQ exceeded]
athan has joined #ruby
mikepack has joined #ruby
maximski has joined #ruby
nfk has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
yokel has joined #ruby
maximski has quit [Max SendQ exceeded]
fgo has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
Kharma has quit [Ping timeout: 252 seconds]
maximski has joined #ruby
c355E3B has quit [Quit: Leaving]
chrishough has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
Kharma has joined #ruby
timanema has joined #ruby
nanoyak has joined #ruby
chrisseaton has quit [Ping timeout: 265 seconds]
mloveless has joined #ruby
Morkel_ has joined #ruby
Limix has joined #ruby
featheryahn_ has quit [Ping timeout: 265 seconds]
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
rocknrollmarc has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ptrrr has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
n1ftyn8 has quit [Ping timeout: 245 seconds]
<centrx> ips|malc, maybe the file has to be named lowercase, foo.thor ?
oo_ has joined #ruby
sdwrage has joined #ruby
LouisRoR has joined #ruby
jaygen has joined #ruby
chrisseaton has joined #ruby
jaygen has quit [Client Quit]
ta_ has joined #ruby
Tomasso has joined #ruby
jaygen_ has quit [Ping timeout: 256 seconds]
sdwrage has quit [Client Quit]
oo_ has quit [Ping timeout: 245 seconds]
sdwrage has joined #ruby
sdwrage has quit [Client Quit]
<Tomasso> is there any bundler file generator? may be from a gem list command ?
Ankhers has quit [Ping timeout: 250 seconds]
booly-yam-5635 has quit [Ping timeout: 245 seconds]
Trynemjoel2 has quit [Ping timeout: 256 seconds]
anaeem1 has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 276 seconds]
yokel has quit [Ping timeout: 276 seconds]
timonv_ has joined #ruby
Sawbones_ has joined #ruby
nanoyak has joined #ruby
anaeem1_ has joined #ruby
Trynemjoel has joined #ruby
featheryahn_ has joined #ruby
cstrahan_ has joined #ruby
studiotate has joined #ruby
Nanuq has joined #ruby
booly-yam-5635 has joined #ruby
ta_ has joined #ruby
studiotate has quit [Client Quit]
Hobogrammer has joined #ruby
<ips|malc> centrx, it is lowercase already
teddyp1cker has joined #ruby
_5kg has joined #ruby
<centrx> Tomasso, "bundler file" -> "Gemfile" ?
Sawbones_ has quit [Ping timeout: 265 seconds]
yokel has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
antgel has joined #ruby
<ips|malc> if i run $bundle on the command line after having put a gem into my Gemfile - isn't it supposed to place the Gem into /vendor folder somewhere? It doesn't do that for me but instead to some global gem directory
oz` is now known as oz
<centrx> ips|malc, bundle installs onto the system/user
Tomasso has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 245 seconds]
<centrx> ips|malc, You can specify a --path to install with bundle, but vendor/ is not really used much for gems that are publicly available
<centrx> ips|malc, You don't need to distribute a publicly available gem with your app
julieeharshaw has joined #ruby
<ips|malc> i've built a gem, which includes some thor scripts
<ips|malc> i want someone, who runs "gem install myapp" to have these scripts into his local directory
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
booly-yam-5635 has quit [Ping timeout: 272 seconds]
Guest81204 is now known as _chs_
<centrx> ips|malc, It seems like you should either put the scripts in the app, not as a separate gem
<ips|malc> i thought if i use bundler instead of gem then my script is going to end up at that place, where the user has called it
jschoolcraft has quit [Read error: Connection reset by peer]
<centrx> ips|malc, or you should put the gem separately on rubygems
<ips|malc> the gem is on rubygems already
Trieste_ has joined #ruby
<centrx> ok then you just add it as a dependency
Trieste has quit [Read error: Connection reset by peer]
pawprint has joined #ruby
abaddha has joined #ruby
<ips|malc> but how to load these scripts then?
<ips|malc> i have an app, that has the gem (which contains the scripts) as dependency defined
<ips|malc> the Gemfile of the app has the appropiate entry
`ph8 has joined #ruby
<ips|malc> but now i want the user to have these scripts available inside of the app after he did the git clone
_chs_ is now known as Guest422
mbug has quit [Ping timeout: 276 seconds]
Trieste_ has quit [Changing host]
Trieste_ has joined #ruby
Trieste_ is now known as Trieste
Trieste has quit [Max SendQ exceeded]
<ips|malc> i think the problem is, that the gem with the scripts, don't register them globally, so there is no chance for the app to make use of them
wallerdev has joined #ruby
booly-yam-5635 has joined #ruby
yokel has quit [Ping timeout: 272 seconds]
Trieste has joined #ruby
<ericwood> is there a way to check array equality without taking order into account?
Guest422 is now known as _chs_
<ericwood> I *know* there has to be in the stdlibs
pawprint has quit [Ping timeout: 265 seconds]
<apeiros> ericwood: sure. but I don't think there's something in stdlib
<ericwood> apeiros: I could just keep calling sort :D
<ericwood> :\
<apeiros> but one question: should [1,2,2].unordered_equal?([1,1,2]) be true or false?
<ericwood> I mean the O of this is already n^2 so fuck it
<apeiros> o0
<ericwood> apeiros: in my case, technically that wouldn't happen, but I'd be okay with true
<apeiros> and is eql? instead of == acceptable?
TrOuBLeStArTeR has quit [Ping timeout: 255 seconds]
<ericwood> from what I can tell, yas
<apeiros> ary1.to_set == ary2.to_set should work I think
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tricon has joined #ruby
<apeiros> require 'set', of course
jefus has joined #ruby
pdoherty has joined #ruby
<ericwood> oh wow I can't believe I forgot about set
<ericwood> thanks, I like that solution a lot
Ankhers has joined #ruby
jefus__ has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
jidar has quit [Quit: stuff.]
<apeiros> yw
jidar has joined #ruby
pdoherty has quit [Ping timeout: 255 seconds]
abaddha has quit [Quit: goodbye...]
commmmodo has quit [Quit: commmmodo]
mattwildig has joined #ruby
agjacome has joined #ruby
<shevy> even with a leading ' '
<shevy> apeiros.strip!
bronson has quit [Ping timeout: 255 seconds]
n1ftyn8 has joined #ruby
commmmodo has joined #ruby
sinkensabe has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
Tricon has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
<ericwood> please don't strip
rkalfane has joined #ruby
_5kg has joined #ruby
<apeiros> leading ' '?
<porfa> dat_planeo.at_css('.deal-image a')['href'].match( /(?:[^\/]*\/){4}([^\/]*)/ )[1].to_s <… irb outputs what i need.. when i run the .rb, it complains about this line.. now this is something that never happend to me before
<centrx> >> ' '.mount
<eval-in_> centrx => undefined method `mount' for " ":String (NoMethodError) ... (https://eval.in/244379)
<apeiros> porfa: pro tip, "complains" is useless. paste the actual exception.
<porfa> heya centrx how’s it going? my mysqldatabe is gaining weight! = )
<porfa> apeiros: ok
<centrx> wow
xtsee has quit []
devdazed has joined #ruby
tectonic has quit []
fgo has quit [Ping timeout: 245 seconds]
mbug has joined #ruby
dotix has joined #ruby
Nahra``` has quit [Remote host closed the connection]
Nahra``` has joined #ruby
<porfa> the script and the exeption at the end.. this never happend to me.. wtv irb outputs me as ok, always works on the .rb
<apeiros> dat_planeo.at_css('.deal-image a')['href'].match( /(?:[^\/]*\/){4}([^\/]*)/ )[1].to_s contains two calls to []. ['href'] and [1]. one of the expressions before that evaluates to nil.
<porfa> ok
<kl> hmm
<kl> how does ruby scope?
ziyadb has quit [Quit: Connection closed for inactivity]
<kl> it's not lexical, is it
athan has quit [Read error: Connection reset by peer]
athan has joined #ruby
tectonic has joined #ruby
<apeiros> kl cross posts.
banister has joined #ruby
ta_ has joined #ruby
pawprint has joined #ruby
pawprint has quit [Changing host]
pawprint has joined #ruby
<apeiros> kl: cross posting without informing all channels where you post is considered rude since experience shows that most cross posters don't update other channels.
sundjango has joined #ruby
<kl> apeiros: i was expecting a 2-word answer, and i pretty much never do it. chill your beans.
<apeiros> you don't tell me when to chill, k?
<Cat_1> *gets some popcorn*
<Cat_1> this gonna be good
c355E3B has joined #ruby
<kl> Ignoring ALL from apeiros
<kl> Sorry for the anti-climax, but yes I do
<apeiros> I'm fine with that.
<Cat_1> The entitlement is strong with this one
<havenwood> kl: if you must cross-post it's just a curtesy to say so in the channels
<kl> havenwood: I know dude. I pretty much never do it, and I'm generally very active on Freenode so it's a rarity.
<kl> Being out-of-practice in doing such things had me forget its entailing etiquette
<waxjar> #ruby should have cross-post-bot :P
<apeiros> there's quite a couple of things #ruby should have :-|
iMe has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 276 seconds]
JDiPierro has joined #ruby
<kl> Damn. A an unproportionately large result to a very simple question (if I'd have cross-posted a question with a large explanation, I'd have certainly mentioned it)
* kl scrolls up trying to look for the actual question
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tectonic has quit []
<porfa> apeiros: i tried to fix that but i could, i guess i didn’t understand what you said by “one of the expressions before that evaluates to nil.” i thouhg i could put the first part in a string, then perform the match on the string, but my rb is outputting the same error..
<apeiros> I guess I'll go back to my routine of kicking people who cross post. amazingly there's less drama in that.
<apeiros> porfa: String#match returns nil if the expression did not match.
<porfa> (what is cross post? is it asking the same help in several channels at the same time? )
<apeiros> porfa: yes
metadave has joined #ruby
<kl> porfa: yeah
tier has joined #ruby
<porfa> well, that’s worst than being a prostitute.. at least they get paid.
metadave has quit [Client Quit]
<kl> i'd say it's a large offense if it's a complex answer requiring thought/effort, maybe not so much if it's a 1-word answer (and a question rarely known the answer of)
<centrx> it's more like being a prostitute is okay as long as you tell everyone you're doing it
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has quit [Quit: leaving]
iMe has joined #ruby
* apeiros doesn't see the relation to being a prostitute. it's a job.
michaeldeol has joined #ruby
ghostlines has quit [Read error: Connection reset by peer]
<porfa> you sound like my girlfriend O_o
oo_ has joined #ruby
<apeiros> don't worry, I'm not.
sea_local has quit [Remote host closed the connection]
<porfa> hah!
vifino has joined #ruby
Limix has quit [Quit: Limix]
<porfa> hmmm, what should i read to fix my issue?
<porfa> “one of the expressions before that evaluates to nil.” > dat_planeo.at_css('.deal-image a')['href'].to_s.match( /(?:[^\/]*\/){4}([^\/]*)/ )[1].to_s
ghostlines has joined #ruby
<porfa> does this mean irb is worthless?.. because it sure worked fine on irb
kaspertidemann has quit []
<centrx> depends on what dat_planeo is?
<c355E3B> you are allowed to split it onto diffrent lines
c355E3B has quit [Quit: Leaving]
Limix has joined #ruby
<porfa> what i want is to output only the “336064659“ (and for cross-help sake, the regex came from the regex channel about 30 mins ago, don’t wanna be a hoe if you know what i mean) ie —> /ofertas/lisboa/oportundade-produto-recondicionado-topo-de-gama-a-um-preco-nunca-visto-portatil-hp-elitebook-2540p/336064659/"
kaspertidemann has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
<porfa> all of the base urls from the offers have four / before the offer ID, i need to fetch the offer id from the URL because i’ts nowhere to be found on the html
klmlfl has joined #ruby
StableEvan has quit [Quit: Stuff to do]
arup_r has quit [Quit: Leaving.]
Akuma has joined #ruby
joekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joekain has joined #ruby
Limix has quit [Ping timeout: 252 seconds]
Rayford has joined #ruby
Azure has joined #ruby
it0a has joined #ruby
Limix has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
scripore has quit [Quit: This computer has gone to sleep]
mac__ has quit [Quit: This computer has gone to sleep]
<Rayford> Anyone know of a good SLA Tracking framework or mini web app?
Rayford has left #ruby [#ruby]
Rayford has joined #ruby
mrmargolis has joined #ruby
Limix has quit [Client Quit]
teddyp1cker has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
Megtastique has quit []
Zai00 has joined #ruby
Akuma has quit [Quit: So long sukkas!]
DadoCe has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
tectonic has joined #ruby
julieeharshaw has quit [Quit: ZZZZZzzzz]
Rayford has quit [Quit: Rayford]
julieeharshaw has joined #ruby
teddyp1cker has quit [Ping timeout: 276 seconds]
cantonic has joined #ruby
DadoCe has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
noop has quit [Ping timeout: 264 seconds]
soxet has quit [Remote host closed the connection]
PanzerModern has quit [Remote host closed the connection]
Trynemjoel2 has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
Rayford has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
mrmargolis has quit [Remote host closed the connection]
Jrz has joined #ruby
josephndenton has joined #ruby
sundjango has quit [Ping timeout: 255 seconds]
Trynemjoel has quit [Ping timeout: 272 seconds]
tier has quit [Remote host closed the connection]
grn has joined #ruby
ta_ has joined #ruby
<bradland> Rayford: SLA as in service level agreement?
<Rayford> ya
<bradland> not in ruby. munin, nagios, cacti, etc are the usual go to tools
<Rayford> Think: Track Number of hours a system in down in a month, etc
<Rayford> ya
soxet has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<Rayford> looking arund to see if there is a framework or something built that can be integrated itto a fw programs
<Rayford> few*
commmmodo has quit [Quit: commmmodo]
it0a has quit [Ping timeout: 245 seconds]
ndrei_ has quit [Ping timeout: 256 seconds]
tier has joined #ruby
ndrei has joined #ruby
bronson has joined #ruby
it0a has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
jerematic has joined #ruby
ixti has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
rpag has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
danzilio has joined #ruby
danzilio has quit [Max SendQ exceeded]
wallerdev has quit [Quit: wallerdev]
pawprint has quit [Ping timeout: 265 seconds]
<bradland> Rayford: if you don't get any other responses, you could look in to building something yourself using rrdruby.
danzilio has joined #ruby
g-nom3 has quit [Quit: Leaving.]
<bradland> the std-lib has popen, which can be used to wrap shell tools like ping, telnet, etc
<bradland> you can write basic service tests using those tools, then wrap them in popen (and friends) and log the results to rrd
<bradland> which is pretty much what most monitoring frameworks do
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grn has quit []
<Rayford> agreed
Rayford has quit [Quit: Rayford]
chipotle has quit [Quit: cheerio]
fgo has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
dotix has quit [Quit: Leaving]
anaeem1_ has quit [Remote host closed the connection]
dc_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
taiansu has quit [Remote host closed the connection]
cocotton has joined #ruby
ta_ has joined #ruby
tjohnson has joined #ruby
einarj has joined #ruby
decoponyo has quit [Quit: Leaving...]
einarj_ has joined #ruby
joekain has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
parduse has quit []
<bradland> doing the codeacademy ruby course
lolmaus has quit [Quit: Konversation terminated!]
olivier_bK has quit [Ping timeout: 276 seconds]
<bradland> do people accidentally learn ruby doing this?
Morkel has quit [Quit: Morkel]
Darryl___ has quit [Quit: Connection closed for inactivity]
tier has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 276 seconds]
enebo has quit [Quit: enebo]
ixti has quit [Ping timeout: 240 seconds]
^wald0 has joined #ruby
Sawbones_ has joined #ruby
Spami has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
<centrx> They say they do
bklane has joined #ruby
^wald0 has quit [Client Quit]
athan has quit [Ping timeout: 255 seconds]
luriv has joined #ruby
Sawbones_ has quit [Ping timeout: 245 seconds]
danzilio has quit []
ssssssssssssssss has joined #ruby
cantonic has quit [Quit: cantonic]
athan has joined #ruby
SparkMasterTape has quit [Quit: Leaving]
olivier_bK has joined #ruby
mynameis has quit [Quit: Leaving]
amclain has joined #ruby
chipotle has joined #ruby
jakesyl has joined #ruby
jerematic has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
iMe has quit [Ping timeout: 255 seconds]
bklane has quit [Read error: Connection reset by peer]
oleo has quit [Ping timeout: 245 seconds]
iMe has joined #ruby
nuck has joined #ruby
Tricon has joined #ruby
JDiPierro has quit [Remote host closed the connection]
bklane has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
iamninja has joined #ruby
<porfa> https://gist.github.com/anonymous/cda7fee04b0e67335341 line 22 runs fine on irb, but when running script it errors out, i was told that ““one of the expressions before that evaluates to nil.”” how can i fix this?
Jrz has quit [Quit: Computer has gone to sleep.]
<tobiasvl> that was a weird exception
<porfa> sql_planeo.rb:22:in `block in <main>': undefined method `[]' for nil:NilClass (NoMethodError)
<tobiasvl> there you go
<porfa> but it runs on irb, id ont understand why it fails when running the .rb
oleo has joined #ruby
<tobiasvl> then you either have no '.container a' or you don't have any matches for /(?:[^\/]*\/){4}([^\/]*)/
^wald0 has joined #ruby
<bradland> you're iterating over the values in planeo right?
klmlfl has quit [Remote host closed the connection]
<bradland> and you're calling match on them on line 22
<bradland> match will return nil if nothing is found
C1V0 has joined #ruby
<bradland> but you're calling [1] without checking to see if match returned nil
<bradland> before line 22, add: puts planeo
<bradland> and have a look at what you get when you run the script
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland> the last output before it dies will be the string that fails to match with your regex
<bradland> that's debugging
<bradland> use puts to write information that you can use to figureout what's broken
<bradland> any time you get a "nil" exception, something in your code is returning nil
<bradland> and nil has very few methods, so you'll get a "no method error"
_5kg has joined #ruby
^wald0 has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
<bradland> as tobiasvl pointed out, you call match twice in that method chain
tectonic has quit []
<bradland> i would split those out so you can `next` when you encounter a nil
rkalfane has joined #ruby
<porfa> the thing is, every dat_planeo has an url, and all the url’s match the regex expression… i want to keep the digits after the fourth slash /
^wald0 has joined #ruby
<porfa> ( puts before it, did nothing)
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
<bradland> sry, i might have said `puts planeo` earlier
<bradland> or something
^wald0 has quit [Client Quit]
<bradland> also, you should indent the contents of your do/end block so your code is easier to read
schickung has joined #ruby
fryguy9 has joined #ruby
fryguy9 has quit [Client Quit]
<bradland> porfa: line 31 is, frankly, ridiculous
<bradland> why create a time string only to parse it?
jheg has quit [Quit: jheg]
lkba has quit [Ping timeout: 276 seconds]
<porfa> because i just needed to send the DATE datatype to the mysql db and i’ve started learning ruby about 3 weeks ago, and ruby +sql last night
<bradland> ok, but think about that for a second
lkba has joined #ruby
<porfa> so as much of ridiculos it might seem… i dont even understand what you’re saying
<bradland> i get what you're saying
<bradland> Date.parse(Time.now.to_s).strftime("%Y-%m-%d")
<porfa> (no prior knowledge, only programing experience : MS-DOS BATCH FILES )
metadave has joined #ruby
<bradland> ok, let's walk through that then
<porfa> ok, thank you! :) help help learning is awesome
<bradland> starting from the inside, you're using Time.now.to_s
bklane has quit [Ping timeout: 256 seconds]
<bradland> i want to teach you how to answer your own questions too, so you can figure this out without IRC
<bradland> or someone looking over your shoulder
<bradland> so, you want today's date formatted as "%Y-%m-%d"
parduse has joined #ruby
g-nom3 has joined #ruby
g-nom3 has quit [Max SendQ exceeded]
pdoherty has joined #ruby
<bradland> what led you to use Date.parse?
<porfa> yes, if i could add the hours, minutes and seconds it would be even better.
<porfa> stackoverflow site did.
<bradland> ok, let's start from that, and see how we'd figure that out
<bradland> so you want a time formatted a specific way, right?
<bradland> let's look at the ruby docs before we hit stackoverflow
<bradland> because copy/paste programming will only take you so far
<porfa> yeah, in a mysql db way.. i even read about (:db) method but i couldn’t do it
<bradland> so, mysql expects dates in a specific format, and we need a time string in that format, right?
<porfa> yep
<bradland> let's accomplish that, starting with the format you want
^wald0 has joined #ruby
g-nom3 has joined #ruby
<bradland> let's describe that
<bradland> YYYY-MM-DD HH:MM:SS
<bradland> yeah?
<bradland> do we need time zone?
bklane has joined #ruby
<bradland> sry, i'm probably making that too complicated
<bradland> let's not worry about time zones right now and just get the date format sorted out
ssssssssssssssss has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<bradland> so you need a time in the format YYYY-MM-DD HH:MM:SS
ta_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
<bradland> do you know the website for the official ruby documentation?
<bradland> have a i lost you porfa?
pdoherty has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
<centrx> he must have fallen into a different time zone
<bradland> well, i'm going to head to the gym
<bradland> so gl;hf
<gr33n7007h> >> Time.now.strftime("%F %T")
<eval-in_> gr33n7007h => "2015-01-18 21:37:57" (https://eval.in/244423)
giuseppesolinas has joined #ruby
<bradland> yeah, but telling him that doesn't teach him how to find that answer
<bradland> the key is to look for the ruby core class that sounds like it will do what you want
<bradland> then look through the available methods
Spami has quit [Quit: This computer has gone to sleep]
<gr33n7007h> google has the answer for everything :)
ixti has joined #ruby
<shevy> YES
klmlfl has joined #ruby
<shevy> GOOGLE RULES YOUR LIFE
<bradland> google is derp for newbs
<bradland> because they just copy paste
<bradland> they'd be better off sticking to the docs first, then googling
fuhgeddaboudit has quit [Remote host closed the connection]
fgo has joined #ruby
<bradland> guarantee you that's how he ended up using Date#parse to parse the output of Time.now.to_s
<bradland> which hurts my bwain
<gr33n7007h> haha
<bradland> Date.parse(Time.now.to_s).strftime("%Y-%m-%d")
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland> that's the line from the file that set off the 5 alarm fire
sundjango has joined #ruby
tier has joined #ruby
timonv_ has quit [Quit: Leaving...]
* ericwood opens #ruby to see what's up
* ericwood sees Date.parse, leaves
<porfa> sorry, phonecall let me catch up
fgo has quit [Ping timeout: 256 seconds]
sundjango has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 276 seconds]
<porfa> well… i can understand how stupid that is, but some douche answerd it on stackoverflow when a guya sked for that date format… sorry guys, total newb
^wald0 has quit [Quit: ^wald0]
ptrrr has quit [Quit: ptrrr]
mostlybadfly has joined #ruby
taiansu has joined #ruby
michaeldeol has joined #ruby
timonv_ has joined #ruby
YamakasY has quit [Excess Flood]
bklane has quit [Read error: Connection reset by peer]
rpag has quit [Quit: Leaving]
klmlfl has quit [Remote host closed the connection]
taiansu has quit [Ping timeout: 264 seconds]
timonv_ has quit [Remote host closed the connection]
bklane has joined #ruby
Sawbones_ has joined #ruby
Sawbones_ has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby
zorak8 has joined #ruby
russt has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
cocotton has quit [Remote host closed the connection]
^wald0 has joined #ruby
bklane has quit []
omosoj has joined #ruby
^wald0 has quit [Client Quit]
YamakasY has joined #ruby
ghr has joined #ruby
ghr has quit [Client Quit]
athan has quit [Ping timeout: 264 seconds]
teddyp1cker has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
athan has joined #ruby
Adran has quit [Remote host closed the connection]
Adran has joined #ruby
teddyp1cker has quit [Ping timeout: 244 seconds]
aspiers_ is now known as aspiers
danman has joined #ruby
oleo has quit [Quit: Verlassend]
sundjango has joined #ruby
oleo has joined #ruby
danman has quit [Client Quit]
maximski has quit [Ping timeout: 252 seconds]
russt has quit [Quit: russt]
tokik has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
russt has joined #ruby
DadoCe has joined #ruby
davedev2_ has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
roshanavand has joined #ruby
sagittarian has quit [Ping timeout: 252 seconds]
roshanavand has left #ruby [#ruby]
Tricon has quit [Ping timeout: 276 seconds]
roshanavand has joined #ruby
Channel6 has quit [Quit: Leaving]
JDiPierro has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
sundjango has quit [Ping timeout: 276 seconds]
fedexo has joined #ruby
DadoCe has quit [Ping timeout: 245 seconds]
tier has quit [Remote host closed the connection]
pawprint has joined #ruby
^wald0 has joined #ruby
sundjango has joined #ruby
sukki has joined #ruby
fgo has joined #ruby
^wald0 has quit [Client Quit]
pawprint has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
sukki_ has joined #ruby
bklane has joined #ruby
roshanavand has quit [Quit: roshanavand]
roshanavand has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
bluenemo has quit [Quit: Verlassend]
Azure has quit [Remote host closed the connection]
^wald0 has joined #ruby
hiyosi has joined #ruby
^wald0 has quit [Client Quit]
<gr33n7007h> porfa, http://imgur.com/XDPRiyt #=> seems to work out of irb few tweaks
Azure has joined #ruby
Azure has quit [Client Quit]
<shevy> is github accelerating evolution of software?
davedev24_ has quit [Ping timeout: 252 seconds]
<porfa> that looks beautiful gr33n7007h ! helpadudeout.rb hah!
sukki_ has quit [Quit: Page closed]
KanKava has quit [Quit: leaving]
davedev24_ has joined #ruby
fedexo has quit [Ping timeout: 255 seconds]
sukki has quit [Quit: leaving]
iMe has quit [Ping timeout: 264 seconds]
olivier_bK has quit [Ping timeout: 276 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
carvantes has joined #ruby
sagittarian has joined #ruby
^wald0 has joined #ruby
^wald0 has quit [Client Quit]
iMe has joined #ruby
oo_ has joined #ruby
Azure has joined #ruby
roshanavand has quit [Quit: roshanavand]
MrSamuel has joined #ruby
freerobby has joined #ruby
roshanavand has joined #ruby
<MrSamuel> Is there an activerecord/rails specific room?
<jhass> MrSamuel: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
tvw has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
greenbagels has joined #ruby
goodenough has joined #ruby
LouisRoR has quit []
giuseppesolinas has quit [Quit: Leaving]
codecop has quit [Quit: Išeinu]
cantonic has joined #ruby
^wald0 has joined #ruby
^wald0 has quit [Client Quit]
tvw has quit [Ping timeout: 252 seconds]
bklane has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
blackmesa has joined #ruby
rapunzel_ has joined #ruby
bklane has joined #ruby
meth has joined #ruby
chrishough has joined #ruby
rapunzel_ has quit [Client Quit]
TheNet has joined #ruby
einarj_ has quit [Remote host closed the connection]
charliesome has joined #ruby
try has quit [Ping timeout: 245 seconds]
Joufflu has joined #ruby
commmmodo has joined #ruby
^wald0 has joined #ruby
antorcha has joined #ruby
athan has quit [Ping timeout: 246 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
spider-mario has quit [Remote host closed the connection]
^wald0 has quit [Client Quit]
charliesome has quit [Quit: zzz]
huddy has joined #ruby
roshanavand has quit [Quit: roshanavand]
martinium has joined #ruby
jheg has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
^wald0 has joined #ruby
jheg has quit [Ping timeout: 276 seconds]
AlexRussia has quit [Ping timeout: 255 seconds]
antgel has quit [Ping timeout: 272 seconds]
pdoherty has joined #ruby
martinium has quit [Ping timeout: 252 seconds]
Joufflu has joined #ruby
mattwildig has quit []
AlexRussia has joined #ruby
bklane has quit [Read error: Connection reset by peer]
^wald0 has quit [Client Quit]
antorcha has quit [Quit: antorcha]
bklane has joined #ruby
athan has joined #ruby
pdoherty has quit [Ping timeout: 245 seconds]
roshanavand has quit [Ping timeout: 252 seconds]
JDiPierro has quit [Remote host closed the connection]
mbug has quit [Quit: Leaving]
fgo has joined #ruby
charliesome has joined #ruby
DadoCe has joined #ruby
taiansu has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
^wald0 has joined #ruby
ta has joined #ruby
^wald0 has quit [Client Quit]
fgo has quit [Ping timeout: 245 seconds]
AlexRussia has joined #ruby
lzco has joined #ruby
taiansu has quit [Ping timeout: 245 seconds]
bashusr has quit [Ping timeout: 264 seconds]
meth has left #ruby [#ruby]
DadoCe has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
PanzerModern has joined #ruby
hmsimha has joined #ruby
pauly_oc has joined #ruby
sdwrage has joined #ruby
ta has quit [Ping timeout: 276 seconds]
Dolphi has joined #ruby
^wald0 has joined #ruby
carvantes has quit [Ping timeout: 265 seconds]
CpuID has joined #ruby
CpuID has joined #ruby
Alina-malina has quit [Ping timeout: 272 seconds]
russt has quit [Quit: russt]
lesterc has quit [Ping timeout: 272 seconds]
bronson has joined #ruby
bklane has quit [Read error: Connection reset by peer]
gawd has joined #ruby
iMe has quit [Ping timeout: 245 seconds]
Alina-malina has joined #ruby
iMe has joined #ruby
Tricon has joined #ruby
bklane has joined #ruby
russt has joined #ruby
<bradland> how goes it porfa? you ferret out those no method errors?
<bradland> damn nils!
bronson has quit [Ping timeout: 264 seconds]
JoshGlzBrk has joined #ruby