apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: 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
<wallerdev_> kill process_number
sambao21 has quit [Quit: Computer has gone to sleep.]
<timgauthier> can you put multiples with a comma?
mikeric has quit [Remote host closed the connection]
<wallerdev_> i think you can with spaces
mikeric has joined #ruby
dstynchu_ has joined #ruby
<timgauthier> killing the bash you have open is graceful nice
larsam has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
northfurr has quit [Quit: northfurr]
sdouglas_ has joined #ruby
rainmanjam has quit [Remote host closed the connection]
<mg^> if you know the name of the process and have the pkill command, you can do it like: pkill chrome
<mg^> which is fun to do to my daughter when she strays away from her online homework.
yfeldblu_ has joined #ruby
dtcrshr has quit [Quit: Saindo]
<shevy> <timgauthier> google is loading dead people
dstynchula has quit [Ping timeout: 245 seconds]
Megtastique has joined #ruby
<centrx> I see dead pages
<timgauthier> you can do that via ssh? thats evil :D
<Devanon> I always used killall to kill processes by name. Any differences between pkill and killall?
s3ri0us has quit [Remote host closed the connection]
<shevy> reallykillall
zorak has quit [Ping timeout: 240 seconds]
Milly_Bays has joined #ruby
northfurr has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
<centrx> Devanon, Underneath, they all send the same signals to the process
<Devanon> ok, good to know :)
<centrx> Devanon, pkill and killall are just different ways of finding/referencing the processing
<centrx> (and kill)
<mg^> killall can give you bad results on non-Linux systems
yfeldblum has quit [Ping timeout: 258 seconds]
emaxi has quit [Remote host closed the connection]
<timgauthier> find humans
<timgauthier> killall humans
<mg^> on Solaris it literally means what it says
<Devanon> all processes? xD
<mg^> yep :)
<timgauthier> killall just shuts down?
emaxi has joined #ruby
<timgauthier> thats fun
<shevy> why was solaris developed?
<Devanon> haha
<horrorvacui> The issue is specificity. I try to be specific and use kill with the pid.
<centrx> On Linux, killall kills processes by name
<timgauthier> shevy to cause the sun to impload
<centrx> On Solaris, killall kills every process
<timgauthier> some linux nerd who took things far too seriously made it?
<shevy> timgauthier but that will happen on its own anyway
fijimunkii has joined #ruby
<wallerdev_> solaris used sparc architecture right?
<shevy> ah that makes sense
<mg^> shevy: read up on the history of the unix wars of the 80s/90s
<mg^> Am I really that old?
zachallett has joined #ruby
<timgauthier> I've found unix/linux people to be... strange people
jjbohn has quit [Quit: Leaving...]
<shevy> mg^ you may not be the youngest anylonger!
<mg^> I don't think I am strange enough for you to notice :)
dstynchu_ has quit []
<timgauthier> who often fail to grasp why a guy can be a good thing, or why i shouldn't have to configure a display driver before it shows anything
<timgauthier> you have a hat in your name...
<timgauthier> and mercury as your username
<horrorvacui> I know my OS professor put it this way... linux killall is more specific than pkill, kill is more specific than pkill.
x77686d has joined #ruby
<mg^> mercury is hg :)
<timgauthier> sorry that is magnesium, my bad
<mg^> yeah those are my initials
<timgauthier> sweet
toastynerd has joined #ruby
<mg^> and the hat is because usually some other jerk on IRC is using mg
<timgauthier> ah
vlad_starkov has joined #ruby
<timgauthier> well it beats mg1973
<mg^> true
<shevy> machinegun
<shevy> built in 1973
<shevy> well
<shevy> other than that it was used for SPARC
<shevy> I am unsure what are the awesome points of solaris
saarinen has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<mg^> shevy: well, it's pretty rock-solid. I can't think of too many times I ever panicked the Solaris kernel
<timgauthier> the error for trying to <%= something that can only be <% is weird.
<shevy> timgauthier it's telling you to stop using erb
emaxi has quit [Ping timeout: 276 seconds]
<timgauthier> what do people use solaris for these days?
<mg^> big databases
<shevy> bookholder
<timgauthier> as a linux kernal
<timgauthier> ah
<timgauthier> haha
reppard has quit [Quit: Leaving.]
<shevy> really? big databases?
<mg^> well, big "traditional" databases
<shevy> is solaris faster than a linux kernel?
<timgauthier> well it probably beats oracle ;)
<mg^> shevy: it is on SPARC
* timgauthier spits
speakingcode has quit [Quit: Lost terminal]
<mg^> Solaris also has trusted extensions that meet some kind of U.S. federal standards and such.
<mg^> Honestly for most purposes Linux is fine.
<mg^> I spent the first many years of my career as a Solaris administrator
<shevy> aha
<mg^> I also converted many of those systems to Linux
<shevy> hehehe
jjbohn has joined #ruby
jamto11 has joined #ruby
<mg^> I've also worked on AIX. AIX is a bit different from the admin perspective. Pretty much any other *nix from a normal user perspective.
picca has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
nichtdiebohne1 has joined #ruby
<mg^> I got Ruby on Rails working on Solaris, that was something fun with all of the native gems I had to compile.
<timgauthier> nice
<timgauthier> gems are a ruby core thing right?
pietr0 has quit [Quit: pietr0]
marr has quit [Ping timeout: 245 seconds]
<popl> gem is ruby's name for 'importable code module'
<mg^> packaged modules and such
<popl> in Perl they are called modules
<mg^> yeah that's a better statement
nichtdiebohne has quit [Ping timeout: 276 seconds]
<timgauthier> yeah i figured, my followup is that Gems have been around since the beginning of ruby?
<timgauthier> or where they added later
<mg^> yeah I'm a longtime Perl guy recently switched to Ruby for most of my porposes, so I tend to use Perl-speak :)
<timgauthier> my example being, cocoa pods seem to be ObjC variants of Gems for Mac Development
<mg^> purposes. Sheesh. I am a typo machine today.
davy has joined #ruby
<timgauthier> lol
ce_afk is now known as cescalante
pu22l3r has quit [Ping timeout: 258 seconds]
evenix has joined #ruby
<mg^> I couldn't tell you the history of Gems, being so recently a convert
<timgauthier> woah, i just found out about the <time> element
lolmaus has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: ciao.]
xiella has joined #ruby
<wallerdev_> gems have been around forever
<timgauthier> agh nm, it is non standard
picca has quit [Remote host closed the connection]
<wallerdev_> i dont think they were in the initial version of ruby though
zorak has joined #ruby
mrbignum has joined #ruby
<wallerdev_> im pretty sure i installed rubygems separately when i started working with ruby
<mg^> rubygems was released in 2004, so that's a long time
<wallerdev_> and you had to require 'rubygems' first which changed how require works
davy has quit [Ping timeout: 240 seconds]
<mrbignum> anyone here uses padrino framework?
morenoh153 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
horrorvacui has quit [Quit: Leaving]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
emaxi has joined #ruby
<zorak> can somebody explain to me what .inject do?
<wallerdev_> it takes the result of each block and sends it to the next, and also sends the next item in the list
<centrx> zorak, It is a little like map, except it builds up an object (memo)
nateberkopec has joined #ruby
testcore has quit [Quit: BitchX-1.3-git -- just do it.]
<centrx> zorak, inject is also called reduce. map and reduce form a common data processing technique called MapReduce.
oo_ has joined #ruby
vpereira_ has joined #ruby
<zorak> >> ["Hello, ", "World!"].inject
<eval-in> zorak => no block given (LocalJumpError) ... (https://eval.in/136582)
<zorak> >> ["Hello, ", "World!"].inject()
<eval-in> zorak => no block given (LocalJumpError) ... (https://eval.in/136583)
<zorak> >> ["Hello, ", "World!"].inject(0)
<eval-in> zorak => 0 is not a symbol (TypeError) ... (https://eval.in/136584)
<wallerdev_> lol
<DouweM> zorak: as everyone's mentioned, you still need a block
<wallerdev_> you have to pass it a block
<DouweM> not even "still", you just need a block
<zorak> >> ["Hello, ", "World!"].inject() { |i, j| i +j }
<eval-in> zorak => "Hello, World!" (https://eval.in/136586)
<kinginky> if you were taking in different sets of data from multiple sources, these data were represented as hashes, and their keys weren't always named the name but represented the same pieces of data, how would and/or could you go about handling that?
<zorak> :)
<DouweM> >> [1,2,3].inject(0) { ||memo, i| memo + i }
<eval-in> DouweM => /tmp/execpad-a3ffbf558753/source-a3ffbf558753:2: syntax error, unexpected '|', expecting '=' ... (https://eval.in/136587)
<DouweM> >> [1,2,3].inject(0) { |memo, i| memo + i }
<eval-in> DouweM => 6 (https://eval.in/136588)
mary5030 has joined #ruby
nathancahill has quit [Quit: nathancahill]
<kinginky> these datasets need to be used together, alongside one another, so it'd be nice if i could access them all in the same manner for obvious reasons
<zorak> thanks!
<zorak> i thin i get it
<zorak> think
toastynerd has quit [Remote host closed the connection]
nathancahill has joined #ruby
zz_karupanerura is now known as karupanerura
jorts has quit [Ping timeout: 276 seconds]
Wolland has quit [Remote host closed the connection]
vpereira has quit [Ping timeout: 245 seconds]
<kinginky> the closest ive found is hashie, but id rather find something more fitted to the task (hopefully)
<zorak> >> ["Hello, ", "World!"].inject("a") { |i, j| i +j }
<eval-in> zorak => "aHello, World!" (https://eval.in/136595)
ghr has joined #ruby
<zorak> the () in inject is the first object to be added to the operation
<DouweM> that's the initialy value for the memo
marcdel_ has quit [Ping timeout: 240 seconds]
<zorak> >> ["Hello, ", "World!"].inject("Test, ") { |i, j| i +j }
<eval-in> zorak => "Test, Hello, World!" (https://eval.in/136596)
<DouweM> pretty much. if you don't provide it, the first element in the array will be used
oo_ has quit [Remote host closed the connection]
<kinginky> >> ['a','b'].inject('') { |a,b| 'a'+'b'}
<eval-in> kinginky => "ab" (https://eval.in/136597)
<kinginky> >> ['a','b'].inject('c') { |a,b| 'a'+'b'}
<eval-in> kinginky => "ab" (https://eval.in/136598)
MatthewsFace has quit [Quit: This computer has gone to sleep]
<kinginky> >> ['a','b'].inject { |a,b| 'a'+'b'}
<eval-in> kinginky => "ab" (https://eval.in/136599)
<kinginky> rad
<DouweM> you're not even using the var
MatthewsFace has joined #ruby
x77686d has quit [Quit: x77686d]
<wallerdev_> lol
<kinginky> haha
<shevy> hehe
<wallerdev_> >> ['a', 'b'].inject { |a, b, c, d, e, f| 'hello world' }
<eval-in> wallerdev_ => "hello world" (https://eval.in/136600)
<wallerdev_> nice
mary5030 has quit [Ping timeout: 265 seconds]
<kinginky> hahahaha
kitak has quit [Remote host closed the connection]
<shevy> oh man
<kinginky> nice man
<kinginky> good job
<shevy> why do you guys torture the ruby parser so much
<DouweM> wallerdev_: lol
karmatr0n has joined #ruby
<mg^> I see new opportunities for obfuscated code contesting.
MatthewsFace has quit [Client Quit]
<kinginky> >> ['w','h','a','t'].inject { |m,a,y,b,e,i,m,j,u,s,t,h,i,g,h| 'o'+'k'+'?'}
<eval-in> kinginky => /tmp/execpad-b6398dbc23bb/source-b6398dbc23bb:2: duplicated argument name ... (https://eval.in/136601)
Hytosys has joined #ruby
<wallerdev_> lol
ghr has quit [Ping timeout: 250 seconds]
<kinginky> cant a man even enjoy his 2 hr daily highness harmleslly in a ruby chat these days?!?!?!
<kinginky> jkjk :P
<wallerdev_> [1, 2, 3].inject { |*args| args.inject { |*args| args[0] + args.last } }
karmatr0_ has joined #ruby
<wallerdev_> >>
<eval-in> wallerdev_ => nil (https://eval.in/136602)
<wallerdev_> lol
<kinginky> injeception
yarou has joined #ruby
<zorak> .map always return an Array?
<zorak> >>(1..9).map
reppard has joined #ruby
<eval-in> zorak => #<Enumerator: 1..9:map> (https://eval.in/136603)
<zorak> >>(1..9).map {}
<eval-in> zorak => [nil, nil, nil, nil, nil, nil, nil, nil, nil] (https://eval.in/136604)
aspires has quit []
<wallerdev_> depends
<kinginky> wallerdev_: on what
<mg^> six-dimensional nil-space realized
<DouweM> the implementation
<mg^> or 8 as the case may be
<DouweM> mg^: lol
<benzrf> kinginky: i read that as 'maybe im just thigh'
<wallerdev_> >> Struct.new(:map).new.map { |x| x + 1 }
<eval-in> wallerdev_ => nil (https://eval.in/136605)
<kinginky> benzrf: now that u mention it, i think i am thigh
marcdel has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
<timgauthier> weird... if i put <%= article.summary(140, "&hellip;") %> it just prints "&hellip"
andy__ has joined #ruby
<shevy> so ugly
<DouweM> timgauthier: what's in article.summary
<DouweM> or rather, what's in article
<DouweM> and what's summary do
<shevy> haha
<timgauthier> its the contents of a blog post
<kinginky> also what is ur bank acct number
Hobogrammer has quit [Ping timeout: 245 seconds]
<timgauthier> and if i put "..." it puts ... at the end of the truncated text
<DouweM> timgauthier: well, either article or #summary is wrong
danijoo has quit [Quit: Leaving...]
<DouweM> so I'd start by posting both
<mg^> well, I am not high, just tired
<timgauthier> but if i put &hellip; it just renders out the characters, not the html character
<mg^> it's go-home time
<DouweM> timgauthier: oh, *that*'s the question
mg^ is now known as mg^away
<DouweM> html_safe will help
<timgauthier> thanks
<Devanon> zorak: map applies the block you gave it to each of the elements in the array, afaik
<zorak> >> puts "i love you zorak"
<eval-in> zorak => i love you zorak ... (https://eval.in/136606)
<DouweM> that's sad zorak
<timgauthier> i just need to figure out which syntax lets me put html_safe in
kevinykchan has quit [Quit: Computer has gone to sleep.]
<zorak> i love you too eval-in
<kinginky> Devanon: that is my understanding. i was wanting to know also why it sometimes returns an enumerator. i guess it depends on what you call it on
<DouweM> timgauthier: it's a method in string, provided you're doing Rails
<timgauthier> yeah
<timgauthier> sort of
jamto11 has quit [Remote host closed the connection]
<DouweM> timgauthier: by default it'll escape any HTML you print, because xss, but with html_safe you can mark certain snippets, like the &hellip; as safe to be printed non-escaped
<DouweM> kinginky: no block => enumeator
yfeldblu_ has quit [Remote host closed the connection]
evenix has quit [Ping timeout: 245 seconds]
<kinginky> DouweM: thanks. i see now
<kinginky> >> [1,2,3].map
<eval-in> kinginky => #<Enumerator: [1, 2, 3]:map> (https://eval.in/136607)
<wallerdev_> or just use unicode instead of html escape sequences
emaxi has quit [Remote host closed the connection]
mrbignum has quit [Quit: Page closed]
yfeldblum has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
emaxi has joined #ruby
<kinginky> is enumerator tied in any way to enumerable?
<benzrf> is #map any different from #each
<benzrf> kinginky: sort of.
<DouweM> kinginky: sure
<Devanon> yep DouweM is right, I just checked it on ruby-doc :P
<centrx> They are certainly related
<kinginky> i mean i understand the basic concepts here.
andy__ has quit [Ping timeout: 240 seconds]
<benzrf> kinginky: Enumerable is the /mixin
<kinginky> yeah yeah i guess i should reword it
<kinginky> right the module
<kinginky> but
<benzrf> */mixin/
<wallerdev_> each returns the initial list
<DouweM> benzrf: you don't see the difference between #map and #each?
<kinginky> does that module bring in this class?
<centrx> >> :mixin
<eval-in> centrx => :mixin (https://eval.in/136608)
<benzrf> it adds utility methods derived from #each
<benzrf> Enumerator is a class representing an iterable
<kinginky> ok, makes sense
<benzrf> which also includes Enumerable
<timgauthier> <%= article.summary(140, (" &hellip;").html_safe) %> doesn't appear to make a difference. strange
<kinginky> thank u
<benzrf> many methods in Enumerable return Enumerators
<benzrf> np
<kinginky> makes total sense
<RubyPanther> >> (1..9).each.map.each.map.each.map {|o|o}
<eval-in> RubyPanther => [1, 2, 3, 4, 5, 6, 7, 8, 9] (https://eval.in/136609)
<benzrf> >> [1, 2, 3].each_with_index
<eval-in> benzrf => #<Enumerator: [1, 2, 3]:each_with_index> (https://eval.in/136610)
<benzrf> ^enumerator from enumerable method
<benzrf> DouweM: i do not
<benzrf> *when blockless
dkamioka has quit [Remote host closed the connection]
<DouweM> timgauthier: in that case it's probablt the summary method breaking the safe string. you might want to use Rails's truncate
jason__ has joined #ruby
emaxi_ has joined #ruby
grayWolf has joined #ruby
oo_ has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
<kinginky> im always really impressed looking at the source for, say, sinatra, or sequel. big projects. how can they have SO much clarity in writing these things?
<DouweM> benzrf: that's surprising. anyway, #each returns the array itself for easy chaining. #map returns a new array with all the block return values
<kinginky> im jealous of that
<kinginky> :P
<benzrf> ohhh.
marcdel has quit [Ping timeout: 252 seconds]
<kinginky> maybes its cause its 10s, 100s, or 1000s of devs :P
deens has joined #ruby
<benzrf> DouweM: no wait what
<benzrf> DouweM: no i mean when blockless >.<
<DouweM> benzrf: am I misunderstanding you?
<benzrf> >> [1, 2, 3].each
<eval-in> benzrf => #<Enumerator: [1, 2, 3]:each> (https://eval.in/136611)
<benzrf> >> [1, 2, 3].map
<eval-in> benzrf => #<Enumerator: [1, 2, 3]:map> (https://eval.in/136612)
<DouweM> benzrf: hehe yeah there's why I was surprised :P
grayWolf has quit [Client Quit]
marcdel has joined #ruby
<kinginky> do any of you all use pry? just found it today. fuckin cool
<benzrf> kinginky: i use pry :)
<DouweM> kinginky: it's great
<kinginky> it's the shit guys
Speed has quit [Ping timeout: 245 seconds]
<kinginky> its like masturbating for the first time
<benzrf> thank u based banister
<DouweM> the creator guy is usually in here as well
<DouweM> as he is now :)
<kinginky> heshere!!
<benzrf> kinginky: unnecessary comparison much
<kinginky> well: it's the best thing since masturbation! well done
<kinginky> hahaha
<benzrf> /ROLLS EYES
lolmaus has joined #ruby
<benzrf> if u like pry u should check out MY project, Quick
<DouweM> I wouldn't go that far
<kinginky> benzrf: give me a link. 'course ill look
<benzrf> sweg
<timgauthier> apparently leaving out an optional there will just use that character anyhow.
<shevy> timgauthier you mean a default to a method?
<kinginky> benzrf: brb == 'brb'?
<kinginky> be right back
<kinginky> ?
<shevy> god man, new to IRC!!!
nateberkopec has quit [Quit: Leaving...]
<benzrf> kinginky: hmm?
deens has quit [Ping timeout: 245 seconds]
<shevy> let's teach you the shortcuts
<benzrf> kinginky: where is brb
<shevy> lol <-- this means people evil laughing about you
<kinginky> benzrf: just lookin at the code. "brb_service"
<kinginky> etc
<timgauthier> yeah if i just put blog.summary(140) or whatever it just uses an ellipsis, it was the "..." or "ellipsishtmlcode" that was being broken. But yeah, if i left out that optional argument it just uses the right character
<shevy> brb clearly stands for bilinear ruby badass
<kinginky> i mean 'be right back' makes sense and id love if it was brb for be right back :P
<benzrf> its not ;p
afreidah1 has quit [Ping timeout: 240 seconds]
<benzrf> kinginky: scriptreplay <(curl -sL is.gd/quicktiming) -s <(curl -sL is.gd/quickscript)
<benzrf> run that
<kinginky> benzrf: well it is to me god damnit
<kinginky> benzrf: will do
<benzrf> wait
<benzrf> from the README.md:
<benzrf> Usage example
<benzrf> Resize your terminal to at least 124×33 and then run scriptreplay <(curl -sL is.gd/quicktiming) -s <(curl -sL is.gd/quickscript) on almost any *nix for a live demo.
<shevy> lol
<northfurr> anyone else run into this when trying to preview an octopress post
<shevy> you read your own readme?
<northfurr> Errno::ENOENT on line ["56"] of /Users/northfurr/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/compass-0.12.2/lib/compass/actions.rb: No such file or directory - /Users/northfurr/Projects/my_website/octopress/public/blog/stylesheets/screen.css
<DouweM> kinginky: ...
marcdel has quit [Ping timeout: 276 seconds]
<shevy> northfurr obviously that file does not exist there
<northfurr> yeah but if i create it manually and rake generate/preview it deletes it
<shevy> a shame that compass is too dumb to deal with such a situation
<kinginky> DouweM: ... ..
<DouweM> kinginky: :)
evenix has joined #ruby
<kinginky> DouweM: :)
<shevy> guys stop with the dot wars
<benzrf> kinginky: pls 2 run my demo
<shevy> we may run out of them eventually
<wallerdev_> …
<DouweM> we can just smelt other letters. we should get like 7 out of y
<shevy> lol
djbkd has quit [Quit: Leaving...]
<kinginky> looks like wallerdev_'s stealin the dots off the wire maaaannn
<benzrf> …
<DouweM> omg I'm almost done studying for my test and it's only 3am
<kinginky> benzrf: officially the raddest demo ive ever seen in my life
<benzrf> swag
<centrx> You have plenty of time left
<benzrf> DouweM: whats the test on
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> intelligent systems
jjbohn has quit [Quit: Leaving...]
<timgauthier> why is it elsif and not else if?
<timgauthier> or elseif* rather
<DouweM> ask Matz
<kinginky> because, yes
emaxi_ has quit [Remote host closed the connection]
<timgauthier> ok kinginky thank you for the precise reply
<kinginky> tim im kidding, sry :P
<timgauthier> except that ruby isn't the only language like that
<kinginky> no good reason though
<timgauthier> ;)
sailias has joined #ruby
<timgauthier> it sounds truthy to me
<kinginky> probably just quicker to type??
emaxi has joined #ruby
<kinginky> it's a lot of work, reaching for that e and hitting the space bar man
<RubyPanther> with else if your optional blocks get indented needlessly in a way that makes the code less clear
<timgauthier> i know right? use Dvorak wimp
<benzrf> python has elif !
<timgauthier> wow
<kinginky> elif/elsif are wiser imho
afreidah1 has joined #ruby
<timgauthier> how?
<benzrf> and haskell does not have extra elif clauses at all!
<Devanon> timgauthier: at least it is better than the 'elif' used in python :/
<kinginky> not only is it quicker/easier to type (and very commonly used)
mansi has joined #ruby
<kinginky> it's easily learned
<timgauthier> what is elif
SilkFox has joined #ruby
SCommette has joined #ruby
<kinginky> and also for the reason RubyPanther pointed out
<timgauthier> though yeah that was easy to type
<kinginky> elif (python) == elsif (ruby) == else if
<DouweM> == elseif (php)
<RubyPanther> elsif makes it so you can use if's like a case statement
<kinginky> ah forgot bout ol' php
<kinginky> poor guy
<kinginky> RubyPanther: or u could just use a case
<kinginky> :D
<DouweM> RubyPanther: how do you mean?
thrillagorilla has quit []
dima_ has joined #ruby
helpD has joined #ruby
<RubyPanther> case is intended to be used heavily with === and so if you use it for a general if statement then you reduce the clarity of the correct === ones
<kinginky> case is still diff too
<kinginky> because if/elsif is going to go down the tree one by one til one matches
<kinginky> case i dont think does this (correct me if im wrong)
<kinginky> case is more explicit (I think)
<kinginky> RubyPanther: i still dont get it, but, yeah. if u want to explain it im all ears.
havenwood has quit [Remote host closed the connection]
<DouweM> yeah, not quite sure what you mean either
toastynerd has joined #ruby
<kinginky> DouweM: is what i said about right? are cases "more explicit" than if/else?? just curious if that's right
<DouweM> what do you mean by more explicit?
<kinginky> hmm
<kinginky> for instance
<kinginky> a=123
emaxi has quit [Ping timeout: 276 seconds]
<kinginky> if a == 1; .. elsif a== 2; ... elsiffisdjfo
<kinginky> shit, that sa horrible example
<kinginky> give me 5 mins
mac_cosmo has quit [Quit: mac_cosmo]
St_Marx has quit [Ping timeout: 245 seconds]
arubin has joined #ruby
<kinginky> DouweM: i take everything back. i unsay everything i said. forget it :D
helpD has quit [Ping timeout: 252 seconds]
afreidah1 has quit [Ping timeout: 246 seconds]
<DouweM> done and done
<kinginky> ty sir
<kinginky> my mind's in lalaland
amclain has joined #ruby
phruby has joined #ruby
dima_ has quit [Ping timeout: 276 seconds]
<DouweM> also brb does indeed mean be right back
<kinginky> where objects grow on trees and complexity is a thing of the past
<timgauthier> so to clarify
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> case does go through the list in the order you write until it matches then it stops correct?
evenix has quit [Remote host closed the connection]
<DouweM> timgauthier: afaik
<phruby> is the instance variable in a singleton method the instance variable of the class or the instances
<kinginky> timgauthier: this is where my derp moment happened. im 98% sure, yes
<timgauthier> ok
fijimunkii has quit [Max SendQ exceeded]
marcdel has joined #ruby
djbkd has joined #ruby
<kinginky> phruby: it is instance if its a real singleton i think
evenix has joined #ruby
screen_da_youth has quit [Remote host closed the connection]
marcdel has quit [Client Quit]
<kinginky> oh singleton method
toastynerd has quit [Ping timeout: 252 seconds]
<kinginky> still the instance
glanzi has quit [Remote host closed the connection]
<kinginky> i think
<DouweM> phruby: like Class.method ? any @var in there is on the class
<kinginky> singleton should be one instance of a class.
<RubyPanther> >> class Foo; def initialize n=1;@n=n end ; def === rval; (@n % 2) == (rval % 2) end; end ; f1,f2 = Foo.new(42), Foo.new(99) ;case 2 when f1; 'even' ; when f2; 'odd' end
<eval-in> RubyPanther => "even" (https://eval.in/136615)
<DouweM> kinginky: singleton has slightly different meaning/connotation in Ruby
<kinginky> DouweM: that is my failure here is i've never paid attention or utilized singleton pattern in ruby
<kinginky> until recently which is my own (lacking) implementation
<phruby> DouweM: thank you
<kinginky> has it gotten easier since 1.8-1.9?
redondos has quit [Excess Flood]
<timgauthier> man, i dream of a irc client where i can css code things like make eval-in a lighter colour
<DouweM> RubyPanther: right
thelamest has quit [Max SendQ exceeded]
<RubyPanther> That is what case is for. calling the === method on the object given to when with the argument from case as the argument, and giving you back the one that is true
redondos has joined #ruby
<kinginky> timgauthier: google 'cssdesk'
gregf has quit [Quit: WeeChat 0.4.3]
jtz has quit [Max SendQ exceeded]
ikawnoclast has quit [Max SendQ exceeded]
<kinginky> < -- not much of a designer, but lately ive been trying to expand my skillset. cssdesk has been invaluable
<RubyPanther> if doesn't do any of that, so if you're not doing any of that, then it is a closer match for your intent
<DouweM> RubyPanther: right. I know what it does, I just don't see how this is related to the "elsif" vs "elseif" vs "else if" discussion :p
<timgauthier> thats neat
fflush has joined #ruby
fflush has quit [Changing host]
fflush has joined #ruby
<timgauthier> i use css/sass quite liberally
<timgauthier> what i meant was i want an IRC client that lets me apply CSS
<DouweM> timgauthier: YES, a css-styleable irc client would be great
<kinginky> ohhhh
<timgauthier> and each user has an id= as their name
<DouweM> that's what I like so much about atom.io
<kinginky> what is that even possible
ktun has joined #ruby
<phruby> DouweM: whats the diff between class variable and instance variable of a class
jtz has joined #ruby
<kinginky> hahaha
<DouweM> everything's just HTML and CSS, ready to be modded
ekarlso has quit [Max SendQ exceeded]
<kinginky> that's so sick
<DouweM> kinginky: everything is possible
<timgauthier> atom.io sucks until someone writes cmd shift / tag closure
<timgauthier> also, i couldn't figure out the irc client
<kinginky> phruby: one is defined ONCE, one is defined on any new instance
<DouweM> phruby: forget @@class_variables exist
gregf has joined #ruby
<timgauthier> and i suspect it won't be a cheap app either
<DouweM> phruby: they're nothing but trouble
nateberkopec has joined #ruby
afex has quit [Max SendQ exceeded]
ikawnoclast has joined #ruby
jtz has quit [Max SendQ exceeded]
evenix has quit [Ping timeout: 245 seconds]
<kinginky> and i agree w/ DouweM
ikawnoclast has quit [Max SendQ exceeded]
<DouweM> timgauthier: atom.io sucks because it's still in early stages and lots still needs to happen :)
<kinginky> it is a world of hell
<phruby> DouweM: they are inherited by subclasses right as opposed to @ of a class
davispuh has quit [Remote host closed the connection]
<DouweM> timgauthier: and I can't imagine it'll be more expensive than Sublime etc
<benzrf> >implying that atom.io doesnt suck because it's just sucky
djbkd has quit [Max SendQ exceeded]
<DouweM> phruby: think so
<timgauthier> yeah it also crashes a lot for me DouweM :( but its a neat product!
<DouweM> benzrf: what's your beef with atom?
RowdyChildren is now known as RowdyChild|Away
<benzrf> >runs on web tech
ktun has quit [Client Quit]
<benzrf> >is proprietary
<DouweM> timgauthier: yeah for me too. it's no where near ready
<benzrf> >is more ST than ST
<benzrf> ew
<DouweM> benzrf: webtech isn't necessarily bad
<timgauthier> yeah it is actually quite slow benzrf
jtz has joined #ruby
Nilium has quit [Max SendQ exceeded]
<DouweM> benzrf: won't be proprietary forever
ekarlso has joined #ruby
<DouweM> benzrf: hehe <3 ST
<timgauthier> and when it has issues it pops up the safari dev tools internally lol
<benzrf> vim/python is to ruby/st as ruby/st is to nodejs/atom.io
<benzrf> i say this as a ruby user >:{
<DouweM> but yeah it's nowhere near production ready yet
<kinginky> timgauthier: sounds like an apple problem :P
ekarlso has quit [Max SendQ exceeded]
jtz has quit [Max SendQ exceeded]
ikawnoclast has joined #ruby
Nilium has joined #ruby
ikawnoclast has quit [Max SendQ exceeded]
<timgauthier> but where are we going to use atom.io for testing if it isn't production ready!
<DouweM> benzrf: and yet it was built by a Ruby shop
<kinginky> a website cant popup ur dev tools on its own
<benzrf> bah
<timgauthier> atom.io is apple only kinginky
djbender has joined #ruby
<kinginky> oh
<kinginky> >.<
<kinginky> *shuts the fuck up*
<timgauthier> its not a website, its atom.io... a "native" client
Hanmac has joined #ruby
<kinginky> i got u now
emaxi has joined #ruby
<kinginky> ;)
<DouweM> timgauthier: for now anyway
<timgauthier> but thats what is weird about it right
<kinginky> the ".io" tricked me
<kinginky> haha
mehlah has quit [Quit: Leaving...]
<timgauthier> its "native" but it isn't at all
jtz has joined #ruby
<benzrf> why do people keep making editors when vim and emacs already exists
<DouweM> yeah, it's just called Atom, the site is .io
<benzrf> it boggles the mind
<DouweM> benzrf: lolol
<timgauthier> no the actual app is called atom.io
<timgauthier> isn't it?
fijimunkii has joined #ruby
<DouweM> timgauthier: don't think so
<kinginky> benzrf: well in general i agree but i love my aptana honestly
<timgauthier> oh it isn't look at that
<kinginky> there are enough IDEs out there :P
<DouweM> timgauthier: "Atom is a desktop application based on web technologies"
<wallerdev_> isnt aptana a pile of java
<DouweM> editor != IDE but okay
<timgauthier> yea
Es0teric has joined #ruby
<timgauthier> i hate java based apps
<shevy> haha
<timgauthier> i'll use a html based local app over anything java any day
<kinginky> wallerdev_: unfortunately it is in java but generally does what few and simple things i need it to do
<benzrf> and ill use my lovely C-based editor kthx
<shevy> java rules the world
<kinginky> i dont hate all java apps
<kinginky> i like well-written java apps
djbkd has joined #ruby
<timgauthier> i don't know of any well written java apps
<wallerdev_> i cant think of one java app that has a great experience
<kinginky> i hate moderately well-written java apps and anything underneath
<shevy> I like the amount of codes these well written java apps have
<timgauthier> wallerdev_ :P
jtz has quit [Max SendQ exceeded]
<wallerdev_> at least on a mac
Hanmac1 has quit [Ping timeout: 245 seconds]
<wallerdev_> java is awful
<timgauthier> yea
<wallerdev_> everythings wrong
<kinginky> dunno bout max
<kinginky> mac
<shevy> can you tell me a great java app
<timgauthier> remember installing X11?
<timgauthier> yeah i don't do that anymore
<shevy> x11 is easy
<shevy> all you have to do is get all the components in the right build order
<Nilium> IntelliJ is the only nice Java thing I can think of.
<wallerdev_> java is okay for non-ui projects haha
<Nilium> For varying levels of nice.
<kinginky> java is not so bad u just have to have the right expectations
ikawnoclast has joined #ruby
chipotle has joined #ruby
thelamest has joined #ruby
<wallerdev_> or android development
jtz has joined #ruby
<timgauthier> shevy not lately, x11 has been broken on and off, and I believe apple has dropped support for it
<shevy> timgauthier here are the components http://pastie.org/pastes/9081008/text
<kinginky> im sorry but i cant hold it inside anymore
yarou has quit []
<kinginky> i hate apple
<kinginky> :)
<timgauthier> hahaha exactly shevy :P
kloeri has quit [Read error: Connection reset by peer]
<DouweM> kinginky: and why would that be
ekarlso has joined #ruby
<kinginky> because they sell overpriced computers with a nice case
<timgauthier> i think it is kinginky's thing
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has joined #ruby
<shevy> hmm ignore entry 46, dunno how that happened
MissionCritical has quit [Max SendQ exceeded]
twiceday has quit [Max SendQ exceeded]
thelamest has quit [Max SendQ exceeded]
<DouweM> I think hate against a company is so arbitrary. what has Apple ever done to you
fumk has quit [Excess Flood]
ValicekB has quit [Max SendQ exceeded]
<DouweM> you don't have to like it, but hating it is pointless
kloeri has joined #ruby
<wallerdev_> yeah apple computers are overpriced, but cant beat the OS
<kinginky> nothing, because i havent let them ;)
<DouweM> wallerdev_: +
<kinginky> i had an iphone
<DouweM> 1
raycloud has quit [Max SendQ exceeded]
<kinginky> its not like im an apple hater just to hate
fumk has joined #ruby
<kinginky> and in fact, good for them
wookiehangover has joined #ruby
njection has quit [Max SendQ exceeded]
<kinginky> perhaps im jealous
<kinginky> ;)
<timgauthier> i think it is a shame that a premium brand is the only company making a good OS for their machines
<wallerdev_> im an apple fanboy
<kinginky> the point is more about the principle and the way they conduct business
twiceday has joined #ruby
<DouweM> kinginky: because that's so different from [insert other large tech company]
<timgauthier> and i am sad webOS didn't take off, because it would have been a nice competition to apple
yogie has quit [Max SendQ exceeded]
jcs222 has quit [Max SendQ exceeded]
Kabaka_ has quit [Max SendQ exceeded]
myke has quit [Max SendQ exceeded]
twiceday has quit [Max SendQ exceeded]
myke has joined #ruby
<kinginky> DouweM: well, right. i dont spend money on things that are available for free and do what i need them to do. so i have little to no experience there =\
inverses1uarelaw has quit [Max SendQ exceeded]
jcs222 has joined #ruby
<DouweM> all right
<kinginky> if i need windoze
<kinginky> i download it
<kinginky> but the truth is, id do anything NOT to use windoze
<DouweM> but hating Apple makes no sense
inverses1uarelaw has joined #ruby
<DouweM> hehe, I agree with you on that
<timgauthier> kinginky even buy an apple? ;)
<kinginky> i dont HATE it. that was an overstatement.
tkuchiki has joined #ruby
<kinginky> i own a macbook
<kinginky> i just dont like it
<DouweM> lol
<DouweM> lol
<shevy> lol
<DouweM> you're the worst hater ever
twiceday has joined #ruby
<kinginky> it's made for joe schmoe 50 yr old painter man
<shevy> that was the coolest thing ever
<shevy> but you use it!
<shevy> you have it!
<kinginky> im 24 yr old 12-hr-a-day coder man whose coded for 16 yrs
<shevy> you are a maccie!!!
<kinginky> i need power, reliability and speed for a good price
<DouweM> kinginky: you know who you're talking to here right? the Ruby community is pretty much all Mac
<kinginky> not fancy shit
<shevy> and you are an apple user!
<shevy> no
<shevy> linux here
<DouweM> kinginky: because an MBP won't get you those?
<timgauthier> ok, so i'm on a site, they talk about this HTML element in this framework. then they show an example of it... WHY do they show a .jpg as the example? why don't people just put example htmlcode :|
thelamest has joined #ruby
<kinginky> what is an MBP?
<DouweM> MacBook Pro
twiceday has quit [Max SendQ exceeded]
<zorak> whats yield do?
<DouweM> Mine's powerful, reliable and fast
<deepy> timgauthier: so that you shouldn't copypaste and instead learn from it
<zorak> its like puts but with blocks?
<kinginky> i never said that. i said i just dont personally prefer the interface or anything
<shevy> lol
<timgauthier> oh, is there any tools that convert haml to erb? or english? :P
<DouweM> good price, not so much :P
<kinginky> why would i re-learn all the things i know?
<DouweM> but good price depends on your wallet
thelamest has quit [Max SendQ exceeded]
<deepy> timgauthier: but then again, some people just want to watch the world burn
<kinginky> when what i have does what i need for a fraction of the price?
<shevy> zorak you use yield to access the content of a block passed to a method
<DouweM> kinginky: you definitely didn't "just say that" lol
<timgauthier> its an example of a bootstrap element.. it wouldn't be a copy paste
yogi has joined #ruby
snath has quit [Ping timeout: 252 seconds]
<zorak> shevy: dont get it
<shevy> zorak def foo; end; foo() { 'bla' } <-- you can access to 'bla' via yield, inside method foo()
twiceday has joined #ruby
Kabaka_ has joined #ruby
<kinginky> i didnt say it wouldnt work for what i do
<zorak> ??
<shevy> zorak it is super simple, but if you do not know what a block is then you have no chance of understanding it
<kinginky> it woudl, ive used macs. i own one and my ex had one that i used when my computer was broken for months
<benzrf> zorak: the yield keyword calls the block that the method received
narcan has quit [Ping timeout: 245 seconds]
<DouweM> kinginky: I was mostly going off of your initial "I HATE apple". the rest of your arguments/considerations make more sense
<kinginky> just that id rather use what i know and know i can rely on knowing
twiceday has quit [Max SendQ exceeded]
<DouweM> kinginky: that makes sense
<zorak> i know what a block is
<timgauthier> shevy ! http://haml2erb.herokuapp.com
<zorak> but i dont get the yield operation
<kinginky> DouweM: w/ due respect i DID say that was an overstatement, that i dont HATEapple, just that its not for me and i disagree with some aspects of their company
<benzrf> zorak: if you call foo {code_here}, then saying 'yield' inside the foo method will run code_here
<DouweM> kinginky: I like OS X, and the build quality is great, and I've decided I think that's worth the money. YMMV
<shevy> timgauthier I can not click on such an url
<shevy> it has erb in it
<benzrf> zorak: it calls the block that the current method was passed
<timgauthier> the level of which i don't understand haml is epic
fake-bruceadams has joined #ruby
jason__ has quit [Remote host closed the connection]
<DouweM> kinginky: right, but that was after your initial hate statement :) with the discussion afterwards I have no problems
<kinginky> DouweM: u never asked what i DO like about apple. i think they offer a GREAT user experience and a reliable and well-updated system
<benzrf> DouweM: >mfw people not using free software
<benzrf> DouweM: u make rms cri
fflush has quit [Quit: fflush]
twiceday has joined #ruby
<shevy> zorak, if you know what a block is, how can you not understand that a block has content? the content is what is between {}
<DouweM> lol
raycloud has joined #ruby
<kinginky> but again,for me, UX is not of concern
<timgauthier> it doesn't work though :P
fake-bruceadams has left #ruby [#ruby]
<kinginky> i could work on cmd line if i wanted
<shevy> and via yield you access the content of a block, it's so simple
<DouweM> kinginky: hehe, I have no problem with any of that :P I was just going off of your initial statement
<kinginky> just, who would?
<kinginky> DouweM: understood :)
thelamest has joined #ruby
twiceday has quit [Max SendQ exceeded]
sethen has joined #ruby
<kinginky> blocks are awesome btw timgauthier: take the time to learn them through and through
<kinginky> it will be invaluable later (and now)
jason__ has joined #ruby
ponga has quit [Quit: Leaving :)]
<timgauthier> blocks? like do blocks?
Spami has quit [Quit: This computer has gone to sleep]
<kinginky> yes like blocks :)
raycloud has quit [Max SendQ exceeded]
<shevy> like blocks
thelamest has quit [Max SendQ exceeded]
<shevy> blocks like blocks timgauthier
<timgauthier> like blocks
<kinginky> blocks like blocks and lbocks
<shevy> haha :D
twiceday has joined #ruby
<kinginky> lego blocks, neighboirhood blocks ,city blocks
<kinginky> u name it,w e got it
<DouweM> kinginky: also good on you for starting programming at 8. I waited until I was 9 :P
<shevy> timgauthier "do" is not the only way to use a block
<kinginky> -- Ruby
<benzrf> the docs have lego blocks next to method names
<shevy> did you guys not play outside in the garden?
<shevy> at age 9?
<benzrf> DouweM: well i started at 6.5 or 7 go|dfish ml B)
<shevy> did you guys have no childhood at all?!?!
<benzrf> *goml
<shevy> goldfish?
<kinginky> DouweM: same to u then. in the most non-romantical way ever, ive been waiting to meet someone like me for yrs
jason___ has joined #ruby
<DouweM> shevy: this is my childhood <3
<benzrf> go<tab>ml
<shevy> what does a goldfish have to do with programming
emaxi has quit [Remote host closed the connection]
<kinginky> i find ppl daily online. never met a single soul like me IRL
twiceday has quit [Max SendQ exceeded]
<benzrf> meant goml
fflush has joined #ruby
<shevy> DouweM :(
fflush has quit [Changing host]
fflush has joined #ruby
djbkd has quit [Remote host closed the connection]
mary5030 has joined #ruby
<DouweM> kinginky: hehe, I have a bunch at my uni
toastynerd has joined #ruby
<benzrf> kinginky: starting-programming-as-a-youngish-child-five o/
<DouweM> kinginky: I'm 20, fwiw
emaxi has joined #ruby
<shevy> god damn it
<DouweM> benzrf: high-fives all around o/
<kinginky> i went back to school for that very reason. my mom suggested it. i went back, nope, theyre all a bunch of burnouts who dont even do their HW. they skate by and get a degree
<shevy> at age 8 I got into judo
<timgauthier> yay i got it to convert!
<DouweM> shut up old guy shevy
<kinginky> it's so lame. i cant stand it
<timgauthier> now i can read it!
<kinginky> so i quit school. now i just freelance
<shevy> timgauthier is that the missionary thing
<benzrf> meh
<timgauthier> yes ;)
lw has joined #ruby
<DouweM> I'm studying Computer Science at a fairly large university, there's a lot of people "like me" here
<kinginky> ooohhhh ok im starting to get it now
twiceday has joined #ruby
thelamest has joined #ruby
<benzrf> i wanna go to college to do completely inapplicable-to-anything compsci
<benzrf> :-D
<kinginky> so THIS is the fucking place all the young bloomers go
* timgauthier knocks on peoples doors and asks if they want to know .erb
<DouweM> benzrf: I love that :P
dopie has joined #ruby
<kinginky> we got a what, 9 yr old, 8, and 5 yr old starter in here now?
<dopie> #html
<kinginky> hahaha
<shevy> yeah
<kinginky> my interest in computers started @ 5. we were lucky. my dad's job got us a computer+internet (28.8k woooo!)
twiceday has quit [Max SendQ exceeded]
thelamest has quit [Max SendQ exceeded]
<shevy> I am slowly beginning to understand why the elderly people want to murder the youngins
<kinginky> 4 or 5
<timgauthier> i should go into html and keep asking for useless elements
<benzrf> kinginky: nah only 6
<benzrf> maybe 7 idr actualy
ddv has quit [Ping timeout: 245 seconds]
<timgauthier> shevy i understood that as soon as i met a baby for the first time
<shevy> timgauthier I propose <porn> tag as a new vital addition
<benzrf> just remember readin a book about truebasic back in 2nd
<DouweM> one of my first words was "digdig", my way of pronouncing "licht", the Dutch word for "light" :P I've always been fascinated by technical stuff
<shevy> lol timgauthier
jason__ has quit [Ping timeout: 240 seconds]
<timgauthier> lol exactly shevy
<dopie> kinginky, i was running on a 14.4k and using Terminat 4.0
<dopie> playing Doom online with others
<centrx> My first word was ruby
<dopie> and duke nukem
<DouweM> I said that pointing at a lightswitch, for the record
<shevy> my first word was cat
<timgauthier> dutch is so cute
djbkd has joined #ruby
<timgauthier> such gibberish
<DouweM> lol
<benzrf> myyyyyyyy first word was church-turing thesis <- tru fax B)
<kinginky> benzrf: ya when i started coding is a blur kind of. asked my parents "how do they make video games?". my mom said "I think it's programming". after i heard that sentence, i never stopped for a second. that's all i know. though my interests have drifted drastically from games, my love and passion remains
twiceday has joined #ruby
funburn has quit [Quit: funburn]
<benzrf> kinginky: cools
<DouweM> kinginky: nice
<timgauthier> take german words, remove all of the syntax of masculine or feminine words (good idea) and then just add random vowels
twiceday has quit [Max SendQ exceeded]
ner0x has quit [Quit: Leaving]
<timgauthier> kinginky thats how i got into design
<DouweM> timgauthier: that's about right
<benzrf> i got started cuz i found a BASIC program for a caesar cipher in a book and my dad roped me into learning a bit of it in addition to keying into the program for me
<kinginky> timgauthier: whats ur story then?
<timgauthier> joined a mod team to make levels
<kinginky> benzrf: what a legit fuckin way to get into coding man. ur dad is an inspiration!
thelamest has joined #ruby
twiceday has joined #ruby
<timgauthier> realized how much i enjoy the aspect of designing the experience
<DouweM> benzrf: you're crazy
<dopie> I became a bbs modder
<dopie> for iniquity
<benzrf> DouweM: wenk wenk
<kinginky> timgauthier: awesome
<timgauthier> ensuring that you hit the right points and that the correct experience without forcing you to do anything
zachallett has quit [Remote host closed the connection]
<kinginky> u know its interesting how ppl get into coding for a million reasons. but we all stay for one. CODING
<benzrf> bitches i got a head start
<kinginky> i love computers <3 :D
<DouweM> money works too
raycloud has joined #ruby
<timgauthier> then did textures cause i had too, learned how to design print design and visual design
<benzrf> pfft computers suck
<kinginky> money works too ;)
flowerhack has quit [Quit: Connection closed for inactivity]
<DouweM> I've seen a lot of people just in it for the money
<timgauthier> then realized how they connect
thelamest has quit [Max SendQ exceeded]
twiceday has quit [Max SendQ exceeded]
<benzrf> they are a dumb way to get a platform for computing on
ddv has joined #ruby
<benzrf> stupid von neumann arch
noob101 has quit [Ping timeout: 240 seconds]
<timgauthier> i am not a programmer, I just write logic because i get to make the front end do nice things :D
<kinginky> DouweM: i think this is the problem in the field at large. ppl see big bucks or something (which it isnt even that great really) and they just shit their way through uni
<kinginky> it's bullshit
<wallerdev_> i program for the glory
<benzrf> >tfw graduates cant fizzbuzz
fflush has quit [Quit: fflush]
<kinginky> timgauthier: writing a frontend, backend. doesnt matter, code is code
<DouweM> kinginky: agreed
<wallerdev_> every line of code is a battle scar
<kinginky> =]
<benzrf> cmon everybody join the superiority circlejerk
<DouweM> wallerdev_: lol
<shevy> every line of ruby is visual beauty
twiceday has joined #ruby
<centrx> I can write fizzbuzz in less than 30 seconds
<DouweM> benzrf: sorry, we'd already started without you
<shevy> I can knock you out in less than 20 seconds
<wallerdev_> i was there when heartbleed happened, on the front lines, patching left and right
<timgauthier> i only use homegrown organic syntax written with biodegradable recycled ink with a vegan friendly synthetic quill
RaptorJesus has quit [Remote host closed the connection]
<DouweM> hahaha
raycloud has quit [Max SendQ exceeded]
<kinginky> DouweM: thats why i left uni for now. i make decent money (more than enough for myself) and id rather make money and enjoy my life than be in school and be stressed/miserable accruing debt debt debt
binaryhat has quit [Quit: Leaving]
<DouweM> kinginky: you can combine school and a job you know
twiceday has quit [Max SendQ exceeded]
<kinginky> DouweM: i think a lot of intern type of things are kind of a ripoff though
<DouweM> kinginky: but yeah, I enjoy work a lot more than uni as well. but with one year left until my Bachelor's it's a bit pointless to stop now
<kinginky> they wanna pay me like $8/hr or some crazy ass shit
<timgauthier> where was this talk given? lol
<DouweM> hehe
<DouweM> found your own company then :P
<wallerdev_> depends where you live kinginky
<kinginky> DouweM: if i feel dumb its just that. 2 yrs left. but then again, i can go back any time i want. i should be happy 1st, worry about success later. im only 24 for god's sake
twiceday has joined #ruby
<kinginky> and DouweM: that is really my eventual goal
<DouweM> :)
ghr has joined #ruby
<kinginky> my interest/passion lies most heavily in code but im an entrepreneur at heart, too
<DouweM> hehe, same here
combusean has joined #ruby
<kinginky> would u be willing to get in touch outside of IRC, just to be in touch? perhaps we can help each other out at some point
<timgauthier> i'm crying i'm luahging so hard
<DouweM> kinginky: yeah sure, contact info is at douwemaan.com :P
<timgauthier> i can't watch this now, i'm going to wake everyone else up
<benzrf> timgauthier: have u seen his more famous talk, 'wat'
<timgauthier> not right now
<benzrf> personally i prefer the types one
<timgauthier> i need to look at those tomorrow
<DouweM> ah wat is great
<benzrf> useing you're type's good > wat
<DouweM> will check it out then
<timgauthier> DouweM thats the first time i've seen a fixed position sidebar menu that i liked... good job!
danshultz has joined #ruby
<DouweM> timgauthier: :D
<kinginky> DouweM: your whole "programming story" is really similar to mine xD its funny
<timgauthier> oh man... that... is clever
<kinginky> "used to do freelance PHP"
<timgauthier> the copyright notice...
<kinginky> xD
<kinginky> i remember those days
<DouweM> timgauthier: hmm?
<timgauthier> oh nm, its not just the copyright
<benzrf> ugh i used to do php
<timgauthier> using your name in the menu with content in the body
<DouweM> timgauthier: :)
<timgauthier> i don't read good
lw has quit [Quit: s]
<peret> its cool timgauthier
<DouweM> that's pretty much the point of the site :P
<DouweM> the layout anyway
<timgauthier> yeah... i actually read it now, schöne
raycloud has joined #ruby
<DouweM> yo Ethan :P
<benzrf> DouweM: how good do u know haskelll
yano has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 258 seconds]
<DouweM> benzrf: enough to love it, too little to be anywhere near productive :P
<DouweM> but it's fucking great
<wallerdev_> haskell is functional right?
<timgauthier> oft whatever man
<timgauthier> i build my websites in assembly
<DouweM> old pic but ya
<timgauthier> hahaha benzrf ;)
<benzrf> haskell taught me that static typing can be excellent and not just a pita
<DouweM> fucking benzrf :P
<timgauthier> what is static typing?
<benzrf> timgauthier: when types are known/specified at compile/parse time
MissionCritical has joined #ruby
<benzrf> instead of at runtime
<benzrf> i.e. in java or C
<timgauthier> ok
<timgauthier> so compiled vs runtime
<timgauthier> got it
<benzrf> on the plus side: they catch type errors at compile time
<DouweM> so it was nice talking to you guys, but I'm gonna catch some sleep :P
<benzrf> on the minus side: type annotations tend to be annoying, verbose, and not super expressive
<benzrf> at least
<benzrf> in java o=
<timgauthier> cya DouweM, i should too at some point
<benzrf> DouweM: Nightmare
<benzrf> *night
<benzrf> shit
<DouweM> :')
diegoviola has joined #ruby
<timgauthier> lol
afex has joined #ruby
deric_skibotn has quit [Ping timeout: 258 seconds]
<timgauthier> ruby is so kind, it let me use elsif when i should have just had else
<shevy> lol
<kinginky> :-o but that isnt friendliness. it would be a bug. my presumption is that your elsif just passed as true
<kinginky> so be careful with that if/end tree
<benzrf> if anybody here has not tried haskell
<kinginky> u might still want to add in that else
<benzrf> pls go explode ur brain with FP
<benzrf> its magic~
<kinginky> if i do if/elsif,i always add else too
<kinginky> almost always
<timgauthier> well it was if its this then do this, else do that, end
<kinginky> benzrf: a little. what is FP?
aspires has joined #ruby
<benzrf> functional programming
<timgauthier> but instead of else i just put elsif with no arguement
jlast has joined #ruby
tungd has joined #ruby
cescalante is now known as ce_afk
<kinginky> timgauthier: oh ok well, then if that party of ruby evaluates "nil" as true?? i dunno. just doesnt sound intuitive but if its working as u expect, good deal
djbkd has quit [Quit: Leaving...]
<timgauthier> i corrected it and made it a proper else
<timgauthier> just interesting that it didn't fail on me
emaxi has quit [Remote host closed the connection]
<kinginky> timgauthier: personally i think that is wise. your code is your cdoe though :)!
ValicekB has joined #ruby
pen has quit [Remote host closed the connection]
toastynerd has quit [Ping timeout: 258 seconds]
trhodes_ has quit [Ping timeout: 264 seconds]
thomasxie has joined #ruby
toastynerd has joined #ruby
thelamest has joined #ruby
dopie has quit [Ping timeout: 252 seconds]
deens has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
<timgauthier> what is setting the length of this do statement (i ... page_number).each do
<timgauthier> from i ... to page_number?
afreidah1 has joined #ruby
kloeri has joined #ruby
<benzrf> 1...page_number is a range
sambao21 has joined #ruby
<timgauthier> ok yea
<benzrf> >> page_number = 2; 1...page_number
<eval-in> benzrf => 1...2 (https://eval.in/136623)
<benzrf> ... indicates an exclusive range
<benzrf> >> page_number = 2; (1...page_number).to_a
<eval-in> benzrf => [1] (https://eval.in/136624)
<benzrf> i.e. leave off the last onewheelskyward
<benzrf> *one
<benzrf> >> page_number = 2; (1..page_number).to_a
<eval-in> benzrf => [1, 2] (https://eval.in/136626)
<benzrf> .. is an inclusive one
leslie1 has joined #ruby
<timgauthier> i figured out.. sorry yah i understood that it was a range
trhodes_ has joined #ruby
<timgauthier> i figured out what the value of i and the value of page_number was
eyeamaye has quit [Quit: Leaving.]
<timgauthier> now my range is current page - total page numbers and add total page numbers
<timgauthier> i figure the do each ends once it hits a nil
thomasxie has quit [Ping timeout: 258 seconds]
sailias has quit [Quit: Leaving.]
<kinginky> benzrf: give me a quick usecase scenario for ur gem. i see the basic concept but i dont understand how or why it would be useful.
<kinginky> benzrf: excuse me if the demo showed this. i watched like 2 mins and then got distracted. let me know if that's the case
eyeamaye1 has joined #ruby
deens has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
<benzrf> dude
<benzrf> watch it >:{
<kinginky> AHH!
<kinginky> dont hit me sorry
<kinginky> dont hit me again benzrf plz
<kinginky> hahaha
Devanon has quit [Quit: WeeChat 0.4.3]
<kinginky> ill watch it again then and pay more attention =D
julio_ has joined #ruby
locriani has quit [Remote host closed the connection]
julio_ is now known as mrbignum
mikeric has quit []
krz has joined #ruby
mrbignum is now known as mr_bignum
thomasxie has joined #ruby
locriani has joined #ruby
kloeri has quit [Read error: Connection reset by peer]
<timgauthier> mm cliff bars
kloeri has joined #ruby
<kinginky> benzrf: this is very convenient. when did u start this project?
<benzrf> *clif
<benzrf> kinginky: a while ago
<benzrf> it's been inactive a week or two
<timgauthier> woah benzrf your right
stosh has joined #ruby
<benzrf> lol ti
<kinginky> benzrf: really like it, man. i honestly think it should be more exposed to people
<benzrf> * timgauthier
<benzrf> =3
locriani has quit [Ping timeout: 250 seconds]
<benzrf> started it 22 days ag
<benzrf> o
<kinginky> itd be very useful in capable noob hands or capable expert hands alike
<timgauthier> link to video?
<benzrf> the bulk of the functionality was in the first like 13 i think
fgo has joined #ruby
djbender has quit [Quit: djbender]
mrmargolis has joined #ruby
<benzrf> actually, more like in the first week
wallerdev_ has quit [Quit: wallerdev_]
<kinginky> it's nice to get those "inpoints" <-- not end points, and for lack of a better word/phrase
<kinginky> where u can just get the binding u want
<benzrf> i tend to start out super hyped up and slow down really fast >.>
<kinginky> that's really cool man. im defintely putting this on my list :D
<benzrf> =]
<kinginky> benzrf: welcome to the life of me
<shevy> I start slow and finish even slower
<kinginky> ;D
xunil has joined #ruby
<xunil> hi
<kinginky> shevy's just a lazy ass
<kinginky> jk jk
<timgauthier> hi xunil
<kinginky> shevys a legit dude
<benzrf> no its true
<kinginky> he's been here for yrs it seems like
<benzrf> shevy is so lazy woww
<xunil> So there is a random ruby gen (librarian-puppet) and I want that it uses a proxy.
<kinginky> helped me out in my early days
<benzrf> anyway im currently in the middle of implementing dmtcp integration
<benzrf> so u can checkpoint & resume
tvw has joined #ruby
<benzrf> git-managed also
<xunil> The gem doesn't support it natively but I hope the underlying library / api would support http proxy?
<kinginky> that's even more awesome :D
<benzrf> B)
mary5030 has quit [Remote host closed the connection]
<benzrf> sadly it is too much of a PITA to do actual source management in git
<kinginky> xunil: let's start w/ what u want to accomplish>
<benzrf> so no merges >.>
<benzrf> :I
<kinginky> your problem is not very well-described so it is hard to help
eyeamaye1 has quit [Quit: Leaving.]
<benzrf> at least no automatic merges :-\
<kinginky> benzrf: interesting outlook. i love git. then again git is all i know. and tortoise back yrs ago on windoze ;P
<kinginky> never used subverson, anything else...
<kinginky> is it GIT or the lack of some feature/functionality that is making u get down on git? :P
<xunil> kinginky: I want to use it behind a http/https proxy.
<xunil> kinginky: the gem itself doesn't expose http proxy configuration.
lw has joined #ruby
<xunil> kinginky: so I hope that the underlying library/api could use an http proxy
<mr_bignum> Learn git is a challenge. But I choose git than svn.
crzrcn has quit [Quit: Leaving.]
ce_afk is now known as cescalante
<tcstar> maybe the wrong room, if so let me know.. is there a trick to installing passenger with nginx without using rvm to compile nginx itself? ( ie: i've already got nginx installed, configured, and running for the php sites i'm running )
<kinginky> xunil: almost certainly u could modify the gem to do what u want. i thinkive heard of this gem but never used it. i guess i just dont see the use? i dont even really understand what it is for. for instance, how is this not bundler?
dik_dak has quit [Quit: Leaving]
<kinginky> tcstar: if u are using rvm it would be wise to stick w/ rvm unless u know what ur doing (EXACTLY)
<benzrf> kinginky: lack of feature
<benzrf> dmtcp snapshots are dense binary, not sources
<benzrf> so git cant merge em
x1337807x has joined #ruby
<kinginky> benzrf: a little over my head i think. ill google it.
<xunil> kinginky: this something like bundle but for puppet scm modules
radic has quit [Ping timeout: 258 seconds]
<xunil> kinginky: So there is no way other than (monkey) patching the gem?
karmatr0_ has quit [Remote host closed the connection]
<kinginky> xunil: perhaps there are some folks here who could help more than me
<kinginky> xunil: i think u should leave out "monkey" and patch it
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kinginky> why is it a monkey patch? because u did it?
<kinginky> do it well, it wont be "monkey"...
karmatr0n has joined #ruby
<kinginky> all is good
trhodes_ has quit [Ping timeout: 264 seconds]
agarie has quit [Remote host closed the connection]
kloeri has quit [Read error: Connection reset by peer]
<tcstar> kinginky i only used rvm to install ruby and rails... but when i ran rvmsudo passenger_installer_nginx_module it wants to re-isntall nginx to a different location and when i allow it, the install doesn't work anyway -- so trying to get around that without having to uninstall my current nginx installation/configuration
kloeri has joined #ruby
<kinginky> never used passenger or nginx but id reckon u just have some kind of path issue or whatnot. have u tried it without rvmsudo
jlast has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
<kinginky> ohhh i just re-reads...
thomasxie has joined #ruby
<kinginky> so, u had this stuff installed. then, u installed rvm. now, it wont work. is that right??
radic has joined #ruby
agjacome has joined #ruby
iamjarvo has joined #ruby
<kinginky> tcstar: just something i pulled up. have u seen this: http://blog.ninjahideout.com/posts/a-guide-to-a-nginx-passenger-and-rvm-server ???
karmatr0n has quit [Ping timeout: 265 seconds]
<tcstar> had nginx installed, configured and running for my php apps... now getting a RoR app on the server... got ruby installed, got rails installed... got passenger installed.. run rvmsudo passenger-install-nginx-module and it wants to compile nginx...
RaptorJesus has joined #ruby
trhodes_ has joined #ruby
<kinginky> tcstar: again, no real experience but it is almost 100% a paths issue as rvmsudo is going to presumably be looking in RVM paths
<tcstar> if i uninstall my nginx completely and go with allowing it to compile it -- it doesn't work for even basic html pages ( the service wont start )
<kinginky> ok
<kinginky> so
x1337807x has quit [Ping timeout: 258 seconds]
<kinginky> let's see. is nginx a gem? i really cant rememember...
<kinginky> ok
freerobby has joined #ruby
<tcstar> but, would prefer to just install passenger support in nginx without having to run rvmsudo passenger-install-nginx-module
<kinginky> tcstar: in the guide, which step would u be at now?
lw has quit [Quit: s]
crystal77 has quit [Quit: Computer has gone to sleep.]
<kinginky> tcstar: understandably, lets figure out the root issue 1st
<tcstar> step 6 is the faulty step it would seem
RowdyChild|Away is now known as RowdyChildren
njection has joined #ruby
<kinginky> ok, tcstar, u caught me at a good time. let me read a little into nginx/passenger and get back with u if no one else here has. ok?
chipotle has quit [Quit: cya]
<kinginky> give me a bit, maybe 10-15 mins
<tcstar> okay
chipotle has joined #ruby
<timgauthier> yah thats beyond me tcstar
<timgauthier> are you on mac?
<tcstar> ubuntu
<kinginky> i know theyre both web-oriented i just have no personal exp
pu22l3r has joined #ruby
<timgauthier> ok then it isn't my CLANG error
<kinginky> brb
Megtastique has quit []
Hobogrammer has joined #ruby
x77686d has joined #ruby
<kinginky> so, im guaging here.. correct me if im wrong plz: nginx is a server middleware. passenger is something else.. these can run in rails? i hope that's right. and, are u in rails?
<shevy> I am in rails nirvana man
<kinginky> shevy u should help, man, ur way more experienced than me xD
<kinginky> come embarrass me for fucks sake
<kinginky> ;D
luckyruby has quit [Ping timeout: 246 seconds]
<shevy> but I dont know rails!
<benzrf> lol
<benzrf> just typed
<kinginky> nor do i actually :P :P
<benzrf> raise Errno::ENOENT unless File.file? file
<kinginky> fuck a rails
<benzrf> File.file? file
chipotle has quit [Read error: Connection reset by peer]
<kinginky> file File::File file File.file?
cescalante is now known as ce_afk
<benzrf> File!
chipotle has joined #ruby
lw has joined #ruby
<benzrf> Buffalo buffalo buffallo Buffalo buffalo Buffalo buffalo buffalo
<timgauthier> BIL!
<kinginky> hope you all are buying up those bitcoins
<kinginky> cheap as fuck
<timgauthier> .present?
<timgauthier> are they?
<kinginky> duno right this second
<kinginky> this morning ~$410-420
<benzrf> 420 blazei t
<kinginky> its just the china news
<kinginky> wanna make a bit of money, buy in and cash out when it goes back to $500-600
rezzack has quit [Quit: Leaving.]
<kinginky> always a gamble but im fairly certain its not gonna go lower for long
pu22l3r has quit [Ping timeout: 258 seconds]
<tcstar> all the info i'm seeing says that once passenger is installed, nginx MUST be re-compiled with the --add-module switch.. so looks like i'm SOL on that...
omosoj has quit [Ping timeout: 276 seconds]
<tcstar> I haven't gotten into bitcoins at all actually... i feel lame lol
<benzrf> im confused
oo_ has quit [Remote host closed the connection]
<timgauthier> 'i don't have that kind of money
<benzrf> /usr/local/lib/dmtcp/libdmtcp.so exists but
sdouglas_ has quit [Remote host closed the connection]
<benzrf> LoadError: Could not open library 'dmtcp/libdmtcp.so': dmtcp/libdmtcp.so: cannot open shared object file: No such file or directory
<benzrf> ?!
<centrx> timgauthier, They can be bought in units of millionths
Celm has quit [Remote host closed the connection]
simplyaubs has joined #ruby
<timgauthier> i see
sdouglas has joined #ruby
<timgauthier> what is the inline operator syntax for an if statement again?
phinfonet has quit []
<jle`> puts "hi" if foo
<centrx> So if you have 0.05 cents lying around, you can buy 1 satoshi of bitcoins
omosoj has joined #ruby
<timgauthier> and then a ; is an else ?
<jle`> oh do you mean an if-then-else oneliner
<timgauthier> yea
<timgauthier> sorry, yeah i didn't ask that :S
<centrx> It is called the ternary operator
<centrx> or ternary conditional
<timgauthier> if thing == thing then this else that
<centrx> x ? y : z
Spami has quit [Quit: This computer has gone to sleep]
<centrx> thing == thing ? this : that
<timgauthier> how do i put x.present? == thang
<timgauthier> ok..
<timgauthier> thanks
<kinginky> if the thing does this ? do this thing :(otherwise) do this
<timgauthier> thats what i have then... something else causing problems
<centrx> I usually put it in parentheses for clarity unless it is the return value of a method
<kinginky> centrx: me too
<kinginky> :LD
oo_ has joined #ruby
<kinginky> :D
<kinginky> great minds, great minds ;P
<timgauthier> what do you put in ?
<timgauthier> is (otherwise) a condition?
<kinginky> it is what makes it ternary i presume anyway
<kinginky> it means < --- ? if this thing
<centrx> (thing == thing ? this : that)
<kinginky> 1 == 1 ?(if thats true) do this
<kinginky> :(otherwise) do this
<centrx> if ? then : else
<kinginky> >> 1 == 1 ? puts 'a' : puts 'b'
<eval-in> kinginky => /tmp/execpad-6f2b8e1ce2fe/source-6f2b8e1ce2fe:2: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' ... (https://eval.in/136644)
<kinginky> puts (1==1) ? 'a' : 'b'
<kinginky> >> puts (1==1) ? 'a' : 'b'
<eval-in> kinginky => a ... (https://eval.in/136645)
<kinginky> >> puts (1==2) ? 'a' : 'b'
<eval-in> kinginky => b ... (https://eval.in/136646)
<centrx> >> 1 == 1 ? :a : :b
<eval-in> centrx => :a (https://eval.in/136647)
<kinginky> centrx: beat ya bud
<kinginky> :D
SCommette has quit [Quit: SCommette]
yfeldblum has quit [Ping timeout: 258 seconds]
sdouglas has quit [Ping timeout: 276 seconds]
<centrx> Save the best for last
<kinginky> centrx: xD naturally, naturally =]
cjbottaro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<kinginky> playful fun my friend
<centrx> I am a robot.
<kinginky> ohhhhh
<kinginky> shit
<kinginky> have u met cleverbot?
<centrx> Who is cleverbot?
<kinginky> is it as clever as it is touted to be?
RaptorJesus has quit [Remote host closed the connection]
Bumptious has joined #ruby
<kinginky> centrx: u pass the turing test
<kinginky> u know what this means for earth?>
yfeldblum has joined #ruby
<centrx> Why does it say "10952 people talking"
<centrx> This does not sound like a bot at all?
<centrx> >> !:bot
<eval-in> centrx => false (https://eval.in/136649)
<kinginky> i see: "0 ops, 845 total"
rm_ has quit [Remote host closed the connection]
<kinginky> ^ 844 total
<centrx> >> 0 + 845 - 1
<eval-in> centrx => 844 (https://eval.in/136650)
<kinginky> i assume thats what you are referring to, anyway
rm_ has joined #ruby
<centrx> <kinginky> http://cleverbot.com
SCommette has joined #ruby
SilkFox has quit [Ping timeout: 258 seconds]
<kinginky> derp
SCommette has quit [Client Quit]
<kinginky> i swear to god im slightly autistic
<kinginky> how could i not see what u were doing
<kinginky> wtf
trhodes_ has quit [Ping timeout: 264 seconds]
<timgauthier> what did i do wrong
lw has quit [Quit: s]
<timgauthier> if current_page.data[:active].presence == 'journal' ? blog.articles.first.url : '/journal/index.html'
<kinginky> not u honey
snath has joined #ruby
<kinginky> bahgahahaha
<kinginky> what are u workin on tim?
<kinginky> is it rails or what
ghr has joined #ruby
<timgauthier> middleman
<timgauthier> not really rails but it has active_whaveter its called
<timgauthier> this is inside a link_to
<kinginky> active support
jhn has joined #ruby
<timgauthier> yea that
<kinginky> d00d i feel ya man but
RaptorJesus has joined #ruby
<kinginky> u should check out other gems
<kinginky> my recommendations:
<timgauthier> middleman
<kinginky> sinatra
<kinginky> sequel
<timgauthier> i can't change out middleman's gem dependancies
<timgauthier> www.middlemanapp.com
<kinginky> k let me look
<timgauthier> i'll give you the full file sec
<mr_bignum> padrino
<kinginky> ohhh
<kinginky> it's like a "here's-this-for-ez-ppl" thing
<timgauthier> i'm converting a liquid template (Jekyll) to an erb
<kinginky> dont ask me then :D
<kinginky> im the dude that wants to know more
Wolland has joined #ruby
<kinginky> not isolate and hide it :P
<centrx> ^ that dude
<timgauthier> haha its a "here is a static site for my portfolio" thang ;)
<kinginky> im that dude
trhodes_ has joined #ruby
<timgauthier> actually kinginky i've learned more ruby doing this then every other time i've tried
<kinginky> that's awesome. do what works for u!
kenneth has joined #ruby
mikeric has joined #ruby
<kinginky> what i say is just that: what i say. dont heed it too much
<timgauthier> anyways, something in my ? : operator is wrong and causing an error
emaxi has joined #ruby
tectonic has joined #ruby
<kinginky> show the code again
<kinginky> wait
<kinginky> perfect
<timgauthier> line 10
<kinginky> what error
<centrx> Is middleman better than jekyll?
boostedb has joined #ruby
<timgauthier> SyntaxError at /journal/2014/your-first-post-in-irc/
<kinginky> ok
<timgauthier> middleman is more complex then jekyll and in this case it does something that i needed that jekyll didn't
<kinginky> and the 2nd arg is the HREF?
<timgauthier> the second arg is the href yes
dinasour has joined #ruby
<timgauthier> it takes a path to the content in the source directory and creates a URL when i build the files
ghr has quit [Ping timeout: 265 seconds]
<kinginky> timgauthier: man, looks fine. have u tried perchance, adding parans randomly
<timgauthier> parans?
<kinginky> it sounds crazy and shouldnt be it. but
<kinginky> parantheses
<kinginky> like
<kinginky> link_to()
<timgauthier> yeah i've done a bunch of that
<kinginky> k
<kinginky> i figured
<kinginky> let's see then. where does link_to come from
<timgauthier> it changes how it says my error
<timgauthier> link_to is an asset_helper
<kinginky> i wish i could just see what ur doing
<kinginky> do u have skype??
<timgauthier> sec i'll give you full error dump
<kinginky> k
<kinginky> i dont think u should be getting an error, but its hard to tell. im not as knowledgeable, i think, as some ppl here
RaptorJesus_ has joined #ruby
<timgauthier> ok thanks kinginky
<kinginky> ok ty the error log helps. 1 sec
marcdel has joined #ruby
<timgauthier> i suspect they've modified the helper or something
<timgauthier> i HAD an operator working, as in not giving an error, but it didn't actually do the correct logic, so i added the == and it breaks
<kinginky> hm...
<timgauthier> it used to be .present? ?
emaxi has quit [Ping timeout: 276 seconds]
eynj has quit [Ping timeout: 265 seconds]
RowdyChildren is now known as RowdyChild|Away
grillermo has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<grillermo> how do i get the first element of an array that passes a test? i'm sure theres a ruby method
grillermo has left #ruby [#ruby]
lw has joined #ruby
<kinginky> timgauthier: did u try :class => (current_page.data[:active].presence ? 'active' : nil ??
<centrx> and he just leaves...
RaptorJesus has quit [Ping timeout: 240 seconds]
osvico has quit [Ping timeout: 252 seconds]
grillermo has joined #ruby
<timgauthier> no kinginky i'mma do that
jamto11 has joined #ruby
<grillermo> how do i get the first element of an array that passes a test? i'm sure theres a ruby method
<timgauthier> centric yeah, i was like "why doesn't tab work"
<kinginky> also i remember using "presence" 1-2 yrs ago. is it presence or presence?
<timgauthier> grillermo, try case?
<kinginky> honestly dont remember but
<kinginky> worth a shot
<grillermo> in one liner?
<centrx> grillermo, Array#detect or Array#find
<grillermo> ok thanks
<kinginky> centrx: amazing how your world changes when u learn these kinds of methods. ive been going through another "growth spurt" lately
<timgauthier> thanks kinginky that somehow lead to me fixing it
<kinginky> timgauthier: always happy to help if i can
<timgauthier> i'm going to try and figure out why it fixed
<kinginky> ill always be unsure of where im at but somehow ill be on the track. call it intuition i guess :P
marcdel has quit [Ping timeout: 276 seconds]
<kinginky> i think becaused
<centrx> kinginky, Ruby blocks, object-orientation, and powerful core library bring some of the power and expressiveness of functional languages
<kinginky> because
<kinginky> u were saying "do this IF this"
<kinginky> then, otherwise, what?
<kinginky> the way i showed gives u an 'otherwise' case. not a great answer, but im pretty sure that's about it
_justin has joined #ruby
noob101 has joined #ruby
<timgauthier> i didn't do exactly as you said
Cache_Money has joined #ruby
yogi is now known as yogie
<noob101> hello
aspires has quit []
<timgauthier> i made it .present? == 'journal'
<timgauthier> hey noob101
<timgauthier> kinginky i think i probably mis-spelled something
<kinginky> timgauthier: not exactly what i thought but ya good deal. if it works, dont complain i guess. or learn why it does (which id be interested to know why, too)
<kinginky> i dunno man i have ur old gist
<kinginky> let me see
<centrx> timgauthier, present? returns true/false
<timgauthier> well i went to present? instead of presence
<kinginky> ah, yes
<timgauthier> refresh the gist
<kinginky> i wass thinking there was a '?'!!
<timgauthier> it has both new and old
<kinginky> i knew there was
<kinginky> :D
<centrx> object.presence is equivalent to object.present? ? object : nil
<timgauthier> presence doesn't have a ?
<kinginky> i guessed 'presence?'
<timgauthier> present does
deens has joined #ruby
osvico has joined #ruby
<kinginky> but i havent used the full active support thing in yrs
<timgauthier> thats ok :)
<kinginky> i selectively pick things from it
<timgauthier> haha yeah thats how this feels too
dima_ has joined #ruby
<noob101> can someone show me some ruby code with html, I wanna see how you can use html and ruby together or how to use it as an online application
<timgauthier> i LIKE the asset helpers
jamto11 has quit [Ping timeout: 276 seconds]
<kinginky> centrx: presence() is ruby?? or active?
<noob101> im new
<timgauthier> noob101 you need to learn haskell
<centrx> kinginky, ActiveSupport
JuanDaugherty has quit [Quit: Exit IRC/Hiberate]
yfeldblum has quit [Remote host closed the connection]
<kinginky> centrx: ty
<timgauthier> and LaTeX
<centrx> kinginky, http://api.rubyonrails.org/
<noob101> oh god no, god no please.
boostedb has quit [Ping timeout: 258 seconds]
<noob101> not a new programming language
<centrx> I think he is just messing with you
<kinginky> noob101: it takes more than a few mins and some real passion u have to be able to look up a lot yourself and be ready to learn so much u will forget what u learned today 1 week from now.
<timgauthier> i am messing yea
<kinginky> get started w/ rails, sinatra as frameworks
<timgauthier> its my troll detector
<kinginky> if u want to use a DB, look into ActiveRecord, Sequel, etc
marcdel has joined #ruby
<centrx> noob101, For "HTML and Ruby together", look at some erb files (also used in rails)
<timgauthier> i recommend the getting started with rails tutorials
<timgauthier> !g getting started with rails screencasts
<kinginky> it takes 2000% reading intently, 200% IRC, and 1000% messing with code
mrmargolis has quit [Remote host closed the connection]
<timgauthier> and 10x1000 errors that make little sense at first
<kinginky> i should've done 200, 20. and 100, but whatever.
<noob101> can I get a link please?
Celm has joined #ruby
<kinginky> timgauthier: i love errors. they point u in a direction and give u something to go off of. what i hate is bugs that are really difficult to find and determine the cause of
Avahey_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<kinginky> errors, believe it or not, are there to help u, not hurt u
<timgauthier> yes kinginky
<timgauthier> but when you still can't read the language
<timgauthier> they don't make any sense
<kinginky> i was there once too =]
<kinginky> not too long ago
<timgauthier> but as you TRY reading them and learning the language, they start to make more sense, and then they act as a way to help you learn even more
Galgorth has joined #ruby
Galgorth has quit [Client Quit]
<kinginky> you should look into ruby as a language a lot
<kinginky> and then into the source of gems
dima_ has quit [Ping timeout: 258 seconds]
<kinginky> itll help, tremendously
deens has quit [Ping timeout: 265 seconds]
lw has quit [Quit: s]
<timgauthier> i'm not good at that
<timgauthier> it overwhelms me and i can't soak anything in
<kinginky> timgauthier: i may not be the most knowledgeable, but if u want to add me, im gonna msg u my skype. feel free to ask questions there as im not always on IRC like some of these awesome guys
<timgauthier> i've found that working with little bits that i can hack together slowly leads to me knowing and understanding more. Thats what is awesome about .erb type things for me
Es0teric has joined #ruby
crystal77 has joined #ruby
mansi has quit [Remote host closed the connection]
<timgauthier> yeah its 5 am and i'm not normally up this late but sure
Es0teric has quit [Max SendQ exceeded]
locriani has joined #ruby
<kinginky> timgauthier: that is exactly it. that is what will make u great. i can say this: u can never know it all, despite your intentions.
Es0teric has joined #ruby
<kinginky> its more about finding something u want to do and doing it. u will learn by doing it not thinking about it
<kinginky> but u are obviously on the right track
<kinginky> and i hope i can help u in some way in the future
<timgauthier> yeah i don't think my code worked right, it definitely stopped tossing errors, but it isn't forming the right links. bleh
<kinginky> glad to see one more coder on this planet =]
<kinginky> ill help u out man
<kinginky> just get in touch after some slep
eynj has joined #ruby
aspires has joined #ruby
_maes_ has joined #ruby
combusean has quit [Quit: Leaving]
combusean has joined #ruby
sidik has quit [Ping timeout: 258 seconds]
helpD has joined #ruby
alexju has joined #ruby
Slavox is now known as Slavox|AFK
jason___ has quit [Remote host closed the connection]
karmatr0n has joined #ruby
momomomomo has joined #ruby
braincrash has quit [Quit: bye bye]
sski has quit [Remote host closed the connection]
sski has joined #ruby
mikeric has quit []
rakm has quit [Quit: Connection closed for inactivity]
helpD has quit [Ping timeout: 245 seconds]
Shidash has quit [Ping timeout: 245 seconds]
boostedb has joined #ruby
MillyBays has joined #ruby
braincrash has joined #ruby
aspires has quit []
eyeamaye1 has joined #ruby
aspires has joined #ruby
Milly_Bays has quit [Ping timeout: 245 seconds]
sski has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
sdwrage has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
lukec has joined #ruby
robbyoconnor has joined #ruby
chipotle_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
Celm has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 245 seconds]
Guedes0 has quit [Ping timeout: 276 seconds]
toastynerd has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
sski has joined #ruby
<benzrf> phew finally wrote smore quick code
<benzrf> bye now =3
benzrf is now known as benzrf|offline
Steve445 has joined #ruby
microdex has joined #ruby
<microdex> Did you guys know Ruby had Global Interpreter Lock before you started coding Ruby ?
nisstyre has joined #ruby
pen has joined #ruby
<centrx> microdex, I don't think anyone would, it only beceomes relevant with Threads
abra_ has joined #ruby
freerobby has quit [Quit: Leaving.]
Slavox|AFK is now known as Slavox
chipotle_ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
locriani has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
freerobby has joined #ruby
<mr_bignum> how can I format a float number to show only two numbers after dot?
MatthewsFace has quit [Ping timeout: 258 seconds]
<Hytosys> >> ‘%.2f’ % 123.45678
<eval-in> Hytosys => /tmp/execpad-652d264b7412/source-652d264b7412:2: no .<digit> floating literal anymore; put 0 before dot ... (https://eval.in/136663)
<Steve445> (5.65235534).round(2)
sheepman has quit [Ping timeout: 260 seconds]
<Hytosys> really?
<Hytosys> >> ‘%0.2f’ % 123.45678
<eval-in> Hytosys => /tmp/execpad-753e8be4c968/source-753e8be4c968:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/136664)
<Steve445> mr_bignum: (5.65235534).round(2)
<mr_bignum> Thank you all.
MatthewsFace has joined #ruby
abra has quit [Ping timeout: 245 seconds]
<timgauthier> irc from bed is uncomfortable
<Hytosys> what am I doing wrong here
<centrx> lol
<Hytosys> oh my single-quotes are fancied up by my IRC client… sigh
<Steve445> though prob will round up or down
agarie has joined #ruby
sheepman has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
<centrx> >> “%0.2f” % “123.45678”
<eval-in> centrx => /tmp/execpad-80bef2011c53/source-80bef2011c53:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/136665)
<Hytosys> >> '%.2f' % 123.45378
freerobby has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Steve445 has quit [Quit: Steve445]
alvaro_o has quit [Quit: Ex-Chat]
noob101 has quit [Ping timeout: 240 seconds]
reppard has quit [Quit: Leaving.]
<centrx> eval-in is on strike
MatthewsFace has quit [Client Quit]
<Hytosys> we broke it :(
simplyaubs has quit [Quit: simplyaubs]
<mr_bignum> my bad ask so dummy question here. Sorry
emaxi has joined #ruby
simplyaubs has joined #ruby
<popl> mr_bignum: you broke it!
<popl> mr_bignum: your family will be shamed for generations!
<popl> :P
saarinen has quit [Quit: saarinen]
<mr_bignum> :P
pu22l3r has joined #ruby
<momomomomo> >> “hello”
<eval-in> momomomomo => undefined local variable or method `“hello”' for main:Object (NameError) ... (https://eval.in/136670)
ellbot has quit [Remote host closed the connection]
<momomomomo> >> 1*2
<eval-in> momomomomo => 2 (https://eval.in/136671)
<popl> >> p "hi"
<eval-in> popl => "hi" ... (https://eval.in/136672)
<momomomomo> my apostrophes aren’t utf-8 for some reason
ellbot has joined #ruby
<popl> not broken
* popl unshames mr_bignum's family
<momomomomo> >> p Dir[(__FILE__)]
<eval-in> momomomomo => ["/tmp/execpad-b6685441e1f2/source-b6685441e1f2"] ... (https://eval.in/136677)
<popl> >> "Hello"
<eval-in> popl => "Hello" (https://eval.in/136678)
<momomomomo> p `whoami`
<Hytosys> >> '%.2f' % 123.45378
<eval-in> Hytosys => "123.45" (https://eval.in/136679)
<momomomomo> >> p `whoami`
<eval-in> momomomomo => (https://eval.in/136680)
ghr has joined #ruby
<momomomomo> >> p `cat /proc/cpuinfo`
<eval-in> momomomomo => (https://eval.in/136681)
aspires has quit []
<popl> dude
emaxi has quit [Ping timeout: 245 seconds]
<momomomomo> >> `value=\`cat /proc/cpuinfo\` && echo "$value”`
<eval-in> momomomomo => (https://eval.in/136682)
AlexRussia has quit [Remote host closed the connection]
marcux has joined #ruby
<momomomomo> rats
<popl> anyways momomomomo, you were using U+201C (e2 80 9c): LEFT DOUBLE QUOTATION MARK [“] and I was using U+0022 (22): QUOTATION MARK ["]
AlexRussia has joined #ruby
<momomomomo> aye, my chat client is weird and gives left quot
sdouglas has joined #ruby
<popl> which client?
<momomomomo> Colloquy
<popl> sounds pretentious
<momomomomo> nope…just a chat client
afex has quit [Ping timeout: 245 seconds]
Nukepuppy has joined #ruby
<Hytosys> momomomomo: I just disabled that in System Preferences > Keyboard > Text > Uncheck "Use smart quotes and dashes"
<popl> it autocorrects ... to … too?
ellbot has quit [Ping timeout: 265 seconds]
<Hytosys> it's Mac OS X not colloquy :(
<momomomomo> >> p "Hytosys is smart!"
<eval-in> momomomomo => "Hytosys is smart!" ... (https://eval.in/136683)
<popl> like I said, pretentious :P
<momomomomo> thank you Hytosys
<Hytosys> ;)
<Hytosys> sure
<popl> I bought a $7 piece of Gouda today. That's pretentious.
<Hytosys> nothing wrong with liking cheese
<momomomomo> i got 8 baby jimmy johns sandwiches for free today
ghr has quit [Ping timeout: 276 seconds]
<momomomomo> actually more like 12
<popl> momomomomo: who did you lie to?
<momomomomo> Ha, I mentor at a local rails meetup, and no one wanted the leftovers
<popl> hah
<momomomomo> crazy people - that's good jimmy johns!
caveat- has quit [Read error: Connection reset by peer]
<popl> I bet you totally purloined the sandwiches.
<momomomomo> psh i asked everyone if they wanted any; everyone had had their fill
microdex has quit [Remote host closed the connection]
<momomomomo> i gave away a cookie to the security guard, so purloin that sucka
<popl> Hytosys: I also bought hummus, pita, and water crackers.
<popl> Hytosys: I was listening to Enya.
<popl> Hytosys: I think I smelled of burning sage.
<momomomomo> popl: you're going to think I'm bullshitting you, but I got a fucking tray of crackers, hummus, and pita from work as leftovers from a rep
<momomomomo> just on Friday
<momomomomo> haha
<popl> hah
benzrf|offline is now known as benzrf
<momomomomo> carrots too ;o
sputnik13 has joined #ruby
<Hytosys> next level pretentiousness
benzrf is now known as benzrf|offline
<popl> benzrf|offline: make up your mind
simplyaubs_ has joined #ruby
iamjarvo has quit [Ping timeout: 265 seconds]
<popl> Hytosys: Now I need to make the next step and start shopping at Trader Joes.
simplyaubs_ has quit [Client Quit]
<Hytosys> popl: never do that :O
<momomomomo> popl: Hytosys but trader joes is cheaper than the supermarket here :/
<Hytosys> oh lol I thought you said "stop shopping"
caveat- has joined #ruby
<momomomomo> popl: Hytosys case in point: bag of frozen berries at Target: $9; at trader joes: $4
<timgauthier> cya
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
<popl> what about other stores?
<popl> Safeway?
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<momomomomo> costco is pretty spendy on that bag of frozen berries too
<popl> At Costco the bag of frozen berries is like five kilos.
<Hytosys> I bought a 4lb bag of berries at costco for $6 I think
<momomomomo> shieeeeeeeeeeeet
osvico has quit [Read error: Connection reset by peer]
<Hytosys> at costco*
benzrf|offline is now known as benzrf
<momomomomo> nice
osvico has joined #ruby
deens has joined #ruby
benzrf is now known as benzrf|offline
Celm has joined #ruby
centrx has quit [Quit: All this computer hacking is making me thirsty]
Nukepuppy has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
<momomomomo> nice im outa here;
momomomomo has quit [Quit: momomomomo]
devyn has quit [Read error: Connection reset by peer]
yacks has joined #ruby
x1337807x has joined #ruby
devyn has joined #ruby
fluve has joined #ruby
freerobby has joined #ruby
agjacome has quit [Ping timeout: 245 seconds]
rakm has joined #ruby
Milly_Bays_ has joined #ruby
mansi has joined #ruby
emaxi has joined #ruby
toastynerd has quit [Remote host closed the connection]
eyeamaye1 has quit [Quit: Leaving.]
crzrcn has joined #ruby
agarie has quit [Quit: Leaving...]
simplyaubs has quit [Quit: simplyaubs]
robbyoconnor has quit [Quit: Konversation terminated!]
deens has quit [Ping timeout: 276 seconds]
freerobby has quit [Ping timeout: 276 seconds]
Es0teric has quit [Ping timeout: 258 seconds]
Adran has quit [Ping timeout: 258 seconds]
aetaric has quit [Ping timeout: 258 seconds]
seich- has quit [Ping timeout: 258 seconds]
MillyBays has quit [Ping timeout: 258 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
Beoran_ has quit [Ping timeout: 258 seconds]
Alina-malina has joined #ruby
Adran has joined #ruby
aetaric has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
Beoran_ has joined #ruby
Es0teric has joined #ruby
mary5030 has joined #ruby
seich- has joined #ruby
afreidah1 has quit [Ping timeout: 252 seconds]
eyeamaye1 has joined #ruby
osvico has quit [Read error: Connection reset by peer]
sepp2k has quit [Quit: Leaving.]
osvico has joined #ruby
Wolland has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
nari has joined #ruby
funburn has joined #ruby
<omosoj> Hey all, what do you think of the value of this discounted udemy Ruby course: https://www.udemy.com/learn-ruby-programming-in-ten-easy-steps/?couponCode=HEART70&siteID=gkn1mTqdycg-mqaK.1iSekVVpy9IjVZzXA
zrl has quit [Ping timeout: 252 seconds]
emaxi has quit [Remote host closed the connection]
rakm has quit [Ping timeout: 246 seconds]
dinasour has quit [Remote host closed the connection]
mrgoodcat has quit [Ping timeout: 245 seconds]
emaxi has joined #ruby
ballPointPenguin has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
mikeric has joined #ruby
psyko666 has joined #ruby
emaxi has quit [Ping timeout: 276 seconds]
IceDragon has quit [Quit: Space~~~]
phansch has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Steve445 has joined #ruby
locriani has joined #ruby
Karunamon has joined #ruby
emaxi has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
pu22l3r has quit [Remote host closed the connection]
locriani has quit [Ping timeout: 258 seconds]
emaxi has quit [Remote host closed the connection]
Steve445 has quit [Quit: Steve445]
emaxi has joined #ruby
TllT has quit [Quit: Lost terminal]
JaTochNietDan has quit [Ping timeout: 246 seconds]
omosoj has quit [Ping timeout: 240 seconds]
lw has joined #ruby
omosoj has joined #ruby
yano has joined #ruby
JaTochNietDan has joined #ruby
afreidah1 has joined #ruby
Celm has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
emaxi has quit [Ping timeout: 240 seconds]
omosoj has quit [Client Quit]
tjr9898 has joined #ruby
boostedb has left #ruby [#ruby]
Steve445 has joined #ruby
afreidah1 has quit [Ping timeout: 252 seconds]
chris_thomson has quit [Quit: Zzz...]
Steve445 has quit [Client Quit]
ellbot has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Milly_Bays_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
grillermo has quit [Quit: bandtastic.me]
mrnugget has joined #ruby
Celm has joined #ruby
dima_ has joined #ruby
ascarter has joined #ruby
afreidah1 has joined #ruby
ellbot has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
crzrcn has quit [Quit: Leaving.]
s3ri0us has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ehc has quit [Quit: ehc]
noop has joined #ruby
tjr9898 has joined #ruby
oo_ has quit [Ping timeout: 265 seconds]
dima_ has quit [Ping timeout: 276 seconds]
jamto11 has joined #ruby
tjr9898_ has joined #ruby
MatthewsFace has joined #ruby
lw has quit [Quit: s]
oo_ has joined #ruby
aantix has joined #ruby
tjr9898 has quit [Ping timeout: 250 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
sidik has joined #ruby
tungd has quit [Ping timeout: 250 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
lw has joined #ruby
dkamioka has joined #ruby
slawrence00 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Wolland has joined #ruby
freerobby has joined #ruby
rkazak has joined #ruby
Wolland has quit [Client Quit]
locriani has joined #ruby
lukec has quit [Quit: lukec]
mansi has joined #ruby
pu22l3r has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
mikeric has quit []
crzrcn has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mansi has quit [Ping timeout: 265 seconds]
pu22l3r has quit [Ping timeout: 240 seconds]
tjr9898_ has quit [Remote host closed the connection]
helpD has joined #ruby
tjr9898_ has joined #ruby
<rkazak> how well suited is rvm for osx ? does it integrate with ruby on osx or is it separate ?
rm_ has quit [Remote host closed the connection]
osvico has quit [Read error: Connection reset by peer]
<rkazak> or, does it manage the ruby that comes already installed ?
rm__ has joined #ruby
osvico has joined #ruby
<TigerWolf> I use RVM on osx and it works really well rkazak
sski has quit [Remote host closed the connection]
sski has joined #ruby
<TigerWolf> rvm on osx will download and install the ruby version that you request - which is a good thing as you dont really want to use the system ruby rkazak
helpD has quit [Ping timeout: 240 seconds]
mikeric has joined #ruby
<rkazak> ok. thanks. Also is the gui front end still floating around?
<rkazak> how does it compare to rbenv ?
centrx has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
rm__ has quit [Ping timeout: 245 seconds]
tjr9898 has joined #ruby
noop has quit [Ping timeout: 258 seconds]
sski has quit [Ping timeout: 276 seconds]
ws2k33 has joined #ruby
Fretta has quit [Quit: Fretta]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sidik has quit [Ping timeout: 276 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
pu22l3r has joined #ruby
<TigerWolf> rkazak - no need for a gui - rvm install ruby
braincra- has joined #ruby
emaxi has joined #ruby
aagdbl has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
tijmencc has joined #ruby
Morkel has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
nathancahill has quit [Quit: nathancahill]
eynj has quit [Quit: Leaving.]
MatthewsFace has joined #ruby
pu22l3r has quit [Ping timeout: 276 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
donnoc has joined #ruby
emaxi has quit [Ping timeout: 276 seconds]
rm__ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898_ has joined #ruby
mrgoodcat has joined #ruby
rakm has joined #ruby
peret has quit [Remote host closed the connection]
zrl_ has joined #ruby
tjr9898 has quit [Ping timeout: 250 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
ballPointPenguin has joined #ruby
_justin has joined #ruby
nari has quit [Quit: Ex-Chat]
donnoc has quit [Ping timeout: 258 seconds]
spinx has joined #ruby
Lewix has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 265 seconds]
trhodes_ has quit [Ping timeout: 264 seconds]
Faris has joined #ruby
mac_cosmo has joined #ruby
spinx has quit [Client Quit]
tagrudev has joined #ruby
ellbot has joined #ruby
Lewix has joined #ruby
mary5030 has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
Cache_Money has quit [Quit: Cache_Money]
robbyoconnor has joined #ruby
St_Marx has joined #ruby
x1337807x has joined #ruby
ellbot has quit [Ping timeout: 252 seconds]
pwh has quit []
pen has quit [Remote host closed the connection]
karmatr0n has quit [Remote host closed the connection]
dkamioka has quit [Read error: Connection reset by peer]
nisstyre has quit [Quit: WeeChat 0.4.3]
heftig has quit [Quit: Quitting]
crzrcn has quit [Quit: Leaving.]
centrx has quit [Quit: All this computer hacking is making me thirsty]
bhaak has quit [Ping timeout: 240 seconds]
nari has joined #ruby
george2 has quit [Quit: No Ping reply in 180 seconds.]
chipotle has quit [Quit: cya]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Faris has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
slawrence00 has joined #ruby
tectonic has quit []
chipotle has joined #ruby
Celm has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 250 seconds]
mansi has joined #ruby
apeiros has quit [Remote host closed the connection]
cina has joined #ruby
crzrcn has joined #ruby
apeiros has joined #ruby
ellbot has joined #ruby
aganov has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cina> hi guys :) -- I have a begin;ensure;end code, I'm confused because the code in 'ensure' is run before the code in 'begin' -- is this normal?
mansi has quit [Ping timeout: 250 seconds]
RaptorJesus_ is now known as RaptorJesus
<cina> oh I was wrong -- sorry
spinx^ has joined #ruby
mikeric has quit []
apeiros has quit [Ping timeout: 250 seconds]
ellbot has quit [Ping timeout: 258 seconds]
Macaveli has joined #ruby
timonv has joined #ruby
pen has joined #ruby
bal has joined #ruby
mrnugget has quit [Quit: mrnugget]
dkamioka has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
mac_cosmo_ has joined #ruby
cina has quit [Ping timeout: 250 seconds]
mac_cosmo_ has quit [Read error: Connection reset by peer]
mac_cosmo_ has joined #ruby
anaeem1_ has joined #ruby
mac_cosmo has quit [Ping timeout: 265 seconds]
mac_cosmo_ is now known as mac_cosmo
emaxi has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
Doppp has joined #ruby
mengu has quit [Remote host closed the connection]
cina has joined #ruby
AliRezaTaleghani has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
AliRezaTaleghani has quit [Client Quit]
yxhuvud has quit [Remote host closed the connection]
AliRezaTaleghani has joined #ruby
mr_snowf1ake has joined #ruby
emaxi has quit [Ping timeout: 258 seconds]
yxhuvud has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
PragCypher has joined #ruby
coderhs has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
coderhs has quit [Remote host closed the connection]
claymore has joined #ruby
mr_bignum has quit [Ping timeout: 252 seconds]
crzrcn has quit [Quit: Leaving.]
abra_ has quit [Read error: Connection reset by peer]
bal has quit [Quit: bal]
mr_bignum has joined #ruby
bal has joined #ruby
kevinykchan has joined #ruby
mr_bignum has quit [Ping timeout: 240 seconds]
bhaak has joined #ruby
deepy has quit [Ping timeout: 258 seconds]
anarang has joined #ruby
x77686d has quit [Quit: x77686d]
tijmencc has quit [Quit: tijmencc]
dima_ has joined #ruby
deepy has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
deepy is now known as Guest43018
Maitiu has quit [Ping timeout: 240 seconds]
klaut has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
rtlong has quit [Ping timeout: 252 seconds]
dmarr has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
omegahm has quit [Ping timeout: 252 seconds]
joelteon has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
joelteon has joined #ruby
gtech has quit [Ping timeout: 252 seconds]
rtlong has joined #ruby
funburn has quit [Ping timeout: 245 seconds]
gtech has joined #ruby
dima_ has quit [Ping timeout: 245 seconds]
sdwrage has joined #ruby
_zxq9_ has joined #ruby
vadzimt has joined #ruby
zxq9 has quit [Ping timeout: 252 seconds]
dmarr has joined #ruby
phansch has quit [Ping timeout: 240 seconds]
bluOxigen has joined #ruby
dagobah has joined #ruby
omegahm has joined #ruby
sdwrage has quit [Client Quit]
cj3kim_ has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
kinginky_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
ghr has joined #ruby
cj3kim_ has joined #ruby
cj3kim__ has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
cj3kim__ has quit [Remote host closed the connection]
cj3kim_ has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Remote host closed the connection]
Xeago has joined #ruby
noop has joined #ruby
cj3kim_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
jamto11 has joined #ruby
phansch has joined #ruby
mercwithamouth has quit [Ping timeout: 276 seconds]
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
ndngvr` has joined #ruby
chipotle has quit [Quit: cya]
ndngvr has quit [Read error: Connection reset by peer]
thomasxie has left #ruby [#ruby]
locriani has quit [Quit: Leaving...]
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 245 seconds]
sigurding has joined #ruby
LekeFly has joined #ruby
LiohAu has quit [Quit: LiohAu]
mary5030 has quit [Ping timeout: 245 seconds]
rm__ has quit [Ping timeout: 252 seconds]
Hytosys has quit [Quit: Hytosys]
keen___ has quit [Ping timeout: 276 seconds]
fabrice31 has joined #ruby
freerobby has joined #ruby
jprovazn has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
Waheedi has joined #ruby
freerobby1 has joined #ruby
_zxq9_ has quit [Read error: Connection reset by peer]
freerobby has quit [Read error: Connection reset by peer]
werdna has joined #ruby
LekeFly has quit [Client Quit]
_zxq9_ has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
<rkazak> Havenwood: Thanks.
xunil__ has joined #ruby
sdouglas has quit [Remote host closed the connection]
Celm has joined #ruby
cj3kim_ has joined #ruby
sdouglas has joined #ruby
wallerdev has joined #ruby
xunil has quit [Ping timeout: 250 seconds]
freerobby1 has quit [Ping timeout: 258 seconds]
ellbot has joined #ruby
tagrudev has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
tagrudev has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
deadlock has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
Xeago has quit [Read error: Connection reset by peer]
sdouglas has quit [Ping timeout: 258 seconds]
Xeago has joined #ruby
aantix has quit [Quit: aantix]
helpD has joined #ruby
_zxq9_ is now known as zxq9
werdna has left #ruby ["Leaving"]
ellbot has quit [Ping timeout: 245 seconds]
Xeago_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
Xeago_ has joined #ruby
Hytosys has joined #ruby
emaxi has joined #ruby
zegerjan has joined #ruby
fuleo_ has left #ruby [#ruby]
fgo has joined #ruby
keen___ has joined #ruby
nomenkun_ has joined #ruby
helpD has quit [Ping timeout: 240 seconds]
davidmles has joined #ruby
davidmles has left #ruby [#ruby]
<zorak> whats the difference between && and "and"??
zigomir has joined #ruby
<crome> zorak: they have a different precedence
Xeago has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
zigomir has joined #ruby
zigomir has quit [Remote host closed the connection]
zigomir has joined #ruby
ahawkins has joined #ruby
nomenkun has quit [Ping timeout: 258 seconds]
anarang has quit [Remote host closed the connection]
<zorak> so, if i have a == b && c == d
fieldfirst has joined #ruby
<zorak> in this case is better a == b and c == d
emaxi has quit [Ping timeout: 276 seconds]
<canton7> the difference really shows up when you have assignment. `a = b && c` vs `a = b and c`
funburn has joined #ruby
Xeago has joined #ruby
<canton7> if b is false, the first one assigns c to a, while the second one assigns b to a and then evaluates c
anarang has joined #ruby
<zorak> return true if die != 1 and die != 5 == return true if die != 1 && die != 5
nichtdiebohne1 has left #ruby [#ruby]
<zorak> return true if die != 1 and die != 5 its the same than return true if die != 1 && die != 5
<canton7> those two are equivalent, yes
<canton7> 'and' and 'or' are meant to be used for flow control though. 'do_something or raise "an exception"'
<canton7> it's a perlism - not often seen in ruby
Xeago_ has quit [Ping timeout: 240 seconds]
<zorak> thanks!
Xeago_ has joined #ruby
ephemerian has joined #ruby
sdouglas has joined #ruby
AlexRussia has joined #ruby
<canton7> if I find someone doing 'a != 3 and a != 5' I tend to whack them with a large stick - they're breaking the common style, and they *will* get tripped up on the 'a = b and c' case
<canton7> znwB]XF?TlIImQ/WV=u
<crome> zorak: I recommend sticking with && in logical expressions though
<canton7> oops
arturaz has joined #ruby
<crome> sometimes people use "and" because it reads a bit better but you can shoot yourself in the leg because its actually not the same as &&
<zorak> i doing the koans and cant figure it how to do this exercise https://github.com/jimmah/ruby_koans_answers/blob/master/about_scoring_project.rb
lolmaus_ has quit [Ping timeout: 240 seconds]
<zorak> and has to cheat
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zorak> and the person who do the cheat use "and" and find it strange, because everyone else use &&
Xeago has quit [Ping timeout: 240 seconds]
<zorak> i find more clean use and
<zorak> also, change the color in vim :P
MatthewsFace has quit [Quit: This computer has gone to sleep]
kenneth has joined #ruby
amclain has quit [Quit: Leaving]
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
<rkazak> and has lower precedencethan &&.
greenarrow has joined #ruby
twiceaday has joined #ruby
<crome> >> defined? Kernel and kernel::rand
<eval-in> crome => undefined local variable or method `kernel' for main:Object (NameError) ... (https://eval.in/136784)
lolmaus has joined #ruby
<crome> >> defined? Kernel and Kernel::rand
<eval-in> crome => 0.3985660678728491 (https://eval.in/136785)
<crome> >> defined? Kernel && Kernel::rand
<eval-in> crome => "expression" (https://eval.in/136786)
mrnugget has joined #ruby
darkaer has joined #ruby
<zorak> what do you do there crome ??
decoponio has joined #ruby
<crome> I showed you the subtle difference between && and "and"
twiceday has quit [Ping timeout: 250 seconds]
<crome> and how you can write really difficult to spot bugs by using "and" instead of && in certain places
oo_ has quit [Remote host closed the connection]
tvw has quit []
oo_ has joined #ruby
<rkazak> Hmm. that’s interesting.
<canton7> >> b = nil; c = 5; a = b || c; p a
<eval-in> canton7 => 5 ... (https://eval.in/136789)
<canton7> >> b = nil; c = 5; a = b or c; p a
<eval-in> canton7 => nil ... (https://eval.in/136790)
<canton7> ^^ that one's harder to spot
<apeiros> crome: and/or by leaving away parens
<crome> apeiros: indeed
<apeiros> I suggest to write that as ((defined?(Kernel)) && (Kernel.rand()))
<apeiros> also, WHY THE HECK DO YOU USE :: FOR METHOD CALLS?!?!?
LiohAu has joined #ruby
<apeiros> srsly, don't. it's fugly
<rkazak> defined? ( Kernel and Kernel::rand )
elaptics`away is now known as elaptics
<rkazak> => “expression”
darkaer_ has joined #ruby
<crome> apeiros: sorry :(
darkaer has quit [Ping timeout: 245 seconds]
darkaer_ is now known as darkaer
kaliya has joined #ruby
Kneferilis has joined #ruby
sk87 has joined #ruby
funburn has quit [Quit: funburn]
aquilo has joined #ruby
aquilo has left #ruby [#ruby]
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 7 Hours 53 Minutes and 11 Seconds Online.]
shashank_rs has joined #ruby
andikr has joined #ruby
shashank_rs has quit [Client Quit]
karmatr0n has joined #ruby
andikr has quit [Remote host closed the connection]
krandi has joined #ruby
ktun has joined #ruby
marr has joined #ruby
fluve has quit []
combusean has quit [Ping timeout: 258 seconds]
nvrch has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
LekeFly has joined #ruby
_justin has quit [Quit: _justin]
ziyadb_ has joined #ruby
sdouglas has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
rkazak has left #ruby [#ruby]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weems has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
bambuka has joined #ruby
ghr has joined #ruby
ndrei has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
jhn has quit [Ping timeout: 252 seconds]
freerobby has quit [Ping timeout: 252 seconds]
kukyakya has joined #ruby
olivier_bK has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
tjr9898 has joined #ruby
mr_snowf1ake has quit [Ping timeout: 252 seconds]
ellbot has joined #ruby
emaxi has joined #ruby
lele has quit [Ping timeout: 246 seconds]
fabrice31 has joined #ruby
mac_cosmo has quit [Read error: Connection reset by peer]
nfk has joined #ruby
PragCypher has quit [Quit: Leaving]
ellbot has quit [Ping timeout: 252 seconds]
emaxi has quit [Ping timeout: 258 seconds]
lele has joined #ruby
ikaros has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
blackmesa has quit [Ping timeout: 240 seconds]
dANOKELOFF has joined #ruby
relix has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
mac_cosmo has joined #ruby
donnoc has joined #ruby
Rhainur has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
Al__ has joined #ruby
roolo has joined #ruby
tjr9898 has joined #ruby
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
skaflem has joined #ruby
dANOKELO_ has joined #ruby
mcrmfc has joined #ruby
ereslibre has joined #ruby
aalmenar has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
havenwood has quit [Remote host closed the connection]
combusean has joined #ruby
helpD has joined #ruby
marcdel has quit []
dANOKELOFF has quit [Ping timeout: 276 seconds]
donnoc has quit [Quit: WeeChat 0.4.3]
LekeFly has quit [Quit: Textual IRC Client: www.textualapp.com]
unic0rn has joined #ruby
donnoc has joined #ruby
dANOKELO_ is now known as dANOKELOFF
dima_ has joined #ruby
mr_bignum has joined #ruby
<Rhainur> hey guys, I'm getting a NoMethodError when I try to use builder within a class file (https://gist.github.com/Rhainur/05d2a60ec27a3baede7b)
<Rhainur> gistfile1 works but gistfile2 doesn't
einarj has joined #ruby
<unic0rn> hi, is there any decent compiler translating yarv or mruby bytecode to javascript (preferably asm.js)?
spinx^ has quit [Ping timeout: 245 seconds]
<unic0rn> if not, is there any at all documentation for mruby bytecodes other than the source code?
_justin has joined #ruby
ktun has joined #ruby
<unic0rn> something like the book ruby under the microscope (which i haven't read yet, but from quick glance it seems it covers yarv only) would be preferred
combusean has quit [Ping timeout: 252 seconds]
cina has quit [Quit: leaving]
ereslibre has quit [Quit: No Ping reply in 180 seconds.]
spinx^ has joined #ruby
aalmenar has quit [Quit: No Ping reply in 180 seconds.]
dima_ has quit [Ping timeout: 250 seconds]
klaut has quit [Remote host closed the connection]
ereslibre has joined #ruby
ereslibre has quit [Changing host]
ereslibre has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
Waheedi has quit [Quit: Waheedi]
dANOKELO_ has joined #ruby
phansch has joined #ruby
kenneth has quit [Ping timeout: 250 seconds]
dANOKELO_ is now known as dANOKELOFF_
<Macaveli> Are hot fixes the same as bug fixes or are bug fixes features?
Es0teric has quit [Quit: Computer has gone to sleep.]
dANOKELOFF_ has quit [Client Quit]
dANOKELOFF has quit [Ping timeout: 276 seconds]
dANOKELO_ has joined #ruby
dANOKELO_ is now known as dANOKELOFF
mr_bignum has quit [Ping timeout: 276 seconds]
<Mon_Ouie> unic0rn: Have you considered Rubinius for that? It uses LLVM that might be easier to manipulate
Spami has joined #ruby
eyeamaye1 has quit [Quit: Leaving.]
dapz has joined #ruby
Zai00 has joined #ruby
<banister> Mon_Ouie hello frenchie
<unic0rn> Mon_Ouie: as far as i've noticed from some issue on github, it may be problematic to force rubinius to work with emscripten, because at some stage the llvm representation generated by rubinius lacks type information
<unic0rn> so i've decided to rather write my own compiler translating the yarv or - preferably - mruby bytecode, to asm.js
<unic0rn> that should end up being pretty fast
dawkirst has joined #ruby
ballPointPenguin has quit [Ping timeout: 265 seconds]
<unic0rn> stdlib stuff written in ruby, taken from rubinius, may be handy though
drjblouse__ has quit [Ping timeout: 246 seconds]
Guest85414______ has quit [Ping timeout: 246 seconds]
<unic0rn> but not the compiler itself
jpinnix____ has quit [Ping timeout: 245 seconds]
Martxel_ has joined #ruby
octarine has quit [Ping timeout: 246 seconds]
maZtah has quit [Ping timeout: 240 seconds]
<unic0rn> the thing is, while yarv is pretty well documented, documentation for mruby is pretty much nonexistent
<Hanmac> unic0rn: nope, some parts of stdlib are written in C too
Martxel has quit [Ping timeout: 240 seconds]
gaussblurinc has joined #ruby
drjblouse__ has joined #ruby
_justin has quit [Quit: _justin]
maZtah_ has joined #ruby
Avahey_ has quit [Ping timeout: 258 seconds]
Guest85414______ has joined #ruby
jpinnix____ has joined #ruby
helpD has quit [Remote host closed the connection]
ktun has quit [Ping timeout: 276 seconds]
AlSquire has joined #ruby
Avahey_ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mr_bignum has joined #ruby
<unic0rn> Hanmac: well, unless i'll be crazy enough to make it run ruby on rails via node.js, full stdlib support for something like client-side javascript in the browser won't be mandatory. besides, there are more than a few solutions (most inactive though) implementing parts of stdlib in ruby, so whatever is possible to gather, may be compiled to asm.js and that should run pretty fast. the main thing is wether i should use yarv or mruby
<unic0rn> bytecode
anaeem1_ has quit [Remote host closed the connection]
Faris has joined #ruby
<Hanmac> unic0rn: you can run mruby in EFI ... then you dont even need an OS ;P
ballPointPenguin has joined #ruby
<unic0rn> what i need is ruby running in a web browser, with decent speed.
octarine has joined #ruby
<unic0rn> decent = at least on pair with avm2 (flash player with code using alchemy/fast memory opcodes)
psyko666 has quit [Quit: Leaving]
cj3kim_ has quit [Remote host closed the connection]
<unic0rn> so basically on pair with asm.js, more or less
<unic0rn> that is, C compiled to asm.js
roolo has quit [Quit: Leaving...]
<unic0rn> hotruby solution, while simple, is a vm running yarv opcodes, so that's slow. translating yarv to asm.js directly should end up being very fast, probably a lot faster than native ruby implementation, because of the JIT in the browsers
<unic0rn> it won't make a lot of sense on the server side when there's rubinius i guess, but in the browsers it's entirely different matter
poikon has joined #ruby
cj3kim has joined #ruby
roolo has joined #ruby
<unic0rn> i would just prefer to use mruby bytecode for that, because that's i guess more future-proof solution, considering the fact that RubyVM::InstructionSequence is more or less unofficial and subject to change, and i'm not even sure what sort of changes went there between 1.9.3 and 2.0/2.1
havenwood has joined #ruby
lukaszk has joined #ruby
Spami has quit [Read error: Connection reset by peer]
jonno11 has joined #ruby
jamto11 has joined #ruby
Melpaws has joined #ruby
nvrch has quit [Quit: nvrch]
ktun has joined #ruby
kenneth has joined #ruby
nvrch has joined #ruby
obs has joined #ruby
heftig has joined #ruby
wallerdev has quit [Quit: wallerdev]
Spami has joined #ruby
vlad_starkov has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
cj3kim_ has joined #ruby
ktun has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
dblessing has joined #ruby
greenarrow has quit [Quit: 500]
emaxi has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
maZtah_ is now known as maZtah
maZtah has quit [Changing host]
maZtah has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
arturaz has quit [Quit: Leaving]
Celm has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
mehlah has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
emaxi has quit [Ping timeout: 245 seconds]
cj3kim has joined #ruby
donnoc has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 245 seconds]
greenarrow has joined #ruby
ellbot has joined #ruby
_justin has joined #ruby
Celm has quit [Ping timeout: 250 seconds]
Phage is now known as Phage^
danijoo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
cj3kim has quit [Remote host closed the connection]
Advocation has joined #ruby
Zai00_ has joined #ruby
aaronmcadam has joined #ruby
Zai00 has quit [Ping timeout: 258 seconds]
Zai00_ is now known as Zai00
claymore has quit [Quit: Leaving]
danijoo has quit [Read error: Connection reset by peer]
danijoo_ has joined #ruby
ellbot has quit [Ping timeout: 265 seconds]
havenwood has quit [Ping timeout: 265 seconds]
fgo has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 245 seconds]
klaut has joined #ruby
Lucky_Red has joined #ruby
emaxi has joined #ruby
Hytosys has quit [Quit: Hytosys]
<ponga> good document for noob that explains yield/block :)
<ponga> please good sirs
<ponga> yes i tried to google it
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
BizarreCake has joined #ruby
Trynemjoel has joined #ruby
<olivier_bK> do you know how i can indent after sending my variable in file ?
<olivier_bK> a[-2,0] = "'endDate' => #{date[0]},\n"
<olivier_bK> File.open("file","w") { |f| a.each {|line| f << line }}
anaeem1 has joined #ruby
Al__ has quit [Quit: Al__]
<olivier_bK> i get update date with 2014-05-05
<olivier_bK> but i would want
<olivier_bK> update date with 2014-05-05
mengu has quit [Remote host closed the connection]
aloshkarev has joined #ruby
eguim has quit [Quit: leaving]
eguim has joined #ruby
eguim has quit [Client Quit]
eguim has joined #ruby
<lukaszk> easiest way is to do { |f| a.each { |line| f << "\t#{line}" } }
yfeldblum has quit [Ping timeout: 250 seconds]
MrPopinjay has joined #ruby
<lukaszk> or
<lukaszk> content = a.map { |line| "\t#{line}"}.join("\n") ; File.write(name, content)
<olivier_bK> i found a ruby methode indent i going to try to use it
<olivier_bK> lukaszk, thanks for the advice men :)
<MrPopinjay> Hi guys. So I'm splitting a script into multiple files, and I was wondering how the require statement works here. Say if I want to require a file one dir up would I use this? => require '../required_file.rb'
randomnick_ has joined #ruby
<randomnick_> is there a way to exclude one method from parent class?
<lukaszk> MrPopinjay: you probably want requiure_relative in that case
<MrPopinjay> Are require paths absolute?
<MrPopinjay> randomnick_: Just call it like a normal method?
workmad3 has joined #ruby
phruby has quit [Quit: Page closed]
anaeem1 has quit [Remote host closed the connection]
<ponga> i just understood how block and yield parameter works
anaeem1 has joined #ruby
<ponga> this thing is amazing
<ponga> never like how i used to code
aaronmcadam has quit [Quit: Leaving...]
oo_ has quit [Remote host closed the connection]
ktun has joined #ruby
oo_ has joined #ruby
spinx^ has quit [Read error: Connection reset by peer]
<olivier_bK> ponga, block are easy
<MrPopinjay> lukaszk: Thanks. So is it relative to the file containing the statement, or from the file executed? So if I had one file that required another file, that required another, would the second require_relative be relative to the first location?
<MrPopinjay> Hm. Maybe it makes more sense to add my project's lib/ dir?
<olivier_bK> me i dont understand for the moment the proc :(
anaeem1 has quit [Ping timeout: 258 seconds]
<olivier_bK> MrPopinjay, dont miss to require_relative "lib/YOU_DIR"
<lukaszk> MrPopinjay: if you have to deal with stuff like that it's better to set up your LOAD_PATH correctly. Abusing require_relative can lead to quite confusing situations
<ponga> olivier_bK, the concept was easy but im not sure if i could master the arts in my codes
elaptics is now known as elaptics`away
<olivier_bK> ponga, we are here for helping you if need
tjr9898 has quit [Remote host closed the connection]
spinx^ has joined #ruby
<ponga> im still learning, i can handle most of the stuffs my self, in fact i should if i really wanna learn
<MrPopinjay> So I'll add $LOAD_PATH << '../lib' to my executables (in bin/, same level as /lib). That seems to make sense to me. Does anyone think otherwise?
chipotle has joined #ruby
<MrPopinjay> wait, ../lib would be relative to the dir the executable is run from, not from the actual file location, I think?
lolmaus_ has joined #ruby
lolmaus has quit [Ping timeout: 258 seconds]
vlad_starkov has joined #ruby
nomenkun_ has quit [Quit: Leaving...]
mr_bignum has quit [Remote host closed the connection]
mr_bignum has joined #ruby
m0s^away is now known as m0s
sensen has joined #ruby
<lukaszk> MrPopinjay: I believe that's true, you can see how other gems (pry, rake etc) do it
senayar_ has joined #ruby
<MrPopinjay> Good idea
dANOKELO_ has joined #ruby
karmatr0n has joined #ruby
<MrPopinjay> um. They don't?
<lukaszk> ok, lets step back - are you going to ship this is a a gem? if that's the case it's easier if you have a main require file and then just use it in your gem's bin script
vlad_starkov has quit [Ping timeout: 258 seconds]
<MrPopinjay> No, I'm not
nomenkun has joined #ruby
mr_bignum has quit [Ping timeout: 245 seconds]
<lukaszk> it might be worth using standard ruby gem layout anyway - you don't have to push it to rubygems but you can still generate an installable .gem file
mac_cosmo has quit [Quit: mac_cosmo]
<MrPopinjay> I was using their dir structure and such, but a lot of it is over my head at the moment
dANOKELOFF has quit [Ping timeout: 245 seconds]
senayar has quit [Ping timeout: 258 seconds]
andrewlio has joined #ruby
chipotle has quit [Quit: cya]
karmatr0n has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
freerobby has joined #ruby
afreidah1 has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
lkba has joined #ruby
ponga has quit [Read error: No route to host]
freerobby has quit [Ping timeout: 245 seconds]
karupanerura is now known as zz_karupanerura
<lukaszk> think about your bin/tool file as just an entry point to rest of your library , don't put too much stuff there.
ponga_ has joined #ruby
Celm has joined #ruby
<MrPopinjay> I only have one script in there, and it's pretty much just the require thing
<MrPopinjay> Which I'm still trying to work out
popl has quit [Ping timeout: 258 seconds]
lolmaus has joined #ruby
lolmaus_ has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
ellbot has joined #ruby
<lukaszk> can you gist your project layout? then it will be easier to answer your question
havenwood has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
<MrPopinjay> sure
Speed has joined #ruby
poikon has quit [Remote host closed the connection]
fabrice31 has quit [Remote host closed the connection]
m0s is now known as m0s^away
poikon has joined #ruby
Al__ has joined #ruby
lkjlk has joined #ruby
Xeago has joined #ruby
<lkjlk> Hi. Are ruby tutorials on codecademy are any good? Or if there are others better than can anybody please recommend me those?
havenwood has quit [Ping timeout: 276 seconds]
ellbot has quit [Ping timeout: 276 seconds]
<MrPopinjay> lkjlk: I don't think so. Codeschool is much better.
<MrPopinjay> Though not free
<MrPopinjay> I really dislike codecademy as a learning resource
<lkjlk> Oh, I learned python and PHP from codecademy only :/
<lkjlk> also JS
<MrPopinjay> It teaches syntax, not programming. Plus, their site is so buggy it's often not clear if you got it right or not.
Lewix has quit [Remote host closed the connection]
cover has joined #ruby
<lkjlk> right, I agree with you on last one
<MrPopinjay> I recommend a real course, like the ones on edx.org
<lkjlk> Codeschool is not free, and that's sad because I don't have penny to spare right now :(
<MrPopinjay> Their introductions to computer science are amazing.
<lkjlk> There is no ruby course on edx.org
<MrPopinjay> They are actually real undergrad courses from MIT, Harvard, etc
<MrPopinjay> Learning programming > learning ruby
amundj has quit [Ping timeout: 264 seconds]
<MrPopinjay> Languages are easy, programming is easy
<MrPopinjay> programming is ahrd*
<workmad3> MrPopinjay: heh
<gaussblurinc> oh, does code school have good complex ruby courses?
<MrPopinjay> I cannee type
<lkjlk> I have it downloaded "Intro to computer science and programming"
Xeago_ has quit [Ping timeout: 276 seconds]
Xeago_ has joined #ruby
<MrPopinjay> Not really, but it's better than codecadmy. It's another language and syntax overview, mostly
<MrPopinjay> Doesn't teach you how to program much
<lkjlk> MrPopinjay: err, you're saying there is course on ruby on edx?
<MrPopinjay> No, I'm ing you should learn to program well, then learn ruby from codeschool, rubykoans, the documentation, etc
senayar_ has quit [Remote host closed the connection]
<lkjlk> and for learning how to program, I should go to "Introduction to computer science and programming"?
<gaussblurinc> I want to learn testing and bundle make
amundj has joined #ruby
<MrPopinjay> Which course are you specifically talking about?
<workmad3> everyone should learn to program in the same way I did... tinker from the age of 5 to 18, spend 2 years at uni basically goofing off, then learn to code properly in spare time in the last 2 years, building on those 13 years of tinkering...
senayar has joined #ruby
<lkjlk> MrPopinjay: ruby, right now. But I'd also look up java in upcoming future
<workmad3> java makes me :(
<Terminus-> workmad3: i wish i had the internet from ages 5 to 18. deadtree was the only option back then.
<workmad3> Terminus-: I only had the internet from about age 13
<MrPopinjay> lkjlk: Again, learning languages isn't very useful. Learn to program. Syntax and tricks is very much secondary
emergion has joined #ruby
<lkjlk> MrPopinjay: where can learn how to program?
Xeago has quit [Ping timeout: 265 seconds]
<MrPopinjay> edx :)
m0s^away is now known as m0s
<Terminus-> workmad3: actually, i had internet when i was around 11. i just didn't know what to look for and it was an MS world back then as far as i was concerned and that limited what i was reading.
Xeago_ has quit [Remote host closed the connection]
<lkjlk> MrPopinjay: exactly which course? :p
<MrPopinjay> CS50x is very well recommended. It's a Harvard course that isn't specific to one language. You could also do the MIT python course, which is quite ruby-like
<lkjlk> I have fall 2008 downloaded, which uses python as language in that
<MrPopinjay> I've done that one, it's the best thing I've ever done
<lkjlk> MrPopinjay: I completed CS50 last year
<MrPopinjay> Why are you downloading things? Use the site
<lkjlk> I don't have enough speed to do it online
oo_ has quit [Remote host closed the connection]
<MrPopinjay> Even the exercises and exams?
<lkjlk> yeah
<lkjlk> also CS50 wasn't that good when it came to PHP
<MrPopinjay> It's not about language, it's about programming :P
<lkjlk> because there were few things that were stupid
<MrPopinjay> Hence it doesn't use one language
<MrPopinjay> Anyway, if you've done that, consider the software as a service course
<lkjlk> yeah, there was C, then PHP etc
<MrPopinjay> It uses Ruby
<lkjlk> data structure mainly
<MrPopinjay> and Rails
wethu has quit [Quit: This computer has gone to sleep]
<MrPopinjay> Programming is data structures mainly
psyko666 has joined #ruby
<lkjlk> [15:57:00] <MrPopinjay> Anyway, if you've done that, consider the software as a service course; What do you mean by this?
thumpba has joined #ruby
<MrPopinjay> ttps://www.edx.org/course/uc-berkeleyx/uc-berkeleyx-cs169-1x-engineering-1377
<MrPopinjay> It's a more difficult course that uses Ruby
afreidah1 has joined #ruby
<MrPopinjay> And rails. and web dev in general
thumpba_ has quit [Ping timeout: 258 seconds]
<lkjlk> Yo
reppard has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
Speed has quit [Ping timeout: 276 seconds]
<lkjlk> MrPopinjay: should I also do that MIT course?
yfeldblum has joined #ruby
<lkjlk> Or I can skip that and learn this one directly?
<MrPopinjay> Two at a time might be a bit much
<MrPopinjay> Try this one. The MIT course isn't running at the moment
<MrPopinjay> Plus if you've finish all this other stuff a lot of it might be a bit old hat
roolo has quit [Quit: Leaving...]
<lkjlk> Oh, I see
goganchic has joined #ruby
<lkjlk> April 18, it's perfect
<lkjlk> I hope it's good as well
<MrPopinjay> I'm going to sit it, I want to learn rails
robustus has joined #ruby
<lkjlk> I'm also waiting for Introduction to linux
<MrPopinjay> Me too, though I'm a touch worried that it'll be crap
<MrPopinjay> It mentions graphical stuff
<MrPopinjay> What's the point?
<MrPopinjay> Not useful skills
<lkjlk> Right, I would just like to learn how to configure kernel etc
<lkjlk> other than that I'm okay with
chipotle has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
<MrPopinjay> Yeah, I hope it'll have lots of good stuff in ther
<MrPopinjay> and not just "Here's how you use the ubuntu software centre"
m0s is now known as m0s^away
<lkjlk> haha
<lkjlk> mmm, 8 weeks means 2 months
<reppard> good morning all
<lkjlk> damn you ruby on rails
<lkjlk> I know laravel,, so I hope it would be easy to learn new framework
mrnugget has quit [Quit: mrnugget]
chipotle has quit [Client Quit]
yfeldblum has quit [Ping timeout: 276 seconds]
chipotle has joined #ruby
aaronmcadam has joined #ruby
aaronmcadam has quit [Remote host closed the connection]
aaronmcadam has joined #ruby
chipotle has quit [Client Quit]
<MrPopinjay> What's laravel? :)
Guest43018 has quit [Changing host]
Guest43018 has joined #ruby
chipotle has joined #ruby
Guest43018 is now known as deepy
<workmad3> MrPopinjay: a PHP framework, iirc
<MrPopinjay> Ah, I see
ctp has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has quit [Read error: Connection reset by peer]
chipotle has quit [Client Quit]
lolmaus has joined #ruby
mostlybadfly has joined #ruby
chipotle has joined #ruby
chipotle has quit [Client Quit]
mrnugget has joined #ruby
aaronmcadam has quit [Quit: Linkinus - http://linkinus.com]
chipotle has joined #ruby
peta_ has joined #ruby
alexherbo2|zZz has quit [Quit: WeeChat 0.4.3]
chipotle has quit [Client Quit]
<MrPopinjay> I'm sure it'll be handy. It's all about the transferable skills
chipotle has joined #ruby
Rhainur has quit [Quit: Leaving]
dawkirst has quit [Ping timeout: 245 seconds]
Robbo__ has joined #ruby
W0rmDr1nk has quit [Ping timeout: 245 seconds]
luluapple has joined #ruby
Robbo_ has quit [Ping timeout: 252 seconds]
aloshkarev has quit [Quit: aloshkarev]
luluapple has quit [Client Quit]
mercwithamouth has joined #ruby
aloshkarev has joined #ruby
aloshkarev has quit [Client Quit]
<lkjlk> Hmm
rvraghav93 has joined #ruby
nari has quit [Ping timeout: 245 seconds]
<DouweM> morning folks
lkjlk has quit [Quit: Konversation terminated!]
Melpaws has quit [Ping timeout: 265 seconds]
tungd has joined #ruby
sigurding has quit [Quit: sigurding]
dawkirst has joined #ruby
MrPopinjay has left #ruby ["WeeChat 0.3.8"]
donnoc has joined #ruby
ponga_ has quit [Quit: Leaving :)]
<shevy> die
<shevy> sorry
<shevy> wrong channel
<shevy> hi
W0rmDr1nk has joined #ruby
dkamioka has quit [Remote host closed the connection]
jhass|off is now known as jhass
Melpaws has joined #ruby
roolo has joined #ruby
jamto11 has joined #ruby
chipotle has quit [Quit: cya]
kukyakya has quit [Remote host closed the connection]
<DouweM> what timezone are you in anyway, shevs
shashank_rs has joined #ruby
kitak_ has quit [Remote host closed the connection]
dANOKELO_ has quit [Remote host closed the connection]
atmosx has joined #ruby
luluapple has joined #ruby
nvrch has quit [Quit: nvrch]
ndrei has quit [Ping timeout: 240 seconds]
jamto11 has quit [Ping timeout: 265 seconds]
_justin has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
tjr9898 has joined #ruby
crazysim has quit [Excess Flood]
crazysim has joined #ruby
wethu has joined #ruby
tjr9898 has quit [Remote host closed the connection]
Megtastique has joined #ruby
tjr9898 has joined #ruby
freerobby has quit [Ping timeout: 258 seconds]
Speed has joined #ruby
sigurding has joined #ruby
evenix has joined #ruby
chipotle has joined #ruby
tjr9898_ has joined #ruby
chipotle has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ellbot has joined #ruby
evenix has quit [Ping timeout: 245 seconds]
tjr9898 has quit [Ping timeout: 250 seconds]
basichash has joined #ruby
jottr has joined #ruby
<basichash> How do I add a new controller method? I added the method to the controller, added the view to the views/app/ dir and put "get 'app/method'" to routes, but I can't access it
Stalkr^ has joined #ruby
<shevy> DouweM central europe ghetto zone
rvraghav93 has quit [Remote host closed the connection]
_justin has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister> basichash ask in #rubyonrails
jhass is now known as jhass|off
donnoc has quit [Ping timeout: 252 seconds]
kitak has joined #ruby
ellbot has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
basichash has quit [Remote host closed the connection]
Xeago has joined #ruby
kpshek has joined #ruby
greenarrow has quit [Ping timeout: 252 seconds]
sski has joined #ruby
Xeago has quit [Remote host closed the connection]
sensen has quit [Quit: leaving]
Xeago has joined #ruby
eka has joined #ruby
jhass|off is now known as jhass
Phage^ is now known as Phage
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<atmosx> shit
<atmosx> shit shit shit shit
<atmosx> I thought I could have it ready my Thursday... uff
yfeldblum has joined #ruby
dawkirst_ has joined #ruby
atmosx has quit [Quit: Lost in trance]
jhass is now known as jhass|off
tjr9898 has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
tjr9898_ has quit [Read error: Connection reset by peer]
kpshek has quit [Ping timeout: 252 seconds]
luluapple has quit [Quit: ZNC - http://znc.in]
dawkirst has quit [Ping timeout: 276 seconds]
dapz has quit [Ping timeout: 250 seconds]
__class__ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 265 seconds]
gry has joined #ruby
Xeago_ has joined #ruby
<gry> https://github.com/nTraum/gitlab-irc && https://pastee.org/hpj6v -- what can I do or is there a more specific channel for this (asked #gitlab, they're waking up a little bit and one of them doesn't know)
mengu has quit [Remote host closed the connection]
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
tkuchiki has joined #ruby
claymore has joined #ruby
nvrch has joined #ruby
jhass|off is now known as jhass
shashank_rs has quit [Ping timeout: 258 seconds]
vincent has joined #ruby
vincent is now known as Guest60613
jhass is now known as jhass|off
afreidah1 has joined #ruby
emaxi has quit [Ping timeout: 245 seconds]
Guest60613 is now known as vc7
luluapple has joined #ruby
_justin has quit [Quit: _justin]
dANOKELOFF has joined #ruby
fabrice31 has joined #ruby
jottr is now known as elementz
greenarrow has joined #ruby
dawkirst_ has quit [Quit: Leaving...]
afreidah1 has quit [Ping timeout: 252 seconds]
dawkirst has joined #ruby
chipotle has joined #ruby
karmatr0n has joined #ruby
arietis has joined #ruby
sigurding has quit [Quit: sigurding]
vadzimt has quit [Quit: Textual IRC Client: www.textualapp.com]
Hanmac1 has joined #ruby
__class__ has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
peta_ has quit [Quit: peta_]
donnoc has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
senayar has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
senayar has joined #ruby
user___ has joined #ruby
danshultz has joined #ruby
<user___> What does "method obj do |x|" mean?
<tobiasvl> user___: hehe
r_rios has joined #ruby
freerobby has joined #ruby
<tobiasvl> it's a method that takes obj as its parameter (parentheses are optional in ruby if they're not ambiguous)
<tobiasvl> and it also takes a block (starts with "do")
<tobiasvl> and that block takes one argument (x)
donnoc has quit [Ping timeout: 240 seconds]
dima_ has joined #ruby
djbender has joined #ruby
Olipro has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
<user___> so you call a block on a method?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
krz has quit [Quit: WeeChat 0.4.3]
danshultz has quit [Ping timeout: 250 seconds]
jkamenik has joined #ruby
Devanon has joined #ruby
<tobiasvl> depends what you mean by that, the method takes the block as an argument and yields values to it
freerobby has quit [Ping timeout: 240 seconds]
simono has joined #ruby
jlebrech_ has joined #ruby
dima_ has quit [Ping timeout: 258 seconds]
jlebrech_ has quit [Client Quit]
jlebrech_ has joined #ruby
nateberkopec has joined #ruby
greenarrow has quit [Quit: 500]
jlebrech_ has quit [Client Quit]
Celm has joined #ruby
user___ has quit [Ping timeout: 245 seconds]
mansi has joined #ruby
Slarv has quit [Read error: Connection reset by peer]
ellbot has joined #ruby
bthesorceror has joined #ruby
havenwood has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
mansi has quit [Ping timeout: 250 seconds]
user___ has joined #ruby
agjacome has joined #ruby
<user___> tobiasvl: so it's equivalent to "method(para) do |f|"?
<tobiasvl> if para == obj then yes
Devanon has quit [Quit: WeeChat 0.4.3]
Devanon has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<user___> tobiasvl: I get the "def func do |para1, para|" syntax when defining a function, but still confused as to how it works in this instance
oo_ has joined #ruby
ellbot has quit [Ping timeout: 245 seconds]
bthesorceror has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 258 seconds]
bthesorceror has joined #ruby
<tobiasvl> what? that's not the syntax for defining a function
oo_ has quit [Remote host closed the connection]
<tobiasvl> the | is only used for block arguments, not method arguments
djbender has quit [Quit: djbender]
<ponga> i found this in my codecademy tutorial "Well, you can also convert symbols to procs using that handy little &"
sambao21 has joined #ruby
<ponga> why on earth would you want to do that anyway
<shevy> ponga yeah well: [ ' abc', 'def ','g hi '].map(&:strip) # => ["abc", "def", "g hi"]
<DouweM> >> [1,2,3].map(&:to_s)
<eval-in> DouweM => ["1", "2", "3"] (https://eval.in/136942)
<ponga> wait wait
<user___> tobiasvl: sorry, yeah your right
<DouweM> that's awesome
tungd has quit [Ping timeout: 258 seconds]
<shevy> weird that .map seems to be the most often cited examples for &
<ponga> shevy, DouweM I thought .to_s can be called without being, oh now i know it
djbender has joined #ruby
<ponga> you want to use it as proc in some cases
<ponga> am i right?
yfeldblum has joined #ruby
<shevy> dunno
<shevy> I rarely use standalone procs
<shevy> I used them in ruby-gnome for callbacks
<DouweM> ponga: basically
simono has quit [Ping timeout: 276 seconds]
<shevy> but other than that...
tungd has joined #ruby
<shevy> I feel lots of lambda {} just does not fit into the rest of my mostly class and module based code
<shevy> DouweM in what format do you write tutorials or documentation for your ruby code?
simono has joined #ruby
<ponga> DouweM, shevy but can you not do array.map.to_s instead of array.map(&:to_s) ?? ?
bthesorceror has quit [Ping timeout: 245 seconds]
<DouweM> ponga: that's a completely different thing
<shevy> ponga try it, then you know the results are different
<ponga> is this another ruby's cos you could
<ponga> OK
sepp2k has joined #ruby
<shevy> array.to_s kinda stinks these days :(
<DouweM> shevy: comments for non-obvious code, readme. but we're a pretty small team so usually the documentation is just my colleague calling me
<shevy> >> ARRAY = [1,2,3]; ARRAY.to_s
<shevy> # => "[1, 2, 3]"
<eval-in> shevy => "[1, 2, 3]" (https://eval.in/136944)
luluapple has quit [Quit: ZNC - http://znc.in]
user___ is now known as basichash
<shevy> look ponga, totally useless that result ^^^
<DouweM> ponga: that does something completely different
<DouweM> ponga: with #map, you can specifiy the proc you want to be called for every element
<shevy> DouweM I mean, that is just a file called "README"? no formatting?
<ponga> what the
<ponga> can you not ARRAY.to_s! then?
<DouweM> ponga: &:to_s is shorthand for { |x| x.to_s }
<ponga> using !
<DouweM> shevy: Markdown
chipotle has quit [Quit: cya]
<shevy> ponga what is the point of the !
<DouweM> shevy: but that's mostly it. we have a couple of wiki articles also for tricky stuff
<ponga> ahhhhhh
<shevy> ok, so markdown
<ponga> ah
<ponga> i see
<ponga> I see
<shevy> hmm
<DouweM> ponga: what the hell are you on about. I think you misunderstand #map
<tobiasvl> README.md
<shevy> yeah tobiasvl ;-)
<shevy> nobody has README.rdoc?
<DouweM> has fallen out of favor, in the Ruby community anyway
<shevy> kk
<ponga> DouweM: no i see it very clearly now
<ponga> thanks
benzrf|offline is now known as benzrf
yfeldblum has quit [Ping timeout: 265 seconds]
<shevy> benzrf!
<shevy> time to work on a new gem
<shevy> ruby-VM
mr_snowf1ake has joined #ruby
vpereira_ has quit [Ping timeout: 250 seconds]
dANOKELOFF has quit [Remote host closed the connection]
basichash has quit [Remote host closed the connection]
<ponga> omg
<benzrf> meh
<benzrf> still doing quick =3
<benzrf> workin on dmtcp
<benzrf> having issues with mounting perms :\
dANOKELOFF has joined #ruby
<ponga> shevy i know it sounds dumb but is 'to_s' method a symbol?
<ponga> that i have to use as &:to_s
<ponga> i thought it was method and symbol is for hash only
vpereira has joined #ruby
<DouweM> to_s is just a method
<DouweM> &:to_s calls :to_s.to_proc. Symbol#to_proc is implemented to return a proc { |x| x.to_s }
<DouweM> which means &:to_s can be used instead of the longer proc
<DouweM> shorthands ftw
<DouweM> symbols aren't hash-only, but they are often used in combination with one
<DouweM> the only relation between symbols and methods is that symbols can be used to refer to methods' names
<benzrf> symbols are just like strings except that they arent strings
slacko has joined #ruby
<benzrf> they are ints
alexju has quit [Remote host closed the connection]
<DouweM> benzrf is completely right
wethu has quit [Quit: This computer has gone to sleep]
<benzrf> also its possible to blow up yarv by using 2many symbols
chipotle has joined #ruby
<Hanmac1> & can be used for more funny stuff
<Hanmac1> >> [2,3,4].map(&6.method(:to_s))
<ponga> "symbols can be used to refer to methods' names" <- thanks
<benzrf> ponga: just like strings can, rly
Hanmac1 is now known as Hanmac
<ponga> tutorial never taught me that
<DouweM> ponga: because a symbol looks like a character string in yiur code, it can
<DouweM> there's nothing magically method-related about them
karmatr0n has joined #ruby
<Hanmac> DouweM: only that each creation of a method (or a variable) makes a new symbol (if it didnt exist yet)
<DouweM> did it before 2.1?
<ponga> DouweM , why did to_s method need to convert into symbol to be used? my tutorial page on proc never used : conversions
<Macaveli> So for merging a develop into a master branch it's better to use rebase?
<ponga> then suddenly it requires me to use symbol converted proc
<ponga> :(
<DouweM> Hanmac: I didn't know that btw, but it makes sense with def's return value in 2.1
<tobiasvl> Macaveli: yes but that's not very ruby related
<DouweM> ponga: because it's a shorthand
<DouweM> ponga: you don't have to use it, but you can
fijimunkii has quit [Ping timeout: 265 seconds]
<Macaveli> tobiasvl, misclicked git
<Macaveli> channel
<DouweM> ponga: &x calls x.to_proc, :to_s.to_proc has been implemented to return { |x| x.to_s }
DietBacon has joined #ruby
<DouweM> with a different method call inside the proc obviously, for different symbols
sigurding has joined #ruby
vpretzel has joined #ruby
larissa has joined #ruby
zarul[afk] has quit [Quit: Leaving]
<ponga> so &:x and &x does completely different things?
<ponga> as how ruby is implemented to do so?
<Hanmac> ponga: yes
<ponga> why didn't my tutorial page tell me that
<DouweM> &x calls #to_proc on whatever's in variable x. :x is just an object that can be in variable x
<Hanmac> because &x is the variable x
<ponga> *angry face
<DouweM> ponga: there's not much new to undetstand here
<DouweM> ponga: & prefix calls #to_proc on its subject
<benzrf> Macaveli: debatably?
mark_locklear has joined #ruby
<DouweM> :x is just a Symbol object
<Macaveli> benzrf, ?
benzrf is now known as benzrf|offline
Es0teric has joined #ruby
<ponga> hang on, then what happens in like &to_s instad of &:to_s ? just an syntax error?
benzrf|offline is now known as benzrf
Faris has quit [Ping timeout: 276 seconds]
<benzrf> Macaveli: u still need to merge either way
<DouweM> of course not, in that case to_s is just interpreted as a variable
<benzrf> but rebasing might make your history appear cleaner
<DouweM> & doesn't need a symbol at all. anything can follow &
<benzrf> to be precise
<DouweM> `var = :x; &var` is fine
<benzrf> anything following & has to_proc called on it
<benzrf> then passed as the method's block
<ponga> so its matter with 'to_s' method? not &?
haroldwu has joined #ruby
<shevy> >> var = :x; &var
<benzrf> same as how foo(*bar) expands a list and def foo(*bar) captures into one...
<eval-in> shevy => /tmp/execpad-4c25ef1fcd8e/source-4c25ef1fcd8e:2: syntax error, unexpected &, expecting keyword_end ... (https://eval.in/136945)
<shevy> syntax error!
<DouweM> shevy: shad ahp
<DouweM> ponga: reread our explanations. I think you're missing something
<shevy> lol
<benzrf> foo(&bar) sends in a proc and def foo(&bar) captures the block into one
fannye has joined #ruby
dANOKELO_ has joined #ruby
<DouweM> benzrf: you have a knack of making things more confusing to newbies :P
<ponga> DouweM, i will now but one last question please did ' :to_s' convert method into symbol?
<shevy> it's because of his haskell past
<ponga> then the symbol was called as proc?
<shevy> they always need to explain the whole universe when it is as little as explaining a monad
phoo1234567 has joined #ruby
<Macaveli> benzrf, thanks for the intel
<DouweM> ponga: :to_s is just a regular symbol, not relation to any method. &:to_s calls #to_proc on the Symbol object :to_s
<shevy> like the IO monad
<benzrf> DouweM: fu ur rong
<benzrf> shevy: it is simple
<shevy> you youngins have an awful slang
<ponga> ok now i really comprehended it
<DouweM> ponga: because of the implementation of #to_proc on Symbols, it returns a proc that will call the method by the same name as the symbol
<benzrf> ponga: observe
<shevy> pong can you explain when to use & but not : at the same time?
<ponga> i never thought nor knew Symbol object :to_s existed in first place
paulfm has joined #ruby
<benzrf> >> some_proc = :to_s.to_proc; some_proc.call 3
<eval-in> benzrf => "3" (https://eval.in/136946)
<benzrf> seemant: ?
<benzrf> *see?
<shevy> seemant see!
<ponga> shevy: no i can't tutorial doesn't teach me that
<benzrf> if you have a proc or proc-like that you want to use instead of a block in your code, you pass it in with &
<DouweM> ponga: symbols are not some Hash magic. they're efficiently saved objects that can be referred to by name in code, making them very useful in combination with hashes
<shevy> ponga hehe
<DouweM> ponga: but symbols are just symbols
<shevy> symbols are objects?
<DouweM> as exposed in Ruby, yeah
<benzrf> ponga: to be precise, symbols are internally stored as ints, and ruby has an internal table of which int corresponds to which name for a symbol
<DouweM> anything is an object :P
Faris has joined #ruby
<DouweM> or everything, rather
<tobiasvl> :to_s.to_proc just says "take the method which name I just gave you as a symbol, and turn it into a proc)
<ponga> shevy, exactly, tutorial never taught me can i explain "can you explain when to use & but not : at the same time"
<ponga> and requested me to proceed
ruukasu has joined #ruby
dANOKELOFF has quit [Ping timeout: 276 seconds]
<ponga> :(
<ruukasu> is your mom and object?
ruukasu has left #ruby ["Leaving"]
<benzrf> ruukasu no
<shevy> ponga yeah but you know when to use :
<Hanmac> ponga: funy thing is that you can use method objects too:
<Hanmac> >> [2,3,4].map(&5.method(:*))
<eval-in> Hanmac => [10, 15, 20] (https://eval.in/136948)
<shevy> ponga and now you should have understood when to use &
<shevy> ponga now you only must combine the two!
Es0teric has quit [Quit: Computer has gone to sleep.]
<shevy> god
<shevy> Hanmac's code is BY FAR the ugliest
<ponga> yeah..kinda took all people's fuss here and around sorry :(
<DouweM> ponga: & prefix is .to_proc suffix/method call, that's all you need to know :P
<ponga> now i can use both and combine
<DouweM> Symbol#to_proc happens to be implemented in a clever way
Beoran_ has quit [Ping timeout: 250 seconds]
donnoc has joined #ruby
Morkel_ has joined #ruby
sk87 has joined #ruby
Morkel has quit [Ping timeout: 240 seconds]
Morkel_ is now known as Morkel
jonno11 has joined #ruby
<benzrf> Hanmac is absolutely disgusting
* benzrf pukes
<olivier_bK> i cant find how to indent my params in my php file https://gist.github.com/anonymous/743042dcaf8b1e84bd64
<ponga> so to_s object symbol exists in ruby library in the first place
wethu has joined #ruby
<ponga> did i understand this right
<benzrf> olivier_bK: php is disgusting
<Hanmac> benzrf: ruby is a giant universal tool kit box ... and even if you use a spoon when you would need a knife it still works as you want ;P
<DouweM> :to_s :pong :whatever.. symbols are just generated on the fly like strings "to_s" "pong" "whatever". ther's no "predefined list" in standard library
<olivier_bK> i know i'm not trying to develop anything in php but in ruby
meatherly has joined #ruby
<olivier_bK> benzrf, :)
<DouweM> olivier_bK: your code is bad and you should feel bad
<DouweM> olivier_bK: so, what are you trying to accomplish?
wethu has quit [Client Quit]
<benzrf> olivier_bK: what you are doing is an abomination and i hope you feel bad
<benzrf> oh shit DouweM beat me to it
<olivier_bK> DouweM, what do you mean by my code is bad ?
<DouweM> olivier_bK: that was mostly in reference to your use of php. but your code is indented crazy
<tobiasvl> agh
<tobiasvl> let me reindent that for you
<shevy> olivier_bK you need to write simpler code and be consistent
<DouweM> and wtf are you trying to do with that php file
<crome> DouweM: maybe it was indentional
* crome hides
<shevy> a = Array.new
<shevy> a = File.readlines("licence_ze.php")
<shevy> olivier_bK why do you do this, it overwrites a
Es0teric has joined #ruby
<Hanmac> >> Symbol.all_symbols.size
<eval-in> Hanmac => 2411 (https://eval.in/136949)
AliRezaTaleghani has left #ruby [#ruby]
mjs2600 has joined #ruby
<Hanmac> DouweM: do you mean this as "predefined list" ?
bluOxigen has joined #ruby
<DouweM> hehe yeah I knew I was gonna hear about that
bambuka has quit [Quit: Saliendo]
<DouweM> Hanmac: but it's not like you can only use those 2411 and not make any of your own. which I think ponga was suggesting
karmatr0n has quit [Remote host closed the connection]
r_rios has quit [Remote host closed the connection]
<DouweM> Hanmac: but you said every variable and method gets a symbol automatically? makes sense for def statements in 2.1, but vars too?
<olivier_bK> shevy, i just corrected thanks
<tobiasvl> better indentation
<tobiasvl> and also do..end instead of braces on that one block
<olivier_bK> i had not seen
lukaszk has left #ruby ["WeeChat 0.4.3-dev"]
<tobiasvl> }} is not... very pretty
<ponga> DouweM i was wondering what really happened in the back of ruby
<DouweM> tobiasvl: something's still not right
<DouweM> tobiasvl: see line 2/3 and a superfluous end?
sambao21 has quit [Quit: Computer has gone to sleep.]
<tobiasvl> agh
<tobiasvl> fixed
<shevy> olivier_bK yeah, always try to write minimal code to achieve what you need
<tobiasvl> is line 6 considered good practice?
<DouweM> tobiasvl: pretty sure it's not
<tobiasvl> I thought not
<crome> shevy: but I hope I dont mean "always try to write the least code in character count to achieve what you need"
Faris has quit [Ping timeout: 258 seconds]
<crome> I -> you
<crome> weird typo
<shevy> if that is doable, do that
meatherly has quit [Remote host closed the connection]
<shevy> my favourite temp variable is _
<DouweM> tobiasvl: but I guess it works for date validation
rm_ has joined #ruby
<DouweM> tobiasvl: (took me a little while to see what was going on)
<tobiasvl> yeah
<DouweM> which is a bad sign
<shevy> [1, 3, 2, 10, 5].sort.join(' ') ruby
<shevy> vs
Faris has joined #ruby
<shevy> sort(c( 1, 3, 2, 10, 5 )) R
<DouweM> olivier_bK: why don't you just pass the method a Date object instead of a string representation that you then need to validate?
garndt has joined #ruby
emaxi has joined #ruby
randomnick_ has quit [Quit: Leaving]
<shevy> but the weirdest part is function definitions
dANOKELO_ has quit [Read error: No route to host]
<shevy> foo = function()
Hackbinary has quit [Read error: Connection reset by peer]
<crome> its javascriptey
Beoran_ has joined #ruby
dANOKELOFF has joined #ruby
Hackbinary has joined #ruby
<olivier_bK> shevy, you talking about me ?
<ponga> 홋 man with a hat
<shevy> olivier_bK hmm? which part?
<shevy> only the line that included your nick, not the other lines :)
gizmore has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<olivier_bK> DouweM, the user send a date by socket and i need to check if the date %Y-%m-%d
phutchins has quit [Ping timeout: 276 seconds]
<olivier_bK> what is your advice ?
<DouweM> that doesn't sound like it should be in that method
jamto11 has joined #ruby
<olivier_bK> shevy when you say shevy> but the weirdest part is function definitions
<DouweM> olivier_bK: validate in your socket reader, parse the date, pass the parsed and validated date to the update method
<shevy> olivier_bK in R
BalkM has quit [Ping timeout: 240 seconds]
jonno11 has quit [Ping timeout: 276 seconds]
<DouweM> or rather nog in your socket reader but in the command-specific handler
phutchins has joined #ruby
<olivier_bK> DouweM, I'm all ears
<DouweM> I have no idea what the rest of your code looks like, but that date validation shouldbe in the update method
<DouweM> the update method shouldn't be called unless the data's been validated. so preferably with a Date object rather than the possible-faulty string representation
<olivier_bK> shevy, in R ??
<shevy> olivier_bK yea
<olivier_bK> what is R
jeffreybaird has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
fayimora has quit [Remote host closed the connection]
jbellone has quit [Remote host closed the connection]
ballPointPenguin has quit [Remote host closed the connection]
garndt has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
culturelabs has quit [Remote host closed the connection]
zrl_ has quit [Remote host closed the connection]
JonathanNeal has quit [Remote host closed the connection]
dioms_ has quit [Remote host closed the connection]
mrgoodcat has quit [Remote host closed the connection]
freerobby has joined #ruby
BalkM has joined #ruby
jamto11 has quit [Ping timeout: 276 seconds]
ddv has quit [Changing host]
ddv has joined #ruby
afreidah1 has joined #ruby
Rix has quit [Remote host closed the connection]
simplyaubs has joined #ruby
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
danshultz has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
dANOKELO_ has joined #ruby
dANOKELOFF has quit [Read error: Connection reset by peer]
<ponga> what does lambda stand for
<ponga> anyone know this myth :P
<ponga> i just encountered lambda page of tutorial and laughed cos it sounds like a word in my mother tongue
wethu has joined #ruby
<benzrf> ponga: anon. functions are called lambdas because the greek letter lambda was used in the 'lambda calculus'
<benzrf> which is the basis for some kinds of functional programming
<benzrf> most languages gained 'lambda' as a term for an anon. function via lisp iirc
<shevy> do you now know what lambda means ponga
nkts has left #ruby [#ruby]
<ponga> nop
<shevy> benzrf, how does a monad routine differ from a lambda calculus?
agjacome has quit [Quit: leaving]
karmatr0n has joined #ruby
<shevy> ponga you capture some crap into a proc object
<shevy> x = Proc.new { 5*5 }
<shevy> x[] # will give back 25
dANOKELO_ has quit [Read error: Connection reset by peer]
simplyaubs has quit [Quit: simplyaubs]
<ponga> ah
<ponga> no
<ponga> shevy: the literal meaning
<shevy> lambda is a different way of writing Proc.new except that there is some difference with default arguments I think
<DouweM> ponga: lambda, proc and blocks in Ruby are basically the same thing. note the basically, there are some small differences in semantics
<ponga> no i wanted to know if it was english or what
<shevy> I have no idea and never wanted to find out
ndrei has quit [Ping timeout: 276 seconds]
<ponga> lol
dANOKELOFF has joined #ruby
<DouweM> lambda is a programming term
<shevy> it's in the greek alphabet
dioms_ has joined #ruby
<shevy> looks somewhat like a n
<DouweM> yeah, it was a greek letter first :P
<DouweM> more like a flipped y
ellbot has joined #ruby
<shevy> a n with a tilde
iamjarvo has joined #ruby
mroth has joined #ruby
<DouweM> capital lambda looks like a flipped V
<shevy> and slanted
havenwood has joined #ruby
jarto has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
jarto has quit [Remote host closed the connection]
<shevy> DouweM that should be worth 7 dots
<shevy> as you said y is worth 7
<DouweM> shevy: haha
MrJoshua has quit [Quit: MrJoshua]
<DouweM> shevy: a regular written lambda doesn't have the serifs though
<shevy> ponga do you know what lambda calculus is?
<DouweM> not necessarily anyway
DietBacon has quit [Remote host closed the connection]
darkaer_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<shevy> history
creativeembassy has joined #ruby
<shevy> "The original system was shown to be logically inconsistent in 1935 when Stephen Kleene and J. B. Rosser developed the Kleene?Rosser paradox."
darkaer has quit [Ping timeout: 245 seconds]
darkaer_ is now known as darkaer
<benzrf> yep
<DouweM> I have no idea what lambda calculus is
DukeTogo13 has joined #ruby
octarine has joined #ruby
dANOKELO_ has joined #ruby
<benzrf> DouweM: u srs m8
<tobiasvl> lambda calculus <3
<benzrf> u know what a turing machine is right
dANOKELOFF has quit [Read error: No route to host]
<benzrf> tobiasvl: o/
<DouweM> benzrf: yea
<benzrf> DouweM: lambda calc. is a much more elegant and simple model of universal comp
<shevy> does not strike me as simpler
<benzrf> DouweM: lambda calc. is a formal language/system
<benzrf> DouweM: expressions may be:
<benzrf> 1. a variable (i.e. foo)
ellbot has quit [Ping timeout: 265 seconds]
<benzrf> 2. function ap (i.e. (f arg))
<tobiasvl> and also it looks a lot like lisp/scheme (except that lisp has a lot of syntactic sugar compared to lambda calculus of course)
<ponga> DouweM, basically i could use lambda as proc
<benzrf> 3. a lambda (i.e. \arg.expr)
<benzrf> DouweM: that is it period
<ponga> and only slight semantic difference?
<benzrf> DouweM: it is turing complete
havenwood has quit [Ping timeout: 265 seconds]
<benzrf> :-D
<DouweM> benzrf: ain't that some shit. I read up on it some more when I'm done studying :P
<benzrf> DouweM: example:
<benzrf> ((\x.(x x)) (\x.(x x)))
<benzrf> ^infinitely recursive iirc
<benzrf> in ruby syntax that is:
JonathanNeal has joined #ruby
<shevy> very simple
<benzrf> proc {|x| x.call(x)}.call(proc {|x| x.call(x)})
<benzrf> tobiasvl: it's just a variation on ld calc
sailias has joined #ruby
<tobiasvl> yep
gregf has quit [Quit: WeeChat 0.4.3]
<tobiasvl> your definition is basically SKI tbh
<DouweM> benzrf: why the hell would I want that
<benzrf> just an example :U
<benzrf> *of an expression
<DouweM> all rgiht :P
<DouweM> yeah I get the syntax
<benzrf> kk
<benzrf> anyway lisp was originally based off of the ldcalc iirc
<benzrf> lambda was an arbitrary greek letter i think
<benzrf> the \ was originally a lambda
<benzrf> \ is just an ascii representation
<benzrf> lisp used 'lambda' to mean an anon. func. like in the calc, and from there we have the name in a shitton of other langs
yfeldblum has joined #ruby
alexju has joined #ruby
garndt has joined #ruby
<benzrf> DouweM: notice that all functions in the lambda calc are 1-arg'd
<benzrf> *have arity 1
<benzrf> if u want multiple args u must manually write out currying
<DouweM> why is that
<benzrf> because it's simpler
<DouweM> ah right, I know that from Haskell
<benzrf> haskell has sugar for currying
<benzrf> calc does not
<DouweM> ah
<tobiasvl> it's simpler and it's equivalent
<benzrf> btw haskell and currying are named after haskell curry
<benzrf> one major pioneer of this kind of compsci
<DouweM> I know
<benzrf> kk
<benzrf> anyway i g2g see u
Lewix has joined #ruby
<DouweM> bye
sambao21 has joined #ruby
bthesorceror has joined #ruby
benzrf is now known as benzrf|offline
dANOKELOFF has joined #ruby
dANOKELO_ has quit [Read error: No route to host]
Photism2 has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
iamjarvo has quit [Ping timeout: 250 seconds]
poikon has quit [Remote host closed the connection]
Guest51401 has joined #ruby
roolo has quit [Quit: Leaving...]
yuhsien_ has joined #ruby
thomasxie has joined #ruby
swingha has joined #ruby
dik_dak has joined #ruby
chris_thomson has joined #ruby
Guest51401 has quit []
postmodern has quit [Quit: Leaving]
senayar has quit [Remote host closed the connection]
Photism has joined #ruby
withnale has quit [Remote host closed the connection]
poikon has joined #ruby
culturelabs has joined #ruby
swingha has quit [Quit: swingha]
dkamioka has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
fayimora has joined #ruby
zrl_ has joined #ruby
dANOKELOFF has quit [Read error: Connection reset by peer]
dANOKELOFF has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
luckyruby has joined #ruby
dunix has joined #ruby
Melpaws has quit [Ping timeout: 250 seconds]
rkr090 has joined #ruby
dkamioka has quit [Remote host closed the connection]
Adran has quit [Ping timeout: 240 seconds]
Photism has quit [Quit: Leaving]
ballPointPenguin has joined #ruby
Adran has joined #ruby
jbellone has joined #ruby
AdmirableSnackba has joined #ruby
_justin has joined #ruby
dANOKELO_ has joined #ruby
Photism has joined #ruby
jeffreybaird has joined #ruby
chris_thomson has quit [Quit: Zzz...]
Melpaws has joined #ruby
mrgoodcat has joined #ruby
enebo has joined #ruby
gregf has joined #ruby
Geo has joined #ruby
larissa has quit [Quit: Leaving]
kpshek has joined #ruby
dyoko has joined #ruby
dANOKELO_ has quit [Client Quit]
Lucky_Red has quit [Quit: Leaving...]
dANOKELOFF has quit [Ping timeout: 276 seconds]
Tichodroma has joined #ruby
roolo has joined #ruby
momomomomo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mpajor_o15 is now known as mpajor
mpajor is now known as mpajor_op5
Melpaws has quit [Ping timeout: 265 seconds]
maasha has joined #ruby
mrmargolis has joined #ruby
<maasha> what is the preferred way to document Ruby nowadays?
dyoko has quit [Quit: Leaving.]
* maasha is looking at yard
<workmad3> maasha: by copy-pasting it into a word document and using review comments
bluOxigen has joined #ruby
<ponga> what IDE do you guys use for ruby
nvrch has quit [Quit: nvrch]
lw has quit [Quit: s]
blueOxigen has joined #ruby
timgauthier has joined #ruby
<Xeago_> vim
<timgauthier> what the heck is a § key... man some people post really unhelpful things sometimes. oh hey ruby!
<maasha> workmad3: you must be mad :o) word docs?
<ddv> ponga: intellij ultimate
Melpaws has joined #ruby
<timgauthier> workmad3 still here? :P
<workmad3> timgauthier: I'm (almost) always here :)
vpretzel is now known as vpretzel|firefig
<ponga> so many ide for ruby :o
<timgauthier> I know ;)
<ponga> which shoulda use
<shevy> your brain
<workmad3> timgauthier: § is a simoleon...
vpretzel|firefig is now known as vic|firefighting
<ponga> truth
<shevy> syntax highlighting also helps
<ponga> lol
ashp has left #ruby ["Leaving"]
cookiebow has joined #ruby
<workmad3> timgauthier: as for why apple decided to put one on their keyboards... I've never figured that out... sponsership from EA maybe?
<shevy> ponga I use bluefish 1.0.7
<Xeago_> § is a paragraph marker
<timgauthier> i knew it looked familure... but why is that a "keyboard shortcut" showing up in a screen flow and why are people saying to use that as a key you press as as shortcut!?
sambao21 has joined #ruby
<timgauthier> it isn't ON the keyboard, i mean you can type it yea. but actually now that i remember that, its just a generic currency symbol
<DouweM> it's not currency, it's paragrapg
<Xeago_> it's not a currency symbol
<DouweM> and it's on the keyboard for me
<Xeago_> same here
<timgauthier> § is a paragraph symbol?
<workmad3> timgauthier: it's on the keyboard for me... top-right just under <esc>
<workmad3> *left
<timgauthier> where I have ~
<Xeago_> doesn't even need modifier keys
<tobiasvl> §§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§§
<DouweM> §§§§§§§§
<DouweM> yup
<tobiasvl> european keyboards are easy for lawmakers
<Xeago_> timgauthier: you probably have an en_US keyboard
<timgauthier> ooh, yeah you guys got them fancy european keyboards
<timgauthier> yea i do
<Xeago_> we have en international keyboard
<Xeago_> s
paolooo has joined #ruby
<DouweM> Yeah
bluOxigen has quit [Ping timeout: 240 seconds]
sambao21 has quit [Client Quit]
<timgauthier> I wonder what the equivalent keyboard shortcut is on the en_US keyboard
mr_bignum has joined #ruby
<workmad3> Xeago_: what's annoying is that I'm using a en_us dvorak layout...
<workmad3> Xeago_: and yet that key is *still* a goddamn §
<timgauthier> i love Dvorak, i should use it again
<shevy> I use a german keyboard
george2 has joined #ruby
<workmad3> even on my external keyboard where it has a backtick and pipe key...
<shevy> it is very disciplined
<timgauthier> ... weird.
<timgauthier> have you set the keyboard under international.. yeah you set it to Dvorak there... i'd honestly call applecare ;)
<workmad3> timgauthier: cba
<workmad3> `
<timgauthier> complain until they put an engineer on
dima_ has joined #ruby
<timgauthier> yeah, sketch isn't using that as the same thing, so not sure
luluapple has joined #ruby
sambao21 has joined #ruby
<timgauthier> its option 6
<timgauthier> yeah weird key to put a shortcut on
mr_snowf1ake has quit [Ping timeout: 240 seconds]
vc7 has quit []
<timgauthier> anyhow, 4 hours of sleep was sufficient, i must return to erb
cbreeze has joined #ruby
sdwrage has joined #ruby
lukec has joined #ruby
osvico has quit [Read error: Connection reset by peer]
paolooo has quit [Client Quit]
paolooo has joined #ruby
ItSANgo has quit [Quit: Leaving...]
osvico has joined #ruby
zachallett has joined #ruby
MattStratton has joined #ruby
senayar has joined #ruby
dima_ has quit [Ping timeout: 258 seconds]
sdwrage has quit [Client Quit]
meatherly has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<timgauthier> anyone remember how to make finder open new windows or tabs to the same location as the current finder window?
Geo has quit []
phinfonet has joined #ruby
<timgauthier> !g open finder window to the same path as current window
arubincloud has joined #ruby
gizmore has joined #ruby
mary5030 has joined #ruby
ascarter has joined #ruby
Nukepuppy has joined #ruby
freerobby has joined #ruby
jamto11 has joined #ruby
dyoko has joined #ruby
dyoko has left #ruby [#ruby]
<timgauthier> wow... none of these results are what i want.. having to turn on path view and then click there isn't an answer
<timgauthier> I thought there was an option and or a keyboard shortcut!
gaussblurinc has quit [Quit: Leaving.]
<ddv> timgauthier: first Google then ask
<timgauthier> i formed my question in my text box then googled, but yeah sorry bout that ddv
<timgauthier> but now that i've googled, do any of you have a hack?
<ddv> There is no excuse for your behaviour
ndrei has joined #ruby
<timgauthier> i don't intend to have or make an excuse
danijoo_ has quit [Read error: Connection reset by peer]
zz_jrhorn424 is now known as jrhorn424
danijoo has joined #ruby
<timgauthier> :P you get to love me the way i am, broken and annoying
<timgauthier> shevy, wanna do some php with me?
<timgauthier> we could do some lines together!
creativeembassy has quit [Quit: FO SHO]
blackmesa has joined #ruby
rudisimo has joined #ruby
creativeembassy has joined #ruby
zegerjan has quit [Ping timeout: 240 seconds]
<crome> well, that escalated quickly
fieldfirst has quit [Ping timeout: 245 seconds]
<shevy> timgauthier no
Kruppe has quit [Quit: ZNC - http://znc.in]
<timgauthier> :P why waste time crome
dblessing has quit [Quit: dblessing]
emergion has quit [Ping timeout: 260 seconds]
mansi has joined #ruby
ehc has joined #ruby
Kruppe has joined #ruby
luluapple has quit [Quit: ZNC - http://znc.in]
gregf has quit [Quit: WeeChat 0.4.3]
ponga has quit [Quit: Leaving :)]
afreidah1 has joined #ruby
omosoj has joined #ruby
sdelmore has joined #ruby
iamjarvo has joined #ruby
mannycalavera has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
jeregrine has joined #ruby
skaflem has quit [Ping timeout: 250 seconds]
dtcrshr has joined #ruby
<mannycalavera> I get "SSLv3 read server certificate B: certificate verify failed" when trying to fetch a page using Mechanize but not when using CURL. Does it use different certs? I tried to use the curl.haxx.se/ca/cacert.pem for mechanize but didn't work. Any ideas?
<mannycalavera> How can I debug what cert I need?
luluapple has joined #ruby
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
<timgauthier> the Wat talk is good.
<timgauthier> mannycalavera i don't know your question/answer
afreidah1 has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
havenwood has joined #ruby
skaflem has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
Geniack_ is now known as Geniack
ellbot has joined #ruby
nateberkopec has quit [Quit: Leaving...]
kevind has joined #ruby
nateberkopec has joined #ruby
<workmad3> mannycalavera: you need a CA bundle that the server provides a route into
<mannycalavera> workmad3: And where/how can I find that?
<workmad3> mannycalavera: depends on your distro and what sites you're hitting
havenwood has quit [Ping timeout: 245 seconds]
<workmad3> mannycalavera: your distro probably has a CA bundle as part of its openssl install that has a lot of the common CA root certs
canton7-mac has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
Melpaws has quit [Quit: Leaving.]
<workmad3> mannycalavera: if you need to access a site that has a cert from a different CA, you need to grab that root cert and bundle it in or use just that root cert
Melpaws has joined #ruby
fabrice31 has joined #ruby
<Macaveli> Anyone that can help me with my git feature - vimdiff - vim-variant problems http://stackoverflow.com/questions/23086249/git-flow-feature-creation-and-rebasing-features
<mannycalavera> workmad3: Okay, but how can I find out what cert that site uses? (https://www.double.net)
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
<arubincloud> It was issued by COMODO.
pwh has joined #ruby
CorySimmons has joined #ruby
<workmad3> mannycalavera: in general, there's lots of info on the web about how to manage and investigate certs with openssl, and it's not ruby-specific :)
sigurding_ has joined #ruby
Briareos1 has joined #ruby
sigurding has quit [Ping timeout: 240 seconds]
sigurding_ is now known as sigurding
Melpaws has quit [Ping timeout: 276 seconds]
jlast has joined #ruby
afreidah1 has joined #ruby
senayar has quit [Remote host closed the connection]
andy___ has joined #ruby
senayar has joined #ruby
kobain has joined #ruby
treehug88 has joined #ruby
<mannycalavera> workmad3: okay, thanks. Can't I just use the same CA bundle with Ruby as CURL uses? Why do they use different?
freerobby1 has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
jjbohn has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
predator217 has quit [Ping timeout: 258 seconds]
meinside has quit [Remote host closed the connection]
poguez_ has quit [Remote host closed the connection]
michaelchum has quit [Remote host closed the connection]
mjc_ has quit [Remote host closed the connection]
Jakee`__ has quit [Remote host closed the connection]
CJD14__ has quit [Remote host closed the connection]
arubincloud has quit [Remote host closed the connection]
Avahey_ has quit [Remote host closed the connection]
jpinnix____ has quit [Remote host closed the connection]
mostlybadfly has quit [Remote host closed the connection]
dmoe____ has quit [Remote host closed the connection]
cbetta has quit [Remote host closed the connection]
frode15243 has quit [Remote host closed the connection]
ggherdov has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 240 seconds]
ellbot_ has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
vic|firefighting is now known as vpretzel
_tpavel has joined #ruby
sdouglas has joined #ruby
_tpavel has quit [Client Quit]
_tpavel has joined #ruby
momomomomo has quit [Quit: momomomomo]
fabrice31 has joined #ruby
__tpavel has joined #ruby
noop has quit [Ping timeout: 276 seconds]
__tpavel has quit [Client Quit]
_tpavel has quit [Client Quit]
_tpavel has joined #ruby
ellbot has quit [Ping timeout: 276 seconds]
doodlehaus has joined #ruby
chipotle has joined #ruby
tagrudev has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
<jamto11> is it possible to send cookies from my backend rails app on the backend side (im using open-uri)?
__tpavel has joined #ruby
blassing has joined #ruby
<blassing> hey
__tpavel has quit [Client Quit]
_tpavel has quit [Client Quit]
lukec has quit [Quit: lukec]
<blassing> can anyone explain to me what "lambda do || ... end" does ?
momomomomo has joined #ruby
<Morrolan> Have you got a more complete example?
afreidah2 has joined #ruby
<Morrolan> (Upload it to gist.github.com or co, if it's too long)
_tpavel has joined #ruby
<blassing> line 43 on this file
SCommette has joined #ruby
<blassing> it's from Unicorn, a Rack app server
* Morrolan blinks
crystal77 has joined #ruby
mengu has quit []
ItSANgo has joined #ruby
<blassing> I've never seen this before, thought it would be a syntax error
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tichodroma has quit [Quit: leaving]
__tpavel has joined #ruby
arubincloud has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
afreidah1 has quit [Ping timeout: 265 seconds]
<Morrolan> No clue. And yes, I'd have thought it to be a syntax error, too.
<blassing> damn
<blassing> :D
<Morrolan> Even now that I've tried it myself, I can't make sense of it. Sorry, you'll have to wait for someone else. :P
<blassing> I tried lambda do || 1 end
slacko has quit [Quit: Connection closed for inactivity]
ikaros has quit [Quit: Ex-Chat]
<blassing> but even without the ||, it always yields 1 on #call anyway
jpinnix____ has joined #ruby
zoraj has joined #ruby
<mikecmpbll> odd
<blassing> maybe it's a parser hack :D
<blassing> "hey look at me, should be an error but got through"
<jamto11> is it possible to override cookies on a rails backend app?
hamakn has quit [Remote host closed the connection]
m0s^away is now known as m0s
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<bhaak> it seems to be not different than the lambda without ||. both expect 0 argument. for why it's a lambda in the first place, look at the comments at line 30
<mikecmpbll> yeah, it's just no arguments.
thomasxie has quit [Quit: Leaving.]
ccham_ has joined #ruby
cbetta has joined #ruby
duggiefresh has joined #ruby
<blassing> bhaak: cool, but I still don't get the || in it
dima_ has joined #ruby
<mikecmpbll> it's yield arguments
<Morrolan> Eh, derp. It's just the block's arguments.
jaimef has quit [Excess Flood]
<Morrolan> Oh, I'm late. :D
IceDragon has joined #ruby
<mikecmpbll> you might have lambda do |a,b| for example
<blassing> so it's || as empty?
<mikecmpbll> yep.
<Morrolan> I was so focussed on || meaning 'or' that I didn't think of the pipes around a block's arguments. :)
<mikecmpbll> it's no different from not specifying it at all.
<blassing> why the hell is that specified??
<mikecmpbll> beats me.
<Morrolan> Probably leftovers from a time where that lambda used to take argumetns.
<Morrolan> arguments, even.
<bhaak> logically, || is probably the "right" way of declaring no arguments, and leaving out || is the hack and the more convenient way to write it
<blassing> bhaak: well, ok... yes
jaimef has joined #ruby
omosoj has quit [Quit: Leaving]
_tpavel has quit [Quit: Leaving]
__tpavel has quit [Quit: Leaving]
Jakee`__ has joined #ruby
<bhaak> I mean from a parser's perspective
<blassing> sure
fieldfirst has joined #ruby
<blassing> thanks for the help, guys!
chipotle has quit [Quit: cya]
[0x1a]_ has joined #ruby
swi7ch has joined #ruby
Melpaws has joined #ruby
_tpavel has joined #ruby
Melpaws has quit [Client Quit]
mansi has joined #ruby
mostlybadfly has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Melpaws has joined #ruby
rkr090 has quit [Quit: Leaving]
blassing has quit [Quit: Page closed]
madb055 has quit [Ping timeout: 250 seconds]
mansi has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 258 seconds]
jprovazn has quit [Quit: Leaving]
mansi has joined #ruby
ccham_ has quit [Ping timeout: 276 seconds]
Devanon has quit [Quit: WeeChat 0.4.3]
paolooo has quit [Ping timeout: 240 seconds]
_tpavel has quit [Client Quit]
chrisseaton has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
simplyaubs has joined #ruby
_tpavel has joined #ruby
xpirator has joined #ruby
fieldfirst has quit [Ping timeout: 245 seconds]
fieldfirst has joined #ruby
<olivier_bK> how i can chek the result of my variable given_date = Date.strptime(date, format)
<olivier_bK> if it's true ....
ggherdov has joined #ruby
jrdnull has quit [Quit: ZNC - http://znc.in]
Guedes has left #ruby ["Saindo"]
agarie has joined #ruby
<mikecmpbll> olivier_bK: in what sense, check?
<ddv> print, raise, drop a breakpoint
<mikecmpbll> for debugging, for control flow?
Avahey_ has joined #ruby
<olivier_bK> no if the user give the wrong date
<ddv> write tests
poguez_ has joined #ruby
<olivier_bK> like 2014-02-30 or in february you have only 28 day
tpavel has joined #ruby
s3ri0us has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
sdouglas has quit [Remote host closed the connection]
frode15243 has joined #ruby
jrdnull has joined #ruby
emaxi has joined #ruby
chrisseaton has quit [Client Quit]
<canton7-mac> olivier_bK, you get an ArgumentError iirc. Why don't you try it and see what happens?
hamakn has joined #ruby
__tpavel has joined #ruby
dmoe____ has joined #ruby
_tpavel has quit [Client Quit]
tpavel has quit [Client Quit]
__tpavel has quit [Read error: Connection reset by peer]
_tpavel has joined #ruby
olleromo has joined #ruby
<shevy> he wants to know how to proceed I assume
_tpavel has quit [Client Quit]
<olivier_bK> canton7-mac, i know but how i can test if the return is true or nil
<olivier_bK> shevy yes
Mags has joined #ruby
<olivier_bK> i try if given_date .nil?
<olivier_bK> but all the time i get the same result
<shevy> olivier_bK you can check for nil via object.nil?
_tpavel has joined #ruby
<shevy> true.nil? could never be true
CorySimmons has quit [Quit: Bye!]
camilasan has joined #ruby
<shevy> true.is_a? TrueClass should be the only class which will be true
_tpavel has quit [Client Quit]
CJD14__ has joined #ruby
mjc_ has joined #ruby
_tpavel has joined #ruby
Starfoxxes has joined #ruby
Starfoxxes has left #ruby [#ruby]
_tpavel has quit [Client Quit]
meinside has joined #ruby
_tpavel has joined #ruby
predator117 has joined #ruby
pu22l3r has joined #ruby
mannycalavera has quit [Ping timeout: 240 seconds]
_tpavel has quit [Client Quit]
michaelchum has joined #ruby
eka_ has joined #ruby
slawrence00 has joined #ruby
momomomomo has quit [Quit: momomomomo]
cjbottaro has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
eka has quit [Ping timeout: 240 seconds]
duggiefresh has joined #ruby
zigomir has quit [Remote host closed the connection]
simplyaubs has quit [Quit: simplyaubs]
zigomir has joined #ruby
ce_afk is now known as cescalante
omosoj has joined #ruby
sski has quit [Remote host closed the connection]
anarang has quit [Quit: Leaving]
sski has joined #ruby
Celm has joined #ruby
ktun has joined #ruby
emaxi has quit [Ping timeout: 245 seconds]
momomomomo has joined #ruby
dawkirst has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
geggam has joined #ruby
timonv has quit [Remote host closed the connection]
zoraj has quit []
bal has quit [Quit: bal]
sski has quit [Ping timeout: 252 seconds]
Melpaws has quit [Quit: Leaving.]
simplyaubs has joined #ruby
cescalante is now known as ce_afk
axl_ has joined #ruby
momomomomo has joined #ruby
evenix has joined #ruby
Advocation has quit [Quit: Advocation]
donnoc has quit [Quit: WeeChat 0.4.3]
jjbohn has quit [Quit: Leaving...]
atmosx has joined #ruby
_justin has quit [Quit: _justin]
ce_afk is now known as cescalante
weems has quit [Read error: Connection reset by peer]
sidik has joined #ruby
mr_bignum has quit [Remote host closed the connection]
mg^away is now known as mg^
acrussell has joined #ruby
_maes_ has joined #ruby
erobtom2 has quit [Quit: WeeChat 0.4.2]
julio_ has joined #ruby
mityaz has joined #ruby
yfeldblum has joined #ruby
fabrice31 has quit [Remote host closed the connection]
cescalante is now known as ce_afk
srji_ has quit [Quit: leaving]
maasha has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
emaxi has joined #ruby
kitak has quit [Remote host closed the connection]
Advocation has joined #ruby
anarang has joined #ruby
kitak has joined #ruby
baroquebobcat has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
anarang has quit [Client Quit]
anarang has joined #ruby
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
atmosx has quit [Quit: Lost in trance]
jjbohn has joined #ruby
Martxel_ is now known as Martxel
baroquebobcat has quit [Client Quit]
DukeTogo13 has quit [Quit: [BX] Dr. Kavorkian would KILL to use BitchX. Shouldn't you?]
poikon has quit [Remote host closed the connection]
kitak has quit [Ping timeout: 240 seconds]
krandi has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
<olivier_bK> sorry but i have some probleme for check the value of my object given_date
psyko666 has quit [Quit: Leaving]
zachallett has quit []
bthesorceror has quit [Read error: Connection reset by peer]
<shevy> ArgumentError: invalid date
<shevy> you give an invalid date
bthesorceror has joined #ruby
rippa has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<shevy> here is an example of a correct invocation:
<shevy> DateTime.strptime("11/28/2011 05:00", "%m/%d/%Y %H:%M")
apeiros has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
snath has joined #ruby
baweaver has quit [Remote host closed the connection]
danshultz has joined #ruby
yuhsien_ has quit [Quit: Connection closed for inactivity]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<olivier_bK> shevy, it's normal because in february you have only 28 day not 29
<olivier_bK> so i get ArgumentError: invalid dat
djbkd has joined #ruby
m0s is now known as m0s^away
<olivier_bK> but if you change 29 by 28 it's okai
<DouweM> olivier_bK: that's not how strptime works
<DouweM> it either returns a date or raises an error
<DouweM> so you need to rescue the error to handle the invalid case
AlexRussia has joined #ruby
havenwood has joined #ruby
sdelmore has quit [Quit: Leaving.]
toastynerd has joined #ruby
napcae has quit [Quit: leaving]
napcae has joined #ruby
<shevy> olivier_bK, the leap year 2012 works fine DateTime.strptime("02/29/2012", "%m/%d/%Y")
<olivier_bK> 2014
<shevy> yeah, 2014 has no leap year
kevind_ has joined #ruby
deadlock has joined #ruby
<shevy> it must return an error when you provide invalid arguments
ahawkins has quit [Quit: leaving]
<shevy> olivier_bK have you handled errors before in ruby?
Hytosys has joined #ruby
anarang has quit [Quit: Leaving]
danshultz has quit [Ping timeout: 265 seconds]
geggam_ has joined #ruby
<shevy> >> Date::MONTHNAMES[Date.today.month]
<eval-in> shevy => uninitialized constant Date::MONTHNAMES (NameError) ... (https://eval.in/137018)
<shevy> >> require 'date';Date::MONTHNAMES[Date.today.month]
<eval-in> shevy => "April" (https://eval.in/137019)
<olivier_bK> in another script yes
geggam has quit [Ping timeout: 276 seconds]
hooper has joined #ruby
kevind has quit [Ping timeout: 276 seconds]
kevind_ is now known as kevind
pwh has quit []
sdelmore has joined #ruby
danshultz has joined #ruby
AdmirableSnackba has quit [Quit: Connection closed for inactivity]
sdelmore has quit [Client Quit]
jrhorn424 has quit [Quit: ZNC - http://znc.in]
jrhorn424 has joined #ruby
<shevy> hmmm
helpD has joined #ruby
<shevy> I never thought that including a module can be dangerous
chipotle has joined #ruby
<olivier_bK> who ?
<shevy> who?
<olivier_bK> shevy> I never thought that including a module can be dangerous ??
<shevy> yes
lukec has joined #ruby
<shevy> that is a statement
poikon has joined #ruby
<DouweM> haha
<shevy> it was not directed to anyone in particular
<olivier_bK> :)
<shevy> module methods can overwrite methods defined in a class
<DouweM> d'oh
<DouweM> they can call super though
pu22l3r has quit [Remote host closed the connection]
<shevy> yes, but that means I'd have to know which methods are defined in the class before I include the module, or?
soulcake has quit [Quit: ZNC - http://znc.in]
kitak has joined #ruby
kitak has quit [Remote host closed the connection]
<DouweM> yeah
<shevy> hmm
* shevy is thinking very slowly right now.
momomomomo has quit [Quit: momomomomo]
kitak has joined #ruby
<shevy> I came to that when one module I used defined the body method, and including that in a sinatra-based app led to empty pages
nathancahill has joined #ruby
soulcake has joined #ruby
Trynemjoel has quit [Ping timeout: 245 seconds]
krz has joined #ruby
<shevy> since then I realized that the include functionality alone is rather limited
<shevy> you don't get a per-method control of what all gets included or not
arietis has joined #ruby
michaeldeol has joined #ruby
karmatr0n has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
kevinykchan has joined #ruby
yubrew has quit []
danshult_ has joined #ruby
yfeldblum has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
kevinykc_ has joined #ruby
karmatr0_ has joined #ruby
Fretta has joined #ruby
sigurding has quit [Quit: sigurding]
danshult_ has quit [Read error: Connection reset by peer]
MattStratton has joined #ruby
toastynerd has quit [Remote host closed the connection]
sdelmore has joined #ruby
lw has joined #ruby
davispuh has joined #ruby
danshult_ has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
Mags has quit [Quit: Leaving]
ashp has joined #ruby
nomenkun has quit [Remote host closed the connection]
ktun has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago_ has quit [Remote host closed the connection]
geggam_ is now known as geggam
danshult_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
kaliya has quit [Quit: Lost terminal]
axl_ has quit [Quit: axl_]
Morkel has quit [Quit: Morkel]
spinx has joined #ruby
momomomomo has joined #ruby
Hobogrammer_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
senayar has quit []
alexherbo2 has joined #ruby
spinx^ has quit [Remote host closed the connection]
spinx has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danijoo has quit [Read error: Connection reset by peer]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
benzrf|offline is now known as benzrf
<benzrf> DouweM: hows lambdas
pwh has joined #ruby
danijoo has joined #ruby
nateberkopec has joined #ruby
senayar has joined #ruby
Es0teric has joined #ruby
baweaver has joined #ruby
karmatr0_ has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
iamjarvo has quit [Ping timeout: 252 seconds]
spinx^ has joined #ruby
redondos has quit [Excess Flood]
jjbohn has joined #ruby
spinx^ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
spinx^ has joined #ruby
spinx^ has quit [Remote host closed the connection]
yubrew has joined #ruby
iamjarvo has joined #ruby
<benzrf> bye
<certainty> .bye
apeiros has joined #ruby
benzrf is now known as benzrf|offline
danshultz has quit [Read error: Connection reset by peer]
sdelmore has quit [Quit: Leaving.]
jackneill has quit [Quit: WeeChat 0.4.3]
danshultz has joined #ruby
baweaver has quit [Remote host closed the connection]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
_justin has joined #ruby
jhass|off is now known as jhass
bthesorceror has quit [Remote host closed the connection]
madb055 has joined #ruby
vpretzel is now known as vpretzel|1280
axl_ has joined #ruby
Xeago has joined #ruby
sdelmore has joined #ruby
CaptainJet has joined #ruby
charlies_ has joined #ruby
pietr0 has joined #ruby
SilverKey has joined #ruby
dagobah has quit [Quit: Leaving...]
Xeago has quit [Remote host closed the connection]
michaeldeol has joined #ruby
Neener54 has joined #ruby
sputnik13 has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
_5kg has quit [Ping timeout: 250 seconds]
duggiefresh has quit [Remote host closed the connection]
pu22l3r has joined #ruby
momomomomo has quit [Quit: momomomomo]
pu22l3r has quit [Remote host closed the connection]
jason____ has joined #ruby
xerxas has joined #ruby
vky has joined #ruby
Zai00 has quit [Quit: Zai00]
RowdyChild|Away is now known as RowdyChildren
simplyaubs has quit [Quit: simplyaubs]
bthesorceror has joined #ruby
pu22l3r has joined #ruby
sski has joined #ruby
creativeembassy has quit [Quit: FO SHO]
julio_ has quit [Ping timeout: 250 seconds]
blackavr has joined #ruby
julio_ has joined #ruby
dstynchula has joined #ruby
zigomir has quit [Remote host closed the connection]
kevind has quit [Quit: kevind]
maletor has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
djbender has quit [Quit: djbender]
ashp has left #ruby ["Textual IRC Client: www.textualapp.com"]
ndrei has quit [Ping timeout: 250 seconds]
toastynerd has joined #ruby
danshultz has joined #ruby
simplyaubs has joined #ruby
obs has quit [Quit: Konversation terminated!]
zigomir has joined #ruby
mehlah has quit [Quit: Leaving...]
Es0teric has quit [Quit: Computer has gone to sleep.]
ce_afk is now known as cescalante
djbender has joined #ruby
cj3kim has joined #ruby
sski has quit [Remote host closed the connection]
rvraghav93 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
sski has joined #ruby
kobco has joined #ruby
chipotle has quit [Quit: cya]
samuel02 has quit [Read error: Connection reset by peer]
samuel02_ has joined #ruby
cj3kim has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
rvraghav93 has quit [Read error: Connection reset by peer]
dawkirst has joined #ruby
madb055 has quit [Remote host closed the connection]
m0s^away is now known as m0s
madb055 has joined #ruby
yfeldblu_ has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
sdwrage has joined #ruby
zarul has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 245 seconds]
Solnse has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
kevind has joined #ruby
mcrmfc has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
Es0teric has joined #ruby
<timgauthier> HI!
emaxi has quit [Remote host closed the connection]
aantix has joined #ruby
<Senjai> jesus
<Senjai> this channel has had 6115 messages since yesterday
<Senjai> what is wrong with you proplr
emaxi has joined #ruby
<Senjai> people*
toastynerd has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
zigomir has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
<DouweM> yeah...
canton7-mac has quit [Quit: Leaving]
karmatr__ has joined #ruby
darkaer has quit [Ping timeout: 276 seconds]
<shevy> it's because of timgauthier
<shevy> he is responsible for 50% of these
jason____ has quit [Ping timeout: 258 seconds]
iamjarvo has quit [Ping timeout: 252 seconds]
<timgauthier> the net splits are how i hide my activity
mikecmpbll has quit [Quit: ciao.]
<timgauthier> i'm eating bacon flavoured chips, listening to a podcast and writing sass
helpD has quit [Ping timeout: 276 seconds]
benzrf|offline is now known as benzrf
danshult_ has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
danshultz has quit [Read error: Connection reset by peer]
helpD has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
emaxi has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
camilasan has quit [Remote host closed the connection]
<shevy> something sounds wrong there
nichtdiebohne has joined #ruby
<timgauthier> oh and drinking coke!
camilasan has joined #ruby
sepp2k has quit [Quit: Leaving.]
<timgauthier> i'm sure i could throw an asset_tag helper into the scss?
karmatr0n has joined #ruby
wallerdev has joined #ruby
deric_skibotn has joined #ruby
karmatr__ has quit [Ping timeout: 265 seconds]
sdwrage has joined #ruby
djbkd has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
rankine has joined #ruby
rankine has quit [Changing host]
rankine has joined #ruby
zigomir has joined #ruby
camilasan has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
duggiefresh has joined #ruby
djbkd has joined #ruby
zigomir has quit [Remote host closed the connection]
pwh has quit []
mikeg has joined #ruby
djbkd has quit [Remote host closed the connection]
yfeldblu_ has quit [Remote host closed the connection]
camilasan has joined #ruby
aspires has joined #ruby
karmatr0_ has joined #ruby
karmatr0n has quit [Ping timeout: 252 seconds]
karmatr0_ has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
karmatr0n has joined #ruby
blackavr has quit [Ping timeout: 252 seconds]
MattStratton has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
duggiefresh has quit []
fijimunkii has joined #ruby
duggiefresh has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
iamjarvo has joined #ruby
zigomir has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
<crome> drinking coke actually does sound wrong
vlad_starkov has quit [Remote host closed the connection]
bthesorceror has quit [Remote host closed the connection]
karmatr0n has joined #ruby
bthesorceror has joined #ruby
blackavr has joined #ruby
djbkd has joined #ruby
<shevy> and he is using mac
rvraghav93 has joined #ruby
[0x1a]_ has quit [Quit: Connection closed for inactivity]
kobco has quit [Quit: kobco]
swi7ch has quit [Quit: Connection closed for inactivity]
x77686d has joined #ruby
weems has quit [Read error: Connection reset by peer]
zigomir has quit [Remote host closed the connection]
bthesorceror has quit [Ping timeout: 252 seconds]
gregf has joined #ruby
timonv has joined #ruby
helpD has quit [Remote host closed the connection]
xpirator has quit [Quit: Connection closed for inactivity]
Hobogrammer_ is now known as WorkHobo
einarj has quit [Remote host closed the connection]
WorkHobo is now known as HobogrammerWork
cookiebow has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
gregf has quit [Client Quit]
benzrf is now known as benzrf|offline
fijimunkii has quit [Quit: leaving]
pushpak has joined #ruby
karmatr0n has quit [Ping timeout: 258 seconds]
camilasan has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
fijimunkii has joined #ruby
fijimunkii has quit [Remote host closed the connection]
bthesorceror has joined #ruby
<timgauthier> shevy its tempting to take down my old ugly portfolio and replace it even with just this http://timgauthier.com/middleman/
FxK has joined #ruby
<timgauthier> thats what you've been helping me build though ;)
timonv has quit [Ping timeout: 276 seconds]
fannye has quit [Read error: Connection reset by peer]
sarlalian has quit [Read error: Connection reset by peer]
fijimunkii has joined #ruby
<crome> shevy: take no credit for anything!
<crome> it will be used against you
sambao21 has joined #ruby
<timgauthier> crome is smart :D
ghr has quit [Ping timeout: 240 seconds]
Doppp has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
benzrf is now known as benzrf|offline
<shevy> timgauthier I told you you must stop your wicked ways
<shevy> erb is the path to doom
maletor has joined #ruby
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
<shevy> all the <?= cause cancer
<shevy> to the eye
<shevy> mark my words
treehug8_ has joined #ruby
<timgauthier> you CANT EVEN SEE MY WICKEDNESS, I HAVE HIDDEN IT!
eka_ has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Doppp has joined #ruby
Doppp has quit [Changing host]
Doppp has joined #ruby
<timgauthier> but at least using .erb i am learning some ruby, if i used a different template language i'd NEVER learn ruby
Ariadeno has joined #ruby
ktun has joined #ruby
<shevy> I know, it's better to not have to see it
ws2k3 has quit [Ping timeout: 246 seconds]
<shevy> no, you should have stayed with php
<shevy> ruby is about visual beauty
karmatr0n has joined #ruby
<certainty> that's rude
<shevy> erb totally undermines that
<timgauthier> hahaha
<timgauthier> honestly, I agree, i'd be happy to not have the <%
<shevy> ruby is 85% perfect
<certainty> your mum is about visual beauty :p
<shevy> php ranks at about 20%
treehug88 has quit [Read error: Connection reset by peer]
<timgauthier> certainty :P
<shevy> yeah when she was young
eka has joined #ruby
kevind_ has joined #ruby
juni0r has quit [Ping timeout: 246 seconds]
<shevy> timgauthier, why do the <% have to be infiltrated on like every single line?
sirecote has left #ruby [#ruby]
lukec has quit [Quit: lukec]
sebastianb has quit [Ping timeout: 246 seconds]
<certainty> seriously though, i don't understand the ramblings. ERB is ok
<shevy> even in php they just opened up sections like
<timgauthier> naw shevy theres quite a bit of normal HTML in there
heftig has quit [Quit: Quitting]
<shevy> <?php
<timgauthier> i don't think so shevy... i haven't exporimented
baweaver has joined #ruby
Wolland has quit []
<timgauthier> i've honestly tried to make things as few lines as possible, i'm okay with a <% do %> bunch of stuff <% put this variable %> and more html stuff <% end %>
<shevy> ERB.new(<<-'END_PRICE'.gsub(/^\s+/, ""), 0, "", "@price").result b
<shevy> <%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<shevy> <%= PRODUCT[:desc] %>
<shevy> this is no longer a language
<shevy> this is an abomination
baweaver has quit [Remote host closed the connection]
<timgauthier> I just imagine someone who speaks ruby with an impediment
<shevy> like japanese speaking english?
<certainty> luby?
<shevy> timgauthier have you listened to matz speaking yet?
<timgauthier> no more like
ukd1 has joined #ruby
<timgauthier> Uh hi man i want you to do uh this thing uh so you can uh stop uh
samuel02_ has quit [Read error: Connection reset by peer]
kevind has quit [Ping timeout: 240 seconds]
<shevy> hehe
<timgauthier> no i havn't
kevind_ is now known as kevind
<shevy> aha
dawkirst has quit [Remote host closed the connection]
<shevy> well I dont have a current video that can be recommended...
<shevy> but perhaps this one may do, lemme find it
<timgauthier> man, can i make a helper that reads .erb files and replaces instances of uh with <% and uhm with <%= before processing things?
<timgauthier> I THINK I JUST INVENTED A NEW TEMPLATE LANGUAGE
GaryOak_ has joined #ruby
ws2k3 has joined #ruby
samuel02 has joined #ruby
<shevy> it may be a bit boring though, perhaps look only at the beginning to hear him speak, until he makes a joke (he makes many jokes, the problem is trying to understand what he says as he tells them)
<timgauthier> seriously though shevy, would that be a helper?
<shevy> which one
dawkirst has joined #ruby
<shevy> the video?
<timgauthier> no
<timgauthier> the uh to <% and hum <%=
anicet has joined #ruby
sarlalian has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
<workmad3> timgauthier: no, you couldn't do that as just a helper
<timgauthier> ah, bummer
<shevy> not really timgauthier
anicet is now known as Guest92564
<workmad3> timgauthier: you'd need to do that as a pre-processor that parses the template before passing the result off to erb
<shevy> I think little improvements would not help anyway, it would still be ugly
<timgauthier> hahaha
sarlalian has quit [Client Quit]
<certainty> workmad3: now you have (m)4 problems :)
<timgauthier> why did matz make ruby?
sarlalian has joined #ruby
<certainty> to make shevy happy
<workmad3> timgauthier: because he was bored?
axl_ has quit [Quit: axl_]
rankine has quit [Quit: leaving]
<timgauthier> japanese people are weird when they get bored
Ariadeno has quit [Quit: HydraIRC -> http://www.hydrairc.com <- IRC with a difference]
f0ster has joined #ruby
<shevy> certainty lol
<shevy> timgauthier he was a C and C++ hacker for a long time
<timgauthier> listening to him talk is not that different, I mean i listen to germans try to speak german all of the time
Spami has joined #ruby
<shevy> timgauthier so he must have used scripting languages before, be it awk, sed, grep or perl
<shevy> yeah
sarlalian has quit [Client Quit]
<shevy> there are some awful german dialects
<certainty> germans trying to speak german are funny
<shevy> sächsisch for instance
luckyruby has quit [Remote host closed the connection]
sebastianb has joined #ruby
<shevy> certainty sächsisch is your dialect?
sarlalian has joined #ruby
<workmad3> I wonder if it's as funny as watching a brummie try to speak english...
<shevy> a brummie?
<certainty> shevy: nope, i originally come from a city near berlin, i used to have that dialect
<workmad3> shevy: someone from birmingham
Guest92564 is now known as juni0r
<certainty> i don't have one anymore though. I can however speak several
samuel02 has quit [Remote host closed the connection]
<shevy> workmad3 amazingly enough, I dunno why, but even though we were taught british english in school, I find it much harder to understand people from the UK than from the USA when they speak english respectively
samuel02 has joined #ruby
creativeembassy has joined #ruby
sreesaran has joined #ruby
<workmad3> shevy: what accent do you think of as 'british english' though?
geggam has quit [Ping timeout: 240 seconds]
<workmad3> shevy: we only have... a few hundred
davy has joined #ruby
sepp2k has joined #ruby
<certainty> i think he's referring to oxford english
<shevy> like that bloopers https://www.youtube.com/watch?v=A4VnHf1QmLY it was so hard to understand them :(
<shevy> workmad3 well, tony blair speaks a good accent, I easily understand what he says even though he is a huge troll
<shevy> monty python crew is harder to understand but it is doable
<shevy> but those guys in the bloopers... no chance when they speak fast
emaxi has joined #ruby
<tcstar> I'm not german but i speak 4 languages... English, Profanity, Sarcasm and Real Shit...
<certainty> :D
<timgauthier> japanese nerds are funny too, they have the nerd tendency to talk far too much about details that are unimportant in the overall big picture
<timgauthier> and japanese people who get super detailed about some things as they speak
<certainty> timgauthier: that's not only japanese nerds
dstynchu_ has joined #ruby
<timgauthier> certainty yeah, i hit enter by accident
<workmad3> shevy: yeah, that's a london accent
<shevy> on the other hand, US dialects, even those weird texas ones, I never have had as much difficulties with these as I had with the UK accents
<tcstar> Yeah that's most nerds.... reminds me of sheldon from big bang theory actually
geggam has joined #ruby
djbender has quit [Quit: djbender]
<f0ster> Im going to write a class that is sort of static/singleton and I'm just cu;rious what pattern other developers use in ruby
<workmad3> shevy: the 'purest' accent is probably Simon Bird's in the bloopers
bthesorceror has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 265 seconds]
<certainty> f0ster: that opens up the eigenclass and the stuff in there is defined on that
<workmad3> shevy: the guy with the glasses :)
bthesorceror has joined #ruby
benzrf|offline is now known as benzrf
<f0ster> certainty: never heard of that.. I just know that it is accessed almost like it is static, e.g. FactoryGirl.lint
pwh has joined #ruby
<workmad3> shevy: could be worse though... https://www.youtube.com/watch?v=btEpF334Rtc
<certainty> f0ster: yes that's true
samuel02 has quit [Ping timeout: 276 seconds]
danman_ has joined #ruby
<timgauthier> oh man that blooper when he walks into the camera
<timgauthier> as a camera operator, so funny
bthesorceror has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
Lewix has joined #ruby
dstynchula has quit [Ping timeout: 258 seconds]
<certainty> workmad3: omg, what's that?
tungd has quit [Ping timeout: 250 seconds]
bthesorceror has joined #ruby
<workmad3> certainty: 'that' is the wurzels
emaxi has quit [Ping timeout: 245 seconds]
<workmad3> certainty: and I wish it was a spoof... but they're a real band
<certainty> oh boy :D
<workmad3> certainty: they came from about 20 miles down the road from where I grew up
zigomir has joined #ruby
<certainty> https://www.youtube.com/watch?v=DMtwq3QtddY ... for those interested. Even interesting if you're not into clojure
<workmad3> certainty: and they're difficult for *me* to understand :D
olivier_bK has quit [Ping timeout: 276 seconds]
<certainty> all i understand is mumble mumble more mumble harvester mumble key mumble
sreesaran has quit []
<workmad3> certainty: I got a brand new combine harvester and I'll give you the key
<workmad3> certainty: cos I got 20 acres, and you got 43, but I got a brand new combine harvester and I'll give you the key...
afreidah2 has quit [Ping timeout: 245 seconds]
karmatr0n has quit [Ping timeout: 252 seconds]
<workmad3> certainty: and that's a reasonably understandable west-country accent too...
pwh has quit [Ping timeout: 252 seconds]
karmatr0n has joined #ruby
pel_daniel has joined #ruby
<certainty> :) strange people
_justin has joined #ruby
camilasan has joined #ruby
lukec has joined #ruby
jaimef has quit [Excess Flood]
emaxi has joined #ruby
hrs has joined #ruby
sski has joined #ruby
madb055 has quit [Quit: Konversation terminated!]
bthesorceror has quit [Ping timeout: 240 seconds]
jaimef has joined #ruby
kpshek has quit []
<workmad3> certainty: britain has a lot of regional accents :)
jobewan has joined #ruby
andy___ has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
doodleha_ has joined #ruby
kirun has joined #ruby
_justin has quit [Ping timeout: 245 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
deens has joined #ruby
bthesorceror has joined #ruby
doodlehaus has quit [Ping timeout: 258 seconds]
kpshek has joined #ruby
yogie has quit [Quit: Sic Semper Tyrannis]
marcux has quit [Quit: marcux]
_justin has joined #ruby
<f0ster> certainty: trying to wrap my head around why you would put methods on the eigenclass of your class (self)
<jhass> f0ster: so you can call them on the class object: Foo.method
<f0ster> does this basically make "static" methods on your class? i.e., you can have methods on your class "statically" without having to instantiate an object of your class?
<jhass> that's the effect, yes
<f0ster> awesome
<jhass> though on the technical level they're just instance methods on your classes object
<apeiros> a common use-case are constructors
centrx has joined #ruby
<apeiros> see e.g. Date.civil vs. Date.commercial vs. Date.ordinal
poikon has quit [Remote host closed the connection]
<f0ster> jhass: right
benzrf is now known as benzrf|offline
iceden has joined #ruby
<f0ster> apeiros: is there src code for that stdlib stuff anywhere?
<apeiros> use pry + pry-doc, do: $ Date.civil
danman_ has quit [Quit: danman_]
djbender has joined #ruby
<apeiros> and yes, all the source code is there. ruby is open-source after all
fijimunkii has quit [Quit: leaving]
kidoz has joined #ruby
axl_ has joined #ruby
marcux has joined #ruby
fbernier has joined #ruby
pdtpatr11k has quit [Quit: leaving]
baweaver has joined #ruby
<apeiros> certainty: aaahaha, yes, that one is excellent
<certainty> hehe yeah
_justin has quit [Ping timeout: 240 seconds]
<timgauthier> oh sass, you are actually difficult feeling too me now...
<timgauthier> not difficult, awkward maybe
<timgauthier> giftish?
eyeamaye1 has joined #ruby
<timgauthier> giftisch*?
<certainty> giftig
<f0ster> apeiros: awesome didn't know you could do that
ascarter has joined #ruby
rkr090 has joined #ruby
benzrf|offline is now known as benzrf
afreidah2 has joined #ruby
<timgauthier> so weird to use sass libraries that introduce base styles... do you override them, do you rip the base styles out... do you move their styles to your own stylesheet and change them.
pdtpatr1ck has joined #ruby
<shevy> the path of demise is to be continued
<timgauthier> do you leave them in the original place but comment them out and then rewrite them
pdtpatr1ck has quit [Client Quit]
Slavox is now known as Slavox|AFK
<timgauthier> shevy your distain for erb is nothing on scss
<timgauthier> its better then css
rkr090 has left #ruby [#ruby]
<timgauthier> but honestly, why is it font-size to change font size, but color to set the colour!?
nathancahill has quit [Quit: nathancahill]
vadzimt has joined #ruby
vadzimt has quit [Max SendQ exceeded]
<timgauthier> oh! and so you have color, font-size, and then text-decoration... all of these are directly impacting the typography... but they use completely different conventions!
ndrei has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 265 seconds]
vadzimt has joined #ruby
poikon has joined #ruby
vadzimt has quit [Max SendQ exceeded]
ascarter has quit [Client Quit]
pdtpatr1ck has joined #ruby
<shevy> timgauthier css is alright, why do you need scss?
<timgauthier> css isn't alright
<shevy> color being dominant because US english dominated as opposed to colour!
<timgauthier> I want to use this one colour in 12 places, oh we need to change that one colour okay now i get to go find and replace it
<timgauthier> css isn't DRY
<timgauthier> scss makes it so you can be DRY
klaut has quit [Remote host closed the connection]
<shevy> I am totally dry
<shevy> I must get me a drink
<timgauthier> and colour vs colour isn't the issue, its why is it font-weight, text-decoration, and color, why can't they all be font-color, font-weight, font-decoration.. or at least some sort of logical convention
<timgauthier> :D
<timgauthier> but at least i know how to make scss do things, i actually understand that one :D so i don't have to ask questions here, i just bitch
luckyruby has joined #ruby
Advocation has quit [Quit: Advocation]
<shevy> but colour is invalid in css!
<timgauthier> yes
lukec has quit [Ping timeout: 245 seconds]
<timgauthier> its also invalid in scss
lukec has joined #ruby
<shevy> nobody likes the UK
<timgauthier> though i'm sure someone has a filter modifier that accepts it
<timgauthier> colour is used literally anywhere except the US
<shevy> nobody likes the USA either
<timgauthier> but it would be cool if I could make it farbe
<timgauthier> :D
<timgauthier> farbe: RGBCODE
<shevy> hmm
<shevy> how would you get the browsers to understand these?
<timgauthier> i got to work on a stylesheet that was made by a german one, so cool to see all of the german variables and such
<shevy> french would then have
<shevy> le_coleur: RGBCODE
<timgauthier> you'd have to process them down to a base set like we do now
crystal77 has quit [Quit: Computer has gone to sleep.]
<timgauthier> but i do want them to do something about the font- and text- things, make them logical as to what is what.
<timgauthier> it should likely be text for most things
<shevy> you are on a mission
helpD has joined #ruby
spider-mario has joined #ruby
<shevy> "please kind css tribune, become more logical!"
<shevy> oh
<shevy> tribunal... hmmmmm
ndrei has joined #ruby
kenneth has joined #ruby
nathancahill has joined #ruby
<f0ster> certainty, apeiros, so to access class variables from my self's eigenclass object, I can't use @@vars? this example, http://www.railstips.org/blog/archives/2006/11/18/class-and-instance-variables-in-ruby/ here has this in the class def. class << self; attr_accessor :sides end; @sides = 8
afex has joined #ruby
cj3kim has joined #ruby
pagioss is now known as pagios
roolo has quit [Quit: Leaving...]
Bofu2U has quit [Ping timeout: 240 seconds]
<f0ster> also not sure on the syntax of why he is finishing statement after class << self; does that just automatically make all of the instance methods automatically on the (eigenclass) ?
Lewix has quit [Remote host closed the connection]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
_m_g_ has joined #ruby
_m_g_ is now known as SlvrDragn
Doppp has quit [Ping timeout: 276 seconds]
<timgauthier> things like darken($colourvariable) and shade($colourvariable) are what make scssssss awesome
<apeiros> f0ster: you generally don't want to use @@class_vars. they're poorly understood and thus often used wrongly.
<f0ster> apeiros: I am basically trying to make a singleton, e.g., just access a class statically, and store some data inside of the "static" class
sdouglas has joined #ruby
<f0ster> do class variables live on the object of the class itself ?
AlSquire has quit [Quit: This computer has gone to sleep]
benzrf is now known as benzrf|offline
<centrx> f0ster, Yes
agarie_ has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
Slavox|AFK is now known as Slavox
<f0ster> so it really doesn't matter if i make an instance var on my eigenclass, or if I make a class var
JBreit has joined #ruby
<centrx> f0ster, Although actually they live across the inheritance tree
yogie has joined #ruby
jprovazn has joined #ruby
mazzid has quit [Quit: Leaving.]
crystal77 has joined #ruby
<centrx> f0ster, It matters how it is used
<f0ster> centrx: right, but at which point? I assume on the class's object
<f0ster> hmm
<jhass> f0ster: it does matter, @@class_vars are shared across the ancestry chain
RowdyChildren is now known as RowdyChild|Away
madb055 has joined #ruby
<f0ster> but the method look up goes, object -> eigenclass -> class ?
<centrx> f0ster, e.g. if you use Singleton, the instance variable needs to be in the instance
poikon has quit [Remote host closed the connection]
agarie has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
Doppp has joined #ruby
<f0ster> centrx: but isn't that the point of a singleton? such that there is only one instance?
<f0ster> although not a necessity of a singleton, I want one instance of this class to persist
<centrx> f0ster, Right, so you would use an instance variable
casheew has joined #ruby
<f0ster> more like a static class
<centrx> f0ster, Even if you wanted a class variable, you would probably want a class instance variable, not a class variable.
goganchic has quit [Quit: Computer has gone to sleep.]
sigurding has joined #ruby
doodlehaus has joined #ruby
mazzid has joined #ruby
Iniesta8 has joined #ruby
<f0ster> not sure waht the diff is other than where it is stored, e.g. on the eigenclass obj or the class obj itself
Squarepy has joined #ruby
karmatr0n has quit [Ping timeout: 252 seconds]
<centrx> A class variable is shared by parents/children of the class
simplyaubs has quit [Quit: simplyaubs]
sambao21 has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
ktosiek has joined #ruby
<f0ster> but an eigenclass's objects are only on reference to the class directly ?
<f0ster> / class object
chrisja has joined #ruby
poikon has quit [Ping timeout: 250 seconds]
doodleha_ has quit [Ping timeout: 240 seconds]
<mg^> this conversation is really heavy. I just had to read up on eigenclasses because of it. TIL.
marcdel has joined #ruby
<shevy> hmmm timgauthier
<timgauthier> ya?
<shevy> know what sucks? that html has no simple way to check "if this image file exists, display it, else dont"
cj3kim has quit [Remote host closed the connection]
<mg^> nope, you have to throw in some Javascript to make that happen.
<timgauthier> ya'
benzrf|offline is now known as benzrf
shashank_rs has joined #ruby
HashNuke has joined #ruby
<HashNuke> hey all
<benzrf> hello #nuke
<HashNuke> In the vcr gem, is there a way to check the request headers?
poikon has joined #ruby
<benzrf> HashNuke: people still use vcrs?
<HashNuke> benzrf: :)
vlad_starkov has quit [Remote host closed the connection]
<certainty> shevy: simple fix. make sure it exists
<shevy> certainty that is no fix, that is a workaround!
<Hanmac> f0ster: did you know that eigenclass can store constants too? ;P
marcdel has quit [Ping timeout: 240 seconds]
<certainty> other simple fix, don't reference it unless it exists
crzrcn has joined #ruby
Phage has left #ruby ["The Python got away, gotta catch it. Cya later."]
<shevy> I know there are a million workarounds
jason_ has joined #ruby
sigurding_ has joined #ruby
<certainty> i don't think *that's* the workaround. actually using the javascript thing is a workaround
nathancahill has quit [Quit: nathancahill]
djbender has quit [Quit: djbender]
tjr9898 has quit [Remote host closed the connection]
rainmanjam has joined #ruby
sigurding has quit [Ping timeout: 265 seconds]
sigurding_ is now known as sigurding
jason_ has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
jason_ has joined #ruby
michaeldeol has joined #ruby
nathancahill has joined #ruby
MatthewsFace has joined #ruby
tjr9898 has joined #ruby
_justin has joined #ruby
timgauthier has quit [Ping timeout: 240 seconds]
afex has quit [Ping timeout: 250 seconds]
jason_ has quit [Ping timeout: 258 seconds]
toastynerd has quit [Remote host closed the connection]
marcdel has joined #ruby
sigurding has quit [Ping timeout: 245 seconds]
decoponio has quit [Quit: Leaving...]
rainmanjam has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
sigurding has joined #ruby
poikon has quit [Remote host closed the connection]
crzrcn1 has joined #ruby
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
predator117 has quit [Ping timeout: 245 seconds]
toastynerd has joined #ruby
codabrink has joined #ruby
predator117 has joined #ruby
andy__ has joined #ruby
gregf has joined #ruby
saarinen has joined #ruby
rakm has joined #ruby
phansch has joined #ruby
dblessing has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
testcore has joined #ruby
testcore has quit [Quit: [BX] testcore has no reason... just kidding :)]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
kraljev6 has joined #ruby
Musashi1 has joined #ruby
testcore has joined #ruby
lmickh has joined #ruby
djbender has joined #ruby
zigomir has quit [Remote host closed the connection]
kpshek has quit []
zigomir has joined #ruby
fgo has joined #ruby
predator117 has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
axl_ has quit [Quit: axl_]
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m0s is now known as m0s^away
iamjarvo has joined #ruby
aspires has quit []
spider-mario has quit [Ping timeout: 245 seconds]
aspires has joined #ruby
zigomir has quit [Ping timeout: 276 seconds]
zigomir has joined #ruby
ellbot_ has quit [Remote host closed the connection]
<havenwood> hrm, a gem named asdgabresbrebadadffadfadfasdgadf
elementz has quit [Ping timeout: 276 seconds]
marcdel has quit [Ping timeout: 265 seconds]
IceDragon has quit [Ping timeout: 265 seconds]
ellbot has joined #ruby
marcux has quit [Quit: marcux]
aspires has quit [Client Quit]
IceDragon has joined #ruby
<slash_nick> looks like it might come from https://github.com/sunwooz/testjs-rails
<mg^> Sounds like something you'd find in Nethack
<slash_nick> this asdgabresbrebadadffadfadfasdgadf gem is obviously one we shouldn't continue working without
<mg^> "On the floor is a gem named asdgabresbrebadadffadfadfasdgadf"
dkamioka has joined #ruby
aspires has joined #ruby
_5kg has joined #ruby
LetErikTry has joined #ruby
vlad_starkov has joined #ruby
carraroj has joined #ruby
SHyx0rmZ has joined #ruby
ellbot has quit [Ping timeout: 250 seconds]
tjr9898 has quit []
timonv has joined #ruby
<benzrf> mg^: heu
<benzrf> my brother has ascended as like half the classes
simplyaubs has joined #ruby
treehug88 has joined #ruby
kraljev6 has quit [Quit: kraljev6]
treehug8_ has quit [Ping timeout: 250 seconds]
aspires has quit [Client Quit]
aspires has joined #ruby
djbkd has quit [Remote host closed the connection]
<lolmaus> Can i monkey patch a class so that it's private method becomes public?
<mg^> I've never ascended. Just don't have the patience for it. :)
samuel02 has joined #ruby
vlad_starkov has quit [Ping timeout: 250 seconds]
dblessing has quit [Quit: dblessing]
aspires has quit [Client Quit]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
<jhass> lolmaus: sure, Class.send(:public, :method) should do. But use #send over that so your evilness is easily grepable
TwinkleHood has quit [Remote host closed the connection]
<lolmaus> Thanks, jhass
timonv has quit [Ping timeout: 258 seconds]
blackavr has quit [Quit: blackavr]
sski has quit [Remote host closed the connection]
<lolmaus> jhass: is it an invocation of a private method without actually changing its visibility to public?
<jhass> yes
<lolmaus> I mean, without permanent change
<lolmaus> Thx
<jhass> #send that is
aspires has joined #ruby
samuel02 has quit [Ping timeout: 245 seconds]
elementz has joined #ruby
jenskarlsen has quit [Quit: jenskarlsen]
Sirupsen has joined #ruby
aspires has quit [Client Quit]
simplyaubs has quit [Quit: simplyaubs]
ellbot has joined #ruby
Macaveli has joined #ruby
weems has quit [Quit: Leaving]
aspires has joined #ruby
nisstyre has joined #ruby
noop has joined #ruby
m0s^away is now known as m0s
Macaveli has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
senayar has joined #ruby
sdouglas has joined #ruby
senayar has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
Al__ has quit [Quit: Al__]
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ellbot has quit [Remote host closed the connection]
ellbot has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
olivier_bK has joined #ruby
zigomir has quit [Remote host closed the connection]
ktun has joined #ruby
zigomir has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
predator117 has joined #ruby
klaut has joined #ruby
sambao21 has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
simplyaubs has joined #ruby
sdwrage has joined #ruby
ellbot_ has joined #ruby
camilasan has quit [Remote host closed the connection]
Bumptiou_ has joined #ruby
dkamioka has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
mercwithamouth has quit [Ping timeout: 276 seconds]
jacky has quit [Excess Flood]
camilasan has joined #ruby
ellbot has quit [Ping timeout: 258 seconds]
saarinen has quit [Quit: saarinen]
mercwithamouth has joined #ruby
crzrcn1 has quit [Quit: Leaving.]
zigomir has quit [Ping timeout: 276 seconds]
Musashi1 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
zarul has quit [Remote host closed the connection]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ellbot_ has quit [Ping timeout: 265 seconds]
davy has quit [Remote host closed the connection]
camilasan has quit [Ping timeout: 276 seconds]
jjbohn has quit [Quit: Leaving...]
kpshek has joined #ruby
hrs has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jjbohn has joined #ruby
sdouglas has joined #ruby
spider-mario has joined #ruby
Guest93054 has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
Guest93054 is now known as jacky
jacky is now known as jalcine
casheew has quit [Quit: Lost terminal]
SCommette has quit [Quit: SCommette]
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
jalcine is now known as Guest87179
sdelmore has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
yekta has joined #ruby
sdwrage has quit [Quit: Leaving]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
elementz has quit [Ping timeout: 250 seconds]
davy has joined #ruby
senayar has joined #ruby
AlexRussia has quit [Ping timeout: 276 seconds]
carraroj has quit [Quit: Konversation terminated!]
luckyruby has quit [Remote host closed the connection]
sski has joined #ruby
Guest87179 has quit [Quit: Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
terrellt has quit [Quit: Friends help you move. Real friends help you move bodies.]
terrellt has joined #ruby
pedda has joined #ruby
pedda has quit [Max SendQ exceeded]
davy_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
luckyruby has joined #ruby
andy__ has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
toastynerd has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
Lewix has joined #ruby
banister has quit [Read error: Connection reset by peer]
andy__ has joined #ruby
sski has quit [Ping timeout: 265 seconds]
davy has quit [Ping timeout: 258 seconds]
lolmaus has quit [Ping timeout: 252 seconds]
geggam is now known as that_was_a_loud_
Macaveli has joined #ruby
that_was_a_loud_ is now known as geggam
davy has joined #ruby
shashank_rs has quit [Read error: Connection reset by peer]
geggam is now known as please
please is now known as geggam
bthesorceror has quit [Remote host closed the connection]
banister has joined #ruby
sdelmore has joined #ruby
bthesorceror has joined #ruby
andy__ has quit [Ping timeout: 252 seconds]
bthesorceror has quit [Read error: Connection reset by peer]
atno has joined #ruby
atno has quit [Remote host closed the connection]
bthesorceror has joined #ruby
atno has joined #ruby
tjr9898 has joined #ruby
cescalante is now known as ce_afk
davy_ has quit [Ping timeout: 258 seconds]
sambao21 has joined #ruby
djbkd has joined #ruby
mikeg has quit [Remote host closed the connection]
fubelly has joined #ruby
aspires has quit []
aspires has joined #ruby
fubelly has left #ruby [#ruby]
cj3kim_ has joined #ruby
luckyruby has quit [Remote host closed the connection]
momomomomo has joined #ruby
luckyruby has joined #ruby
naw has quit []
AlexRussia has joined #ruby
rezzack has joined #ruby
alvaro_o has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
aspires has quit [Client Quit]
predator117 has left #ruby [#ruby]
naw has joined #ruby
sdouglas has quit [Remote host closed the connection]
hooper has quit [Ping timeout: 250 seconds]
crzrcn has joined #ruby
kalz has quit [Ping timeout: 246 seconds]
jcs222 has quit [Quit: leaving]
afex has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
andy__ has joined #ruby
sdouglas_ has joined #ruby
sambao21 has joined #ruby
ukd1 has quit [Remote host closed the connection]
yekta has quit [Quit: yekta]
<terrellt> Anyone had any trouble with a new Mavericks install and rbenv building 2.1.1?
helpD has quit [Ping timeout: 240 seconds]
<Eiam> damn just had a great interview candidate, really knew his ruby too
heftig has joined #ruby
<terrellt> I get linking shared-object openssl.bundle and then Error2
<crome> terrellt: I use it every day
_justin has quit [Quit: _justin]
<Eiam> terrellt: using it also, works okay
cj3kim_ has quit [Remote host closed the connection]
michaeldeol has joined #ruby
helpD has joined #ruby
WormDr1nk has joined #ruby
rvraghav93 has quit [Read error: Connection reset by peer]
W0rmDr1nk has quit [Ping timeout: 252 seconds]
Raboo has joined #ruby
webgen has joined #ruby
emmesswhy has joined #ruby
webgen has left #ruby [#ruby]
horrorvacui has joined #ruby
pedda has joined #ruby
julio_ has quit [Remote host closed the connection]
webzorg has joined #ruby
julio_ has joined #ruby
<webzorg> hey guys can anyone help me with trouble launching ruby on rails application ? :S on localhost? :P
samuel02 has joined #ruby
jespada has joined #ruby
<slash_nick> webzorg: i'd try #rubyonrails
_justin has joined #ruby
<webzorg> slash_nick yes I know but it doesn't connect, I push connect channel and nothing happens
<atmosx> webzorg: rails s?
noop has quit [Ping timeout: 240 seconds]
<webzorg> atmosx I did rails server, server is running, a problem with mysql socket or something
Guest83697 has joined #ruby
<slash_nick> webzorg: no... I'd try asking the question in #rubyonrails
andy____ has joined #ruby
<atmosx> webzorg: what is the exact error?
<webzorg> slash_nick yes but I cant connect to that channel
<atmosx> do you have mysql in the localhost?
mansi has quit [Remote host closed the connection]
<slash_nick> oh i see... it wants you to register your nick with nickserv
<webzorg> atmosx: cant connect to local mysql server through socket '/var/run/mysqld/mysql.sock'(2)
mansi has joined #ruby
<atmosx> webzorg: and you are on linux or mac?
<webzorg> atmosx i am on linux, how do I know if i am running mysql on localhost, i just installed it tbh
<atmosx> webzorg: what distribution?
<atmosx> webzorg: ps auwx|grep -i mysql
<webzorg> atmosx i am running lubuntu, should be same as ubuntu i guess
andy_____ has joined #ruby
<atmosx> yes it's the same as the command line goes
<atmosx> you did apt-get install mysql-server?
julio_ has quit [Ping timeout: 276 seconds]
<webzorg> i just did install mysql without server i think
<webzorg> was while ago
samuel02 has quit [Ping timeout: 276 seconds]
<webzorg> it gave some text, webgen 3200 0.0 0.0 20452 964pts/1
<terrellt> linking shared-object ripper.bundle
<terrellt> make: *** [build-ext] Error 2
pel_daniel has quit [Ping timeout: 250 seconds]
chrisseaton has joined #ruby
<terrellt> I get that trying to compile 2.1.1
Es0teric has quit [Quit: Computer has gone to sleep.]
omosoj has joined #ruby
andy__ has quit [Ping timeout: 276 seconds]
<webzorg> atmosx ok thank you dude, i ll take a look :)
andy____ has quit [Ping timeout: 240 seconds]
ukd1 has joined #ruby
<atmosx> webzorg: out of curiosity, why do you want to use mysql instead of the defaul sqlite3?
dkamioka has joined #ruby
<webzorg> atmosx well I am following this tutorial that does it with mysql plus I ve never used sqlite3, I ve used mysql couple times :S
mansi has quit [Ping timeout: 258 seconds]
<atmosx> webzorg: sqlite3 works out of the box, you should stick with that imho for the time being
f0ster has quit [Ping timeout: 240 seconds]
<atmosx> will make your life easier
cj3kim_ has joined #ruby
<webzorg> atmosx now it worked actually thanks, it required reinstallation I guess idont know why
<atmosx> mysql should be used in production
<atmosx> okay
<webzorg> well atmosx i guess I ll do that in the future when I have a fresh OS install :D
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ciwolsey has joined #ruby
fgo has quit [Remote host closed the connection]
moted has quit [Ping timeout: 240 seconds]
moted has joined #ruby
jkamenik has quit [Quit: Leaving.]
ValicekB has quit [Ping timeout: 252 seconds]
<webzorg> slash_nick alsothanks to u i ll figure out how to register
einarj has joined #ruby
momomomomo has quit [Quit: momomomomo]
kalz has joined #ruby
<slash_nick> webzorg: hope it all works out, have fun
bthesorceror has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
jackneill has quit [Remote host closed the connection]
blackavr has joined #ruby
mansi has joined #ruby
bthesorceror has joined #ruby
momomomomo has joined #ruby
sidik has quit [Ping timeout: 258 seconds]
bthesorc_ has joined #ruby
webzorg has quit [Quit: Leaving]
bthesorceror has quit [Read error: Connection reset by peer]
aspires has joined #ruby
webgen has joined #ruby
tjr9898 has quit [Remote host closed the connection]
julio_ has joined #ruby
vpretzel|1280 has quit [Remote host closed the connection]
toastynerd has joined #ruby
dkamioka has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
vpretzel|1280 has joined #ruby
tjr9898 has joined #ruby
Guest83697 is now known as jackyalcine
mordocai has quit [Remote host closed the connection]
jackyalcine is now known as Guest49681
nichtdiebohne1 has joined #ruby
saarinen has quit [Quit: saarinen]
BuSerD has joined #ruby
yalue has quit [Quit: Leaving]
nichtdiebohne has quit [Ping timeout: 250 seconds]
SCommette has joined #ruby
sambao21 has joined #ruby
ascarter has joined #ruby
GaryOak_ has joined #ruby
weems has quit [Read error: Connection reset by peer]
ValicekB has joined #ruby
momomomomo has quit [Quit: momomomomo]
simplyaubs has quit [Quit: simplyaubs]
CaptainJet has quit []
JoeGaudet has joined #ruby
rm_ has quit [Disconnected by services]
simplyaubs has joined #ruby
rm__ has joined #ruby
<JoeGaudet> Hello all... I'm having a hell of a time resolving: 'Incorrect MySQL client library version! This gem was compiled for 5.5.35 but the client library is 5.6.15.' on a unbuntu machine.
<JoeGaudet> Any thoughts ?
Drewch has joined #ruby
<JoeGaudet> I've uninstalled reinstalled, but it doesn't seem to do anything.
<centrx> JoeGaudet, Maybe your mysql header files are a different version than your mysql client library?
MattStratton has joined #ruby
<JoeGaudet> Entirely possible... how would I go about verifying that?
reppard has quit [Quit: Leaving.]
<JoeGaudet> I'm relatively green in the land of opps.
marcux has joined #ruby
dunix has quit []
omosoj has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
mac_cosmo has joined #ruby
SHyx0rmZ has quit [Ping timeout: 252 seconds]
<JoeGaudet> I did update our percona build inadvertently, but one would assume that got everything, perhaps the dev headers don't line up thought.
blackmesa has quit [Ping timeout: 250 seconds]
olli has joined #ruby
olli has quit [Client Quit]
Es0teric has joined #ruby
<JoeGaudet> word
<JoeGaudet> woops
yfeldblum has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 245 seconds]
darkaer has joined #ruby
samuel02 has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 265 seconds]
saarinen has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
acrussell has quit [Quit: Leaving.]
marcux has quit [Ping timeout: 258 seconds]
MatthewsFace has joined #ruby
blackmesa has joined #ruby
marcux has joined #ruby
emaxi has quit [Remote host closed the connection]
julio_ has quit []
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest49681 is now known as jacky
jacky has quit [Changing host]
jacky has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
samuel02 has quit [Read error: Connection reset by peer]
timgauthier has joined #ruby
joaoh82 has joined #ruby
<timgauthier> no
yfeldblum has joined #ruby
j416 has quit [Quit: o/]
aiser has joined #ruby
jespada has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
<aiser> sdp
pwh has joined #ruby
aiser has left #ruby [#ruby]
aiser has joined #ruby
samuel02 has joined #ruby
Advocation has joined #ruby
ktun has joined #ruby
aiser has left #ruby [#ruby]
fgo has joined #ruby
spider-mario has quit [Remote host closed the connection]
dkamioka has joined #ruby
crystal77 has joined #ruby
benzrf|offline is now known as benzrf
sambao21 has joined #ruby
nathancahill has quit [Quit: nathancahill]
sambao21 has quit [Client Quit]
f0ster__ has joined #ruby
yekta has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
robbyoconnor has joined #ruby
pu22l3r has quit [Ping timeout: 258 seconds]
nathancahill has joined #ruby
nathancahill has quit [Client Quit]
timonv has joined #ruby
sambao21 has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
senayar_ has joined #ruby
skaflem has quit [Quit: Leaving]
codenapper has quit [Quit: codenapper]
Trynemjoel has quit [Ping timeout: 245 seconds]
_justin has quit [Quit: _justin]
SHyx0rmZ has joined #ruby
sunya7a has joined #ruby
Trynemjoel has joined #ruby
Nukepuppy has quit [Ping timeout: 276 seconds]
Nukepuppy has joined #ruby
einarj has joined #ruby
senayar has quit [Ping timeout: 240 seconds]
timonv has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 265 seconds]
agarie_ has quit [Read error: Connection reset by peer]
samuel02 has quit [Read error: Connection reset by peer]
obs has joined #ruby
Sirupsen has quit [Ping timeout: 240 seconds]
agarie has joined #ruby
mansi has quit [Remote host closed the connection]
mac_cosmo has quit [Quit: mac_cosmo]
SHyx0rmZ has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
emaxi has joined #ruby
mansi has joined #ruby
donnoc has joined #ruby
fubelly has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
thelamest has quit [Quit: thelamest]
codenapper has joined #ruby
MatthewsFace has quit [Ping timeout: 258 seconds]
MatthewsFace has joined #ruby
axl_ has quit [Quit: axl_]
vlad_starkov has joined #ruby
x77686d has quit [Quit: x77686d]
fgo has joined #ruby
samuel02 has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
darkaer has quit [Ping timeout: 250 seconds]
mansi has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
nfk has quit [Quit: yawn]
Riking has quit [Quit: ZNC - http://znc.sourceforge.net]
zigomir has joined #ruby
Riking has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
tjr9898 has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 245 seconds]
davy has quit [Remote host closed the connection]
kpshek has quit []
sambao21 has quit [Quit: Computer has gone to sleep.]
robbyoconnor has quit [Ping timeout: 265 seconds]
sdouglas has joined #ruby
dstynchu_ has quit []
<JoeGaudet> Solved
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
m0s is now known as m0s^away
luckyruby has quit [Ping timeout: 246 seconds]
sdouglas_ has quit [Ping timeout: 258 seconds]
Advocation has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
dstynchula has joined #ruby
robbyoconnor has joined #ruby
kpshek has joined #ruby
tjr9898 has joined #ruby
paulfm has quit []
poikon has joined #ruby
toastynerd has quit [Remote host closed the connection]
thelamest has joined #ruby
mansi has joined #ruby
Atrumx has joined #ruby
timonv has joined #ruby
ktun has joined #ruby
rakm has quit [Quit: Connection closed for inactivity]
andy_____ has quit [Ping timeout: 276 seconds]
x77686d has joined #ruby
ironsand has joined #ruby
saarinen has quit [Quit: saarinen]
ndrei has joined #ruby
toastynerd has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
cover has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 252 seconds]
sunya7a has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 265 seconds]
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
dapz has joined #ruby
benzrf is now known as benzrf|offline
sambao21 has joined #ruby
einarj has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
kirun has quit [Quit: Client exiting]
dkamioka has quit [Remote host closed the connection]
eyeamaye1 has quit [Quit: Leaving.]
Lewix has quit [Remote host closed the connection]
popl has quit [Ping timeout: 250 seconds]
davy has joined #ruby
davy has quit [Client Quit]
sdouglas has quit [Ping timeout: 252 seconds]
ktun has joined #ruby
Atrumx has quit [Ping timeout: 246 seconds]
Milly_Bays has joined #ruby
tjr9898 has quit [Ping timeout: 252 seconds]
danshult_ has quit [Remote host closed the connection]
<timgauthier> shevy
<timgauthier> i found something uglier then ruby!
gigetoo has quit [Remote host closed the connection]
danshultz has joined #ruby
<timgauthier> holy crap this is nasty
ktun has quit [Client Quit]
<centrx> Ruby isn't ugly.
<timgauthier> sorry
<timgauthier> erb
claymore has quit [Ping timeout: 252 seconds]
<timgauthier> terrible mistake
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lmickh has quit [Remote host closed the connection]
simono has quit [Quit: Textual IRC Client: www.textualapp.com]
Advocation has quit [Quit: Advocation]
yacks has quit [Quit: Leaving]
donnoc has quit [Ping timeout: 245 seconds]
gigetoo has joined #ruby
rakm has joined #ruby
atmosx has quit [Quit: Lost in trance]
joaoh82 has quit [Remote host closed the connection]
claymore has joined #ruby
ryanuber has joined #ruby
ryanuber has left #ruby ["Textual IRC Client: www.textualapp.com"]
<droptone> Question: I have an array that is myarray['customer']['links']['self'], and the value of that is "http://theirdomain.com/v1/customers/234847"
<droptone> I want to extract just the number at the end from the array element, in this case, just the 234847
Iniesta8 has joined #ruby
<timgauthier> whats the key for that?
<droptone> can anyone explain to me how that is done, or point me towards some documentation regarding extracting specific chars from an array element?
obs has joined #ruby
<timgauthier> wait. nm i misread
wethu has joined #ruby
<timgauthier> you're pulling from the URI?
danshultz has quit [Ping timeout: 258 seconds]
nateberkopec has quit [Quit: Leaving...]
<droptone> that value is returned from an API call
<droptone> one of many, but I need to simply extract the number at the end from the array element
zeropx has quit [Quit: has left the room … Or did he?]
<timgauthier> is it always the same length?
<timgauthier> I don't know how to answer your question, i'm a huge newb too, but I'm engaging incase i can be helpful, and if not at least there will be some more information about your question
<droptone> honestly, I don't know. I'm not sure if the ID lengths are subject to change. However, if there's a way, since the rest of the URL is hard-defined, perhaps I can say "everything after the 5th forward slash
mercwithamouth has joined #ruby
x1337807x has joined #ruby
<droptone> so I need the content after the 5th forward slash.
<droptone> since that will always be static.
<timgauthier> does ruby see the http:? or does it truncate that
<droptone> at this point, I wouldn't consider myself a "huge noob", but thank you.
<timgauthier> are you working just ruby, or do you have like rails invovled?
<droptone> does ruby see the http://? Yes, that's the value stored in that array element.
<droptone> this is just ruby.
<droptone> hence me asking in #ruby and not #rubyonrails :)
<timgauthier> hmm
pelicantek has joined #ruby
<pelicantek> hello
<timgauthier> haha, i've been asking tons of semi RoR questions in here :P
<timgauthier> less hectic
pelicantek has left #ruby [#ruby]
<droptone> I just need some sort of truncate function or some method for extracting all data in an array element based on the #s instance of a given char.
<timgauthier> well you could always regex it
<droptone> I could truncate backwards to the first /
withnale has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Squarepy has quit [Quit: Leaving]
<timgauthier> but i'm trying to think if there is a way of doing something else in a logical thought process
<timgauthier> I know PHP more then Ruby still
<timgauthier> if you truncate then yeah definitely go backwards
Nukepuppy has quit [Ping timeout: 250 seconds]
Atrumx has joined #ruby
<timgauthier> !g grab portion of URI with ruby
<timgauthier> imma read up on this
<droptone> looks like truncate will do it
vpretzel_ has joined #ruby
<timgauthier> supposedly there is a URI parser you could use
<timgauthier> and split
<timgauthier> wouldn't split turn it back into an array, and then you could just grab the 5th key?
<shevy> yes
<timgauthier> or you could .split('/') and take .last
<shevy> now you know more ruby than php timgauthier
mattmcclure has joined #ruby
<timgauthier> that actually sounds more fail proof then regex
<timgauthier> or truncating
<droptone> or just use truncate
withnale has quit [Remote host closed the connection]
<droptone> although truncate seems to go left to right
<timgauthier> well what is the result of a truncate though?
joaoh82 has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
<timgauthier> splitting it out makes it an easier object to work with
<droptone> ok, let's give that a go, thank you
RaptorJesus has quit [Remote host closed the connection]
arubincloud has quit []
<shevy> timgauthier hey, did you have holidays in canada during easter time? right now universities here in vienna are closed for 2 weeks because of easter holidays
<timgauthier> no negative direction truncate?'
RaptorJesus has joined #ruby
mjs2600 has quit [Read error: Connection reset by peer]
<timgauthier> We don't have that big of a holiday shevy, we get friday-tuesday off usually
<shevy> oh that's not much
joaoh82 has quit [Remote host closed the connection]
<timgauthier> yeah, there are only 11 days off a year in Alberta
<timgauthier> like, legal holidays
alexju has quit [Remote host closed the connection]
mjs2600 has joined #ruby
<DouweM> droptone: url.match(/\/([^\/]+)\z/)[-1]
<timgauthier> and there are 12 holidays, so the employer/school gets to pick between two of them
obs has quit [Remote host closed the connection]
<timgauthier> DouweM is that better then split?
vpretzel|1280 has quit [Ping timeout: 250 seconds]
ktun has joined #ruby
<DouweM> no idea
<timgauthier> like, what happens if your identifier has content that changes, what if they at some point introduce alphanumerics
<timgauthier> thats my line of thinking that split might be better
<DouweM> that'd still work
<timgauthier> ah, i can't read regex
<DouweM> the only difference is performance, mine is just the regex version of split, take last
withnale has joined #ruby
<DouweM> so it depends on regex performance vs split. split is probably faster
<timgauthier> ah, nice
<DouweM> although, maybe not
<timgauthier> yeah, thats a tough call
toastynerd has quit [Remote host closed the connection]
<timgauthier> split likely just makes regex on the backend
<DouweM> probably not
sambao21 has joined #ruby
<droptone> str.split(pattern='/').last
<timgauthier> no?
<droptone> that did it
<droptone> brilliant, you sexy bitches
<droptone> thank you.
<timgauthier> haha wewt!
<timgauthier> first correct answer for another human!
<droptone> take a bow
<DouweM> timgauthier: just one walk over the string is probably more performant than a regex
* timgauthier bows
<DouweM> split/last is definitely the more readable though
<timgauthier> it seems more rubyrific
<DouweM> readability over performance? yeah for sure
<timgauthier> don't forget to account for an error case if you somehow don't get a link with that last set of numbers though droptone
troyready has quit [Ping timeout: 276 seconds]
<timgauthier> somehow you just get http://theirdomain.com/v1/customers
Iniesta8 has quit [Quit: Textual IRC Client: www.textualapp.com]
<timgauthier> I always say "That'll never happen" and then it does
<timgauthier> and i spend a day looking for why the thing is broken, until i figure out that i somehow magically got bad data in :|
<timgauthier> *shakes fist*
luckyruby has joined #ruby
<timgauthier> shevy you are still studying?
<slash_nick> if it can go wrong, it will
<timgauthier> exactly slash_nick
<timgauthier> love the Username too
<slash_nick> yeah i've snagged a handful of them
claymore has quit [Ping timeout: 265 seconds]
fieldfirst has quit [Ping timeout: 245 seconds]
<slash_nick> thank ya timgauthier
<timgauthier> imma ask this here, because the people in ##design are jerks
<timgauthier> links in Headers/ or Headers as links, should they be styled like normal URLs are different?
<timgauthier> are == or*
Hackbinary has quit [Remote host closed the connection]
<shevy> timgauthier sure, and working too
<timgauthier> wow, you cray cray
andy__ has joined #ruby
<shevy> timgauthier studying here is almost free, it makes sense to continue passing exams
claymore has joined #ruby
<DouweM> what are you studying?
agarie has quit [Remote host closed the connection]
<timgauthier> yup
hrs has joined #ruby
agarie has joined #ruby
<shevy> DouweM technical chemistry and biotechnology currently
jrhorn424 is now known as zz_jrhorn424
cj3kim_ has quit [Remote host closed the connection]
<timgauthier> why is R so new to you!
mark_locklear has quit [Quit: Leaving]
<shevy> I never had to use R!
<timgauthier> sweet
<shevy> I hate math ;)
<DouweM> wow, interesting
<timgauthier> me as well shevy
<shevy> now I got no choice so I can't complain much
combusean has joined #ruby
<timgauthier> that and I ended up having am mental breakdown in high school and so i never finished my final year of math
<timgauthier> so theres the whole mental baggage that ties math with that too
<shevy> perhaps I should say higher math, logical math and calculations are ok
sdouglas has joined #ruby
<timgauthier> I am okay with boolean
<shevy> yeah
<timgauthier> i learned that one in 3d modelling :P
terrellt has quit [Remote host closed the connection]
creativeembassy has quit [Quit: FO SHO]
baweaver has joined #ruby
<timgauthier> and counting, i'm okay sometimes,
chrisseaton has quit []
<timgauthier> Seriously kids, don't get 14 concussions
terrellt has joined #ruby
toastynerd has joined #ruby
evenix has quit [Remote host closed the connection]
InfraRuby has joined #ruby
r_rios has joined #ruby
agarie has quit [Ping timeout: 240 seconds]
<shevy> lol
MattStratton has joined #ruby
eka has joined #ruby
SilverKey has quit [Quit: Cheerio!]
<timgauthier> :D
sdouglas has quit [Ping timeout: 245 seconds]
hrs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
terrellt has quit [Ping timeout: 250 seconds]
joaoh82 has joined #ruby
<mg^> I like math, I am just not very good at the more advanced stuff.
webgen has quit [Ping timeout: 250 seconds]
ndrei has quit [Remote host closed the connection]
troyready has joined #ruby
elaptics`away is now known as elaptics
hrs has joined #ruby
duggiefresh has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
ktosiek_ has joined #ruby
cj3kim_ has joined #ruby
fubelly has left #ruby ["Leaving..."]
ktosiek has quit [Ping timeout: 276 seconds]
kpshek has quit []
robbyoconnor has joined #ruby
Nukepuppy has joined #ruby
reppard has joined #ruby
emaxi has quit [Remote host closed the connection]
fgo has joined #ruby
reppard has left #ruby [#ruby]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emaxi has joined #ruby
northfurr has joined #ruby
poikon has quit [Remote host closed the connection]
Azure has quit [Quit: My MBP went to sleep.]
fgo_ has joined #ruby
fgo has quit [Read error: No route to host]
claymore has quit [Quit: Leaving]
poikon has joined #ruby
f0ster__ is now known as f0ster_
f0ster_ is now known as f0ster
f0ster has quit [Changing host]
f0ster has joined #ruby
vpretzel_ has quit [Quit: Adios!]
<shevy> my hate is always a passion
<shevy> he is always smiling like a little buddha
<centrx> What is this, an video advertisement
rudisimo has quit []
emaxi has quit [Ping timeout: 252 seconds]
Azure has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy> yes
<shevy> go watch it now
cj3kim_ has quit [Remote host closed the connection]
fgo_ has quit [Ping timeout: 250 seconds]
<shevy> else I show you some php advertisement
dapz has joined #ruby
<shevy> !!!
poikon has quit [Ping timeout: 250 seconds]
robbyoconnor has quit [Ping timeout: 240 seconds]
<centrx> I do not watch advertisements
hrs has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Remote host closed the connection]
troyready has quit [Remote host closed the connection]
havenwood has joined #ruby
agent_white has joined #ruby
<shevy> haha
<shevy> he had it coming!
<agent_white> Afterevenin folks
<shevy> hey agent black
sriehl has quit []
iamjarvo has quit [Ping timeout: 250 seconds]
<agent_white> Sup doob
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> I took two weeks off computer stuff. Hello internet.
yekta has quit [Quit: yekta]
aspires has quit []
mrmargolis has quit [Remote host closed the connection]
<centrx> "In fact, it evolves much faster than any other language or web platform."
<slash_nick> centrx: in fact
<slash_nick> Conclusion - PHP is the best web platform... ever.
chrisseaton has joined #ruby
Noldorin has joined #ruby
<agent_white> centrx: Mold on bread?
nari has joined #ruby
<Noldorin> why do I get this error whenever running gem?
cj3kim_ has joined #ruby
<shevy> cool
<centrx> "Yes, PHP has a better dependency manager than any other languages."
<shevy> in 1993 matz named the language ruby
havenwood has quit [Ping timeout: 250 seconds]
tvw has quit []
einarj has joined #ruby
<shevy> Noldorin your installation of ruby lacks libyaml
<slash_nick> Noldorin: To eliminate this warning, please install libyaml and reinstall your ruby.
guardian has joined #ruby
<agent_white> Ruby was born 2 years and 2 days after I was. 2+2=4, I have 4 limbs. Coincidence? I think not.
<Noldorin> shevy, slash_nick , how do I do it then? since I don't have gem to install llibyaml...
doodlehaus has quit [Remote host closed the connection]
treehug88 has quit []
pika_pika has joined #ruby
<slash_nick> Noldorin: apt-get install libyaml, probably
<Noldorin> eh i'm on mac
<slash_nick> Noldorin: what OS are you on?
<shevy> Noldorin, the source-way to fix this is to wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz, install it into /usr prefix, recompile ruby, or perhaps it works if you go to its ext/psych subdir and run extconf.rb there
<Noldorin> and libyaml is already installed
<Noldorin> i just checked
ktosiek_ has quit [Ping timeout: 265 seconds]
<shevy> then why did you ruby not pick it up
<shevy> *your
<slash_nick> mayyybe it's installed now but wasn't installed when ruby was installed... are you using the default ruby that ships with osx? orrr?
<shevy> ewwwww osx
einarj has quit [Remote host closed the connection]
<Noldorin> ewwww linux :P
<timgauthier> Noldorin
<slash_nick> no one can say that and mean it
<timgauthier> mac is linux
<Noldorin> rubbish
<timgauthier> and the more you use ruby the more you see the unix
<Noldorin> what nonsense is this timgauthier haha
withnale has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: WeeChat 0.4.3]
<Noldorin> it's BSD-derived, silly :P
<Noldorin> BSD >>> Linux
<Noldorin> *hides*
x1337807x has joined #ruby
sailias has quit [Ping timeout: 258 seconds]
<mg^> hah, MacOS X is nothing like Linux when you want to do simple things, like use getent to get user account info.
<slash_nick> mg^... or install postgresql
Nukepuppy has quit [Ping timeout: 252 seconds]
<mg^> Which also works on BSD, I might add
centrx has quit [Remote host closed the connection]
<shevy> Noldorin my ruby does not have your error! :D
<mg^> yeah but I don't know anyone who would want to do that.
<mg^> :-)
ascarter has joined #ruby
<timgauthier> no one WANTS to do that mg^
<timgauthier> just.. y'know, sometimes
<timgauthier> just like nobody WANTS kids
<timgauthier> they just arrive
aspires has joined #ruby
<mg^> I can accept that. I have two postgres installations mostly because that's the only non-Oracle database the application software supports.
<timgauthier> exactly!
<mg^> Nah, I actually wanted kids... have two of them now.
<timgauthier> wait, why 2 installations?
<timgauthier> i refuse to believe that mg^ :P
<mg^> functional separation
agent_white has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
<timgauthier> and that was the wrong ID in my link
agent_white has joined #ruby
<timgauthier> but whatever, the word unix is in the copy twice on that link
aspires has quit [Client Quit]
<DouweM> you said "mac = linux", but unix != linux ;)
x1337807x has quit [Ping timeout: 252 seconds]
<mg^> I made the mistake of actually reading that php blog post mentioned above.
<timgauthier> haha
michael_lee has joined #ruby
<timgauthier> DouweM you are right
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> Mac is != linux
<timgauthier> mac == unix
elaptics is now known as elaptics`away
<DouweM> mac < unix, linux < unix, rather, with < as implemented on Ruby classes :)
<timgauthier> i can understand your argument for function separation causing kids mg^
GaryOak_ has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
<DouweM> but yeah, I understand what you meanr
<mg^> lol
<timgauthier> :D
<timgauthier> i just scrolled up and saw your response, and realized how easily out of context it was
djbkd has quit [Remote host closed the connection]
meatherly has joined #ruby
<timgauthier> I needed to refer to it to canonize the responses into the correct contexts
<Noldorin> eh, seems it's a Homebrew issue after all :P
<Noldorin> never mind, cheers guys
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> ACK
<timgauthier> cheers
<timgauthier> don't use homebrew
<shevy> now he is saying homebrew sucks!
<slash_nick> lol
<timgauthier> :P
FxK has quit [Ping timeout: 240 seconds]
<timgauthier> I'm going to write my own home-brew replacement shevy
<timgauthier> in php
<timgauthier> or java
<agent_white> I would buy a Mac if I felt like burning money in a trash can. I don't have that kind of money yet :(
<mg^> trick is to get your employer to buy you a Mac
<timgauthier> buy a mac agent_white, its more environmentally friendly then burning money
<mg^> and then do what I did... install Windows on it. :-)
<Noldorin> shevy, damn right it does.
<Noldorin> shevy, at least sometimes...
<agent_white> mg^: Pfft, nah I'd either put Linux on it or tell them to get me a PC with twice the specs for the same price ;)
<timgauthier> thats nice agent
Noldorin has left #ruby [#ruby]
<timgauthier> you will not bait me into that discussion
<agent_white> "Matz is nice so we are nice."
<timgauthier> well and that
deadlock has quit [Read error: Connection reset by peer]
<agent_white> timgauthier: Pfft, no discussion! PC with comparable specs is cheaper! ;)
<timgauthier> I was employed and paid a lot of money by someone and learned how to just move beyond what people prefer to use
helpD has quit [Remote host closed the connection]
davedev24 has joined #ruby
terrellt has joined #ruby
<shevy> mg^ damn it, you have to use windows for work?
<timgauthier> why did i write such a complicated mixing... ugh i'm dreading moving this to my new site
<agent_white> timgauthier: I just like to cause a ruckus... like how much better vim is than emacs! ;)
<shevy> timgauthier told you your path of using erb is the path of doom
<mg^> agent_white: well, I do also have a PC with twice the specs. But the Mac is an 11" Air that I use for travel, it's dual-boot. And since my day job is running an army of Linux boxes, I feel no need to boot it on the Air when it's just an SSH session away.
<timgauthier> shevy why are we surprised, he uses postgres and choose to have kids...
senayar_ has quit [Remote host closed the connection]
<shevy> he had kids with postgres?
gizmore has quit [Ping timeout: 245 seconds]
<shevy> what a weird query that must have been
<timgauthier> hey, shevy is it die, der, or das nutella?
<agent_white> mg^: Fair enough! I wouldn't complain either way. A computer is a computer :)
<mg^> rofl
senayar has joined #ruby
mikecmpbll has joined #ruby
<shevy> good question timgauthier
<timgauthier> it would have been really long, imagine putting the genome sequence into a query!?
<timgauthier> HOW DO YOU EVEN INDEX THAT!
moritzs has joined #ruby
<shevy> timgauthier definitely not die, der also sounds weird; I go with "das Nutella", but I never heard it used with article before
dapz has joined #ruby
mehlah has joined #ruby
<timgauthier> shevy when you are around some germans sometime, ask that question
<mg^> I use Postgres, MySQL, *and* sqlite all in the same server rack!
djbkd has joined #ruby
meatherly has quit [Ping timeout: 258 seconds]
<timgauthier> INSTANT 20 MINUTE ARGUMENT ABOUT GERMAN LANGUAGE RULES!
pwh has quit []
<mg^> they don't know about each other...
<shevy> timgauthier ah the problem is that the people in germany and austria speak different languages ;-)
<timgauthier> turns out that german doesn't have a way to answer the question definitively
<shevy> bavarian being an exception
<mg^> it gets tough living a triple life, but I get to query them as often as I want
<DouweM> shevy: you've never said "can you pass me the nutella"?
<shevy> though their dialect is also slightly different
<mg^> and when the one I'm using gets me upset, I just go to one of the others
<shevy> DouweM uh damn you are right
gizmore has joined #ruby
<shevy> timgauthier DouweM made a great point, in such a sentence I would say "die nutella"
<timgauthier> well its also a word that isn't german, so how do you assign a gender to a borrowword?
<mg^> I mean, "I am going on a business trip"
<DouweM> solved :D
<shevy> weird really
<timgauthier> but die can also be a plural
<shevy> DouweM totally tricked me
<DouweM> hehe
<shevy> yeah timgauthier
<shevy> english has the simpler model compared to german
<timgauthier> technically i'd say das is likely correct though, since it could just be a neutral word
<timgauthier> so then its das/die
davedev24 has quit [Read error: Connection reset by peer]
<shevy> that was what I thought too!
joaoh82 has quit []
<mg^> die Nutella would be the default, wouldn't it?
<shevy> but in the sentence I would totally use 'die'
olivier_bK has quit [Ping timeout: 246 seconds]
<timgauthier> no die is for feminine words
davedev24 has joined #ruby
<timgauthier> die Frau
<shevy> dunno mg^, DouweM confused me
<timgauthier> Der Mann
<timgauthier> Das Kind
<mg^> It's been a long time since I tried to learn German
dawkirst has quit [Remote host closed the connection]
<timgauthier> or you could go turkish, D'Frau, D'Mann, and D'kind
chipotle has quit [Quit: cya]
<shevy> learning german is still better than learning php
<timgauthier> yes
<timgauthier> i should do a duolingo
<shevy> I thought you abandoned php
<timgauthier> (i'm registered and stuff, i mean a session)
<timgauthier> i have
<timgauthier> mostly
yvemath has quit [Quit: ~Surprise.]
<timgauthier> I am actually learning German though
<shevy> can ruby yet replace all you did in php?
terrellt has quit [Ping timeout: 258 seconds]
<timgauthier> no
<timgauthier> until you find me a ruby replacement for kirbyCMS
<shevy> I dont even know what that is
<shevy> in ruby there is one spirit strong
<shevy> write it yourself!
<timgauthier> I need a CMS that i can install on servers that doesn't need a special environment and lets the end user edit content
<shevy> you'll write your own CMS eventually anyway ;-)
<mg^> it's called Linux+Filesystem+vi :)
<timgauthier> KirbyCMS is a flat file CMS that takes markdown and turns them into 'html' via php and uses php as the template language/engine
<timgauthier> shevy likely not
<shevy> definitely you will
<timgauthier> unless we get ruby as a standard feature on web servers like php
<shevy> unless you find something that can replace it
<mg^> "Easy to setup, easy to use, flexible as hell"
<Cope> timgauthier: I use nesta for that fwiw
<shevy> hmm
<timgauthier> i'll more likely use perch
<mg^> that's what it says in the web site
evenix has joined #ruby
<mg^> "as hell" could definitely be the negative when you're talking PHP...
<zorak> how can i make a method that create a hash with a variable number of keys?
marcux has quit [Quit: marcux]
<timgauthier> naw actually mg^ its not bad
<zorak> lie method(5) == 5 eys
<zorak> lie method(5) == 5 keys
<zorak> lie method(3) == 3 keys
<timgauthier> you use PHP logic in the templates which is uglier then erg and super limited
<Cope> zorak: what sort of keys?
<timgauthier> but i've done some pretty good stuff.
<mg^> timgauthier: I agree, I might actually replace the CMS I am using for my dad's business with it after looking at the site
<zorak> 1, 2, 3, 4..
<timgauthier> it kicks the crap out of wordpress
<timgauthier> and its cheap (one time fee)
<timgauthier> there is a good back end for it too, but he's rewriting it
poikon has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<timgauthier> i'd LOVE to use ruby instead but it just isn't feesible :| i mean i could see making a ruby app that acts like perch as a back end that you log into, then it would generate the static html and push it to the ftp
<timgauthier> but why do that when someone else already has
agent_white has joined #ruby
Guedes0 has joined #ruby
afreidah2 has quit [Ping timeout: 258 seconds]
poikon has quit [Read error: No route to host]
poikon has joined #ruby
Devanon has joined #ruby
samuel02 has joined #ruby
deadlock has joined #ruby
<Riking> how do I do a Pathname.join() with a user param without allowing directory traversal?
<bhaak> that kirbycms sounds a lot like a generic static website generator?
<shevy> zorak just fill it up through a loop
tjr9898 has joined #ruby
yvemath has joined #ruby
<timgauthier> check out this amazing monstrosity of scss https://gist.github.com/timgauthier/10782839
maroloccio has joined #ruby
<timgauthier> GLORIOUS!
workmad3 has quit [Ping timeout: 252 seconds]
<DouweM> timgauthier: kirby sounds a bit like jekyll
<timgauthier> its very much similar
<DouweM> as bhaak says, a generic static website generator
<zorak> im trying this http://pastebin.com/wU7BhXqc
<timgauthier> but jekyll actually outputs static html folders that you upload
<timgauthier> kirby isn't really a sag though
<timgauthier> SSG*
<timgauthier> its still php, and still dynamic
<DouweM> ah right, it does it on the fly
<DouweM> right
<timgauthier> technically its a flat file CMS
<DouweM> middleman compiles too, right?
<timgauthier> i'm using middleman, which is really nice
<timgauthier> but yes, it compiles
<bhaak> well, then mod_ruby :)
saarinen has joined #ruby
<DouweM> yeah, it just generates a static site
<timgauthier> you can run it in development mode and get live updating
<DouweM> timgauthier: your first Ruby project: rewrite Kirby
<timgauthier> honestly, I love the idea of true static content
<horrorvacui> So you want to do what now?
<shevy> timgauthier that is actually worse than css as it adds $
<timgauthier> but for client projects they need to be able to log in (or upload ftp files) and change content
<shevy> AND @
<timgauthier> and ruby can do that, sure i could scaffold out a project in rails and have something up decently fast
<shevy> <DouweM> timgauthier: your first Ruby project: rewrite Kirby
<shevy> ^^^
<shevy> he tells you the same as I do!
<timgauthier> and i could even make it work with markdown source files... but i still need a server environment that runs ruby
poikon_ has joined #ruby
<DouweM> that means it must be great advice!
<Cope> zorak: does it have to start at 1?
poikon has quit [Ping timeout: 265 seconds]
<Cope> zorak: ie zorak_hash(5) would give keys of 1,2,3,4,5
<Cope> or is 0,1,2,3,4 ok?
<timgauthier> DouweM shevy those monstrosities in my scss allow me to use varialbes!
<DouweM> yeah, a big plus for php is the fact it runs on virtually every shared host
samuel02 has quit [Ping timeout: 245 seconds]
<timgauthier> the @ could go though, tha'd be great
<timgauthier> exaclty DouweM
<shevy> we have to change that
<zorak> yes cope, but the times have a hash_number +=1
<timgauthier> yes shevy
grzywacz has quit [Ping timeout: 250 seconds]
<zorak> if hash_number start with 1, the actual result will be 2, 3, 4...
<timgauthier> there is also perch
<timgauthier> !g perchapp
tjr9898 has quit [Ping timeout: 258 seconds]
tjr9898 has joined #ruby
<DouweM> timgauthier: pls don't google here
<bhaak> well, there's a reason most sites don't allow uploading scripting language content that gets executed without any scrutiny
<timgauthier> really? :P
chrisja has quit [Quit: leaving]
<timgauthier> but how is PHP any different?
<timgauthier> or javascript
<timgauthier> well i guess js is clientside
<timgauthier> DouweM don't tell me how to live my life mannnn
brito has joined #ruby
<DouweM> timgauthier: I will in this channel :P
x1337807x has joined #ruby
<timgauthier> :)
<Cope> zorak: I am sure there is a much more elegant way :)
terrellt has joined #ruby
<bhaak> with php, people never considered if it's a good idea or not. they just did it.
brito has left #ruby [#ruby]
<zorak> what succ do?
<Cope> gives you the next number
<Cope> so 5.succ gives you 6
chris_thomson has joined #ruby
<timgauthier> what does succ mean?
<DouweM> successor
<timgauthier> then whats the reason that they don't like to allow executable code on a server bhaak ? that seems very backwards and 1990.
<shevy> they don't trust you!
sidik has joined #ruby
<shevy> bhaak should be possible to run it in virtual machines environment jails
<timgauthier> well, then they should learn how to make better servers/sandbox/ and realize that i'm paying for the services!
helpD has joined #ruby
<bhaak> php is also very cheap
crzrcn has quit [Quit: Leaving.]
<bhaak> or the other way around. all the cheap hosters have php
freerobby1 has quit [Read error: Connection reset by peer]
<timgauthier> ruby can be very cheap if you limit it, and honestly most peoples web app doesn't need much processing
<bhaak> but ruby programmers are not as cheap as php programmer :)
<timgauthier> they have it because its prebuilt into the apache config for xpanel
freerobby has joined #ruby
crzrcn has joined #ruby
<timgauthier> in my experience most host's don't actually have a clue what they are doing
invinceable has joined #ruby
saarinen has quit [Quit: saarinen]
<timgauthier> they hire some kid with a CS degree to run web servers
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<invinceable> is there a way to run ruby + html together in a .rb file? i am not using rails, but just want to use ruby in the same way I run a .php file.
<timgauthier> and he doesn't understand why you need the apache mod to have a specific configuration
<timgauthier> invinceable .erb
<timgauthier> you still need to run ruby on it
<timgauthier> its not the same as php
jobewan has quit [Quit: Leaving]
tjr9898 has quit [Ping timeout: 250 seconds]
northfurr has quit [Quit: northfurr]
<timgauthier> and shevy will hate you for using .erb
saarinen has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
<bhaak> erm, you also need a php interpreter to run php files
<bhaak> so shevy is one of those haml lovers?
<Cope> invinceable: what are you actually trying to do?
erikruthven has joined #ruby
<timgauthier> yes bhaak but thats usually built in
<invinceable> timauthier: so I can get away with thin + apache + ruby?
erikruthven has quit [Max SendQ exceeded]
<timgauthier> i don't have any clue invinceable, thats beyond my scope of knowledge
<bhaak> timgauthier: mod_php is as builtin as mod_ruby.
<timgauthier> ah, yeah in that sense
<invinceable> Cope: I am trying to create a page that I can serve from a web server (ubuntu 12.04LTS) and use ruby as a server side language without having to use rails
jason_ has joined #ruby
SCommette has quit [Quit: SCommette]
<timgauthier> heh, i have a host (my current host for my portfolio) that has ruby installed, you can see it from the cpanel
<Cope> invinceable: you don't even need apache... depending on what you're trying to do you could just run thin on its own
<timgauthier> but you can't ssh into the server
<Cope> invinceable: i'd look at sinatra for a simple thing like that - very easy to run
<timgauthier> you have to do all of your stuff via a little form input box in cpanel
toastynerd has quit [Remote host closed the connection]
havenwood has joined #ruby
sdouglas has joined #ruby
jhass is now known as jhass|off
zigomir has quit [Remote host closed the connection]
troyready has joined #ruby
tjr9898 has joined #ruby
ce_afk is now known as cescalante
momomomomo has joined #ruby
<invinceable> Cope: thanks, sinatra looks like what I am trying to do. Neat that you don't need thin either, that it will just run by itself :)
<zorak> Cope: cool, its working
<Cope> awesome zorak
zigomir has joined #ruby
<timgauthier> what is guard ?
Briareos1 has quit [Remote host closed the connection]
<Cope> timgauthier: it watches your filesystem for changes and can run things, like tests
iamjarvo has joined #ruby
<timgauthier> ok neat
djbkd has quit [Remote host closed the connection]
f0ster has quit [Read error: Connection reset by peer]
sdouglas has quit [Ping timeout: 258 seconds]
mengu has quit [Ping timeout: 258 seconds]
BuSerD has quit [Ping timeout: 258 seconds]
Faris has quit [Ping timeout: 240 seconds]
momomomomo has quit [Client Quit]
<DouweM> invinceable: I advise you do use thin though. I think Sinatra comes with WEBrick by default like Rails does, which is not production-grade
tjr9898_ has joined #ruby
<DouweM> It's fine for development, but consider thin, unicorn or whatever if you're gonna run this in production
luckyruby has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 276 seconds]
<DouweM> invinceable: that's also referenced in the very first paragraph on http://www.sinatrarb.com/intro.html :)
toastynerd has joined #ruby
vlad_starkov has joined #ruby
kevinykc_ has quit [Quit: Computer has gone to sleep.]
tjr9898 has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
kevinykchan has joined #ruby
snath has quit [Ping timeout: 250 seconds]
centrx has joined #ruby
jason_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
fgo has joined #ruby
<zorak> Cope: stupid koan, ask me for a "values" method and is not for an array, for a values variable
<DouweM> and wow, I think I'm finally done studying for my exam tomorrow morning :D I'mma get some sleep. cheers all
<shevy> bhaak I hate haml as much as I do hate erb
<zorak> Cope: have to cheat and look at this line 28 https://github.com/jimmah/ruby_koans_answers/blob/master/about_dice_project.rb
<shevy> bhaak I think in the end it is all about picking what sucks the least, rather than electing what rocks the most :(
<guardian> hello, how do I solve: gem install RMagick
<guardian> ERROR: Could not find a valid gem 'RMagick' (>= 0) in any repository
<guardian> ERROR: Possible alternatives: rmagick
<shevy> guardian downcase?
<guardian> looks like debian/ubuntu wants RMagick while mac wants rmagick
<shevy> no that makes no sense
<invinceable> DouweM: I see :)
<guardian> project and its Gemfile is supposed to be used by both
<shevy> rubygems is remote
fgo has quit [Read error: No route to host]
mary5030 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> what you should do guardian is visit rubygems.org, then you see it is here: https://rubygems.org/gems/rmagick
fgo has joined #ruby
<shevy> and the only valid syntax to install it is given there as well, which is "gem install rmagick"
<guardian> indeed
spyderman4g63 has quit [Remote host closed the connection]
<shevy> though perhaps you can download it, rename the gem to RMagick.gem and try gem install RMagick again :-)
vlad_starkov has quit [Ping timeout: 240 seconds]
<guardian> so it's rmagick in Gemfile but require 'RMagick' in the code?
omosoj has joined #ruby
<timgauthier> oh man, i disabled flux for a moment to check a colour.. PAIN!
<guardian> if I do require 'RMagick' in code, then on my Mac I get warnings about already initialized stuff... and they differ only by rmagick vs RMagick in paths
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> usually such a project comes with usage examples how to use it
<shevy> then you will know how to properly require it
<shevy> i grepped through its source
<shevy> lib/rvg/rvg.rb:require 'RMagick'
<shevy> so to me this indicates that you must use require 'RMagick'
tjr9898 has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
<shevy> I don't use gemfiles either, I use .gemspec, in the gemspec specification there is an field called .name which must have: s.name = "rmagick"
<Riking> I just got /var/lib/gems/2.0.0/gems/json-1.8.1/lib/json/common.rb:67: [BUG] Segmentation fault
cj3kim_ has quit [Remote host closed the connection]
<shevy> you surely must be using debian right Riking?
<Riking> mhm
baweaver has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<Riking> oh hey, I see 2.0.0 calling into a 1.9.1 gem
<shevy> people need to be able to reproduce the way you caused this segfault
<Riking> look at this segment of the crash: http://pastebin.com/xK5x78uE
<Riking> i think something's screwy
AlexRussia has quit [Ping timeout: 250 seconds]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 250 seconds]
tjr9898_ has quit [Ping timeout: 265 seconds]
tjr9898_ has joined #ruby
<timgauthier> yes
northfurr has joined #ruby
djbkd has joined #ruby
agarie has joined #ruby
<guardian> in a project that's bundler aware, do I even need require 'RMagick' before using RMagick?
garndt has quit [Quit: Connection closed for inactivity]
<shevy> hehe
<shevy> bundler makes people smarter ;-)
baweaver has quit [Ping timeout: 258 seconds]
<guardian> well it's just, if I do require 'RMagick' which seems to be the proper thing to do, I get tons of warnings on Mac
momomomomo has joined #ruby
<shevy> ok
<guardian> if I do require 'rmagick' on Mac, no warnings but it fails on Linux
<shevy> I installed rmagick on linux
<shevy> I start irb, I do require 'RMagick'; i get no warnings
<shevy> and
<shevy> it is require 'RMagick'
<shevy> not require 'rmagick' ever
<guardian> sure
mehlah has quit [Quit: Leaving...]
<guardian> but I'm in the context of nanoc, which seems to do something with bundler and load things
<shevy> I wouldn't use upcased characters in require myself, the authors of rmagick were insane
pwh has joined #ruby
crzrcn has quit [Quit: Leaving.]
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
intothev01d has joined #ruby
<guardian> ok
intothev01d has left #ruby [#ruby]
tjr9898 has joined #ruby
<Riking> i'm going to remove all debian ruby packages
<Riking> and start over
crzrcn has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
endash_ has quit [Quit: endash_]
SCommette has joined #ruby
afreidah2 has joined #ruby
<timgauthier> is it that CLANG error ?
samuel02 has joined #ruby
<timgauthier> i had some issue on mac getting nanoc to isntall
<timgauthier> #nanoc is super helpful, when there is actually someone active in there
<Riking> thanks, synaptics - you made that so much easier
baweaver has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
<timgauthier> i ended up going middleman bedause it made more sense'
<Riking> now let's start with rvm
spyderman4g63 has joined #ruby
<Cope> now you have two problems
spyderman4g63 has quit [Remote host closed the connection]
<Riking> heh
iamjarvo has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
<Cope> personally, I avoid rvm
spyderman4g63 has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
<Riking> what should I use then?
<timgauthier> yeah man
spyderman4g63 has joined #ruby
<timgauthier> use bundle install nanoc
<Cope> Riking: I use ruby-install, chruby and bundler
<Riking> timgauthier, I just removed all ruby from my system, because it was fucked up
<timgauthier> well then go to bundler.io and follow directions to reinstall it once you have ruby installed/compiled, whatever it is that kids use these days
<shevy> Riking I compile everything from source. while initially it takes time (I have to do: "ue URL_HERE" of a program, then it is downloaded and compiled), it saves me from having to undo damage done by developers like on debian
spyderman4g63 has quit [Client Quit]
<timgauthier> i may have used RVM to actually update my ruby
<timgauthier> and stop using the system ruby
Sc0rp10n has joined #ruby
<timgauthier> but then its bundle most of the time
<timgauthier> i saw the light from shevy on that one
<Riking> My goal was to remove all traces of system ruby and start over from...something
<timgauthier> then he fought me about how good it is to always use .erb files
<timgauthier> tought*
samuel02 has quit [Ping timeout: 245 seconds]
<timgauthier> ah i see Riking
bricker`LA has joined #ruby
<Cope> Riking: right; I strongly recommend you to check out ruby-install (and then chruby if you want)
SCommette has quit [Quit: SCommette]
<shevy> Riking the problem with compiling from source on debian is that you need to start to uncripple the packages first
<Cope> it's very simple - no extra features, no secret magic, no billion line shell scripts, no reproduction of what bundler does etc
<shevy> so that means usually to install some dev- packages
<Riking> Okay, using ruby-install
Musashi1 has joined #ruby
<Cope> shevy: ruby-install actually installs all the stuff you need for you on most linuxes
Musashi1 has quit [Client Quit]
<shevy> cool
terrellt has quit [Quit: Leaving...]
mikecmpbll has quit [Quit: i've nodded off.]
SCommette has joined #ruby
<Riking> heh, had a bit of a worry there
<Riking> it was all "dpkg is locked!"
pel_daniel has joined #ruby
<Cope> hehe
<Riking> because synaptics was still open
crystal77 has quit [Quit: Computer has gone to sleep.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has quit [Ping timeout: 252 seconds]
<Riking> hm, I left RubyMine open. wonder if it'll freak out
<Riking> (student license)
<timgauthier> close it?
<Riking> yeah, decided to do that
<Cope> Riking: so ruby-install will give you your rubies under /opt/rubies
<shevy> :D
<timgauthier> :P it should be fine
sidik has quit [Ping timeout: 252 seconds]
<Cope> eg /opt/ruby/ruby-2.1.0
<Cope> etc
<Riking> IT probably runs an embedded JRuby
terrellt has joined #ruby
<shevy> hehehe
eynj has joined #ruby
<Cope> Riking: if you want to run more than one ruby, chruby is handy - it basically just manipulates your shell path
<shevy> you are quite persistent in not giving up Riking
<Riking> okay, thanks co
<Cope> same author, roughly 100 lines of shell
<Riking> cope *
<guardian> shevy: I ended up doing gem 'rmagick', :require => 'RMagick'
<shevy> weird syntax
<guardian> shevy: RMagick folks insisting on that case is a clusterfuck
<shevy> yeah
<Riking> I'm pretty sure it's compiling, based on the words 'make[2]' and 'compiling'
<shevy> I thought rmagick died years ago though
<Cope> Riking: time for a beverage of choice!
<shevy> https://github.com/rmagick is not the original author as far as I know
ws2k33 has quit [Ping timeout: 240 seconds]
Bumptiou_ has quit [Remote host closed the connection]
<Riking> i see that make is not utilizing all of my corez
SCommette has quit [Quit: SCommette]
<Cope> in shock news, ancient unix tool is single threaded
Megtastique has quit []
<Riking> -j#
<Riking> which still bottlenecks 70% of the time
andrewlio has quit [Remote host closed the connection]
michael_lee has quit [Quit: Ex-Chat]
mary5030 has joined #ruby
* Cope reads man make
tjr9898 has joined #ruby
<shevy> isn't there some environment variable
<Riking> MAKEOPTS maybe
mary5030 has quit [Remote host closed the connection]
<Riking> whatever, it's already done
<Cope> sweet
<shevy> :P
mary5030 has joined #ruby
<timgauthier> how many of you are on ssds?
<Riking> now how do I get these on my path... Oh, let me guess, chruby
<Riking> timgauthier, hybrid hd reporting in
<Cope> Riking: chruby may be overkill if you only want one
<shevy> timgauthier I am more on lsds but ssds sound awesome as well
<timgauthier> the read man make statement you made had me thinkin
djbender has quit [Quit: djbender]
<timgauthier> i'm on a mba and when i go to a spinning disk computer its unbearably slow read writing
<Riking> Cope, okay. which .bash_something do I use?
<Cope> Riking: export PATH=$PATH:/opt/rubies/ruby-2.1.1/bin
<timgauthier> fusion drive riking? or one of the other hybrids?
<Cope> to test; and then either .bashrc or .bash_profile will be fine
<Cope> chruby is worth having - it's a single file, and then source it in .bashrc
<Riking> timgauthier, one of the ones that has a SSD to cache common reads
<Cope> well not a single file... but... a single line to add
<timgauthier> i'm going to go to sleep now
<timgauthier> i only got like 4 hours of sleep
<Cope> +1
<Cope> I seem to have 4 mins battery left... it's a sign
<timgauthier> and as much as i want to push myself to keep going, i'm already not productive
<timgauthier> ttyl
robbyoconnor has joined #ruby
tjr9898_ has joined #ruby
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
luckyruby has joined #ruby
mikecmpbll has joined #ruby
<Riking> O.o
tjr9898 has quit [Ping timeout: 276 seconds]
SCommette has joined #ruby
<Riking> ack -n rvm
mercwithamouth has joined #ruby
SCommette has quit [Client Quit]
<Riking> lol I thought rvm put itself into .viminfo for some reason...
danshultz has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SCommette has joined #ruby
cj3kim has joined #ruby
klaut has quit [Remote host closed the connection]
tjr9898_ has quit [Ping timeout: 250 seconds]
helpD has quit [Remote host closed the connection]
MatthewsFace has quit [Quit: This computer has gone to sleep]
lkba has quit [Ping timeout: 258 seconds]
luckyruby has quit [Remote host closed the connection]
luckyruby has joined #ruby
<Riking> Okay, what's going on: http://paste.ubuntu.com/7258262/
robbyoconnor has quit [Ping timeout: 265 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
<Riking> sudo cp /opt/rubies/ruby-2.1.1/bin/pry /usr/local/bin/pry fixed it
<Riking> *shrug*
<Riking> oh. the path was hashed
<shevy> hehe
mansi has quit [Ping timeout: 252 seconds]
MatthewsFace has joined #ruby
<Riking> mental note: type > which
<shevy> Riking, any particular reason you need ruby?
<Riking> shevy, decided to try making a rails site after working with Discourse
<Riking> Discourse has a vagrant VM for running the development stuffs
Vovko has joined #ruby
Vovko has quit [Remote host closed the connection]
tjr9898 has joined #ruby
postmodern has joined #ruby
Neener54 has quit [Ping timeout: 265 seconds]
MatthewsFace has quit [Client Quit]
<shevy> aha
<shevy> so rails got you to ruby
cescalante is now known as ce_afk
__class__ has quit [Read error: No route to host]
<Riking> mhm
Akuma has joined #ruby
bridge_ has joined #ruby
Fretta has quit [Quit: Fretta]
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
pel_daniel has left #ruby [#ruby]
<Riking> and now to finally bundle install on discourse - the VM is running ruby2.0 and i'm on 2.1.1, so nokogiri won't conflict
mg^ is now known as mg^away
cj3kim has quit [Remote host closed the connection]
chrisseaton has quit []
kevind has quit [Quit: kevind]
<bridge_> hey guys i am trying to query ldap and i want to check whether an attribute exist or not for a user
mikecmpbll has quit [Quit: i've nodded off.]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
Martxel has quit [Read error: Connection reset by peer]
sdouglas has joined #ruby
tjr9898_ has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
tjr9898 has quit [Read error: Connection reset by peer]
cjbottaro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tjr9898 has joined #ruby
sambao21 has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
agarie has quit [Remote host closed the connection]
agarie has joined #ruby
danshultz has quit [Remote host closed the connection]
xerxas has quit [Quit: Connection closed for inactivity]
MatthewsFace has joined #ruby
danshultz has joined #ruby
funburn has joined #ruby
__class__ has joined #ruby
ukd1 has quit [Quit: Leaving...]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Ping timeout: 258 seconds]
horofox_ has joined #ruby
tjr9898 has quit [Ping timeout: 258 seconds]
combusean has quit [Ping timeout: 245 seconds]
moritzs has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
MatthewsFace has quit [Ping timeout: 240 seconds]
combusean has joined #ruby
danshultz has quit [Ping timeout: 258 seconds]
yubrew has quit [Remote host closed the connection]
baweaver has quit [Ping timeout: 240 seconds]
v4n has joined #ruby
MatthewsFace has joined #ruby
aspires has joined #ruby
Oog has joined #ruby
yubrew has joined #ruby
fgo has joined #ruby
<Oog> thread.join is not honoring the limit passed in.... it seems to hang forever. ideas?
<Oog> Timeout.timeoutis also hanging and not firing when it shoudl
MatthewsFace has quit [Client Quit]
freerobby has joined #ruby
pu22l3r has joined #ruby
toastynerd has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 265 seconds]
jamto11 has quit [Remote host closed the connection]
lanalyst has quit [Remote host closed the connection]
danshultz has joined #ruby
Sc0rp10n has quit [Quit: Leaving]
handlename has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
crystal77 has joined #ruby
bthesorceror has joined #ruby
aspires has quit []
Drewch has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
echevemaster has quit [Ping timeout: 252 seconds]
dstynchula has quit []
echevemaster has joined #ruby
danshultz has quit [Remote host closed the connection]
dapz has joined #ruby
crzrcn has quit [Quit: Leaving.]
danshultz has joined #ruby
marr has quit [Ping timeout: 265 seconds]
erikruthven has joined #ruby
nateberkopec has quit [Quit: Leaving...]
enebo has joined #ruby