apeiros changed the topic of #ruby to: Ruby 2.1.0; 2.0.0-p353; 1.9.3-p484: 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
tusted has quit [Client Quit]
spider-mario has joined #ruby
<centrx> theskript, You poisoned the well so it is hard to take you seriously.
<theskript> why cant i combine arrays....
jrhorn424 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
klaut has joined #ruby
<theskript> ;[
burlyscudd has quit [Ping timeout: 260 seconds]
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
mojjojo has quit [Client Quit]
predator117 has joined #ruby
mojjojo has joined #ruby
jhass is now known as jhass|off
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<theskript> yes.............
derek_c has joined #ruby
<theskript> i figured out how to combine array (zip flatten compact)....why ruby has weird terms like this
<theskript> oO
<centrx> Those are the standard terms everywhere. What do you suggest they be called instead?
predator217 has quit [Ping timeout: 260 seconds]
figglebe_ has quit [Ping timeout: 252 seconds]
<theskript> never seen it in C type languages....
<centrx> C does not have arrays.
<centrx> as a separate data type
<theskript> yes it dose...http://us2.php.net/array_combine
[krisbulman] is now known as krisbulman
ykk` has joined #ruby
<ykk`> hello everyone
RoryHughes has quit []
<ykk`> Does anyone here have any experience with the facebook api?
spider-mario has quit [Read error: Connection reset by peer]
mark_locklear has quit [Ping timeout: 272 seconds]
ringaroses has joined #ruby
koell has quit [Read error: Connection reset by peer]
Aryasam has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
dingus_khan has quit [Remote host closed the connection]
kotk1 has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
Hanmac has joined #ruby
jrhorn424 is now known as zz_jrhorn424
solars has quit [Ping timeout: 245 seconds]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
Hanmac1 has quit [Ping timeout: 252 seconds]
srji_ has joined #ruby
PLejeck has quit [Max SendQ exceeded]
PLejeck has joined #ruby
PLejeck has quit [Changing host]
PLejeck has joined #ruby
mengu has quit [Ping timeout: 246 seconds]
yakko has quit [Remote host closed the connection]
srji has quit [Ping timeout: 252 seconds]
RoryHughes has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
Lewix has joined #ruby
VTLob has quit [Quit: VTLob]
slowcon has quit [Quit: slowcon]
jonno11 has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #ruby
mikepack has joined #ruby
Aryasam has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
MyStartx has joined #ruby
saarinen has joined #ruby
slowcon has joined #ruby
Aryasam has joined #ruby
Hiall has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
francisfish has quit [Ping timeout: 252 seconds]
Lewix has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
slowcon has quit [Client Quit]
brolivier has joined #ruby
DaniG2k has quit [Quit: leaving]
mikepack has joined #ruby
nszceta has quit [Remote host closed the connection]
brolivier has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
angusiguess has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Drone4four has left #ruby ["Leaving"]
evilbug has joined #ruby
apeiros has quit [Remote host closed the connection]
slowcon has joined #ruby
apeiros has joined #ruby
ringaroses has quit [Quit: Leaving]
silicong has joined #ruby
silicong has quit [Excess Flood]
saarinen has quit [Quit: saarinen]
silicong has joined #ruby
silicong has quit [Excess Flood]
aspires has quit []
MyStartx has quit [Ping timeout: 245 seconds]
silicong has joined #ruby
silicong has quit [Excess Flood]
silicong has joined #ruby
silicong has quit [Excess Flood]
sdwrage has joined #ruby
silicong has joined #ruby
silicong has quit [Excess Flood]
silicong has joined #ruby
silicong has quit [Max SendQ exceeded]
silicong has joined #ruby
x77686d has quit [Quit: x77686d]
cashnguns has quit [Ping timeout: 252 seconds]
burlyscudd has joined #ruby
<theskript> is it better to use single line if conditionals or multi line if conditionals (like normal)??
<theskript> which is faster??
venkat has quit [Read error: Connection reset by peer]
<dorei> it's probably the same i guess
venkat has joined #ruby
NotSoMerryland[A has joined #ruby
Mousse_ has joined #ruby
dingus_khan has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
agjacome has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
robustus has joined #ruby
saarinen has joined #ruby
ykk` has quit [Quit: ykk`]
<platzhirsch> I have two parts in my page crawling. One, where a new page is dequeued from the queue and one where the links and static assets are retrieved. I would like to keep it dynamic what in both situations should happen, so I want to work with blocks, respectively Procs.
agent_white has joined #ruby
<platzhirsch> Should I use yield two times in this case, and pass different variables and write the distinction code in the block itself.. or should I pass two different Proc objects and handle it this way?
<platzhirsch> crr, I am stuipid I do both in one yield
<agent_white> Evenin!
Tomasso has joined #ruby
<platzhirsch> agent_white: Howdy
Aryasam has quit [Read error: Connection reset by peer]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
rootshift has joined #ruby
Aryasam has joined #ruby
slowcon has quit [Quit: slowcon]
RoryHughes has quit []
black0ut has quit []
estebistec has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
Aryasam has quit [Ping timeout: 246 seconds]
cashnguns has joined #ruby
S0da has joined #ruby
venkat has quit [Remote host closed the connection]
<itadder> hi
<itadder> This is what I done so far
<snkcld> wi/join #neo4j
<itadder> taking it slow
<snkcld> >_<
sski has joined #ruby
slowcon has joined #ruby
venkat_ has joined #ruby
mlpinit has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
timonv has joined #ruby
mojjojo has quit [Quit: mojjojo]
NotSoMerryland[A has left #ruby [#ruby]
estebistec has quit [Remote host closed the connection]
<platzhirsch> itadder: what is that? pulp fiction?
andy__ has joined #ruby
<platzhirsch> A lampoon
sparrovv has quit [Remote host closed the connection]
<itadder> Chapter 2. Ruby.new • 18 pixaxe book 1.9 2.0
timonv has quit [Ping timeout: 248 seconds]
<itadder> agent_white: qI am going ot take a shower and go to sleep
<itadder> so I am fresh for yoga tomorrow
<itadder> bye
dingus_khan has quit [Remote host closed the connection]
<itadder> why am I so slow platzhirsch at this
iliketurtles has quit [Quit: zzzzz…..]
<itadder> I am only on chatper 2 I do not want t rush I guess
fgo has joined #ruby
fgo has quit [Client Quit]
<platzhirsch> itadder: Because you are doing yoga and not Ruby
yasushi has joined #ruby
<platzhirsch> just kidding, don't skip yoga class
<itadder> I did ruby all afternoon today
<itadder> yea
heftig has quit [Quit: Quitting]
<agent_white> itaddr: Thanks for letting me know, I was worried.
<platzhirsch> and you only arrived at Chapter 2?
<itadder> it just I am slow at learnign new things
<platzhirsch> jesus, you worked as slow as I did today and I did Ruby all afternoon, too
<itadder> from 5:30 until now
<itadder> ahh
<platzhirsch> so either we are not really motivated or we simply suck at being productive and shit
<itadder> I think a litte of both
<itadder> I got distracted trying to make sublime text wsork nice
<itadder> trying to clean up my folders where I save this example
<itadder> and then did some coding
venkat_ has quit []
gja has joined #ruby
<itadder> any ways shower
derek_c has quit [Ping timeout: 272 seconds]
ehaliewicz has joined #ruby
dingus_khan has joined #ruby
yasushi has quit [Ping timeout: 248 seconds]
Tomasso has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
thomasxie has joined #ruby
<platzhirsch> I just really thought module A; class B; end; end is the same as class A::B; end
sensen has joined #ruby
alx- has quit [Quit: Leaving...]
marcdel has quit []
gja has quit [Quit: This computer has gone to sleep]
randomnick_ has quit [Quit: Leaving]
estebistec has joined #ruby
Lewix has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
marcdel has joined #ruby
slowcon has quit [Quit: slowcon]
cashnguns has quit [Ping timeout: 245 seconds]
derek_c has joined #ruby
Wolland has joined #ruby
<platzhirsch> shevy: I have to agree now to your comment later this day, when I was talking about TDD
surtin has joined #ruby
surtin has quit [Client Quit]
figgleberry has joined #ruby
tharindu has joined #ruby
tanema has joined #ruby
Hiall has quit [Quit: hiall]
burlyscudd has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
ndrei has joined #ruby
existensil_ has quit [Read error: Operation timed out]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
diegoviola has joined #ruby
ephemerian has quit [Remote host closed the connection]
existensil has joined #ruby
burlyscudd has quit [Ping timeout: 248 seconds]
marcdel has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
Lewix has joined #ruby
dx7 has joined #ruby
Es0teric has quit [Ping timeout: 272 seconds]
jonah_k has quit [Remote host closed the connection]
jonah_k has joined #ruby
figgleberry has quit [Ping timeout: 245 seconds]
sensen has quit [Ping timeout: 260 seconds]
<RubyPanther> I love it when people agree in advance. What freedom!
<centrx> I agree
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
zz_jrhorn424 is now known as jrhorn424
havenwood has quit [Ping timeout: 246 seconds]
stryek has joined #ruby
sassamo_ has joined #ruby
<Lewix> RubyPanther: , centrx, I agree
bricker`LA has joined #ruby
havenwood has joined #ruby
<bricker`LA> okay who's good at math? height = 304, how do I find the width for a 16:9 aspect ratio?
sensen has joined #ruby
jonah_k has quit [Remote host closed the connection]
alx- has joined #ruby
sassamo has quit [Ping timeout: 260 seconds]
<centrx> Multiply by 16 and divide by 9, or maybe it was multiple by 9 and divide by 16....
alx- has quit [Read error: Connection reset by peer]
knigitz has quit [Read error: No route to host]
knigitz has joined #ruby
marcdel has joined #ruby
figgleberry has joined #ruby
dx7 has quit [Remote host closed the connection]
<platzhirsch> What means the gem option require?
dx7 has joined #ruby
SteveBenner09 has joined #ruby
<platzhirsch> centrx: thanks for googling my little Minion, you have done well
bricker`LA has quit [Quit: leaving]
mikepack has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
francisfish has joined #ruby
<Lewix> lol
Matip has joined #ruby
Matip has quit [Changing host]
Matip has joined #ruby
Vovko has quit [Remote host closed the connection]
Mattx has quit [Ping timeout: 248 seconds]
<Lewix> platzhirsch: that's why everybody likes centrx
itadder has quit [Remote host closed the connection]
<platzhirsch> now I am afraid he/she will jump to my neck and bite out a piece of flesh
tanema has quit [Remote host closed the connection]
tanema has joined #ruby
* Lewix eats platzhirsch
mikepack has quit [Ping timeout: 272 seconds]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<RubyPanther> If that happens you'll have to meta-program your way out. http://mislav.uniqpath.com/poignant-guide/dwemthy/
ndrei has quit [Ping timeout: 248 seconds]
<platzhirsch> lol what is that, am I on drugs
gigetoo has quit [Remote host closed the connection]
<RubyPanther> yeah, you're on Ruby
jrhorn424 is now known as zz_jrhorn424
gigetoo has joined #ruby
<platzhirsch> Red Amphetamine
francisfish has quit [Ping timeout: 272 seconds]
rootshift has joined #ruby
<platzhirsch> Methamphetamine, too
m104 has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.2]
tanema has quit [Ping timeout: 252 seconds]
krisbulman is now known as [krisbulman]
mojjojo has quit [Quit: mojjojo]
zz_jrhorn424 is now known as jrhorn424
|jemc| has joined #ruby
<platzhirsch> RSpec guard is pretty high life
SteveBenner09 has quit [Remote host closed the connection]
SteveBenner09 has joined #ruby
Hanmac has quit [Ping timeout: 252 seconds]
xcv has joined #ruby
RoxasShadowRS has quit [Read error: Connection reset by peer]
emergion_ has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
aspires has joined #ruby
Davey has joined #ruby
angusiguess has quit [Ping timeout: 260 seconds]
ykk` has joined #ruby
figgleberry has quit [Ping timeout: 252 seconds]
<Senjai> platzhirsch: Guard gives me loads of issues
<platzhirsch> Senjai: oh, home come
ykk` has quit [Client Quit]
<Senjai> platzhirsch: 80% of the projects I work on, guard segfaults
<Senjai> platzhirsch: it doesnt play nicely with pry
<platzhirsch> ugh
<Senjai> and the readline errors are horribad
<Senjai> So I just don't use it :p
burlyscudd has joined #ruby
binaryhat has joined #ruby
OrangejuiceJames has joined #ruby
havenwood has quit [Remote host closed the connection]
angusiguess has joined #ruby
maximski has joined #ruby
havenwood has joined #ruby
lepht has quit [Ping timeout: 245 seconds]
garndt has quit [Ping timeout: 272 seconds]
tharindu has quit [Quit: Leaving...]
burlyscudd has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
gyre007_ has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
<unholycrab> can anyone recommend a flatfile database for ruby?
<unholycrab> for read/write
gyre007_ has joined #ruby
lepht has joined #ruby
garndt has joined #ruby
havenwood has quit [Ping timeout: 246 seconds]
aspires has quit []
<centrx> unholycrab, What's it for?
pabloh has joined #ruby
<unholycrab> storing a list of ids
<RubyPanther> unholycrab: dbm in stdlib
<unholycrab> maybe 1,000 of them
<unholycrab> cool, RubyPanther thanks
aspires has joined #ruby
Mousse_ has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
cmoylan has joined #ruby
BaconOverflow_ has quit [Ping timeout: 272 seconds]
Vovko has joined #ruby
dorei has quit []
supershabam has quit [Ping timeout: 272 seconds]
percival__ has quit [Ping timeout: 272 seconds]
percival__ has joined #ruby
tommyvyo has quit [Ping timeout: 246 seconds]
OrangejuiceJames has quit [Read error: Connection reset by peer]
hashpuppy has quit [Quit: Computer has gone to sleep.]
savage-_ has quit [Ping timeout: 272 seconds]
supershabam has joined #ruby
tommyvyo has joined #ruby
illbyte has quit [Ping timeout: 272 seconds]
BaconOverflow_ has joined #ruby
blooberr____ has quit [Read error: Connection reset by peer]
frem_ has quit [Ping timeout: 246 seconds]
kapowaz has quit [Ping timeout: 246 seconds]
dioms___ has quit [Ping timeout: 246 seconds]
ardsrk has quit [Read error: Connection reset by peer]
illbyte has joined #ruby
jrunning__ has quit [Ping timeout: 272 seconds]
gazoombo has quit [Ping timeout: 272 seconds]
blooberr____ has joined #ruby
frem_ has joined #ruby
dioms___ has joined #ruby
timonv has joined #ruby
savage-__ has joined #ruby
ardsrk has joined #ruby
im0b has quit [Ping timeout: 272 seconds]
mjc_ has quit [Ping timeout: 272 seconds]
cmaxw_ has quit [Ping timeout: 245 seconds]
kofno has quit [Read error: Connection reset by peer]
kofno has joined #ruby
gazoombo has joined #ruby
speckle has joined #ruby
kapowaz has joined #ruby
cmaxw_ has joined #ruby
jrunning__ has joined #ruby
pcarrier has quit [Ping timeout: 272 seconds]
ceej has quit [Ping timeout: 252 seconds]
mjc_ has joined #ruby
im0b has joined #ruby
jpinnix_ has quit [Ping timeout: 246 seconds]
timonv has quit [Ping timeout: 252 seconds]
tectonic has joined #ruby
pcarrier has joined #ruby
rndstr has quit [Ping timeout: 272 seconds]
Amnesia has left #ruby [#ruby]
sree has joined #ruby
ceej has joined #ruby
<speckle> hi everyone, I've been learning Ruby over the past couple weeks, and trying to wrap my head around the syntax. For example, the differing precedence between "do/end" and {} with and without newlines is confusing. My brain can easily parse Java and Python, but Ruby is stumping me a little.
<speckle> Is there a definitive resource anyone would recommend, to "get over the hump" in terms of comprehending this kind of thing?
rndstr has joined #ruby
jpinnix_ has joined #ruby
davidcollom has quit [Ping timeout: 245 seconds]
<RubyPanther> speckle: generally it is C/Perl syntax, but do/end is just an expression
<RubyPanther> like you can use a ; instead of a newline
davidcollom has joined #ruby
<speckle> Hmm..
dx7 has joined #ruby
endash_ has quit [Quit: endash_]
<speckle> do/end is an expression... okay, that helps a *little*. I'll remember that, thanks.
binaryhat has quit [Quit: Leaving]
sree is now known as new_programmer
robbyoconnor has quit [Excess Flood]
<RubyPanther> >> [1,2,3].each do |e| end.size
<eval-in> RubyPanther => 3 (https://eval.in/102099)
robbyoconnor has joined #ruby
<RubyPanther> >> [1,2,3].each {|e|}.size
<eval-in> RubyPanther => 3 (https://eval.in/102100)
phreax has quit [Ping timeout: 252 seconds]
<RubyPanther> precedence should be about the same
<centrx> Yeah what is the difference in precedence?
S0da has quit [Read error: Connection reset by peer]
phreax has joined #ruby
<pontiki> isn't it more of an issue of ruby not necessarily knowing which token to attach the block to ?
maletor has joined #ruby
<speckle> >> print [1,2,3].map{ |k| k+1 }
<centrx> >> wake up eval-in
<eval-in> centrx => /tmp/execpad-1f527c77ed13/source-1f527c77ed13:2: syntax error, unexpected keyword_in (https://eval.in/102101)
<centrx> >> print [1,2,3].map{ |k| k+1 }
<eval-in> centrx => [2, 3, 4]nil (https://eval.in/102102)
pabloh has quit [Ping timeout: 260 seconds]
<RubyPanther> >> [1,2,3].collect do |e| e%2==0 ? 'even' : 'odd' end # nonsense like this makes sense in C/Perl precedence
<eval-in> RubyPanther => ["odd", "even", "odd"] (https://eval.in/102103)
sambao21 has joined #ruby
<speckle> >> print [1,2,3].map do |k| k+1; end
<eval-in> speckle => #<Enumerator:0x40b22380>nil (https://eval.in/102104)
<speckle> Different result with {} and do/end
<RubyPanther> even there the do/end block is just an expression passed as a block argument
RyanD has joined #ruby
<centrx> That's not how blocks work RUBYPANTHER
tharindu has joined #ruby
<RubyPanther> yes it is
<speckle> I guess the most confusing part is that people don't use parentheses in method calls, and I have to figure out the precedence
m104 has quit [Quit: bye]
cmoylan has quit [Ping timeout: 252 seconds]
<RubyPanther> it looks different than that because of the sugar coating
<pontiki> melts in your mouth, not in your hand
x77686d has joined #ruby
<RubyPanther> that is true speckle, they wait until they're forced to use parens, and then they complain about needing them
* centrx uses parens without being asked
<RubyPanther> >> print( [1,2,3].map do |k| k+1; end )
<eval-in> RubyPanther => [2, 3, 4]nil (https://eval.in/102105)
<speckle> I guess I'll just figure out the special cases in the subcommunities where people have decided to idiomatically not use parens
new_programmer has quit []
pabloh has joined #ruby
browndawg has joined #ruby
<RubyPanther> You just have to throw up an internal warning light when you see blocks added onto arguments, because then it can get slightly unclear who gets sugar coated
tharindu has quit [Ping timeout: 252 seconds]
<RubyPanther> in practice people shouldn't have lines of code that long, they should be doing 1 thing at a time, and then it never comes up
<speckle> okay
<RubyPanther> the main problem is people don't understand the implicit local variables created behind the scenes, so they think they're being efficient by stuffing it all into one line without assigning first
marcdel has quit []
Vovko has quit [Remote host closed the connection]
earthquake has joined #ruby
platzhirsch has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 245 seconds]
saarinen has quit [Quit: saarinen]
Hanmac has quit [Ping timeout: 246 seconds]
radic has joined #ruby
tharindu has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
CodeTheInternet has joined #ruby
<CodeTheInternet> I need some help with passing a variable to a Slim template
Wolland has quit []
<CodeTheInternet> just learning Ruby/Sinatra/Slim, and looking off this walkthrough http://www.sitepoint.com/just-do-it-learn-sinatra-i/
<pontiki> YOU DON'T JUST CODE THE INTERNET
<CodeTheInternet> he sets @task and in Slim calls it with = @task
<CodeTheInternet> but say I wanted to have the var as part of an img src
<CodeTheInternet> <img src="/images/______.jpg" /> underscores being the value of the variable
<CodeTheInternet> thats where I get lost
<CodeTheInternet> evem tried making my var the whole string but this doesnt work
<CodeTheInternet> img src= = @myVar
dingus_khan has quit [Remote host closed the connection]
<CodeTheInternet> I know I'm doing something dumb
<CodeTheInternet> img src="= @myVar" just uses that string literally, doesnt eval
<SteveBenner09> pontiki: Bob Khan disagrees
dingus_khan has joined #ruby
<CodeTheInternet> did I phrase that problem correctly?
sailias has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
tharindu has quit [Quit: Leaving...]
<pontiki> SteveBenner09: it was supposed to be a thinly veiled "you don't just walk into mordor" joke
Hanmac has joined #ruby
<SteveBenner09> CodeTheInternet: for attributes, you can use pure ruby after the =, if you don't use quotes
<SteveBenner09> like such: img src=somevariable
pabloh has quit [Quit: Saliendo]
<SteveBenner09> img src=@instance_var
<CodeTheInternet> hmm, thought I tried that … let me try it again, thanks
<SteveBenner09> or, you can do this: img src="#{@some_var}" if you think its a syntax issue
<SteveBenner09> and look at the options for escaping HTML in the docs
<SteveBenner09> make sure you don't have one of them incorrectly set
<CodeTheInternet> that did it thanks. feel silly I didnt try that first
dapz has joined #ruby
<SteveBenner09> taht will change the behavior I just mentieond
<SteveBenner09> =D
<SteveBenner09> pontiki: ha my response was lame.
<SteveBenner09> pontiki: ah, you should have then said "ONE DOES NOT SIMPLY..."
<SteveBenner09> knowyourmeme.com
<SteveBenner09> ;)
<pontiki> oh fuck me
<SteveBenner09> aha
<SteveBenner09> boned
* popl is going to change his IRC logging policy specifically for #ruby. :P
sailias has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
<SteveBenner09> CodeTheInternet: Slim is my favorite thing of all time. I am finding myself having fun with the more advanced features
<SteveBenner09> for instance here is a recent snippet I came up with for use as a partial in my Middleman projects
<pontiki> between haml, slim, and even markdown, i *never* want to write HTML again
jgoss has quit [Read error: Connection reset by peer]
<SteveBenner09> I'm not sure if all of that stuff is necessary but I was following the http://mediaelementjs.com/ spec for creating their video player object
burlyscudd has quit [Ping timeout: 252 seconds]
tacos1de has joined #ruby
<SteveBenner09> pontiki: duh! HTML is pretty much obsolete... I posted about that on a blog recently in fact. Readability is just such a huge advantage its not worth it
Vovko has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
marcdel has joined #ruby
<SteveBenner09> =D
<SteveBenner09> *to use tag-based structure
<SteveBenner09> that is
stryek has quit [Ping timeout: 260 seconds]
lazyguru has joined #ruby
meatherly has joined #ruby
estebistec has quit [Remote host closed the connection]
meatherly has quit [Read error: Connection reset by peer]
<SteveBenner09> awww. Github markdown doesn't support Slim yet =(
meatherly has joined #ruby
cashnguns has joined #ruby
<SteveBenner09> uh, so I hopped on to ask you guys, have you had this error in ruby 2.1: uninitialized constant FILE (NameError)
<pontiki> slim is still considered "experimental" in some places
<SteveBenner09> I'm le confused... Apparently its not finding File for some reason? LoL.
<centrx> File, not FILE ?
<SteveBenner09> your mother is considered experimental
xcv has quit [Remote host closed the connection]
estebistec has joined #ruby
<SteveBenner09> the error is thrown on the line where I use File.open
<pontiki> *sigh*
<SteveBenner09> File.open(FILE.join(ROOT, 'README.md'), 'a') do |f|
CodeTheInternet has quit [Quit: Leaving.]
ner0x has quit [Quit: Leaving]
pontiki has left #ruby [""Poets have been mysteriously silent on the subject of cheese" -- G.K.Chesterson"]
jgoss has joined #ruby
<SteveBenner09> hah, my immaturity conquered pontiki.
rbartos has joined #ruby
<popl> Achievement Unlocked: Doucheticle supreme
nfk has quit [Quit: yawn]
rbartos has quit [Client Quit]
<SteveBenner09> um, oh.
<SteveBenner09> FILE is still on that line, haha. I had changed it but my editor fked up I guess
<SteveBenner09> face -> desk
<RubyPanther> Don't blame the editor, it makes your mom look even more experimental
<SteveBenner09> well I like riding the bleeding edge
<SteveBenner09> ... which is why I went for your sister
cashnguns has quit [Remote host closed the connection]
<SteveBenner09> ok I'm done ha
<SteveBenner09> too much caffeine
SteveBenner09 has quit []
maletor has joined #ruby
<popl> Not enough if the arm isn't tingly.
kies has joined #ruby
chrisramon has joined #ruby
michael_lee has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
dx7 has quit [Remote host closed the connection]
xcv has joined #ruby
Lewix has joined #ruby
dx7 has joined #ruby
jrhorn424 is now known as zz_jrhorn424
|jemc| has quit [Quit: WeeChat 0.4.2]
mikepack has joined #ruby
Hanmac has joined #ruby
dx7 has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
xcv has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 272 seconds]
browndawg has left #ruby [#ruby]
marcdel has quit []
aces1up9939 has joined #ruby
<aces1up9939> can someone tell me why this isn't working?
mehlah has quit [Quit: Leaving...]
<popl> What do you mean by "isn't working"?
<aces1up9939> it drops the wrong number, the calculation is wrong.
<centrx> How is that not correct
<centrx> The calculation is right
<aces1up9939> 10 % of 149 == 14.9 isnt it lol?
<centrx> That would be n.to_f * self.to_f / 100.0
<aces1up9939> i see.
francisfish has joined #ruby
earthquake has quit [Quit: earthquake]
<centrx> "percent" stands for "per 100"
zachallett has joined #ruby
<Lewix> aces1up9939: you don't need that many to_f
<Lewix> aces1up9939: I like fdiv
francisfish has quit [Ping timeout: 245 seconds]
maximski has quit []
Jetchisel has joined #ruby
b00stfr3ak has joined #ruby
as has joined #ruby
sensen has joined #ruby
Aryasam has joined #ruby
LexicalScope has joined #ruby
LexicalScope has joined #ruby
Asher has quit [Quit: Leaving.]
andy__ has quit [Remote host closed the connection]
dev__ has joined #ruby
Asher has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
jzig_ has joined #ruby
jzig has quit [Ping timeout: 252 seconds]
ckinni has joined #ruby
dik_dak has quit [Ping timeout: 245 seconds]
sethen has quit [Read error: Connection reset by peer]
Vovko has quit []
maroloccio has joined #ruby
tharindu has joined #ruby
marcdel has joined #ruby
aces1up9939 has quit []
theskript has quit []
iliketurtles has joined #ruby
framling has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
CodeTheInternet has joined #ruby
burlyscudd has joined #ruby
tharindu has quit [Ping timeout: 248 seconds]
CodeTheInternet has quit [Client Quit]
xaq has joined #ruby
sobering has joined #ruby
e^0 has joined #ruby
<sobering> Hey guys, web dev noobie here. I have an OAuth question. I have this bit of code: https://gist.github.com/sobering/9029493 and I can make normal unauthorized requests perfectly fine, but any requests that require authorization I get a 401 Unauthorized. Is there anything obviously wrong with my code?
chrisramon has quit [Quit: chrisramon]
burlyscudd has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
timonv has joined #ruby
sensen has quit [Ping timeout: 260 seconds]
dik_dak has joined #ruby
timonv has quit [Read error: Operation timed out]
intuxicated has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
dseitz has joined #ruby
GinoMan has quit [Ping timeout: 245 seconds]
kevinykchan has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
cpruitt has joined #ruby
derek_c has quit [Ping timeout: 260 seconds]
pskosinski has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
kevinykchan has quit [Client Quit]
aspires has quit []
zachallett has quit [Remote host closed the connection]
sobering has quit [Quit: leaving]
mercwithamouth has joined #ruby
xcv has joined #ruby
dx7 has joined #ruby
kaminari has quit [Ping timeout: 245 seconds]
cpruitt has quit [Quit: cpruitt]
dev__ has quit []
dev__ has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
LexicalScope has quit [Ping timeout: 245 seconds]
xcv has quit [Remote host closed the connection]
dev__ is now known as _dev__
dmarr has quit [Remote host closed the connection]
kate_r has joined #ruby
gnephiak has joined #ruby
andy__ has joined #ruby
im0b has quit [Ping timeout: 246 seconds]
sparrovv has joined #ruby
sensen has joined #ruby
derek_c has joined #ruby
estebistec has quit [Remote host closed the connection]
frode15243 has quit [Ping timeout: 272 seconds]
jrunning__ has quit [Ping timeout: 264 seconds]
JasmeetQA has joined #ruby
oso96_2000 is now known as oso|away
Azure has quit [Quit: Textual IRC Client: www.textualapp.com]
im0b has joined #ruby
Cache_Money has joined #ruby
mostlybadfly has quit [Ping timeout: 246 seconds]
jrunning__ has joined #ruby
percival__ has quit [Ping timeout: 245 seconds]
mostlybadfly has joined #ruby
xerxas has quit [Ping timeout: 272 seconds]
Azure has joined #ruby
sparrovv has quit [Ping timeout: 246 seconds]
dmarr has joined #ruby
LexicalScope has joined #ruby
dmarr has quit [Remote host closed the connection]
sensen has quit [Ping timeout: 260 seconds]
frode15243 has joined #ruby
xerxas has joined #ruby
percival__ has joined #ruby
dapz has quit [Quit: Textual IRC Client: www.textualapp.com]
Okt has joined #ruby
dingus_khan has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
dingus_khan has joined #ruby
marcdel has quit []
meatherly has quit [Ping timeout: 248 seconds]
Taranis has quit [Remote host closed the connection]
tharindu has joined #ruby
burlyscudd has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ckinni has joined #ruby
tharindu has quit [Ping timeout: 245 seconds]
kate_r has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
rippa has joined #ruby
Aryasam has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
nichtdiebohne has joined #ruby
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
marcdel has joined #ruby
mikepack has joined #ruby
pontiki has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
mikepack has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
Hobogrammer has quit [Ping timeout: 248 seconds]
tungd has joined #ruby
fuhgeddaboudit has joined #ruby
Hiall has joined #ruby
jamo_____ has quit [Quit: Changing server]
firefly2013 has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
pwh has quit [Ping timeout: 246 seconds]
oracal has quit [Quit: Leaving]
pwh has joined #ruby
[gmi] has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
speakingcode has quit [Ping timeout: 272 seconds]
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tharindu has joined #ruby
sensen has joined #ruby
<centrx> >> actions = %w! biff pow bang whap smash shazam !; 10.times.collect{ "*%s!*" % actions[rand(actions.size)]}.join(' ')
<eval-in> centrx => "*pow!* *biff!* *bang!* *shazam!* *pow!* *smash!* *whap!* *whap!* *biff!* *smash!*" (https://eval.in/102106)
<RubyPanther> da na na na na na na da na na na na na na na BAT MAN!
<RubyPanther> the interwebs are safe now, thanks centrx
<centrx> >> require 'ripper'; Ripper.sexp("[1].map { |x| x }")
<eval-in> centrx => [:program, [[:method_add_block, [:call, [:array, [[:@int, "1", [1, 1]]]], :".", [:@ident, "map", [1, 4]]], [:brace_block, [:block_var, [:params, [[:@ident, "x", [1, 11]]], nil, nil, nil, nil, nil, nil] ... (https://eval.in/102107)
francisfish has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
kidoz has quit [Quit: Ухожу я от вас]
sensen has quit [Ping timeout: 252 seconds]
tharindu has quit [Ping timeout: 252 seconds]
Shidash has joined #ruby
francisfish has quit [Ping timeout: 260 seconds]
iliketurtles has quit [Quit: zzzzz…..]
baroquebobcat has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby
meatherly has joined #ruby
Aryasam has quit [Read error: Connection reset by peer]
Aryasam_ has joined #ruby
iliketurtles has joined #ruby
decoponio has joined #ruby
phansch has joined #ruby
saarinen has quit [Ping timeout: 252 seconds]
nisstyre has joined #ruby
pfg has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
timonv has joined #ruby
Aryasam has joined #ruby
Aryasam_ has quit [Read error: Connection reset by peer]
agjacome has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
Aryasam has quit [Ping timeout: 252 seconds]
OdNairy has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
nichtdiebohne has quit [Quit: Leaving...]
sensen has joined #ruby
Lewix has quit [Remote host closed the connection]
meatherly has joined #ruby
fuhgeddaboudit has joined #ruby
LexicalScope has quit [Ping timeout: 245 seconds]
jlebrech has joined #ruby
dx7 has joined #ruby
meatherly has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
PLejeck is now known as nuck
dx7 has quit [Ping timeout: 246 seconds]
dingus_khan has quit [Remote host closed the connection]
centrx has quit [Quit: Leaving]
marcdel has quit []
Solnse has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
tharindu has joined #ruby
IceDragon has quit [Quit: Space~~~]
baroquebobcat has joined #ruby
b00stfr3ak has quit [Ping timeout: 248 seconds]
max_ has joined #ruby
max_ is now known as Synthead
browndawg has joined #ruby
wallerdev has quit [Quit: wallerdev]
sensen has quit [Ping timeout: 260 seconds]
Jdubs has joined #ruby
Jdubs has quit [Client Quit]
Jdubs has joined #ruby
itadder has joined #ruby
dingus_khan has joined #ruby
Jdubs has quit [Client Quit]
sethen has joined #ruby
abra has quit [Ping timeout: 272 seconds]
abra has joined #ruby
itadder has quit [Ping timeout: 245 seconds]
leonidlm has joined #ruby
Atw has quit [Ping timeout: 252 seconds]
derek_c has quit [Remote host closed the connection]
dingus_khan has quit [Ping timeout: 245 seconds]
solars has joined #ruby
mikepack has joined #ruby
dik_dak has quit [Quit: Leaving]
pfg has quit [Quit: Textual IRC Client: www.textualapp.com]
burlyscudd has joined #ruby
connor_goodwolf has quit [Ping timeout: 260 seconds]
cmoylan has joined #ruby
zerun0_ has quit [Ping timeout: 272 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 260 seconds]
Synthead has quit [Ping timeout: 240 seconds]
jefflyne has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
<Nilium> I sure am writing a lot of boilerplate to get this GUI gem started.
Hanmac1 has joined #ruby
Matip has quit [Ping timeout: 245 seconds]
zerun0_ has joined #ruby
connor_goodwolf has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
meatherly has joined #ruby
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cmoylan has quit [Ping timeout: 260 seconds]
meatherly has quit [Ping timeout: 245 seconds]
connor_goodwolf has quit [Ping timeout: 245 seconds]
Hobogrammer has joined #ruby
sn0wb1rd has quit [Ping timeout: 252 seconds]
connor_goodwolf has joined #ruby
andy__ has quit [Remote host closed the connection]
andy has joined #ruby
scarolan has quit [Ping timeout: 245 seconds]
sn0wb1rd has joined #ruby
JasmeetQA has joined #ruby
ndrei has joined #ruby
Synthead has joined #ruby
firefly2013 has joined #ruby
Matip has joined #ruby
andy has quit [Ping timeout: 252 seconds]
phantomcircuit has quit [Quit: quit]
JasmeetQA has quit [Client Quit]
andy has joined #ruby
kevinykchan has joined #ruby
echevemaster has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 272 seconds]
xaq has quit [Remote host closed the connection]
phantomcircuit has joined #ruby
ndrei has joined #ruby
phansch has quit [Quit: Leaving]
Es0teric has quit [Quit: Computer has gone to sleep.]
phantomcircuit has left #ruby [#ruby]
<shevy> who pinged me
<shevy> I was sleeping, just woke up
<shevy> what GUI Nilium
<lagweezle> "Verify our poshishion to target... Wun ping only."
<shevy> tk? :)
<shevy> who is Wun ping... chinese table tennis star?
CaptainJet has quit []
* lagweezle facepalms.
angerman has joined #ruby
<Nilium> shevy: https://github.com/nilium/ruby-gui ⇐ That one.
<Nilium> Not functional yet -- just opens GLFW windows.
angusiguess has joined #ruby
<Nilium> Going to try to just get a button up so I can work on event propagation
rubyracer has joined #ruby
Lewix has joined #ruby
<shevy> hmm
<shevy> openGl
<shevy> I dont even know if I have that available
<Nilium> Pretty sure every modern desktop environment has that available.
srji_ has quit [Quit: leaving]
srji has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
ktosiek_ has joined #ruby
ktosiek has quit [Ping timeout: 260 seconds]
francisfish has joined #ruby
_dev__ has quit [Remote host closed the connection]
brandonjmckay has joined #ruby
speakingcode has joined #ruby
francisfish has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
timonv has quit [Read error: Operation timed out]
e^0 has quit [Ping timeout: 248 seconds]
deadlock has joined #ruby
notagain has joined #ruby
kenndel has joined #ruby
notagain has left #ruby [#ruby]
brandonjmckay1 has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
saarinen has joined #ruby
tvw has joined #ruby
emergion_ has quit [Ping timeout: 260 seconds]
Synthead has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 272 seconds]
shredding has joined #ruby
claymore has joined #ruby
sensen has joined #ruby
brandonjmckay1 has quit [Quit: Leaving.]
brandonjmckay has quit [Quit: Lingo - http://www.lingoirc.com]
saarinen has quit [Ping timeout: 260 seconds]
tungd has quit [Read error: Operation timed out]
francisfish has joined #ruby
nichtdiebohne has joined #ruby
tungd has joined #ruby
saarinen has joined #ruby
mengu has joined #ruby
speakingcode has quit [Ping timeout: 248 seconds]
BackEndCoder has joined #ruby
dx7 has joined #ruby
burlyscudd has joined #ruby
xaq has joined #ruby
mengu has quit [Read error: Connection reset by peer]
saarinen has quit [Ping timeout: 252 seconds]
dx7 has quit [Ping timeout: 252 seconds]
tungd has quit [Ping timeout: 260 seconds]
pskosinski_ has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
pskosinski has quit [Disconnected by services]
jonah_k has joined #ruby
pskosinski_ is now known as pskosinski
tungd has joined #ruby
francisfish has quit [Remote host closed the connection]
Synthead has joined #ruby
banister has joined #ruby
meatherly has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
francisfish has joined #ruby
klaut has joined #ruby
_Andres has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
tungd has quit [Ping timeout: 248 seconds]
tungd has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
emergion_ has joined #ruby
jlebrech has quit [Quit: Computer has gone to sleep.]
tungd has quit [Ping timeout: 248 seconds]
brjannc has quit [Ping timeout: 252 seconds]
tungd has joined #ruby
sski has joined #ruby
brjannc has joined #ruby
brjannc has quit [Changing host]
brjannc has joined #ruby
max_ has joined #ruby
Synthead has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 248 seconds]
max_ has quit [Ping timeout: 240 seconds]
pskosinski has quit [Quit: Til rivido Idisti!]
max_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
max_ has quit [Read error: Connection reset by peer]
evilbug has quit [Quit: Leaving]
Synthead has joined #ruby
angusiguess has joined #ruby
Hanmac has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
angusiguess has quit [Ping timeout: 246 seconds]
emergion_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kevinykchan has joined #ruby
emergion has joined #ruby
dangerousdave has joined #ruby
Synthead has quit [Ping timeout: 240 seconds]
ehaliewicz has quit [Ping timeout: 272 seconds]
mikepack has joined #ruby
zigomir has joined #ruby
Synthead has joined #ruby
carraroj has joined #ruby
zoscoy has joined #ruby
MyStartx has joined #ruby
einarj has joined #ruby
mikepack has quit [Ping timeout: 263 seconds]
slowcon has joined #ruby
andy has quit [Remote host closed the connection]
dingus_khan has joined #ruby
andy has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Synthead has quit [Ping timeout: 240 seconds]
tharindu has quit [Quit: Leaving...]
dingus_khan has quit [Ping timeout: 246 seconds]
andy has quit [Ping timeout: 260 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
ckinni has joined #ruby
ckinni has quit [Client Quit]
ephemerian has joined #ruby
burlyscudd has joined #ruby
carraroj has quit [Read error: Operation timed out]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
jonah_k has quit [Remote host closed the connection]
thomasxie has quit [Quit: Leaving.]
Synthead has joined #ruby
ckinni has joined #ruby
angerman has quit [Quit: Gone]
as has quit [Ping timeout: 246 seconds]
sensen has quit [Ping timeout: 251 seconds]
sensen has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
asmodlol has joined #ruby
<certainty> moin
mlpinit has quit [Remote host closed the connection]
dangerousdave has joined #ruby
Synthead has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 272 seconds]
apeiros has joined #ruby
maddog_ has quit [Ping timeout: 245 seconds]
meatherly has joined #ruby
einarj has quit [Remote host closed the connection]
jhass|off is now known as jhass
shredding has quit [Quit: shredding]
thomasxie has joined #ruby
ckinni has quit [Quit: Textual IRC Client: www.textualapp.com]
ckinni has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
tharindu has joined #ruby
Shidash1 has joined #ruby
eka has joined #ruby
Shidash has quit [Ping timeout: 248 seconds]
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tibounise has joined #ruby
<tibounise> hi !
slowcon has quit [Quit: slowcon]
andy has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
camilasan has joined #ruby
camilasan has quit [Client Quit]
baroquebobcat has quit [Quit: baroquebobcat]
camilasan has joined #ruby
senayar has joined #ruby
andy has quit [Ping timeout: 246 seconds]
napcae has joined #ruby
timonv has joined #ruby
Mousse_ has joined #ruby
senayar has quit [Remote host closed the connection]
sensen has quit [Read error: No route to host]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
timonv has quit [Ping timeout: 248 seconds]
senayar has joined #ruby
angerman has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Davey has joined #ruby
tgkokk has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
dx7 has joined #ruby
parzo has joined #ruby
Xeago has joined #ruby
<tibounise> How do you do multi-tasking in Ruby ?
<tibounise> I heard about daemonize in a book, but not sure if it's the right way to do it :/
<certainty> tibounise: there are a many ways. It depends on your requirements
timonv has joined #ruby
dx7 has quit [Ping timeout: 248 seconds]
<tibounise> certainty: I want to resize a lot of images, I don't know what kind of requirements I could have
dingus_khan has joined #ruby
tgkokk has quit [Quit: WeeChat 0.4.3]
tgkokk has joined #ruby
<certainty> tibounise: in that case i'd probably use fork
jragon has joined #ruby
<jhass> how do you resize them?
<jhass> image_magick gem, rmagick gem, just shelling out to something?
<tibounise> jhass: I use FastResize (https://github.com/sdsykes/fastimage_resize^)
<tibounise> It uses GD
tgkokk has quit [Client Quit]
tgkokk has joined #ruby
sumark has quit [Quit: Reconnecting]
<apeiros> have a main process from which you fork and forget
sumark has joined #ruby
<apeiros> @ tibounise
<jhass> yep, +1 to fork then
Davey_ has joined #ruby
<apeiros> hi mrzyx
<jhass> :P
<jhass> apeiros: how did I never notice -rprofile? :(
<apeiros> dunno
<apeiros> maybe because it slows your app down by ~100x
<apeiros> (no kidding)
<apeiros> I wonder if any of the faster profilers still work in 2.1
<tibounise> When I use fork, is my task done asychronously or is it going to freeze my applicai
<tibounise> *application ?
burlyscudd has joined #ruby
lxsameer has joined #ruby
<jhass> tibounise: fork creates a new process
klaut has quit [Remote host closed the connection]
sski has joined #ruby
dingus_khan has quit [Ping timeout: 260 seconds]
sski has quit [Client Quit]
sski has joined #ruby
Xeago has quit [Remote host closed the connection]
internal has joined #ruby
tvw has quit [Remote host closed the connection]
burlyscudd has quit [Ping timeout: 272 seconds]
agent_white has left #ruby [#ruby]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mousse_ has quit [Quit: Computer has gone to sleep.]
<tibounise> jhass: ok thank's.
lkba has joined #ruby
<tibounise> And is it a good idea to fork for every image conversions ?
<apeiros> tibounise: note that forking does not work on jruby and windows
<apeiros> if you can, fork in batches. there's not much point in having more processes than cores.
<tibounise> apeiros: I won't be running my program on jruby or Windows ;)
meatherly has joined #ruby
fantazo has joined #ruby
Mousse_ has joined #ruby
internal has left #ruby [#ruby]
sepp2k has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
tectonic has quit []
camilasan has quit [Ping timeout: 272 seconds]
jackneill has joined #ruby
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
evangeline has joined #ruby
platzhirsch has joined #ruby
<evangeline> hi, I would like to add a webshell to my ruby application (more specifically Redmine) ... any ideas how to do that: I created the cmd.rb and added the system call, but I'm not getting anythine back ?
<evangeline> my current Apache redmine configuration is: http://dpaste.com/1624999/
<evangeline> and cmd.rb contains the following:
<evangeline> #/usr/bin/ruby
<evangeline> out = system "ls"; p out
oracal has joined #ruby
<certainty> evangeline: you know that system doesn't return the output of the command?
<evangeline> if I execute ./cmd.rb it works, but I would like to do the same from web
<evangeline> certainty, hm, which function should I then use instead ?
<apeiros> evangeline: how do you run it from the web? you try to run that like a cgi?
Salve has quit [Ping timeout: 248 seconds]
<evangeline> apeiros, yes: http://server.domain.com/cmd.rb
<apeiros> evangeline: passenger doesn't give you that
<apeiros> i.e., passenger isn't intended for CGI style usage. you'll have to set up your apache to run cgi scripts for that.
<apeiros> note that cgi isn't really the recommended way to run scripts nowadays
mojjojo has joined #ruby
<evangeline> apeiros, ok so I have to instruct apache to run .rb scripts with ruby and return the results all by itself ?
<apeiros> evangeline: you'll have to return a proper http response. there's a cgi lib in stdlib (require 'cgi' in your script, run `ri CGI` to get docs on it)
Shidash1 has quit [Ping timeout: 245 seconds]
<apeiros> and I think you usually just tell apache from what dir and with what extensions it can run stuff as CGI. that ruby runs it is handled by the OS (shebang line)
<apeiros> don't forget to chmod your script appropriately.
cjsarette has quit [Ping timeout: 245 seconds]
<evangeline> apeiros, I added:
<apeiros> btw., what certainty said still applies. that you see output from running that code is because `system` will print directly to stdout
<evangeline> <Directory /redmine/public>
<evangeline> Options +ExecCGI
<evangeline> </Directory>
<evangeline> AddHandler cgi-script .rb
alizadeh6768 has joined #ruby
<evangeline> apeiros, ok
<evangeline> I'll have to study 'cgi' I guess
<apeiros> it's been a while since I configured apache for cgi (~15 years?), I don't think know the current correct configuration values ;-)
phansch has joined #ruby
<apeiros> but adding ExecCGI on public sounds like a horrible idea.
<evangeline> apeiros, yes I know, but I'm trying to make a point
timonv has quit [Remote host closed the connection]
<apeiros> evangeline: or abandon cgi entirely. as said, it's not really the recommended way of running code.
<alizadeh6768> does ruby 1.9 and higher has real threading support ?
tgkokk has quit [Quit: WeeChat 0.4.3]
<apeiros> alizadeh6768: MRI still has a GIL in 2.1, so no.
<apeiros> alizadeh6768: if you want true concurrency, use jruby.
andy has joined #ruby
Slavox is now known as Slavox|AFK
sparrovv has joined #ruby
jhass is now known as jhass|off
cjsarette has joined #ruby
heftig has joined #ruby
ephemerian has left #ruby [#ruby]
mikepack has joined #ruby
srji has quit [Quit: leaving]
Salve has joined #ruby
Salve has quit [Remote host closed the connection]
jhass|off is now known as jhass
Salve has joined #ruby
andy has quit [Ping timeout: 252 seconds]
srji has joined #ruby
Mousse_ has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Ping timeout: 245 seconds]
Jdubs has joined #ruby
poulson has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
RoxasShadowRS has joined #ruby
mojjojo has quit [Quit: mojjojo]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kayloos has joined #ruby
carraroj has joined #ruby
mojjojo has joined #ruby
mojjojo has quit [Client Quit]
mojjojo has joined #ruby
banister has joined #ruby
alex88 has joined #ruby
Salve has quit [Remote host closed the connection]
Salve has joined #ruby
sparrovv has quit [Remote host closed the connection]
burlyscudd has joined #ruby
Salve has quit [Ping timeout: 248 seconds]
ikaros has joined #ruby
<evangeline> apeiros, btw: is it possible to specify certain directory to execute rb scripts with +ExecCGI when "RailsEnv production" is specified in virtualhost?
<evangeline> apeiros, currently I have: http://dpaste.com/1625136/, but I keep getting "page not found" and I'm guessing it's because of Rails
<apeiros> evangeline: note sure how those two interact, sorry. RailsEnv itself probably won't cause you any issues. But that passenger is set up to serve the public dir as static files might.
tungd has quit [Remote host closed the connection]
<apeiros> I'd try to get cgi scripts running separately for the start and then try to combine the two
tungd has joined #ruby
<platzhirsch> Do
burlyscudd has quit [Ping timeout: 248 seconds]
<platzhirsch> Do you sort require statements by name or by something else like priorirty?
<evangeline> apeiros, you mean in another virtualhost ?
<apeiros> evangeline: yes
<apeiros> platzhirsch: alphabetically. priority is resolved automatically by having all files require what they depend on.
tungd has quit [Read error: Connection reset by peer]
* platzhirsch nods
<alizadeh6768> which application server is the best for rails. puma, passenger, unicorn ?
<platzhirsch> alizadeh6768: depends on your needs
jonr22 has joined #ruby
<alizadeh6768> platzhirsch: i need high speed and performance
<platzhirsch> For instance, if you are using JRuby or other platforms that support parallell execution Puma can be a splendid choice
<platzhirsch> alizadeh6768: and why should the remaining web servers aim for slowness and inefficients?
as has joined #ruby
<alizadeh6768> platzhirsch: I need to response to many users on my server
meatherly has joined #ruby
<platzhirsch> alizadeh6768: I think Puma can then be a great choice if you are not using MRI. This problem can also be solved by reverse proxies like nginx, or if you want to throw memory on the problem Apache
Xeago has joined #ruby
<certainty> kill it with memory
kayloos has quit [Remote host closed the connection]
nhhagen has joined #ruby
asmodlol has quit [Remote host closed the connection]
meatherly has quit [Ping timeout: 260 seconds]
asmodlol has joined #ruby
vatervonacht has joined #ruby
m has joined #ruby
vatervonacht has left #ruby [#ruby]
m has left #ruby [#ruby]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aryasam has joined #ruby
mehlah has joined #ruby
MyStartx has quit [Ping timeout: 245 seconds]
emergion has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
ckinni has joined #ruby
kirun has joined #ruby
nhhagen has quit []
maximski has joined #ruby
zigomir has quit [Ping timeout: 246 seconds]
spider-mario has joined #ruby
tylersmith has quit [Remote host closed the connection]
einarj has joined #ruby
evangeline has quit [Ping timeout: 260 seconds]
dx7 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sensen has joined #ruby
xaq has quit [Remote host closed the connection]
<platzhirsch> I find more or less no tutorial for erb, I had to lookup some bits from my previous project
Jdubs has quit [Remote host closed the connection]
<apeiros> huh? what do you need a tutorial for with erb?
firefly20131 has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
<apeiros> or put differently - what do you miss in the docs?
alantsang has joined #ruby
firefly2013 has quit [Ping timeout: 260 seconds]
alantsang has left #ruby ["Konversation terminated!"]
iamsean has joined #ruby
Mousse_ has joined #ruby
thomasxie has quit [Quit: Leaving.]
skinny_much has quit [Ping timeout: 252 seconds]
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
LBRapid has quit [Ping timeout: 264 seconds]
justinmcp has joined #ruby
timonv has joined #ruby
skinny_much has joined #ruby
as has quit [Quit: Leaving]
<platzhirsch> apeiros: Nothing, the docs state all there is to need to know. It's just that there is for every tiny crap a "tutorial", but not for erb :)
jlebrech has joined #ruby
<apeiros> probably because only real coders use erb, and real coders know how to use the docs :-p
<popl> write one
<certainty> +1
<platzhirsch> that's a great opportunity
SHyx0rmZ has joined #ruby
<platzhirsch> can't wait to do that after I tackle the other shit
LBRapid has joined #ruby
noarthur_ has joined #ruby
<apeiros> (or because erb users are old farts and old farts don't give a damn about "tutorials", they want docs)
<certainty> i like docs
jlebrech has quit [Read error: Connection reset by peer]
<popl> Does that mean you're old?
<platzhirsch> Should I use something instead of erb?
<popl> Is "old fart" a state of mind?
<popl> platzhirsch: What are you trying to accomplish?
<apeiros> platzhirsch: depends. erb is IMO relatively nice for its intended purpose.
<platzhirsch> popl: I am generating a graph with some data and want to visualize the data in HTML
<certainty> popl: don't think so since it is old_fart(User) -> old(User) and not old_fart(User) <-> old(User)
<platzhirsch> so gem run -> outputs a directory with html
<certainty> wait
<certainty> lol that was complete bullshit
<certainty> the docs part is totally missing
<popl> are you sure you're not a manager?
<certainty> i need some coffee
<certainty> hehe
sergicles has quit [Quit: sergicles]
<apeiros> platzhirsch: for html, I prefer things like HAML or SLIM. but depends on your tastes too, I guess.
firefly20132 has joined #ruby
firefly20131 has quit [Ping timeout: 252 seconds]
ikaros has quit [Quit: Ex-Chat]
LBRapid has quit [Ping timeout: 245 seconds]
saarinen has joined #ruby
<platzhirsch> apeiros: You are right, I should switch. Otherwise my gem won't be counted as hipster gem
shredding has joined #ruby
<platzhirsch> totally forgot about them
<apeiros> erb has the benefit of not having an additional dependency
<platzhirsch> also I generate my HTML with Vim and the Zen Coding Plugin, but well, it won't be much HTML in this case anyway
<apeiros> "hipster" seems to be the new "get off my lawn!"
itadder has joined #ruby
<platzhirsch> I think so
<platzhirsch> Thanks in any case, I waited for an opportunity to try out HAML or SLIM and now where it came I totally forgot about them
ec_ has quit [Ping timeout: 252 seconds]
LBRapid has joined #ruby
ec has joined #ruby
saarinen has quit [Ping timeout: 248 seconds]
firefly2013 has joined #ruby
<platzhirsch> and my vim zen coding plugin works anyway
firefly20132 has quit [Ping timeout: 245 seconds]
itadder has quit [Ping timeout: 248 seconds]
<certainty> platzhirsch: that doesn't excuse that you use vim :p
<platzhirsch> certainty: Yeah, as if there would be an alternative
<certainty> platzhirsch: don't you like it?
jlebrech has joined #ruby
<platzhirsch> certainty: of course. It's Vim
<platzhirsch> For Java I switched from Eclipse to IntelliJ and I have to relearn to use the whole IDE
xaq has joined #ruby
jlebrech has quit [Max SendQ exceeded]
<certainty> so even if there was an alternative it woudln't matter?
sparrovv has joined #ruby
<certainty> can't you activate vi key-bindings in those IDEs?
burlyscudd has joined #ruby
Slavox|AFK is now known as Slavox
<platzhirsch> Sure, but that's for navigating and editing. I am talking more about refactoring methods
<platzhirsch> certainty: I guess there are some alternatives to Vim. Emacs, Lighttable and such stuff
<certainty> platzhirsch: you do alot of this refactoring things? What do you do beside simple stuff that can be done in emacs and vi?
tgkokk has joined #ruby
<platzhirsch> certainty: in Java, because it's supported properly in the IDEs. In Ruby and Python refactoring is more annoying
nuck has quit [Read error: Connection reset by peer]
Deele has quit [Ping timeout: 252 seconds]
<platzhirsch> Sorry, I don't understand the question
yasushi has joined #ruby
<certainty> platzhirsch: There are simple refactorings like rename-*, extract-method, inline-method that can easily be done with editors like Emacs and VI. What refactorings does the IDE offer, that you actually use so much that it makes sense to bother
<certainty> ?
burlyscudd has quit [Ping timeout: 246 seconds]
<certainty> ich koennte es auch nochmal in deutsch probieren ;)
<platzhirsch> certainty: in Java?
<platzhirsch> I only use IntelliJ/Eclipse for Java, no other language
<certainty> yeah in JAVA
claymore has quit [Ping timeout: 248 seconds]
yasushi has quit [Remote host closed the connection]
ckinni has quit [Quit: Textual IRC Client: www.textualapp.com]
<platzhirsch> okay, simply rename a class
<popl> Java's got a lot of boilerplate stuff you need to write so it makes sense. :P
<certainty> is it because it saves time or because it's less error prone, like forgetting to rename an identifier somewhere?s
tanema has joined #ruby
yasushi has joined #ruby
<certainty> i mean the reason you use it
<platzhirsch> Yeah, because it's less error prone. If I rename something then it propagates through the whole project
<certainty> the question i am asking because i have seen people being so excited about refactoring capabilities of their IDEs and refactoring browsers, that they were willing to trade off quite a few things for these
PLejeck has joined #ruby
<platzhirsch> when I did renaming in Python with rope sometimes this only worked for one file and not all were found. I don't complain about this. This is inherently rooted to the language. Dynamically typed vs. statically typed.. so I don't expect much
Deele has joined #ruby
zegerjan has joined #ruby
<certainty> platzhirsch: simple find and replace no? or does the java thing actually analyze the code?
<platzhirsch> well it's really just one aspect. I am out of Java development for a while so I cannot tell very much. More importantly the Debugger
<platzhirsch> certainty: it has to analyze the code, that's not a simple find/replace
<platzhirsch> just because a class has the same name, doesn't mean it's the same class
<AntelopeSalad> certainty: it's like comparing a regex to parse html vs correctly making a tree of it and finding out the dependencies/etc.
<certainty> regex will do in most cases well enough :)
<AntelopeSalad> well, no dependencies in html i guess, but i hope you understand heh
<certainty> do i use it so much to actually bother
asmodlol has quit [Ping timeout: 260 seconds]
claymore has joined #ruby
thomasxie has joined #ruby
<certainty> i certainly don't and in i have the same problems with ruby
<certainty> platzhirsch: i understand the debugger thing. Having a decent source level debugger is a great win
<certainty> still you could just fire up the IDE to debug things
<certainty> don't know if that's feasable
xaq has quit [Remote host closed the connection]
<platzhirsch> also it was very comfortable to browse the Java source code in Eclipse. If I used a library method I just put the cursor on it and pressed F3, boom another window opened with the source code on which I could do recursively the same
meatherly has joined #ruby
deadlock has quit [Ping timeout: 245 seconds]
germanstudent has joined #ruby
Czupa has joined #ruby
tgkokk has quit [Quit: WeeChat 0.4.3]
otherj has joined #ruby
tgkokk has joined #ruby
<certainty> platzhirsch: I understand.
xaq has joined #ruby
<AntelopeSalad> yeah, i haven't found anything like that in other editors either
<certainty> ecb, cedet and co. offer something similar for emacs
zegerjan has quit [Ping timeout: 260 seconds]
xaq has quit [Remote host closed the connection]
<certainty> with semantic you get languge aware processing
<AntelopeSalad> "jump to definition" or whatever
sski has quit [Remote host closed the connection]
klaut has joined #ruby
sski has joined #ruby
<AntelopeSalad> certainty: does it do it flawlessly for ruby/js/css/sass/html/erb with code analysis/code complete/method jumping with no configuration?
meatherly has quit [Ping timeout: 248 seconds]
Aryasam has joined #ruby
<platzhirsch> I cannot imagine, but that's bound to the language and not the editor/IDWE
<platzhirsch> IDE*
eliasp has quit [Ping timeout: 252 seconds]
mojjojo has quit [Quit: mojjojo]
<certainty> AntelopeSalad: i believe there are backends for the various languages. I don't know the details. I only use that for ruby and together with rails and ror-mode.
sski has quit [Ping timeout: 260 seconds]
<certainty> for all other languages i don't need it
<AntelopeSalad> the goto implementation feature is something that probably saves me the most time ever
asmodlol has joined #ruby
mikepack has joined #ruby
sergicles has joined #ruby
sergicles has quit [Client Quit]
<certainty> AntelopeSalad: yepp it can do that. See the "Navigation in source" paragraph in the link above
<AntelopeSalad> certainty: does it do it for anything on your gem path without configuration?
<certainty> AntelopeSalad: i don't think it does out of the box
<AntelopeSalad> because that's where the goodness of that feature shines imo
<certainty> yeah i can imagine
<certainty> i rarely look at the difinitions of methods provided by gems though. If i do i'm most likely in debugging mode and step through the code with the debugge
mojjojo has joined #ruby
<AntelopeSalad> instead of having to look at the api docs, it's just a ctrl+click away, and at the same time since the editor knows the info already it shows you a tooltip of the call argumements as you type it
mikepack has quit [Ping timeout: 260 seconds]
<AntelopeSalad> oh, i sometimes look because i want to see how it's implemented
p8952 has quit [Quit: Leaving]
<certainty> AntelopeSalad: i see. Yeah then i look at github. Where does it look for the docs? the rdocs that are installed during installation of the gem?
ndrei has joined #ruby
<AntelopeSalad> certainty: it just brings you straight to the code definition, the docs are comments above the thing you're looking for if need em
<AntelopeSalad> *if you
<certainty> ah ok now i understand
pinage404 has quit [Excess Flood]
<AntelopeSalad> there are some other cute things that i like too which are git related
<AntelopeSalad> for example rubymine will color code the tab of the file based on its git status
<AntelopeSalad> it also colors the file in the side bar if you happen to use that (personally i don't 99% of the time)
Aryasam has quit [Ping timeout: 252 seconds]
<certainty> yeah i use this kind of visual feedback as well. Emacs shows it in the mode-line and in the filebrowser if you use ecb
<AntelopeSalad> it makes it much easier (imo) to create meaningful git commit messages
<certainty> also as i run my tests by guard i use the emacs notify plugin which changes the color of my mode-line depending on the result of the last test run
Speed has joined #ruby
S0da has joined #ruby
deadlock has joined #ruby
sinabs has joined #ruby
<sinabs> Hi all
<certainty> i run emacs in server mode anyway
<AntelopeSalad> what is the mode-line, some type of gutter?
S0da has quit [Remote host closed the connection]
pinage404 has joined #ruby
<certainty> AntelopeSalad: that's just a little area at the bottom of the current buffer that shows information about the buffer
<AntelopeSalad> ah
<certainty> a buffer is basically a window
<AntelopeSalad> yeah
tvw has joined #ruby
<AntelopeSalad> btw certainty, have you ever heard of a method being callable but returning different values based on how it's included?
<certainty> AntelopeSalad: how do you mean?
<AntelopeSalad> i opened a SO question on it last night, it's related to thor
michael_lee has quit [Ping timeout: 260 seconds]
alizadeh6768 has left #ruby [#ruby]
<AntelopeSalad> basically when i use the 'run' method of thor in a separate class it does nothing, but if i cut/paste the same code into the parent class it works as intended
<sinabs> I'm trying to install Redmine with RVM And apache passenger but when i try to access to the page, I've juste an directory list
angusiguess has joined #ruby
timonv has quit [Remote host closed the connection]
tylersmith has joined #ruby
<certainty> AntelopeSalad: i don't know thor. Are the modules intended to be used in classes that don't inherit from Thor?
<AntelopeSalad> certainty: yes
agjacome has joined #ruby
<jhass> AntelopeSalad: certainty doesn't look at it, if we look at the source of Thor::Actions#run, the first line is return unless behavior == :invoke
<sinabs> Here is the config : http://pastebin.com/aJHHzEuV
<jhass> *look like it
<AntelopeSalad> jhass: there were other SO posts showing how to do it by adding a few things to your class but that was an older version of thor
<jhass> AntelopeSalad: at least you have to set @behaviour = :invoke
<AntelopeSalad> if it's too much work to be worth it, how can i include it into my parent class but have all of its methods available in the other classes without including it?
<AntelopeSalad> do they just need to belong to the same module?
<jhass> AntelopeSalad: then #run uses say_status which isn't defined in ::Actions nor ::Base but ::Shell::Basic
MyStartx has joined #ruby
tungd has joined #ruby
tylersmith has quit [Ping timeout: 260 seconds]
<AntelopeSalad> jhass: i'm using Thor::Shell too
<jhass> your SO question doesn't show that
<AntelopeSalad> with the SO version of the code, run does literally nothing
Aryasam has joined #ruby
<certainty> AntelopeSalad: yeah makes sense as jhass pointed out
<AntelopeSalad> normally when you invoke run, it prints out a msg to the terminal with the thing you're running
zegerjan has joined #ruby
<AntelopeSalad> if you've ever ran a rails generator that is the output of using run
carraroj has quit [Ping timeout: 260 seconds]
mojjojo has quit [Quit: mojjojo]
cppking has joined #ruby
<cppking> how to parse erb file
tanema has quit [Remote host closed the connection]
tanema has joined #ruby
<AntelopeSalad> jhass: also before i started to break up the files i was using thor::shell, that's what i meant
veduardo has joined #ruby
<AntelopeSalad> but if i drop it into the SO version of the code, it's the same issue -- nothing happens when i run it
Speed has quit [Ping timeout: 260 seconds]
JasmeetQA has joined #ruby
<cppking> then any kind guy can give me an simple example for using @@variable?
<jhass> AntelopeSalad: of course it does, I already pointed out why
prc has joined #ruby
<AntelopeSalad> if i start adding things to my class like the source_root, destination_stack and destination_root, then some commands like create_file (another thor command in Actions) work but not run
<jhass> cppking: pass a proper binding http://rubydoc.info/stdlib/erb/ERB#result-instance_method (and avoid @@ variables as long as possible, they have unexpected side effects)
<jhass> AntelopeSalad: are you ignoring me by now or what?
<cppking> jhass: thank you very much! i like you
<AntelopeSalad> jhass: no, why would i ignore you -- you're trying to help me, your recommendation had no effect
cppking has quit [Quit: Leaving.]
tgkokk has quit [Quit: WeeChat 0.4.3]
<AntelopeSalad> actually... hmm, i looked at the source, you guys spelled behavior differently
tanema has quit [Ping timeout: 260 seconds]
<jhass> ups, sorry
<AntelopeSalad> now it complains about the destination_root not being available, so i added self.destination_root = Dir.pwd
<AntelopeSalad> do you think that's safe?
<AntelopeSalad> a previous SO answer recommended adding that to your class' constructor
<jhass> maybe, I don't know thor well enough, I'm just looking at the docs and relevant code
zegerjan has quit [Ping timeout: 260 seconds]
<AntelopeSalad> it threw: destination_root': undefined method `last' , on line 102 of the thor/actions.rb file
<AntelopeSalad> that's without the self.destination_root bits in the initializer
sinabs has quit [Quit: Leaving.]
<AntelopeSalad> but i wonder is that going to work regardless of where i run it? is it getting the pwd of the file command.rb (my class using it) or the file which called command.rb?
chrisseaton has joined #ruby
monkegjinni has joined #ruby
<jhass> Dir.pwd is the current working directory, it's the directory that you're in when you invoked ruby
monkegjinni has quit [Client Quit]
browndawg has quit [Quit: Leaving.]
aasirc has joined #ruby
* apeiros prefers .getwd since he doesn't actually "print" anything
aasirc has left #ruby [#ruby]
burlyscudd has joined #ruby
<certainty> Dir.pwd prints something?
<AntelopeSalad> hmm
<jhass> I guess you could read it as "process working directory"
<AntelopeSalad> it's some thor dependency
<apeiros> certainty: no, but the name implies it
tgkokk has joined #ruby
<AntelopeSalad> i think thor allows you to modify the filesystem using relative paths
<AntelopeSalad> i'm guessing that this might convert that to an absolute path?
<AntelopeSalad> i'm not sure tho
<certainty> apeiros: ah, i see. you're right
<apeiros> jhass: sure, but that's revisionism :D
<AntelopeSalad> do you foresee any issues with using getwd? like, it should always give the same expected output regardless of where it's ran right?
<certainty> could also be presnent working directory
<certainty> present, even
monkegjinni has joined #ruby
<AntelopeSalad> the way i'm using Dir.pwd doesn't seem to print anything directly, also that was pulled from a random SO answer
<AntelopeSalad> so maybe that guy didn't know about getwd
<jhass> AntelopeSalad: Dir.pwd and Dir.getwd are aliases, we're just discussing the naming in ruby since the shell variant does print it and does stand for print working directory ;)
<AntelopeSalad> yeah
angusiguess has quit [Ping timeout: 260 seconds]
<shevy> well
<shevy> p for print is a misnomer here
burlyscudd has quit [Ping timeout: 252 seconds]
<shevy> because it returns a string, it does not print anything
<certainty> AntelopeSalad: i see no problem with it as long as this is actually what you want.
<AntelopeSalad> certainty: i just want it to work like it did when i used 'run' directly in a thor class
tungd has quit [Ping timeout: 260 seconds]
senayar has quit [Remote host closed the connection]
<certainty> AntelopeSalad: i can't assure that. Don't know enough about thor
senayar has joined #ruby
<AntelopeSalad> thor is also a pretty big code base, i'm not sure where exactly to look to see what it sets these values to when used inside of a normal thor class
<AntelopeSalad> that will certainly be the place to look to verify
tungd has joined #ruby
<AntelopeSalad> my editor is showing like 30 different classes under the Thor namespace
<apeiros> shevy: it's derived from the cli utility "pwd", which indeed prints the working directory.
monkegjinni has quit [Ping timeout: 260 seconds]
Xeago has quit [Remote host closed the connection]
<AntelopeSalad> seems like that value is filled from a hash you send to Action's initializer
<certainty> personally i'd probably pass the main class to my utility classes
monkegjinni has joined #ruby
<AntelopeSalad> certainty: what's the proper way to do that?
<platzhirsch> now I will include Enumerable in my Graph class, sooo hot
<AntelopeSalad> certainty: before i broke everything up i had my util classes as just modules which i mixed into the thor class directly
VTLob has joined #ruby
meatherly has joined #ruby
MyStartx has quit [Ping timeout: 245 seconds]
Hiall has quit [Quit: hiall]
<AntelopeSalad> i don't think that will work anymore tho
ringaroses has joined #ruby
kayloos has joined #ruby
thelamest has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
Aryasam has quit [Ping timeout: 252 seconds]
cmoylan has joined #ruby
timonv has joined #ruby
raphaelivan has joined #ruby
shredding has quit [Quit: shredding]
kayloos has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
shredding has joined #ruby
aryaching has joined #ruby
zegerjan has joined #ruby
dx7 has joined #ruby
<AntelopeSalad> jhass: if you want to answer the question on SO with the behavior part i'll mark you as correct
sparrovv has quit [Remote host closed the connection]
<certainty> platzhirsch: you build your own graph class? isn't there rgl?
<platzhirsch> certainty: sure, depends on what you want to do with the graph
<certainty> AntelopeSalad: something like Command.new(self).foo inside your main class
<certainty> platzhirsch: ah ok. What do you want to do? i'm curious :)
<AntelopeSalad> certainty: that is how i'm calling it now, minus passing in self but
phansch has quit [Remote host closed the connection]
<AntelopeSalad> i don't understand the mechanics of what passing in the class will do for me
<platzhirsch> certainty: I am crawling a specified target domain (pages and static assets) and based on that I build a graph
Aryasam has quit [Quit: Bye]
Aryasam has joined #ruby
dx7 has quit [Ping timeout: 252 seconds]
<certainty> platzhirsch: i see. A graph of each resource in that domain.
<platzhirsch> certainty: more a graph for the whole domain. Currently, I trying to lose the knot in my head how I can display that on a page
<certainty> AntelopeSalad: then you have a proper subclass of CLI which you can use to do stuff for you, like running shell commands no?
<AntelopeSalad> certainty: but then isn't the util class going to inherit all of thor's commands? that would be really really bad
<certainty> apparently that's how it was designed
<AntelopeSalad> if you subclass thor then it makes every method in the class callable through a command line
shredding has quit [Quit: shredding]
<AntelopeSalad> you could get around that by making private methods but that seems kind of hacky to subclass thor properly and make all private methods
<certainty> yeah sounds iffy indeed
<AntelopeSalad> is passing self into another class identical to subclassing it with the Foo < Bar syntax btw?
<certainty> no it's not
<certainty> you're just passing a reference to whatever self is at that point
<AntelopeSalad> so it completely alters the util class into being whatever self is?
<apeiros> you can't pass anything into a class
<apeiros> the only thing which accepts "passing" are methods
<AntelopeSalad> apeiros: i was talking about doing Foo.new(self).bar
<AntelopeSalad> to me that is "passing self into Foo"
andy has joined #ruby
<apeiros> but that's not what you do
<apeiros> you pass self into new
<AntelopeSalad> yeah but the end result is the same no?
<apeiros> no
eka has joined #ruby
<AntelopeSalad> passing self into new and new creates a new instance of Foo using the params you passed into new
<apeiros> since there is no "pass into Foo". it'd be Foo(self), and then it'd be an entirely different method.
<AntelopeSalad> oh
<apeiros> yes. assuming Foo.new is the new inherited from Class#new
Speed has joined #ruby
<AntelopeSalad> i'm still not sure what passing self into new really does tho, maybe i need to google that
<apeiros> Class#new is roughly: class Class; def new(*args, &block); instance = allocate; instance.__send__(:initialize, *args, &block); end; end
<AntelopeSalad> but if it gives me all of the goodies of the parent class and its subclasses then it's not something i want in this case
<apeiros> the same as passing it to any other method - it passes an object as an argument.
browndawg has joined #ruby
browndawg has quit [Client Quit]
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Davey_ is now known as Davey
<AntelopeSalad> apeiros: yeah but he told me that was a potential idea to give my util classes the abilities of the parent class
Matix has joined #ruby
<AntelopeSalad> i wasn't sure how just passing it in allowed that to happen
deadlock has quit [Read error: Connection reset by peer]
<apeiros> I haven't read the backlog, but probably he thought you should store the reference in your class and delegate
<AntelopeSalad> because right now to make my non-thor util class capable of using thor's action commands without subclassing thor requires me to include 3 thor modules and also set 2 thor-specific things in my util class' initializer
Davey- has joined #ruby
jlebrech has joined #ruby
jlebrech has quit [Max SendQ exceeded]
andy has quit [Ping timeout: 252 seconds]
<AntelopeSalad> i personally don't mind doing that, but he provided an alternative approach that i didn't fully get
razibog has joined #ruby
timonv has quit [Remote host closed the connection]
<certainty> AntelopeSalad: i didn't mean to confuse you. The idea was to delegate work to the class that actually works correctly. Your subclass of thor.
<certainty> May be unfeasable though
Matip has quit [Ping timeout: 272 seconds]
bkparso has joined #ruby
<AntelopeSalad> yeah i don't know
scarolan has joined #ruby
<AntelopeSalad> maybe i could create a Baz class that does the triple thor includes and sets those 2 values in the initializer and then subclass baz for all of my util classes?
ringaroses has quit [Ping timeout: 252 seconds]
<AntelopeSalad> personally i'd rather mix it in instead of subclassing but i'm not sure how to mix in a class yet
<certainty> AntelopeSalad: i can't believe that Thor provides no means to do these kinds of things
randomnick_ has joined #ruby
<AntelopeSalad> yeah it's crazy
<certainty> sounds like a pretty common requirement
<certainty> also i honestly don't see why running shell commands should have this dependency
<AntelopeSalad> me neither but that's how he designed it
<certainty> why do you want to use Thor's run method instead of your own?
<certainty> is it only run or are there more things you use?
Davey has quit [Disconnected by services]
<AntelopeSalad> run just calls system() under the hood but
sparrovv has joined #ruby
<AntelopeSalad> it also automatically gives you thor's terminal UI (it prints what you're running, etc.)
<AntelopeSalad> there's also like 10 other methods i plan to use
<certainty> ok so it makes sense to reuse what is there
<AntelopeSalad> it's not possible to mixin a class right?
Davey- is now known as Davey
<platzhirsch> How do you tests involving manipulation of the filesystem like Dir.mkdir or FileUtils.cp_r? There is a :noop option, should that be injected somehow?
<AntelopeSalad> i 90% understand that if i make a module and put regular methods on it, i can "include Foo" into a class and now that class gets those methods
<AntelopeSalad> but i'm not sure how i would include something that modifies the class' initializer
Davey has quit [Changing host]
Davey has joined #ruby
<AntelopeSalad> platzhirsch: maybe you can just push the paths onto an array?
scarolan has quit [Ping timeout: 252 seconds]
dubsteph has joined #ruby
chrisseaton has quit []
maroloccio has quit [Quit: WeeChat 0.4.2]
cmoylan has quit [Ping timeout: 260 seconds]
<certainty> platzhirsch: it depends. Sometimes i just use a fakefs. Sometimes i make a base path configurable and all operations happen relative to this base.
<certainty> it really depends on what exactly you want to test
<AntelopeSalad> what's the best way to do that btw?
<platzhirsch> Currently, I am thinking more about how I access my vendor asset files indepdent of the location. So I guess they are deployed as part of the gem, but I am not sure how to point to them. Do I create a path from __FILE__?
<AntelopeSalad> would you just override that method in your test helper to push to an array instead of call out to Dir?
lxsameer has quit [Quit: Leaving]
<certainty> you would have to do this for every method that is used
<certainty> which means you have to know alot about the code you test
<AntelopeSalad> is there a cleaner approach, is that where a fake filesystem mocker comes into play?
<certainty> yes
tjr9898 has joined #ruby
<certainty> platzhirsch: that would work
<AntelopeSalad> neat, i have to look into that too for testing
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AntelopeSalad> certainty: see what platzhirsch just wrote, maybe that's why thor requires those paths
<AntelopeSalad> unrelated but similar issue perhaps?
alex88_ has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<AntelopeSalad> btw platzhirsch: i'm doing the same thing in a gem and i went with File.expand_path combined with File.dirname(__FILE__) to setup the path i work off relatively
<platzhirsch> AntelopeSalad: well ok
<AntelopeSalad> not sure if it's the best way but it works and lets me work with relative paths in my code base that uses non-ruby files to include stuff
<platzhirsch> I need this to copy asset files like JS libraries and stylesheet to the output directory containing the computation results
iamsean has quit [Quit: iamsean]
alex88 has quit [Ping timeout: 245 seconds]
<AntelopeSalad> yeah i'm doing basically the same thing -- i'm taking files within my gem's directory and outputting them with their relative path to some place on the file system
<platzhirsch> I guess I need to add the directory, currently it's stored in vendor/ and only lib/ is part of the directory configuration in the gemspec
PLejeck has quit [Max SendQ exceeded]
PLejeck has joined #ruby
monkegjinni has joined #ruby
dubsteph has quit [Ping timeout: 272 seconds]
<AntelopeSalad> i just wanted to say something like, take this file from within my gem: static/hello/world.html , and then copy it to some place on the file system using whatever base path the user entered
alex88_ has quit [Ping timeout: 246 seconds]
johnmilton has joined #ruby
<AntelopeSalad> using the expand_path/dirname combo will give you a full path to the gem's version of the file
carraroj has joined #ruby
<AntelopeSalad> then you are free to 'cp' it from there to anywhere you want
burlyscudd has joined #ruby
angusiguess has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
scarolan has joined #ruby
<certainty> i'm still shocked by the behavior of 'for'
burlyscudd has quit [Ping timeout: 246 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 260 seconds]
alex88 has joined #ruby
sinabs has joined #ruby
<sinabs> Hi, I'm trying to install Redmine with Apache and passenger but when i try to access to the webpage, I've just a directory list, any ideas ?
kotk has joined #ruby
<jhass> sinabs: maybe try #passenger
<AntelopeSalad> certainty: btw one last thing if you don't mind, when you said delegate from the class...
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
<AntelopeSalad> when passing in the class it would end up being set to @foo = self , and then i would be free to do things like @foo.some_method?
<AntelopeSalad> where some_method is a static method on the main thor class?
<sinabs> jhass: Thanks, I will
scarolan has quit [Ping timeout: 260 seconds]
lyanchih_ has joined #ruby
mikepack has joined #ruby
agjacome has quit [Ping timeout: 260 seconds]
danijoo has joined #ruby
meatherly has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
sdwrage has quit [Client Quit]
meatherly has quit [Ping timeout: 260 seconds]
mojjojo has joined #ruby
maximski has quit []
tanema has joined #ruby
`MArceLL` has quit [Ping timeout: 246 seconds]
`MArceLL` has joined #ruby
Aryasam has quit [Ping timeout: 248 seconds]
maximski has joined #ruby
einarj has quit [Remote host closed the connection]
Meistarin_ has joined #ruby
wallerdev has joined #ruby
timonv has joined #ruby
Meistarin_ has quit [Client Quit]
Cache_Money has joined #ruby
Aryasam has joined #ruby
koell has joined #ruby
mehlah has quit [Quit: Leaving...]
<dachi> should I use application/zip or application/octet-stream for .zip that I make with ruby
pu22l3r_ has quit [Remote host closed the connection]
<certainty> AntelopeSalad: more like https://gist.github.com/certainty/7e2388800c47c14f2f85
mehlah has joined #ruby
pu22l3r has joined #ruby
maximski has quit []
havenwood has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
popl has quit [Ping timeout: 245 seconds]
soulcake has joined #ruby
mojjojo has quit [Quit: mojjojo]
<AntelopeSalad> certainty: i can't have any public methods in the cli class
tanema has quit [Remote host closed the connection]
sinabs has left #ruby [#ruby]
<AntelopeSalad> or is that run method on 12 just a place holder to fill in for what thor would have provided?
<certainty> yeah
<AntelopeSalad> *line 12
tanema has joined #ruby
<AntelopeSalad> hmm, so you think approach is better than including a few things?
<certainty> i'm unsure
<AntelopeSalad> *this
monkegjinni has quit []
<AntelopeSalad> it seems pretty neat but it's kind of indirecty
mojjojo has joined #ruby
CodeTheInternet has joined #ruby
<certainty> AntelopeSalad: yeah the indirection is the entire trick :)
tanema has quit [Ping timeout: 260 seconds]
<AntelopeSalad> i thought indirection is bad
<certainty> why?
cburyta has joined #ruby
<AntelopeSalad> when i think of indirection, i see it as complexity
soulcake has quit [Quit: ZNC - http://znc.in]
<AntelopeSalad> maybe it's just a different definition of indirection
Cache_Money has quit [Quit: Cache_Money]
soulcake has joined #ruby
<apeiros> if you use a hammer, it's indirection too
<apeiros> you wouldn't want to use your bare hand to drive in a nail, though
raphaelivan has quit [Quit: Leaving.]
<apeiros> indirection adds a layer, which means complexity, which can be bad. it doesn't mean it's always bad, though.
dx7 has joined #ruby
<AntelopeSalad> i don't have much experience using indirection in this way i guess
IceDragon has joined #ruby
<AntelopeSalad> it just seems weird to pass in a class to another class just to call the first class's mixed in methods provided by a third class/module
Aryasam has quit [Quit: Bye]
<apeiros> (note: above was just a generic statement)
mityaz has quit [Quit: See ya!]
<certainty> it certainly does complect things, it intertwines components
timonv has quit [Remote host closed the connection]
Aryasam has joined #ruby
<AntelopeSalad> the only other option is to make a new class called ThorUtil which does the thor includes/initializer setup and subclass that right?
<certainty> AntelopeSalad: it is weired. I was trying to work around some limitiations with this
<certainty> AntelopeSalad: yes that's another way
<AntelopeSalad> this is under the impression i would want multiple classes to all have the thor action support
pu22l3r_ has joined #ruby
<AntelopeSalad> and duplicating that thor boilerplate 3-4 times seems annoying/wrong
<certainty> repitition is an indicator that there might be something wrong, yeah
timonv has joined #ruby
black0ut has joined #ruby
<AntelopeSalad> seems like there's downsides and upsides for both approaches
deadlock has joined #ruby
<AntelopeSalad> the big win for your approach i think is that the app author doesn't have to worry about the internals of thor at all
<AntelopeSalad> if thor changes something and that triple include/double initializer setup doesn't work anymore, then the app breaks
wallerdev has quit [Quit: wallerdev]
pu22l3r has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
<AntelopeSalad> with proper version locking this shouldn't really ever be a big deal but it's still some junk the app author has to track down in thor's source to fix anything that changes in the future
cmoylan has joined #ruby
jlebrech has joined #ruby
alx- has joined #ruby
jlebrech has quit [Max SendQ exceeded]
spider-mario has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
nomenkun has joined #ruby
<certainty> AntelopeSalad: what are you building there?
burlyscudd has joined #ruby
TMM has joined #ruby
TMM has quit [Read error: Connection reset by peer]
<AntelopeSalad> certainty: nothing too crazy, just a cli that runs a generators/rails related stuff
<AntelopeSalad> *run a few
angusiguess has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
<certainty> AntelopeSalad: i see
Sirupsen has joined #ruby
deadlock has quit [Read error: Connection reset by peer]
burlyscudd has quit [Ping timeout: 252 seconds]
art-solopov has joined #ruby
silicong has quit []
angusiguess has quit [Ping timeout: 248 seconds]
<AntelopeSalad> certainty: it's funny that i've spent longer trying to debug random thor and/or thor related minitest issues than the app itself
meatherly has joined #ruby
<art-solopov> Hi. I've got a question concerning testing. My sources are in lib/, and my tests are in test/. Should I add './lib' to $LOAD_PATH in each test file? Or maybe it's better to rake it right away?
elaptics`away is now known as elaptics
itadder has joined #ruby
_dev__ has joined #ruby
shredding has joined #ruby
<certainty> AntelopeSalad: that's not good
cmoylan has quit [Ping timeout: 272 seconds]
<apeiros> art-solopov: I usually have a test/helper.rb which does the generic setup things, like setting up $LOAD_PATH
<art-solopov> apeiros: Thanks.
tgkokk has quit [Ping timeout: 260 seconds]
<art-solopov> Yeah, that definitely makes more sense. -_-
meatherly has quit [Ping timeout: 272 seconds]
<AntelopeSalad> certainty: the really unfortunate thing is testing it is going to be ugly too
<AntelopeSalad> since it depends on running bundle install and certain rails/rake tasks to ensure it works, there's no chance to mock the file system
Monk_code has joined #ruby
Monk_code has quit [Client Quit]
<certainty> you have my condolence
sambao21 has joined #ruby
<AntelopeSalad> am i correct to think that the only reason tests exist is to give you confidence that your code works as planned?
itadder has quit [Ping timeout: 246 seconds]
Aryasam has quit [Read error: Connection reset by peer]
<AntelopeSalad> in this case if i skip running the bundle install/rake tasks then i get 0 confidence, so the only way to do it is to really do it
<apeiros> with unit tests, yes
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
<apeiros> with integration tests, it's also that the systems you integrate work as expected
CodeTheInternet has quit [Quit: Leaving.]
<apeiros> additionally, and that's not to underestimate, it's to guard you from regressions when you change stuff in your code.
<AntelopeSalad> when running rails templates, they need to be stand alone files that you can just pass to rails -- there's no room for abstraction i think, or to create some isolated "unit'ish" thing for each thing it does
<apeiros> or when third party parts change
<AntelopeSalad> yeah, being able to change things without wondering if the world exploded is really important
<certainty> AntelopeSalad: not only that it works correct. It also enables you to do refactoring
<AntelopeSalad> right, but in this case i think running a cli driven generator has no units
<certainty> AntelopeSalad: actually i'd say that tests aren't very good at verifying that your code is correct
<AntelopeSalad> it's all about how it "really" runs?
<AntelopeSalad> it either generates all of the files and your end result works, or it doesn't
<AntelopeSalad> most of the cli logic is tied into which flags/options you pass into it
tgkokk has joined #ruby
kayloos has joined #ruby
venkat has joined #ruby
elaptics is now known as elaptics`away
Lewix has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 260 seconds]
fuhgeddaboudit has joined #ruby
maximski has joined #ruby
<certainty> AntelopeSalad: yes, personally i'd invoke the generator with the different switches and verify that the files have been generated and such
<certainty> as in really run it
shredding has quit [Quit: shredding]
<AntelopeSalad> yeah that's the approach i've taken for some of the more simple commands so far
<AntelopeSalad> like outputting the version or getting a list of help commands, etc.
CodeTheInternet has joined #ruby
<AntelopeSalad> but just seeing the files on the file system give me 0 confidence, because what if the code to create the generator has a mistyped variable name or a missing quote?
sambao21 has quit [Quit: Computer has gone to sleep.]
<AntelopeSalad> you could have a foo/bar/hello.rb file successfully created but if it has a typo on line 7 then when you use the generated file later your app will crash
shredding has joined #ruby
kayloos has quit [Ping timeout: 252 seconds]
<certainty> AntelopeSalad: also check the contents
zegerjan has quit [Ping timeout: 260 seconds]
phansch has joined #ruby
aloitius_ has quit [Ping timeout: 245 seconds]
<AntelopeSalad> yep that's an option, but that's going to end up being insanely tedious
<AntelopeSalad> to me it just felt easier to create an app that uses the generated files and check if the server starts or not
<AntelopeSalad> since ruby is pretty good at picking up ruby syntax errors hah
evilbug has joined #ruby
<certainty> it is. I did this once when i created a meta generator at work to bootstrap projects. I used aruba to drive the tests back then
<certainty> it wasn't exactly the coolest experience
<AntelopeSalad> so you went the tedious path and ran a search on every single file you modified to ensure it matched exactly what you put in the generator?
timonv has quit [Remote host closed the connection]
<AntelopeSalad> isn't that basically testing the wrong code?
<AntelopeSalad> because at this point your testing if the thor gsub_file command actually modifed the file you passed in, etc.
fuhgeddaboudit has quit [Ping timeout: 248 seconds]
michael_lee has joined #ruby
<certainty> AntelopeSalad: yeah i checked that the files looked correct for the parameters i supplied
<AntelopeSalad> were you doing the file modifications with thor's built ins or did you create methods on your own?
wallerdev has joined #ruby
<certainty> i wasn't using thor at all :) i used rubygen
<AntelopeSalad> does that supply a bunch of helper methods for doing common tasks to files?
yetet has joined #ruby
<certainty> yeah
aaronmcadam has quit [Quit: Leaving...]
<art-solopov> Hm. Is pry messing with $LOAD_PATH? Because it looks like it automatically loaded my 'lib/' directory into $LOAD_PATH...
<AntelopeSalad> thinking about testing the contents of every file it outputs that i modified is making my eye twitch
thomasxie has quit [Ping timeout: 252 seconds]
<AntelopeSalad> it would be literally thousands of lines of test code
OdNairy has joined #ruby
kennym has joined #ruby
nszceta has joined #ruby
<certainty> AntelopeSalad: only testing if the server starts up doesn't make it's working correctly
venkat has quit [Read error: Connection reset by peer]
<certainty> +sure
S0da has joined #ruby
venkat has joined #ruby
<AntelopeSalad> yep, but it does make sure there's no syntax errors at least
<AntelopeSalad> comparing the output of the file also doesn't make sure it works either
_dev__ has quit [Remote host closed the connection]
<certainty> AntelopeSalad: you probably want to combine these checks then
otherj has quit []
_dev__ has joined #ruby
kennym has quit [Quit: kennym]
bkparso has quit [Quit: bkparso]
<AntelopeSalad> if i do it like that then i'm going to be basically copy/pasting 40 lines of generated code
<AntelopeSalad> from my template file to the test case and ensuring they match
michael_lee has quit [Ping timeout: 260 seconds]
kennym has joined #ruby
kennym is now known as Guest53071
<certainty> AntelopeSalad: how else do you verify that the files look like intended?
<AntelopeSalad> that just seems like i'm testing the wrong code here, i trust thor's file commands to do what they are supposed to
figgleberry has joined #ruby
<AntelopeSalad> because they inform you if something goes wrong
<certainty> i thought these files were templates
<AntelopeSalad> they are rails templates
<AntelopeSalad> which uses thor under the hood
<certainty> no i mean files generated from a template.
<certainty> the contents of them is dynamically generated
<AntelopeSalad> the files are what you would pass to -m in rails
_dev__ has quit [Remote host closed the connection]
_dev__ has joined #ruby
<AntelopeSalad> and they are static
<AntelopeSalad> (in my case)
tgkokk has quit [Ping timeout: 293 seconds]
<certainty> ok. Then testing the content doesn't make sense. I assumed something different
chrisseaton has joined #ruby
<AntelopeSalad> so imagine if you made a foo.rb file which is a custom rails application template passed into rails new with -m foo.rb
Guest53071 has quit [Client Quit]
<AntelopeSalad> and inside of foo.rb it does a million thor related tasks like making new files, modifying files, etc.
michael_lee has joined #ruby
<AntelopeSalad> here's a perfect example
parzo has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
parzo has joined #ruby
intuxicated has joined #ruby
elaptics`away is now known as elaptics
fuhgeddaboudit has joined #ruby
tanema has joined #ruby
Solnse has joined #ruby
newleaf has joined #ruby
tgkokk has joined #ruby
einarj has joined #ruby
wallerdev has quit [Quit: wallerdev]
<newleaf> Hi everybody. I am looking for a text to rip through (preferably with lots of projects to follow along) to learn Ruby on Rails. Any suggestions?
parzo has quit [Ping timeout: 260 seconds]
<newleaf> I have some basic programming knowledge. control structures, loops, recursion etc.
kennym_ has joined #ruby
Opettaja has joined #ruby
<AntelopeSalad> newleaf: what's your ruby background?
shredding has joined #ruby
<shevy> the railsers are on #RubyOnRails, I am sure they can give links to the best tutorials
<newleaf> AntelopeSalad: No experience. I don't really count fiddling around with some online tutorials
dangerousdave has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zegerjan has joined #ruby
<AntelopeSalad> you might want to consider picking up a ruby book or find some ruby guides before touching rails
<newleaf> Ok. How long should it take me to get a good hold onto Ruby?
<AntelopeSalad> there's too much crap that's going to bend your mind in rails without understanding at least a decent amount of ruby first
_dev__ has quit [Remote host closed the connection]
ace_striker has joined #ruby
<newleaf> ok
dpaulus has quit [Ping timeout: 272 seconds]
<newleaf> and, when would I know that I'm ready to move onto rails?
Fire-Dragon-DoL has joined #ruby
ace_striker is now known as Guest24498
lidenbrock has joined #ruby
<AntelopeSalad> i'm not sure, i've been working with rails for about 8 months and came to it with no ruby experience
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
Scient has quit [Ping timeout: 245 seconds]
AndChat| has quit [Quit: Bye]
<AntelopeSalad> i read a single ruby before hand and it helped a lot
lkba has joined #ruby
<AntelopeSalad> *ruby book
_dev__ has joined #ruby
<newleaf> Yeah.. I'm trying to go from 0 to 1. 1 being a job or freelance work.
<newleaf> Ok AntelopeSalad will do
<newleaf> https://rubymonk.com/ I'll knock these out and google around for a good book on ruby. I know books are sometimes looked down on, but I like having a good text on hand
saarinen has joined #ruby
browndawg has left #ruby [#ruby]
_dev__ has quit [Remote host closed the connection]
<AntelopeSalad> yeah that wouldn't hurt
<AntelopeSalad> a lot of people praise a few ruby books, it's not really looked down on
<newleaf> Yay
_dev__ has joined #ruby
ebwise has joined #ruby
kennym_ is now known as kennym
kennym has quit [Changing host]
kennym has joined #ruby
<newleaf> Ok. Just for kicks. What timeline should I give myself to be job ready?
_dev__ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
androbtech has quit [Read error: Connection reset by peer]
_dev__ has joined #ruby
<AntelopeSalad> it depends on how much time you're willing to invest per day
<newleaf> currently I slice psd mockups for web. Pretty handy with html/css so I have that going for me
ebwise has quit [Max SendQ exceeded]
<newleaf> Loads of time.
einarj has quit [Remote host closed the connection]
<newleaf> Probably 8hrs a day. split into sections. I'm a bit of a bum haha.
ebwise has joined #ruby
androbtech has joined #ruby
<newleaf> some for reading, some hours for work
Speed has quit [Ping timeout: 260 seconds]
<AntelopeSalad> it's still pretty hard to gauge, if you have a very basic knowledge of programming
<AntelopeSalad> but your end goal is to become a full stack developer so you can freelance, there is so much info to know
ebwise has quit [Max SendQ exceeded]
ebwise has joined #ruby
<newleaf> Yeah. I have an AS degree from a small school in florida. Learned a few programming principles with C++
ebwise has quit [Max SendQ exceeded]
lidenbrock has left #ruby [#ruby]
asmodlol has quit [Remote host closed the connection]
acoyfellow has joined #ruby
saarinen has quit [Ping timeout: 245 seconds]
<AntelopeSalad> it's funny because you can get pretty far with rails even without a good understanding of ruby
<AntelopeSalad> there's still so much junk in ruby that i'm clueless on but i've built a few non-trivial rails apps
andy__ has joined #ruby
dtcrshr has quit [Remote host closed the connection]
<AntelopeSalad> but i think really knowing ruby will make you a 1000x better at writing rails apps
<newleaf> I see. I agree too
Rudde has quit [Ping timeout: 264 seconds]
einarj has joined #ruby
<newleaf> Now... "rails apps". That can be alot of things right?
<AntelopeSalad> if you go it for like 60 hours a week it might be possible in a few months to feel comfortable enough taking in most small scale jobs
shredding has joined #ruby
pushpak has joined #ruby
<newleaf> Ok.
Hobogrammer has quit [Ping timeout: 248 seconds]
<AntelopeSalad> but with a few days of basic ruby reading and going through a couple of rails tutorials, you could probably get somewhere
<AntelopeSalad> you won't feel useless for all that time
cburyta has quit [Remote host closed the connection]
mikepack has joined #ruby
Hobogrammer has joined #ruby
<newleaf> Awesome. 60 hours a week sounds like a plan.
<AntelopeSalad> i see full stack development as much more than just learning ruby or creating rails apps -- there's an entire environment/philosophy/thought process that goes around it
dtcrshr has joined #ruby
burlyscudd has joined #ruby
habanany has joined #ruby
<newleaf> Ah
<AntelopeSalad> are you testing everything, using version control, how are you deploying, what's your plan of attack for creating content / design / user experience?
elaptics is now known as elaptics`away
<AntelopeSalad> what tools are you using for all of those tasks? how long will it take to research / learn them?
AlSquirikou has joined #ruby
fuhgeddaboudit has joined #ruby
venkat has quit [Remote host closed the connection]
awarner_ has joined #ruby
Adawerk__ has joined #ruby
endash_ has joined #ruby
<newleaf> Yeah
yarou_ has joined #ruby
angusiguess has joined #ruby
aryaching_ has joined #ruby
teenwolf has joined #ruby
senayar_ has joined #ruby
jzig_ is now known as jzig
tfittsy has joined #ruby
firefly20131 has joined #ruby
mojjojo_ has joined #ruby
<newleaf> I definitely have to learn Git at some point
mjuszcza1 has joined #ruby
pietr0_ has joined #ruby
mikepack has quit [Ping timeout: 246 seconds]
<newleaf> And then there's databases. MySQL, Postgres etc. No idea about all that stuff
<AntelopeSalad> if you want a full blown tutorial with rails that touches on some of that stuff there's http://ruby.railstutorial.org/haml
<AntelopeSalad> check out that table of contents to get a rough idea of what it covers
Hobogrammer has quit [Ping timeout: 252 seconds]
<newleaf> Ok this looks like a winner
<newleaf> I'll start here
nszceta_ has joined #ruby
burlyscudd has quit [Ping timeout: 252 seconds]
nszceta_ has quit [Read error: Connection reset by peer]
<AntelopeSalad> then there's railscasts.com for learning about random specific things
lagweezl1 has joined #ruby
_dev__ has quit [Remote host closed the connection]
klipeto has joined #ruby
ruisanto1 has joined #ruby
Scient has joined #ruby
_dev__ has joined #ruby
yfeldblu_ has joined #ruby
rblackwe_ has joined #ruby
pwh_ has joined #ruby
Tachoh_ has joined #ruby
<newleaf> Ok. Yeah so basically my goal is to get an idea for a b2b app from a niche market I'm targeting...build the mockup, and know enough to build the app myself, or outsource the work to be done.
angusiguess has quit [Ping timeout: 246 seconds]
rotor` has joined #ruby
<newleaf> (thinking months down the line)
dpaulus has joined #ruby
<newleaf> That'll be in my spare time, during the day, I'll have a job.
Rudde has joined #ruby
TheMoonMaster_ has joined #ruby
pushpak has quit [Ping timeout: 260 seconds]
<AntelopeSalad> i'd probably go through that rails tutorial but also have a ruby book on hand so you can read about certain core ruby concepts
<newleaf> Gotcha
pwh has quit [Ping timeout: 252 seconds]
alex88_ has joined #ruby
kaichanvong___ has joined #ruby
alex88_ is now known as alex88__
alex88__ is now known as alex88_
Fire-Dragon-DoL has quit [*.net *.split]
Opettaja has quit [*.net *.split]
tgkokk has quit [*.net *.split]
zegerjan has quit [*.net *.split]
michael_lee has quit [*.net *.split]
intuxicated has quit [*.net *.split]
nszceta has quit [*.net *.split]
figgleberry has quit [*.net *.split]
soulcake has quit [*.net *.split]
mojjojo has quit [*.net *.split]
alex88 has quit [*.net *.split]
carraroj has quit [*.net *.split]
randomnick_ has quit [*.net *.split]
aryaching has quit [*.net *.split]
senayar has quit [*.net *.split]
pinage404 has quit [*.net *.split]
claymore has quit [*.net *.split]
firefly2013 has quit [*.net *.split]
sethen has quit [*.net *.split]
Beoran has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
yarou has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
AlSquirrel has quit [*.net *.split]
snath has quit [*.net *.split]
iMe has quit [*.net *.split]
pietr0 has quit [*.net *.split]
lagweezle has quit [*.net *.split]
gomix has quit [*.net *.split]
klip has quit [*.net *.split]
ruisantos has quit [*.net *.split]
shevy has quit [*.net *.split]
rotor has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
Tachoh has quit [*.net *.split]
rblackwe has quit [*.net *.split]
tfitts has quit [*.net *.split]
Liothen has quit [*.net *.split]
mjuszczak has quit [*.net *.split]
mven has quit [*.net *.split]
awarner has quit [*.net *.split]
koshian_ has quit [*.net *.split]
endash has quit [*.net *.split]
hl has quit [*.net *.split]
awkisopen has quit [*.net *.split]
linduxed has quit [*.net *.split]
Caius has quit [*.net *.split]
netf has quit [*.net *.split]
rotor` is now known as rotor
pushpak has joined #ruby
endash_ is now known as endash
mojjojo_ is now known as mojjojo
pietr0_ is now known as pietr0
_dev__ has quit [Ping timeout: 260 seconds]
kaichanvong___ is now known as kaichanvong
shredding has quit [Quit: shredding]
nemesit|- has joined #ruby
<AntelopeSalad> newleaf: i'd also consider researching multiple database platforms and server deployment too on the side
alex88_ is now known as alex88
<newleaf> Only DB experience I have is setting up wordpress lol
iMe has joined #ruby
<AntelopeSalad> deploying can be easy with services like heroku but if need things not available on their free plan you're going to be paying a massive premium
tgkokk has joined #ruby
<AntelopeSalad> *if you need
parzo has joined #ruby
<newleaf> <-- just googled heroku
<AntelopeSalad> i don't use them personally because i once priced out how much it would cost
maZtah has quit [Excess Flood]
<newleaf> ah, is it based on how many users you have?
<AntelopeSalad> but my app had specific needs
<AntelopeSalad> sort of but they also sell you add-ons
venkat has joined #ruby
parzo_ has joined #ruby
parzo has quit [Read error: Connection reset by peer]
ndrei has quit [Read error: Operation timed out]
<newleaf> ahh dynos, heroku postgres, and support
speakingcode has joined #ruby
<newleaf> oh addons too
ndrei has joined #ruby
estebistec has joined #ruby
<AntelopeSalad> their add on page is probably a good way just to learn about common web related technologies but that's about it heh
Beoran has joined #ruby
intuxicated has joined #ruby
<newleaf> Yeah some wild stuff in here
CodeTheInternet has quit [Quit: Leaving.]
claymore has joined #ruby
<AntelopeSalad> you wouldn't have to learn about every single thing there in detail, but it's good to be aware of them at least
alexherbo2 has joined #ruby
<AntelopeSalad> it's like learning about the unknown unknowns
shevy has joined #ruby
iMe has quit [Ping timeout: 272 seconds]
<newleaf> true. it's the matrix in there
<newleaf> http://www.paperlesspipeline.com/ my idea is to build something like this
tungd has quit [Ping timeout: 245 seconds]
<newleaf> or atleast...be aware of what it takes to build something like this
randomnick_ has joined #ruby
snath has joined #ruby
Opettaja has joined #ruby
gomix has joined #ruby
parzo_ has quit [Ping timeout: 252 seconds]
<AntelopeSalad> is a real estate transaction normally a massive paper contract of some sort?
koshian_ has joined #ruby
itadder has joined #ruby
<newleaf> Yup
Fire-Dragon-DoL has joined #ruby
pinpin404 has joined #ruby
linduxed has joined #ruby
<AntelopeSalad> just viewing their screenshots, too bad you can't demo the app without signing up
kayloos has joined #ruby
<AntelopeSalad> looks like search is going to be an important aspect of this app tho
<newleaf> True. It's a massive success. The guy who build it doesn't know any code. Hired a guy. I'm curious as what it takes to make something like this.
<AntelopeSalad> what do you do as an end user of the product
<AntelopeSalad> do you upload pdfs of the contract?
<newleaf> I've always thought of slicing the design, and building the layout..not too much thought on what goes on under the hood
<itadder> what are yo speaking of
lyanchih_ has quit [Ping timeout: 253 seconds]
<newleaf> http://www.paperlesspipeline.com/ checkin out this website itadder
ndrei has quit [Ping timeout: 245 seconds]
<newleaf> I'm interested in learning ruby on rails, and eventually learn how to make web apps
<snkcld> can anyone explain the difference between JSON.parse and JSON.parse! ? it says, "The bang version of the parse method defaults to the more dangerous values for the opts hash", but im not sure what "more dangerous" means, or why one would use it
sensen has quit [Quit: leaving]
<itadder> newleaf: is this done on ruby on rails
ndrei has joined #ruby
michael_lee has joined #ruby
Lewix has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
michael_lee has quit [Ping timeout: 260 seconds]
sdwrage has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
CodeTheInternet has joined #ruby
michael_lee has joined #ruby
nszceta has joined #ruby
ericmathison has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
maximski has quit []
Lewix has quit [Remote host closed the connection]
angerman has quit [Ping timeout: 252 seconds]
CodeTheInternet has quit [Client Quit]
monkegjinni has joined #ruby
x77686d has joined #ruby
jonr22 has joined #ruby
pinpin404 is now known as pinage404
sparrovv has quit [Remote host closed the connection]
wallerdev has joined #ruby
nszceta has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
nomenkun has quit [Remote host closed the connection]
fantazo has quit [Ping timeout: 260 seconds]
monkegjinni has quit [Read error: Connection reset by peer]
nomenkun has joined #ruby
tvw has quit []
monkegjinni has joined #ruby
res0_ has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
res0_ has left #ruby [#ruby]
nisstyre has joined #ruby
asda2341 has joined #ruby
Speed has joined #ruby
asda2341 has quit [Client Quit]
nomenkun has quit [Ping timeout: 245 seconds]
hobodave has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 272 seconds]
kayloos has quit [Remote host closed the connection]
<shevy> test
GinoMan has joined #ruby
<newleaf> itadder: No idea, but I don't think so
Tomasso has joined #ruby
sassamo_ has quit [Remote host closed the connection]
sassamo has joined #ruby
mojjojo has quit [Quit: mojjojo]
baroquebobcat has joined #ruby
decoponio has quit [Quit: Leaving...]
platzhirsch has left #ruby [#ruby]
matled has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
Caius has joined #ruby
netf has joined #ruby
awkisopen has joined #ruby
soulcake has joined #ruby
soulcake has joined #ruby
soulcake has quit [Changing host]
kayloos has joined #ruby
benzrf has joined #ruby
Caius is now known as Guest62825
hl has joined #ruby
<benzrf> hello ruby people
estebistec has quit [Remote host closed the connection]
<shevy> die
<benzrf> ruby is pretty inane
<shevy> I mean
JasmeetQA has quit [Ping timeout: 248 seconds]
<shevy> hi
<shevy> insane?
<shevy> that is not nice
JasmeetQA has joined #ruby
sassamo has quit [Ping timeout: 265 seconds]
<art-solopov> shevy: There are different kinds of insane. =3
koell has quit [Ping timeout: 260 seconds]
figgleberry has joined #ruby
pfg has joined #ruby
prc has quit [Ping timeout: 252 seconds]
tjr9898 has quit [Remote host closed the connection]
Guest24498 has quit [Quit: Page closed]
tgkokk_ has joined #ruby
tgkokk has quit [Read error: Connection reset by peer]
matled has joined #ruby
prc has joined #ruby
tjr9898 has joined #ruby
burlyscudd has joined #ruby
marcdel has joined #ruby
angusiguess has joined #ruby
jack_rabbit has joined #ruby
itadder has quit [Remote host closed the connection]
<benzrf> shevy: i said inane, not insane
<shevy> that's even worse!
x77686d has quit [Quit: x77686d]
<benzrf> :-D
burlyscudd has quit [Ping timeout: 245 seconds]
mark_locklear has joined #ruby
tgkokk_ has quit [Ping timeout: 252 seconds]
<shevy> look at the mruby logo
<shevy> that is like a basic building block
<shevy> from which you can build great things
<shevy> like a castle
<shevy> or a spaceship!
x77686d has joined #ruby
marcdel has quit [Ping timeout: 252 seconds]
gnephiak has quit [Quit: Konversation terminated!]
<benzrf> so why would you use mri over mruby if mruby is smaller/
<benzrf> does it get worse perf?
zegerjan has joined #ruby
<shevy> it's unfinished
habanany has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
meatherly has joined #ruby
<pontiki> mri is matzlove <3
<benzrf> i hear that MINASWAN
koell has joined #ruby
marcdel has joined #ruby
fridim_ has joined #ruby
<benzrf> how do you install a custom require?
JasmeetQA has quit [Ping timeout: 245 seconds]
<benzrf> *safely that is
gstamp has quit [Ping timeout: 256 seconds]
<apeiros> "install a custom require"? what's that?
<shevy> hehe
<apeiros> make it a gem and install it as a gem
<shevy> a require that is custom!
<apeiros> alternatively setup.rb
<shevy> benzrf can you ensure that external code is ever safe?
Zackio has quit [Read error: Connection reset by peer]
iaj_ is now known as iaj
<benzrf> i meant more like
<benzrf> is there an api for safely adding a hook to require or something
<benzrf> without overriding others'
gstamp has joined #ruby
bbloom has quit [Ping timeout: 252 seconds]
<apeiros> no
<benzrf> dang
<apeiros> look into how rubygems does it?
meatherly has quit [Ping timeout: 272 seconds]
<apeiros> rails uses alias_method_chain (or somesuch) which creates two aliases, foomethod_without_feature and foomethod_with_feature
parzo has joined #ruby
timonv has joined #ruby
zegerjan has quit [Ping timeout: 260 seconds]
einarj has quit [Remote host closed the connection]
_Andres has joined #ruby
figgleberry has quit [Ping timeout: 248 seconds]
tytytyty has joined #ruby
mradmacher has joined #ruby
parzo has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
Es0teric has joined #ruby
Zackio has joined #ruby
<benzrf> whats the hook for a new method being defined again
kayloos has quit [Remote host closed the connection]
dx7 has quit [Remote host closed the connection]
dx7 has joined #ruby
_dev__ has joined #ruby
ndrei has quit [Read error: Operation timed out]
baroquebobcat has quit [Quit: baroquebobcat]
msull92 has joined #ruby
Kricir has joined #ruby
msull92 has left #ruby [#ruby]
tytytyty has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_dev__ has quit [Remote host closed the connection]
_dev__ has joined #ruby
timonv has quit [Remote host closed the connection]
marcdel has quit []
<shevy> hmm
noarthur_ has quit [Quit: Konversation terminated!]
lkba has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 248 seconds]
noarthur_ has joined #ruby
lkba has joined #ruby
PINGwin4IK has joined #ruby
dx7 has quit [Ping timeout: 272 seconds]
marcdel has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
<shevy> I would thus say method_added
<benzrf> removed vs undefined??
_dev__ has quit [Remote host closed the connection]
_dev__ has joined #ruby
<shevy> I guess you can undef() or remove()
<shevy> or remove_method
<benzrf> hmmm
nszceta has joined #ruby
<shevy> ruby has too many features
<benzrf> no shit
tjr9898 has quit [Remote host closed the connection]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
tjr9898 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
sparrovv has joined #ruby
rafaelmagu has joined #ruby
<rafaelmagu> howdy
<benzrf> sup yo
marcdel has quit [Ping timeout: 265 seconds]
noarthur_ has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
<rafaelmagu> Quick (and possibly dumb) question: I'm doing some refactoring of a Chef cookbook I forked on GH, and there's a piece of code in particular that is failing a comparison.
tharindu has joined #ruby
marcdel has joined #ruby
<rafaelmagu> The line is the following:
<rafaelmagu> if !node['apache']['listen_ports'].include?(node['graphite']['listen_port'])
ndrei has joined #ruby
<rafaelmagu> node['apache']['listen_ports'] returns ["80"]
<rafaelmagu> And node['graphite']['listen_port'] returns 80
nisstyre has quit [Quit: WeeChat 0.4.3]
<rafaelmagu> No quotes
<rafaelmagu> What's the cleanest way to fix this include?
lxsameer has joined #ruby
<lxsameer> hi guys i get this when i try to install narray using gem http://dpaste.com/1626391/
<rafaelmagu> if !node['apache']['listen_ports'].include?("#{node['graphite']['listen_port']}") ?
DaniG2k has joined #ruby
angusiguess has joined #ruby
<pontiki> rafaelmagu: you should hit up the #chef channel
<benzrf> rafaelmagu: to_s?
<rafaelmagu> pontiki: it's a ruby question, but thanks
dangerousdave has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
sepp2k has quit [Read error: Operation timed out]
sassamo has joined #ruby
<rafaelmagu> benzrf: good point
<benzrf> ;)
jonah_k has joined #ruby
<rafaelmagu> is string interpolation less efficient than to_s?
tharindu_ has joined #ruby
PINGwin4IK has quit [Read error: Connection reset by peer]
nisstyre has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
nisstyre has quit [Client Quit]
cburyta has joined #ruby
tharindu has quit [Ping timeout: 252 seconds]
<pontiki> rafaelmagu: yeah, i get that, but i'm concerned there's something in recipe
veduardo has left #ruby [#ruby]
<rafaelmagu> pontiki: fair enough. node['apache']['listen_ports'] is always an array
iliketurtles has joined #ruby
<pontiki> an array of strings
<rafaelmagu> Yeah
centrx has joined #ruby
nisstyre has joined #ruby
<pontiki> but this was something that was working before you started refactoring?
zegerjan has joined #ruby
<rafaelmagu> I added that line
<rafaelmagu> to my fork
claymore has quit [Ping timeout: 245 seconds]
<pontiki> oh, gotcha
<rafaelmagu> The main cookbook does not check for that
rtlong has joined #ruby
claymore has joined #ruby
<rafaelmagu> I basically added that line to prevent the graphite cookbook from adding a NameVirtualHost *:80 to the vhost
<rafaelmagu> Thus preventing the annoying "[warn] NameVirtualHost *:80 has no VirtualHosts " from popping up every week after log rotation
<pontiki> yeah, sorry, my mistake
cburyta has quit [Read error: Operation timed out]
<rafaelmagu> Nah, don't worry
<rafaelmagu> My motives weren't fully explained ;)
saarinen has joined #ruby
maZtah has joined #ruby
kayloos has joined #ruby
x77686d has quit [Quit: x77686d]
<pontiki> when i first started working with chef, at a place that was using it, i found numerics all over the place that were only used as string
<pontiki> lots and lots of "#{1234}"
<benzrf> wat
<shevy> watwat
<shevy> watbenzrfwatwatwat
<pontiki> ikr?
<benzrf> that #{} is totally redundant like wow
cmoylan has joined #ruby
<shevy> hey
<shevy> it's like saying
<shevy> "yo dude, these 1234 are super important"
<shevy> "I protect them inside #{}"
<pontiki> i asked the devops guy about and he just shrugged and said "i'm not a programmer"
<shevy> hehe
<centrx> >> "#{"#{"#{"#{"#{1.to_s}"}"}"}"}"
<eval-in> centrx => "1" (https://eval.in/102180)
<rafaelmagu> hahaha
<pontiki> i didn't retort with "well, i'm the qa gal and i say this is WRONG"
zegerjan has quit [Ping timeout: 260 seconds]
<rafaelmagu> :)
<pontiki> cos, you know, the stuff actually worked
<rafaelmagu> Being a devops dude myself, that is a lame excuse
tharindu_ has quit [Ping timeout: 265 seconds]
<pontiki> i like being a dev more than qa
<rafaelmagu> I'm no full-time dev myself, but I do my best to write good code when I can
<pontiki> even tho i've always done more dev than testing in the qa role
iMe has joined #ruby
<pontiki> cos i'm so freaking lazy i don't want to do the same thing more than twice if i can automate it
<benzrf> ive heard ansible is cool
frode15243 has quit [Ping timeout: 246 seconds]
<rafaelmagu> Exactly
ardsrk has quit [Ping timeout: 252 seconds]
<benzrf> it uses ssh to transport bits of scripts and run TheMoonMaster_
<benzrf> no need for a server or anything
<benzrf> *them not TheMoonMaster_
endash_ has joined #ruby
ardsrk has joined #ruby
<pontiki> a central hosted chef server did strike me as a recipe for cascading disasters
venkat has quit [Read error: Connection reset by peer]
<RubyPanther> pontiki: I'd hope everybody would agree that is wrong
<pontiki> at least opscode isn't on AWS
<pontiki> hope isn't a strategy, RubyPanther :)
<RubyPanther> I don't care which hat they're wearing, everybody has to know the difference between a character and a number
venkat has joined #ruby
<rafaelmagu> it works until it doesn't
<rafaelmagu> :D
<pontiki> right
<shevy> do you guys rewrite your own ruby code often?
<rafaelmagu> RubyPanther: i think they do. They just don't know about efficient code
frode15243 has joined #ruby
<RubyPanther> rafaelmagu: yeah, and NT4 is POSIX compliant, too
<RubyPanther> just ask them
<pontiki> haha, yes, shevy, every 8 to 10 months
<pontiki> in a bit "WTFerry"
<shevy> ok
fuhgeddaboudit has quit [Ping timeout: 246 seconds]
<pontiki> not every piece of code
<centrx> I right it write the first time
<pontiki> only when i come across something that is a head-scratcher
<centrx> >> import code
<eval-in> centrx => undefined local variable or method `code' for main:Object (NameError) ... (https://eval.in/102183)
<benzrf> centrx: this is ruby not python you boob
<pontiki> if i keep learning, which i kinda hope i do, there's always a better way to do something, or a nother thing to consider
<benzrf> >> require 'code'
<eval-in> benzrf => (https://eval.in/102184)
<pontiki> or something needs to work just a bit differently that it was used before
<centrx> >> download code
<eval-in> centrx => undefined local variable or method `code' for main:Object (NameError) ... (https://eval.in/102185)
<pontiki> or something else changes
<pontiki> meh
jonr22 has quit [Remote host closed the connection]
<pontiki> i have some ancient perl and bash scripts
<benzrf> ew
jonr22 has joined #ruby
Xeago has joined #ruby
<pontiki> and a whole raft of php functions i hope to never have to see again
<rafaelmagu> haha
<pontiki> but if i do, i'll probably rewrite them to be more functional
<rafaelmagu> I'm in the process of converting the last few remaining bash scripts to either Python or to a method inside our Hubot
gyre007_ has quit [Ping timeout: 264 seconds]
<rafaelmagu> Or to an API call on our application
<shevy> wat!
<shevy> to python!!!
angusiguess has quit [Ping timeout: 260 seconds]
<benzrf> shevy: quiet m8
Kricir has joined #ruby
<benzrf> python is p neat
<benzrf> rafaelmagu: have you seen plumbum?
<shevy> you snakes!
<rafaelmagu> Nope
<benzrf> rafaelmagu: oh man it's pretty nifty
<benzrf> look it up
<pontiki> i'm now interested in learning clojure
<rafaelmagu> What's the gist of it?
* rafaelmagu is keen to learn GoLang at some point
cburyta has joined #ruby
gyre007_ has joined #ruby
<benzrf> rafaelmagu: clojure is lisp for the jvm
<benzrf> or so im told
animehti has joined #ruby
<animehti> s
<benzrf> haskell is good enough for me
<benzrf> :3
<animehti> Hello.
<pontiki> that's it, benzrf, but it's not CL or Schema
<benzrf> pontiki: you should feel bad for making such a pun
<art-solopov> Hi, animehti.
<animehti> Can anyone give me some examples of ruby code?
<benzrf> hello animehti
<pontiki> making puns is what i do
<benzrf> animehti: browse my gh i have like 2 ruby repos
<rafaelmagu> hahaha
<benzrf> not that they are so good
<pontiki> i feel bad every time
<animehti> As you all know, I am a beginner
<pontiki> but it doesn't stop me
<rafaelmagu> We know now
<shevy> hehe
<benzrf> pontiki: honestly i was thinking of that pun but chose not to make it because im not a terrible person
<animehti> Can I see some code with like a game or something.
<shevy> ack
<shevy> there is no game in ruby!
<pontiki> it's okay, benzrf. i've lived long enough that i get to be terrible
burlyscudd has joined #ruby
<centrx> >> "ruby code is here"
<eval-in> centrx => "ruby code is here" (https://eval.in/102186)
<shevy> pontik old age should make people nicer!!!
<pontiki> old age and trechery win out over youth and guile every time
<animehti> shevy, no one has created a game using ruby ever?
<benzrf> animehti: lies
<benzrf> animehti: i made part of a game engine in ruby
jonr22 has quit [Ping timeout: 272 seconds]
<lpvn> >> def f; f end; f
<pontiki> oh, i bet i can come up with a quick nim hack
<animehti> Oh ok.
<eval-in> lpvn => stack level too deep (SystemStackError) ... (https://eval.in/102187)
<lpvn> :DDD
<benzrf> art-solopov: that link is bad
<pontiki> or mindmaster
<art-solopov> benzrf: What do you mean?
<benzrf> art-solopov: it is a poor link
<animehti> art-solopov, thank you for the link.
meatherly has joined #ruby
<benzrf> animehti: his link is a trap!
<pontiki> link works for me...
<centrx> It's crap!
<pontiki> the page is sloppy
<benzrf> it's a crap trap
<pontiki> but the link is fine
Hobogrammer has joined #ruby
<shevy> lol
cmoylan has quit [Ping timeout: 260 seconds]
<shevy> a crap trap?
<benzrf> by saying that the link is bad i merely meant that the content lurking at the other end is monstrous
* centrx sends an e-mail to Instructor Tom Bennet
<pontiki> what does admiral akbar yell to the troops going to the latrine?
* centrx on his crap trap code
<art-solopov> animehti: You're welcome. But I'd rather recommend "The Ruby Programming Language" by Flanagan & Matsumoto. By the way, it features Sudoku as an example.
<lpvn> hey guys, what's the problem with external iterators? >:(
<animehti> oh ok
<art-solopov> shevy: Well, excuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuse me, princess!
<centrx> art-solopov, Or this is very basic: https://www.ruby-lang.org/en/documentation/quickstart/
<havenwood> +1 The Ruby Programming Language book, good stuff!
<benzrf> lpvn: external iteration is eeeeeeeeeeevil
<shevy> lpvn what is an external iteration
<benzrf> haskell does not have it, why should ruby??
sparrovv has quit []
burlyscudd has quit [Ping timeout: 272 seconds]
<shevy> cuz ruby is used in the real world benzrf
<lpvn> benzrf, enlight me pls
<benzrf> ruby's foor loop is not even external iteration
<benzrf> *for
<art-solopov> centrx: True dat. Now link this to animehti. :)
<shevy> ruby's for loop stinks
<benzrf> it is merely syntactic sugar for #each
<shevy> no
<shevy> it creates a local var
<RubyPanther> Ruby doens't have a for loop, it has a for sugar
<benzrf> for this in that; end; => that.each do |this|; end;
<art-solopov> benzrf: Honestly, I don't understand why Ruby even bothers with for..in.
<shevy> I think matz thought ruby should have it
<shevy> because C has it!
<lpvn> ok, what's the problem with external iterator-like syntax?
<shevy> lpvn you mean for loops?
<lpvn> shevy, yep
<shevy> k then
<shevy> there is no need for them in the first place
<shevy> because you can use #each
<art-solopov> shevy: TMTOWDI.
<shevy> art-solopov yeah but there can be silly ways and for is silly
<benzrf> art-solopov: it is not a different way though
<benzrf> it is a misleading equivalent syntax
<benzrf> >:o
<animehti> what dos printf mean?
<shevy> it is not equivalent
<shevy> you create a local var
<RubyPanther> >> for i in nil ; end
<eval-in> RubyPanther => undefined method `each' for nil:NilClass (NoMethodError) ... (https://eval.in/102188)
<shevy> in #each you dont
<art-solopov> benzrf: It's a different way of writing code.
<shevy> RubyPanther you noob!!!
<lpvn> telling me they're redundant is not enough for me
<shevy> lpvn why not?
<centrx> animehti, formatted print
<shevy> lpvn and they are not equivalent either
fuhgeddaboudit has joined #ruby
<RubyPanther> implicit locals have the same cost and complexity as explicit locals
<lpvn> shevy, enlight me pls
francisfish has quit [Remote host closed the connection]
<shevy> lpvn for creates a local variable
<RubyPanther> your values get stored somewhere, honest. They do not just magically float around because you didn't have a local you could get to
<lpvn> shevy, more details
sparrovv has joined #ruby
<RubyPanther> and, try to benchmark doing actual work in a loop, and having a local, or not having one. You have to do zero work to find a difference
<shevy> trying to, google is slow right now for me :-)
mark_locklear has quit [Read error: Operation timed out]
<art-solopov> lpvn: I just think #each is more consistent with the other Ruby code, with blocks and all.
<art-solopov> animehti: If you're in a command line, try typing ri printf
<animehti> what does formatted print do, can anyone elaborate please?
<shevy> lpvn look:
intuxicated has quit [Read error: Connection reset by peer]
<benzrf> animehti: fancy shit
<centrx> animehti, Look on web, it is in every programming language
<benzrf> animehti: interpolation stuff
<shevy> >> for i in 0..5; puts "Value of local variable is #{i}"; end; i
<eval-in> shevy => Value of local variable is 0 ... (https://eval.in/102189)
<shevy> the bot is such a liar
<shevy> i is 5
<havenwood> lpvn: functional langs with higher order functions get to avoid that craft ;P
<havenwood> cruft*
<shevy> haha
<shevy> I <3 craft vs. cruft
<centrx> >> "eval-in is".concat(" a poopy head")
<eval-in> centrx => "eval-in is a poopy head" (https://eval.in/102190)
<benzrf> tee hee
<shevy> huh
<havenwood> lpvn: or blame smalltalk and lisp! :P
Hobogrammer_ has joined #ruby
<shevy> if-less programming is called "Unconditional Programming"?
<lpvn> havenwood, shevy I get your point guys, I rarely use for but there are some situations where it'll make your code more legible IMO
<shevy> lpvn but you agree that for and each is not equivalent ok!
<havenwood> lpvn: i've never seen one of those cases, have an example?
ndrei has quit [Ping timeout: 265 seconds]
<shevy> and after you agreed to it
<shevy> I have to say that you are wrong!
<RubyPanther> there is no case where for is more readable except, "I'm new and I'm from Perl"
ndrei has joined #ruby
<shevy> I think perl users will like #each
<shevy> right hoelzro?
<hoelzro> each is nice
<havenwood> lpvn: mm, unless you mean more readable for someone accustomed to external iteration languages in which case best to adapt and adopt
<RubyPanther> When I migrated from Perl, I used for until the first time I was chasing down a call trace looking for an #each, and then I was like, omg, I better do it the Ruby way
DaniG2k has quit [Ping timeout: 272 seconds]
jarjar_prime has joined #ruby
<shevy> :)
parzo has joined #ruby
dik_dak has joined #ruby
<shevy> I have some old ruby code written by other people
<shevy> in where they use several rows of for loops
maletor has joined #ruby
<shevy> to initialize some Array / 2D-Matrix
Hobogrammer has quit [Ping timeout: 272 seconds]
<benzrf> lololol
zegerjan has joined #ruby
<RubyPanther> Yeah, do a Schwartzian transform because #collect is too mysterious
<shevy> that is the "unconditional programming" blog btw http://haacked.com/archive/2013/11/08/death-to-the-if-statement.aspx/
razibog has quit [Read error: Connection reset by peer]
<lpvn> havenwood, IMO for is more readable when you want to repeat a block inside a simple range, for instance
Hobogrammer has joined #ruby
Hobogrammer_ has quit [Ping timeout: 265 seconds]
prognostikos has left #ruby [#ruby]
DaniG2k has joined #ruby
<benzrf> RubyPanther: *map
<RubyPanther> map is another perlism, but less harmful since it is only an alias and not sugared
senayar_ has quit [Remote host closed the connection]
<shevy> huh
senayar has joined #ruby
ixti has quit [Ping timeout: 260 seconds]
<RubyPanther> but ruby's way OOP way means you don't need the Schwartzian. Or, you shouldn't need it.
<havenwood> lpvn: i cringe at the thought! :) habituate yourself into the Ruby way and see if those feelings don't dissipate!
parzo has quit [Ping timeout: 264 seconds]
<benzrf> RubyPanther: map is not a perlism
<benzrf> it is a lispism!
<lpvn> havenwood, lol
<benzrf> or perhaps a mathism
<RubyPanther> It came via Perl, it is part of the "aliases and sugar to help Perl migrants" set of features. True story.
<lpvn> havenwood, you know, I've programmed in ruby for years, some ol habits just don't go away I guess hahaha
<shevy> people do weird things in ruby
<shevy> like
<havenwood> lpvn: what did you start in?
<shevy> def foo a,b,c
<RubyPanther> shevy: what is weird there?
<shevy> the () is missing
<lpvn> havenwood, C mostly
<RubyPanther> wait... missing?!
<shevy> yes
TheMoonMaster_ is now known as TheMoonMaster
<havenwood> lpvn: Yeah, seems the path one takes through the language family tree informs many aesthetic preferences.
<RubyPanther> You mean missing, or (((((missing)))))
<RubyPanther> you're missing 5 parens
zegerjan has quit [Ping timeout: 260 seconds]
<RubyPanther> how arbitrary
<benzrf> excuse me but collect is far too long when map will do
<benzrf> that's over twice as many characters !
<RubyPanther> Some people want no punctuation at all. Other people want everything punctuated.
<shevy> collect is an alias to map anyway
estebistec has joined #ruby
<havenwood> #map wins, next issue!
DaniG2k has quit [Ping timeout: 252 seconds]
<shevy> hmm ok it is not
<shevy> :(
cmoylan has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
<RubyPanther> lol duh, old guy remembers history, news at 11
<shevy> static VALUE rb_ary_collect(VALUE ary)
senayar has quit [Ping timeout: 260 seconds]
<lpvn> havenwood, I bet I prefer the functional approach over the imperative one as much as you, I just think there are some specific cases where the for syntax shines hahaha
<benzrf> #map: HashMap
<benzrf> java in my ruby !
<shevy> benzrf do you use public?
<benzrf> ??
<havenwood> lpvn: i'll have to keep an eye out for when that'd be the case. i don't want to fall in a trap where i choose dogma over expressiveness. ;)
maZtah is now known as maZtah
<benzrf> catma > dogma
manacit has quit [Ping timeout: 248 seconds]
<havenwood> cats are better pair programmers
lkba has quit [Ping timeout: 260 seconds]
maZtah has quit [Changing host]
maZtah has joined #ruby
<havenwood> have more open source contribution in general i think
razibog has joined #ruby
Kricir has quit [Remote host closed the connection]
maximski has joined #ruby
DaniG2k has joined #ruby
[krisbulman] is now known as krisbulman
<RubyPanther> cats are "better" at OSS contribution because they change each others code back and forth and are constantly thrashing new features
x77686d has joined #ruby
<shevy> cats?
manacit has joined #ruby
<lpvn> havenwood, out of curiosity, do you use the ternary syntax?
<randomnick_> SO is down?
Matix has quit [Quit: Leaving]
<benzrf> sue ternary erryday
<benzrf> *use
Kricir has joined #ruby
lkba has joined #ruby
lagweezl1 is now known as lagweezle
<havenwood> lpvn: yeah, when things are simple enough that it looks nice and is clear
<havenwood> lpvn: some cases where I don't like it, with '?'s piling up, certainly not with nesting
<RubyPanther> randomnick_: wtf is SO?
<benzrf> RubyPanther: significant other
<benzrf> but also stackoverflow
<randomnick_> stackoverflow
<shevy> oh man
<RubyPanther> benzrf: sorry about your loss
<RubyPanther> randomnick_: that is good news, yay! newbs won't link it for a few minutes
<benzrf> RubyPanther: absolutely disgusting
timonv has joined #ruby
Es0teric has joined #ruby
maximski has quit []
DaniG2k has quit [Ping timeout: 264 seconds]
alex88 has quit [Quit: Leaving...]
Hobogrammer has quit [Ping timeout: 260 seconds]
marcdel has quit []
wald0 has joined #ruby
wald0_ has joined #ruby
prc has quit [Quit: Leaving.]
prc has joined #ruby
DaniG2k has joined #ruby
<art-solopov> Is Test::Unit::TestCase test run order defined?
ringaroses has joined #ruby
ringaroses has quit [Read error: Connection reset by peer]
fuhgeddaboudit has joined #ruby
Solnse has quit [Quit: Leaving.]
Hobogrammer has joined #ruby
<benzrf> who knows
jonr22 has joined #ruby
bkparso has joined #ruby
bkparso has quit [Client Quit]
<RubyPanther> art-solopov: I remember reading something about minitest using a random order
<RubyPanther> but I'm not a QA monkey, so I'm not really sure
<art-solopov> RubyPanther: Thanks... Is it okay to call one test from the other?
CaptainJet has joined #ruby
ktosiek_ has quit [Ping timeout: 248 seconds]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
<RubyPanther> dunno... does it work?
krisbulman is now known as [krisbulman]
hobodave has joined #ruby
<art-solopov> RubyPanther: It does, but it just, well, repeats the first test all over again. That is, it runs the test twice.
iliketurtles has quit [Quit: zzzzz…..]
<RubyPanther> sounds like it is bad to me
tjr9898_ has joined #ruby
tjr9898 has quit [Ping timeout: 246 seconds]
angusiguess has joined #ruby
iliketurtles has joined #ruby
senayar has joined #ruby
agjacome has joined #ruby
monkegjinni has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 260 seconds]
x77686d has quit [Quit: x77686d]
monkegjinni has joined #ruby
<apeiros> art-solopov: your individual tests should not rely on the order of other tests
<apeiros> if you have something which relies on order, it should be its own test
fuhgeddaboudit has joined #ruby
ixti has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
dh64 has joined #ruby
angusiguess has quit [Ping timeout: 264 seconds]
axl_ has joined #ruby
<art-solopov> apeiros: What do you mean? The thing is, I wanna test a deletion of object in an ORM. In order to delete an object I need either to create it or find it. Both processes will be covered by tests. How can I test deletion then? Create another object and then test if it destroys?
burlyscudd has joined #ruby
<apeiros> art-solopov: your insertion in the deletion test is unrelated to your insertion test.
predator117 has joined #ruby
<art-solopov> apeiros: So, just create an object and assume the creation is successful, right?
Xeago_ has joined #ruby
dangerousdave has joined #ruby
<apeiros> art-solopov: yes. it's not what you're testing.
ndrei has quit [Ping timeout: 260 seconds]
<art-solopov> apeiros: Okay. Like this, right? https://gist.github.com/art-solopov/9039779
burgess has joined #ruby
<apeiros> yes
<apeiros> whether creation fails is tested in your other test
<art-solopov> Okay, thank you very much!
ndrei has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
predator117 has quit [Ping timeout: 245 seconds]
DaniG2k has joined #ruby
evangeline has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
cmoylan has quit [Ping timeout: 245 seconds]
nszceta has quit [Ping timeout: 245 seconds]
nszceta has joined #ruby
nszceta has quit [Remote host closed the connection]
TigerWolf has quit [Ping timeout: 248 seconds]
CodeTheInternet has joined #ruby
claymore has quit [Read error: Operation timed out]
monkegjinni has quit [Remote host closed the connection]
MindfulMonk has quit [Quit: Have fun]
Shidash has joined #ruby
parzo has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
MindfulMonk has joined #ruby
asmodlol has joined #ruby
MindfulMonk has quit [Client Quit]
diegovio1 has joined #ruby
ringaroses has joined #ruby
sassamo has quit [Remote host closed the connection]
diegovio1 is now known as diegoviola
CaptainJet has quit []
sassamo has joined #ruby
MindfulMonk has joined #ruby
parzo has quit [Ping timeout: 252 seconds]
jonah_k has quit [Remote host closed the connection]
francisfish has joined #ruby
Xeago_ has quit [Remote host closed the connection]
MindfulMonk has quit [Client Quit]
CodeTheInternet has quit [Quit: Leaving.]
MindfulMonk has joined #ruby
alx- has quit [Quit: Leaving...]
sassamo has quit [Ping timeout: 265 seconds]
Al___ has joined #ruby
kayloos has quit [Remote host closed the connection]
tjsousa__ has joined #ruby
speakingcode has quit [Ping timeout: 248 seconds]
iliketurtles has joined #ruby
eliasp has joined #ruby
claymore has joined #ruby
CaptainJet has joined #ruby
ebwise has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
fuhgeddaboudit has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
sassamo has joined #ruby
estebistec has quit [Remote host closed the connection]
art-solopov has quit [Quit: Konversation terminated!]
timonv has quit [Remote host closed the connection]
dingus_khan has joined #ruby
scarolan has joined #ruby
<benzrf> good bye
benzrf has quit [Quit: leaving]
danshultz has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
Lewix has joined #ruby
Xeago_ has joined #ruby
Xeago_ has quit [Remote host closed the connection]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jtdowney has joined #ruby
ss_ has joined #ruby
<ss_> Hey guys, web dev noob here. I have a question regarding OAuth. I have this tiny bit of Ruby code: https://gist.github.com/sobering/9029493 I can prepare an access token perfectly fine and make normal requests, but any time I try and make a request that requires authorization I get a 401 Unauthorized. Is there anything blatantly wrong with my code? I'm not sure what to do at this point.
iliketurtles has quit [Quit: zzzzz…..]
poulson has quit [Remote host closed the connection]
marcdel has joined #ruby
matchaw has quit [Read error: Operation timed out]
Hobogrammer_ has joined #ruby
venkat has quit [Remote host closed the connection]
marcdel_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
Xeago has quit [Remote host closed the connection]
venkat has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
matchaw has joined #ruby
nomenkun has joined #ruby
marcdel has quit [Ping timeout: 265 seconds]
danshultz has joined #ruby
Salve has joined #ruby
venkat has quit [Ping timeout: 265 seconds]
Kricir has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
nomenkun has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Remote host closed the connection]
einarj has joined #ruby
matchaw_ has joined #ruby
guyz has quit [Quit: quit]
predator117 has joined #ruby
maletor has joined #ruby
ringaroses has quit [Quit: Leaving]
matchaw has quit [Ping timeout: 252 seconds]
Hobogrammer_ has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
acoyfellow has quit [Write error: Broken pipe]
urbanmonk has joined #ruby
angusiguess has joined #ruby
Czupa has quit [Remote host closed the connection]
phansch has quit [Quit: Leaving]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
solars has quit [Read error: Connection reset by peer]
fuhgeddaboudit has quit [Ping timeout: 265 seconds]
angusiguess has quit [Ping timeout: 264 seconds]
burlyscudd has joined #ruby
Hobogrammer_ has joined #ruby
amclain has joined #ruby
prc has quit [Ping timeout: 265 seconds]
angusiguess has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
sdwrage has joined #ruby
Sloggerkhan has quit [Ping timeout: 252 seconds]
Atw has joined #ruby
Sloggerkhan has joined #ruby
carraroj has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
<Mousse_> You dont prepare an access token, you obtain it.
<Mousse_> s/obtain/request
razibog has quit [Ping timeout: 260 seconds]
marcdel_ has quit []
<ss_> Good to know, thank you, I'll make that change
aspiers has joined #ruby
iamsean has joined #ruby
Hiall has joined #ruby
zz_jrhorn424 is now known as jrhorn424
solars has joined #ruby
nszceta has joined #ruby
parzo has joined #ruby
Lewix has quit [Remote host closed the connection]
matled has quit [Remote host closed the connection]
ss_ has quit [Quit: leaving]
matled has joined #ruby
jackneill has quit [Ping timeout: 248 seconds]
ndrei has quit [Ping timeout: 260 seconds]
jayayseakay has joined #ruby
fuhgeddaboudit has joined #ruby
mojjojo has joined #ruby
marcdel has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
dingus_khan has joined #ruby
senayar has quit [Remote host closed the connection]
parzo has quit [Ping timeout: 265 seconds]
senayar has joined #ruby
meatherly has quit [Remote host closed the connection]
GinoMan has quit [Ping timeout: 248 seconds]
Al___ has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
meatherly has joined #ruby
Al___ has joined #ruby
banister has joined #ruby
jobewan has joined #ruby
ndrei has joined #ruby
dingus_khan has quit [Remote host closed the connection]
senayar has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
sambao21 has joined #ruby
dingus_khan has joined #ruby
meatherly has quit [Ping timeout: 252 seconds]
carraroj has quit [Quit: Konversation terminated!]
sassamo has quit [Read error: Connection reset by peer]
axl_ has quit [Quit: axl_]
sassamo has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
tacos1de has joined #ruby
aryaching_ has quit [Ping timeout: 252 seconds]
aspiers has quit [Ping timeout: 245 seconds]
danshultz has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 252 seconds]
danshultz has joined #ruby
sh1nji has quit []
jtdowney has quit []
Tachoh_ is now known as Tachoh
mark_locklear has joined #ruby
razibog has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
dingus_khan has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 245 seconds]
Es0teric has quit [Ping timeout: 245 seconds]
razibog has quit [Client Quit]
Shidash has quit [Ping timeout: 260 seconds]
parzo has joined #ruby
joshu_ has joined #ruby
Es0teric has joined #ruby
joshu__ has joined #ruby
danshultz has joined #ruby
venkat has joined #ruby
Kricir has quit [Ping timeout: 252 seconds]
Hiall has quit [Quit: hiall]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
joshu has quit [Ping timeout: 264 seconds]
tjr9898_ has quit [Remote host closed the connection]
joshu_ has quit [Ping timeout: 264 seconds]
tjr9898 has joined #ruby
Naoe-Kanno has joined #ruby
danman has joined #ruby
SHyx0rmZ has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cya]
diegoviola has quit [Quit: WeeChat 0.4.3]
mojjojo has quit [Quit: mojjojo]
venkat has quit [Read error: Operation timed out]
claymore has quit [Ping timeout: 260 seconds]
aaronmcadam has joined #ruby
dseitz has joined #ruby
ndrei has joined #ruby
<shevy> what is sexy
claymore has joined #ruby
eflynn has joined #ruby
<eflynn> does bundler config set environment variables?
<centrx> "1905, from sex (n.) + -y (2)." - etymonline.com
nbouscal has quit [Write error: Connection reset by peer]
mpereira has quit [Quit: IRCRelay - http://ircrelay.com]
brandonblack has quit [Quit: IRCRelay - http://ircrelay.com]
angusiguess has joined #ruby
<Tachoh> ruby tubey
shevy has quit [Ping timeout: 245 seconds]
ktosiek has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
marcdel has quit []
kennym has quit [Remote host closed the connection]
CodeTheInternet has joined #ruby
CodeTheInternet has quit [Client Quit]
DaniG2k has joined #ruby
jayayseakay has quit [Quit: Textual IRC Client: www.textualapp.com]
<DaniG2k> does anyone want to help me write a text summarization algorithm? :P
Ziarkaen has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
burlyscudd has quit [Ping timeout: 264 seconds]
aaronmcadam has quit [Quit: Leaving...]
<centrx> >> summarize(text)
<eval-in> centrx => undefined local variable or method `text' for main:Object (NameError) ... (https://eval.in/102202)
Ziarkaen has quit [Read error: Operation timed out]
sparrovv has quit [Remote host closed the connection]
ndrei has joined #ruby
danman has quit [Ping timeout: 252 seconds]
Ziarkaen has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
dingus_khan has joined #ruby
dangerousdave has quit [Ping timeout: 260 seconds]
sparrovv has joined #ruby
shevy has joined #ruby
maximski has joined #ruby
spider-mario has quit [Remote host closed the connection]
zoscoy has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Hiall has joined #ruby
JBreit has joined #ruby
sambao21 has joined #ruby
ebwise has quit [Ping timeout: 252 seconds]
<shevy> ruby ruby ruby
andy__ has quit [Remote host closed the connection]
sdwrage has joined #ruby
andy has joined #ruby
sambao21 has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
zachallett has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
iamsean has quit [Quit: iamsean]
havenwood has joined #ruby
andy has quit [Ping timeout: 265 seconds]
tibounise has quit [Quit: WeeChat 0.4.2]
tjsousa__ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 265 seconds]
maximski has quit []
sambao21 has joined #ruby
senayar has joined #ruby
platzhirsch has joined #ruby
* platzhirsch roars…
kayloos has joined #ruby
mojjojo has joined #ruby
sambao21 has quit [Ping timeout: 260 seconds]
<shevy> lol
Al___ has quit [Quit: Al___]
<shevy> sex sex sex
<shevy> go platzhirsch!
senayar has quit [Ping timeout: 246 seconds]
kayloos has quit [Ping timeout: 245 seconds]
Al___ has joined #ruby
Xeago has joined #ruby
Kricir has joined #ruby
Speed has quit [Ping timeout: 272 seconds]
razibog has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
_Andres has quit [Quit: jazz]
einarj has quit [Remote host closed the connection]
Kricir has joined #ruby
agent_white has joined #ruby
Hiall has quit [Quit: hiall]
oracal has quit [Quit: Leaving]
tectonic has joined #ruby
ruby-help has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
dx7 has joined #ruby
Kricir has joined #ruby
wald0_ has quit [Ping timeout: 245 seconds]
wald0 has quit [Ping timeout: 245 seconds]
iamsean has joined #ruby
DaniG2k has quit [Quit: leaving]
ndrei has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
benzrf has joined #ruby
<benzrf> hello hello
<benzrf> how are you finding the ruby today everyone
x77686d has quit [Quit: x77686d]
dingus_khan has quit [Read error: Connection reset by peer]
<Xuisce> hello
<Xuisce> :)
<Xuisce> benzrf: well I'm learning it but I got a math exam so :P
dingus_khan has joined #ruby
<platzhirsch> Today I find Ruby very rubbyish
alx- has joined #ruby
havenwood has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<ruby-help> Can someone help me create a standalone method counting the number of lines? I'm taking a ruby class, but not understanding exactly how to do this. The output should be like this: https://gist.github.com/anonymous/9041516
<benzrf> platzhirsch: i looked at rubby
<benzrf> it looked meh
TigerWolf has joined #ruby
Xeago has quit [Remote host closed the connection]
<ruby-help> here's what i have: https://gist.github.com/anonymous/9041719
TigerWol_ has joined #ruby
Hiall has joined #ruby
venkat has joined #ruby
<benzrf> ruby-help: wat
<benzrf> ruby-help: are you just trying to throw around code in the hopes that it will do what you want it to?
<benzrf> that's an unpleasantly common phenominon among beginners ive seen :\
<ruby-help> lol...im required to take this class, not a fan of programming myself, but
<benzrf> my advice is to not write some code unless you know what it does and you know why you want that to happen
<ruby-help> yea, i guess im lost
<benzrf> there are many things wrong with this code
<benzrf> it looks like cargo cult programming p:
marr has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
rom_ has joined #ruby
<ruby-help> yea, that sounds like me
<benzrf> ruby-help: how much of this code did you write because it seemed vaguely apropos, and how much did you write because you wanted the effects that you knew it had?
CpuID has joined #ruby
urbanmonk has quit [Ping timeout: 260 seconds]
<benzrf> ok, why don't you erase that and start over
CpuID has quit [Changing host]
CpuID has joined #ruby
<benzrf> programming is all about knowing what you are doing
<benzrf> if you don't understand the code you are writing, neither will the computer, at least sometimes
<ruby-help> yea, you're right.
<ruby-help> but the output is what i am supposed to get. i just have to write the method that gets i
<benzrf> do you understand what methods do?
Fezzler has joined #ruby
<ruby-help> it performs the action you ant it to do, and only runs when called upon
<benzrf> more or less!
<benzrf> do you understand how def works?
<benzrf> and what the '(s)' after the name means?
<ruby-help> it's defining the name of the method. the (s) should be an argument...but not very clear on it
<benzrf> basically
<benzrf> (s) means that it takes 1 argument (because you are listing one) and that the first argument should be called s inside the method
MatthewsFace has joined #ruby
<benzrf> because s is the first one you list
<benzrf> so if you do:
<benzrf> count_lines("foobar")
mikepack has joined #ruby
francisfish has quit [Remote host closed the connection]
<benzrf> then it will run the code inside the def, with 's' set to "foobar"
<ruby-help> oh, so for this method would i even need an argument? if i am setting s inside the method?
<benzrf> well, why are you setting s inside the method?
<benzrf> you want to operate on the data given to you and not some preset data, right?
<benzrf> look at how it is being called in the example
<benzrf> >count_lines(s)
<benzrf> ^it's being given one argument
<benzrf> so it *must* take one argument, otherwise the numbers won't line up
Fezzler has quit [Client Quit]
tirengarfio has quit [Remote host closed the connection]
<benzrf> in theory you could just ignore what the argument is
<benzrf> but normally if a method takes an argument, it is meant to use it somehow
<ruby-help> oh i see
<ruby-help> so yea, in the output it does have count_lines (s) so it does have one argument
<ruby-help> but i dont believe it is asking for user input, but statically assigned string being "This is a test"
<benzrf> it is doing that in the usage of the method yes
<benzrf> so if you ignore the input and just assume that it is that string
<benzrf> it will work /in that one case/
<benzrf> similarly, if you decide that if somebody asks you to pass them a condiment, you will always pass them the salt
<benzrf> that will work for people who ask for salt
<benzrf> but it's not smart if they might ask you for pepper
<RubyPanther> or for "condiments" lol
<ruby-help> yea, good analogy, but im not doing a gets for people to insert words and then output the number of lines, which i guess would be more what youre talking about, rigt?
derek_c has joined #ruby
<benzrf> well, the key point here is that you don't care about where the input ultimately comes from
<benzrf> you are making a simple component that can be used by anyone on any kind of string
<benzrf> if they want to use your method with user input, they can call gets themselves
<benzrf> or if they don't want to prompt the user, that's fine too
<benzrf> if you were measuring user input a lot, maybe it would make sense to put a gets in the method
angusiguess has joined #ruby
<benzrf> but you are currently making something more generic
<benzrf> usefulness comes from a balance between specificness and genericness
<ruby-help> ok, so s = %W/This is a test./ would go outside the method? and the argument (s) takes in that string?
<benzrf> yep!
<benzrf> the most useful tools are the ones that have a specific function, but one that is general enough to cover many use cases
sparrovv has quit [Remote host closed the connection]
<benzrf> the more stuff you hardcode into your method, the more you constrain how it can be used
<benzrf> however, the less stuff you hardcode, the more you're offloading work to the caller
tjr9898 has joined #ruby
<RubyPanther> if you take 3x5 cards and list a set of inputs, a set of transformations on that set of inputs, and a set of outputs, that is a good way to model structured programming of any sort, including Ruby
<benzrf> so you want somewhere where you provide useful utility, but not so generic that the caller has to do all the work
<ruby-help> that makes sense...this stuffs like magic if you understand it lol
tjr9898 has quit [Remote host closed the connection]
<benzrf> :-)
tjr9898 has joined #ruby
<RubyPanther> you have a thing, some works gets done with it, and it spits out a thing. Things like where things come from shouldn't come up.
bitri has joined #ruby
<ruby-help> so i was researching online before coming here about using a lines.count built into ruby?
<benzrf> a shredder does not care how the words got onto the paper, nor does it write words on it
kennym has joined #ruby
<benzrf> it takes some paper, and spits out some shredded paper
<benzrf> ruby-help: String#lines will give you back the lines in the string
<benzrf> >> "foo\nbar\nbaz".lines
<eval-in> benzrf => ["foo\n", "bar\n", "baz"] (https://eval.in/102205)
<benzrf> Array#count tells you how many things are in the array
<benzrf> so does Array#length and Array#size
burlyscudd has joined #ruby
Al___ has quit [Read error: Connection reset by peer]
<benzrf> >> ["foo\n", "bar\n", "baz"].count
<eval-in> benzrf => 3 (https://eval.in/102207)
Al___ has joined #ruby
* centrx prefers #length
caveat- has quit [Ping timeout: 265 seconds]
angusiguess has quit [Ping timeout: 260 seconds]
mushky has joined #ruby
<benzrf> i usually go with whatever sounds right
mark_locklear has quit [Ping timeout: 252 seconds]
<benzrf> like, the word id use if i were explaining what the method does
sparrovv has joined #ruby
caveat- has joined #ruby
<havenwood> ruby-help: commented on your gist with example methods and suggestions to interpolate your string and use #puts instead of #print
<benzrf> ok so unrelated but
S0da has quit [Read error: Connection reset by peer]
claymore has quit [Quit: Leaving]
<benzrf> on a scale of (1..10) how terrible of an idea is it to make a polyglot hook that does macros
<platzhirsch> I am so tired, but I have to finish the gem this night
kennym has quit [Ping timeout: 272 seconds]
danshultz has quit [Remote host closed the connection]
<benzrf> btw require is basically File.read + Kernel.eval
<benzrf> right
kirun has quit [Quit: Client exiting]
burlyscudd has quit [Ping timeout: 265 seconds]
asmodlol has quit [Remote host closed the connection]
Raboo has quit [Read error: Operation timed out]
VTLob has quit [Quit: VTLob]
ndrei has joined #ruby
iamsean has quit [Quit: iamsean]
<ruby-help> hm, so i have s set outside the method. then i define the method count_lines. what does the word string mean after the method is definied?
<ruby-help> that's just saying one argument?
<benzrf> ?
relix has joined #ruby
<ruby-help> like in your example you commented
<benzrf> 'the word string'?
<benzrf> that is just the name of the argument i think
jrhorn424 is now known as zz_jrhorn424
<ruby-help> i still keep getting errors like undefined method 'lines'
Raboo has joined #ruby
Jetchisel has joined #ruby
andy has joined #ruby
<centrx> >> "el string".lines
<eval-in> centrx => ["el string"] (https://eval.in/102209)
eka has joined #ruby
yasushi has quit [Remote host closed the connection]
<ruby-help> when i call my method i have: count_lines s
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andy has quit [Remote host closed the connection]
<ruby-help> shoildnt that use s as the argument?
<benzrf> no, 'count_lines s' means pass whatever 's' is /in this context/ to it
<benzrf> so you could do
slowcon has joined #ruby
<benzrf> count_lines "foo"
<slowcon> hey guys
<benzrf> the name of an argument in the method has nothing to do with the name of what you pass it
<benzrf> sup slowcon
<benzrf> hows it goin
<slowcon> going well, trying to figure out part of my script
<benzrf> cool
andy has joined #ruby
tectonic has quit []
aryaching has joined #ruby
<slowcon> script goes to a website and needs to download a file. right now i was exploring using watir/phantomjs to do this because the href is generated by JS. but i didn't know that it actually opens up a browser... is there anything that i can use to do this without the browser?
<benzrf> if you need to run js, probably nothing non-involved
venkat has quit [Read error: Connection reset by peer]
<benzrf> otherwise there's mechanize
venkat has joined #ruby
Aryasam has joined #ruby
<benzrf> uh phantomjs says its headless
aryaching has quit [Client Quit]
Aryasam_ has joined #ruby
Jdubs has joined #ruby
aspiers has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
pu22l3r_ has quit [Remote host closed the connection]
maletor has joined #ruby
kennym has joined #ruby
Ziarkaen has quit [Ping timeout: 264 seconds]
MindfulMonk has quit [Quit: Have fun]
MindfulMonk has joined #ruby
Aryasam__ has joined #ruby
<benzrf> yo polyglot isnt workin for me
Aryasam_ has quit [Ping timeout: 245 seconds]
Aryasam has quit [Ping timeout: 272 seconds]
jragon has quit [Ping timeout: 246 seconds]
Aryasam__ is now known as Aryasam
Speed has quit [Read error: Connection reset by peer]
Lewix has joined #ruby
venkat has quit [Remote host closed the connection]
jonr22 has quit [Remote host closed the connection]
Speed has joined #ruby
cburyta has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
zachallett has quit [Remote host closed the connection]
jonr22 has joined #ruby
venkat has joined #ruby
recurrence has joined #ruby
<benzrf> ugh oh man
<benzrf> it fails to take relative local paths into account
<benzrf> fuckin bullshit yo
caveat- has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
[krisbulman] is now known as krisbulman
<benzrf> man what even IS it with ruby and weird behavior
<benzrf> *what IS it even
<slowcon> hmmmm
<platzhirsch> :(
jonr22 has quit [Ping timeout: 245 seconds]
venkat has quit [Ping timeout: 245 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
maletor has quit [Quit: Computer has gone to sleep.]
jack_rabbit has quit [Ping timeout: 248 seconds]
caveat- has joined #ruby
johnmilton has quit [Quit: Leaving]
<havenwood> benzrf: #require is absolute path falling back on load path, etc: http://www.ruby-doc.org/core-2.1.0/Kernel.html#method-i-require
<havenwood> benzrf: are you looking for #require_relative?
<benzrf> im aware
<havenwood> benzrf: what isn't as expected?
<benzrf> polyglot overloads require but its version doesnt account for ../ or ./
<benzrf> it will still look in the load path and not the pwd
tjr9898 has quit [Remote host closed the connection]
<havenwood> oh, lol - i totally misunderstood >.>
<havenwood> nvm
<benzrf> wait
venkat has joined #ruby
<benzrf> what does pwd stand for?!
<benzrf> i thought it was cwd o-o
xcv has joined #ruby
<platzhirsch> shevy: have you read what I posted to you yesterday about TDD?
<benzrf> tdd?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cburyta has joined #ruby
<platzhirsch> Test-driven Development
fuhgeddaboudit has quit [Ping timeout: 245 seconds]
<platzhirsch> The Auto-Pilot for successful software project
<havenwood> "A bad design with a complete test suite is still a bad design."
<platzhirsch> yadda yadda
<shevy> platzhirsch no idea, I fell asleep twice during that day
<shevy> work is killing me during the week :(
mushky has quit [Quit: mushky]
stkowski has joined #ruby
burgess has quit [Quit: ^zzz]
<benzrf> i dont like writing tests :(
mikepack has quit [Remote host closed the connection]
<benzrf> its boring and takes 2much time
burgess has joined #ruby
mikepack has joined #ruby
xcv has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
<platzhirsch> shevy: You said TDD defeats the purpose of dynamic languages and after I wrote a brunch of tests and started to implement them I noticed that the design is yucks, so I refactor the design and threw away the tests just to rewrite them :P
dingus_khan has joined #ruby
AlSquirikou has quit [Quit: This computer has gone to sleep]
senayar has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Max SendQ exceeded]
<shevy> yeah like comments
<shevy> when you change code, the comments to explain them often are no longer in sync with the code
jack_rabbit has joined #ruby
<shevy> but for some software tests are useful
<platzhirsch> But a comment should express why the method/class/etc. exists and not what its doing
sputnik13 has joined #ruby
<platzhirsch> at least as a minimum
mikepack has quit [Ping timeout: 264 seconds]
<shevy> I feel that this often goes hand in hand
klaut has quit [Remote host closed the connection]
<pontiki> at least
endash has quit [Read error: No route to host]
endash_ is now known as endash
<shevy> remove joe # I hate joe, he is an idiot, so we kill him now
<platzhirsch> So everytime you look at a method you have to answer the question: Why the fuck do I need this method in the first place
pu22l3r has quit [Remote host closed the connection]
<shevy> haha yeah
<shevy> but you need features!
<pontiki> i love finding notes like "DON'T EVEN THINK ABOUT CHANGING THIS"
pu22l3r has joined #ruby
v0n has joined #ruby
<shevy> hehe
<shevy> you seem to have to stare at a lot of other people's code pontiki
<pontiki> i tend to do that, yes
<pontiki> i learn a lot that way
mushky has joined #ruby
<platzhirsch> pontiki: your daughter ponbiki is here again
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
endash_ has joined #ruby
<pontiki> i've spent a fair bit of time doing code review, qa, odd things no one else remembers where or how they work, etc
<pontiki> lots of bug fixing while everyone else is off writing bugs
Xeago has joined #ruby
<pontiki> err... i mean "features"
<shevy> lol
Xeago has quit [Remote host closed the connection]
TigerWo__ has joined #ruby
Kricir has joined #ruby
TigerWolf has quit [Disconnected by services]
derek_c has quit [Ping timeout: 260 seconds]
TigerWo__ is now known as tigerwolf
tigerwolf is now known as TigerWolf
<pontiki> but see, i'm really a venusian anthropologist come to study the technical tribes of this backward planet
<shevy> what is that
<shevy> like a female gravedigger?
<pontiki> that is a joke
sdwrage has joined #ruby
guest32074238 has joined #ruby
burgess has quit [Quit: ^zzz]
diegoviola has joined #ruby
v0n has quit [Ping timeout: 245 seconds]
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
parzo has quit [Remote host closed the connection]
parzo has joined #ruby
Tomasso has quit [Read error: Connection reset by peer]
<apeiros> venusian anthropologist? really? you venusians devote a whole subject to humans? :)
rico_sta_cruz has joined #ruby
guest32074238 has left #ruby [#ruby]
<pontiki> human technobeasts
relix has joined #ruby
asjhdasjasd has joined #ruby
<pontiki> it is even more specialized than that
asjhdasjasd has quit []
bitri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> my thesis is on the grooming rituals of web tool makers
angusiguess has joined #ruby
<pontiki> and it's fascinating to watch the various ways that plays into dominance displays
cmoylan has joined #ruby
kotk has quit [Ping timeout: 252 seconds]
Al___ has quit [Quit: Al___]
<pontiki> and platzhirsch, tell that ungrateful wretch she should call her poor mother once in a while
burlyscudd has joined #ruby
FScottFitzgerald has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch> lol