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
<Devanon> I have a dictionary file with 3 million strings of random letters. Given a string, my program should output all the anagrams contained in the dictionary. Actually I am processing the dictionary file and storing everything in a hash (written to a JSON file on program close to avoid processing it every time).
freerobby has quit [Quit: Leaving.]
<Devanon> Instead of parsing the JSON file into the hash I was thinking to use SQLite. Any other idea?
combusean has quit [Ping timeout: 265 seconds]
<AntelopeSalad> sqlite wouldn't be a bad idea for this use case
freerobby has joined #ruby
rm__ has quit [Remote host closed the connection]
rm__ has joined #ruby
danshultz has quit [Ping timeout: 245 seconds]
<Devanon> I will try it
robbyoconnor has joined #ruby
djbkd has joined #ruby
aantix has quit [Quit: aantix]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rm__ has quit [Ping timeout: 245 seconds]
poikon_ has quit []
djbkd has quit [Client Quit]
supermarin has joined #ruby
nateberkopec has joined #ruby
ascarter has quit [Ping timeout: 276 seconds]
MatthewsFace has joined #ruby
eyeamaye has joined #ruby
tjr9898 has joined #ruby
<eyeamaye> anybody know why this is failing on line 3? *
pu22l3r has quit [Remote host closed the connection]
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
Oog has left #ruby [#ruby]
Oog has joined #ruby
<InfraRuby> eyeamaye: m is a symbol
<eyeamaye> InfraRuby ah, let me try and fix that
<InfraRuby> eyeamaye: umm.. wtf are you trying to do?
HobogrammerWork has quit [Ping timeout: 276 seconds]
iliketurtles has joined #ruby
lethjakman has joined #ruby
<lethjakman> can't you do something like: def grabs<< grab
<lethjakman> it's telling me "unexpected <<"
<InfraRuby> lethjakman: what would you want that to do?
<bridge_> hey guys i am trying to query ldap and i want to check whether an attribute exist or not for a user
nichtdiebohne has joined #ruby
<lethjakman> my_model.grabs << grab
<bridge_> l
fella6s has quit [Read error: Connection reset by peer]
v4n has quit [Remote host closed the connection]
<InfraRuby> lethjakman: you can def << in the class for grabs
cj3kim has joined #ruby
pietr0 has quit [Quit: pietr0]
nichtdiebohne1 has quit [Ping timeout: 252 seconds]
<lethjakman> InfraRuby: hmmmm, alright. that does make sense. thank you.
cj3kim has quit [Remote host closed the connection]
ziyadb_ has quit [Changing host]
ziyadb_ has joined #ruby
ziyadb_ has joined #ruby
ziyadb_ has quit [Changing host]
<InfraRuby> eyeamaye: you could use String#partition for that too
<InfraRuby> eyeamaye: v1, _, v2 = m.to_s.partition("_")
cj3kim has joined #ruby
samg_ has joined #ruby
<centrx> How are you getting three variables from that
<eyeamaye> InfraRuby, that doesn't work
<centrx> ah it's not Array#partition
<eyeamaye> can't convert Symbol to String (Symbol#to_str gives NilClass) (TypeError)
<samg_> I have a class that includes Enumerable. I noticed that I can't splat instances of that type to destructure them. Instead I need to explicitly call .to_a on it first. Doesn't it seem like splat should work on any enumerable?
ephemerian has quit [Remote host closed the connection]
nari has quit [Ping timeout: 258 seconds]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
<eyeamaye> i'd prefer to split into an array
<eyeamaye> but
<InfraRuby> eyeamaye: what doesn't work? pastie?
<centrx> eyeamaye, That is something messed up with your m variable then
<eyeamaye> when i try and do that, i get error 2 for 1
<InfraRuby> line 7?
<InfraRuby> remove to .to_sym
cj3kim has quit [Remote host closed the connection]
<InfraRuby> the*
MatthewsFace has quit [Ping timeout: 245 seconds]
<samg_> I wonder how rails makes it possible to splat ActiveRecord::Relation objects.
<eyeamaye> >`method_missing': wrong number of arguments (2 for 1) (ArgumentError)
<InfraRuby> eyeamaye: remove to_sym at line 6
<centrx> samg_, ActiveRecord::Relation inherits from Array
<eyeamaye> InfraRuby, line 4 is failing tho
<samg_> centrx: I just looked at relation.class.ancestors and array isn't there
<eyeamaye> doesn't even reach 6
<InfraRuby> eyeamaye: m is a symbol
<eyeamaye> v[1] isn't a sym i dont think
<eyeamaye> nor do i want it to be
x1337807x has joined #ruby
<InfraRuby> *m* is a symbol
<eyeamaye> err,
<eyeamaye> wait i see the mistake ur talkinga bout
lw has quit [Quit: s]
oo_ has joined #ruby
Nukepuppy has joined #ruby
<shevy> eyeamaye always check for the type therein
<shevy> m.split('_')
<shevy> might be a non string object
<samg_> centrx: ah! I need to define to_ary, to_a isn't sufficient
iamjarvo has joined #ruby
<samg_> Neat! Turns out I can splat my own types.
<eyeamaye> shevy, how can i get a string from a symbol?
<shevy> eyeamaye you can put the symbol into string via .to_s method
momomomomo has quit [Quit: momomomomo]
danshultz has joined #ruby
echevemaster has quit [Quit: Leaving]
Doppp has quit [Ping timeout: 265 seconds]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<ponga> god damn it codecademy bug
kitak has quit [Remote host closed the connection]
<ponga> finally figured it out
omosoj has joined #ruby
<eyeamaye> hmm
<eyeamaye> shevy, well that worked, thanks
<eyeamaye> but code isn't doing what i thought it would do
kitak has joined #ruby
Drewch has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim has joined #ruby
<shevy> well
<eyeamaye> here is current paste. http://pastie.org/9083482 What i'm expecting the output to be is #=> No hi_john, lets try to make it! \n "Hi, John"
enebo has quit [Quit: enebo]
<shevy> in my opinion method_missing often leads to a lot of complexity for marginal benefits, in like 95% of the cases I saw it being used
piv has joined #ruby
<eyeamaye> i'm doing this purely for fun
<eyeamaye> absolutely no functional use
testcore has quit [Quit: BitchX: born to raise hell]
cj3kim has quit [Remote host closed the connection]
<shevy> eyeamaye you only define it right? you dont call it?
<eyeamaye> i call it
<eyeamaye> err
<eyeamaye> wait
<shevy> where
<shevy> can you show the line where you call it please
<eyeamaye> no i'm only defining
<InfraRuby> eyeamaye: what is name?
<eyeamaye> InfraRuby, thanks for catching that, old variable
lukec has quit [Quit: lukec]
sailias has joined #ruby
<eyeamaye> > No hi_john, lets try to make it!
<eyeamaye> "Hi,John"
<eyeamaye> :D
<eyeamaye> thanks!
lw has joined #ruby
<shevy> hehe
<shevy> I just tried to fix your code in my editor
<shevy> and I got stumped at the variable name
<shevy> :-)
<shevy> where did it come from!
rm__ has joined #ruby
zz_karupanerura is now known as karupanerura
oo_ has quit [Remote host closed the connection]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
<eyeamaye> completed code
tjr9898 has joined #ruby
<eyeamaye> works like a charm! :D
<shevy> except that it is awful
<eyeamaye> lol
<eyeamaye> how would you improve it?
danshultz has quit [Remote host closed the connection]
<shevy> no
<shevy> there is no hope
<shevy> the little improvements would be outweighed by using method_missing
danshultz has joined #ruby
<shevy> it gives you -250 karma
<shevy> the little improvements might add +80 but you are still in the negative
<eyeamaye> are you saying i shouldn't use def method_missing?
<shevy> I am grepping where I use method_missing
<shevy> time/weekday.rb: def self.method_missing(m, *args)
horofox_ has quit [Quit: horofox_]
<shevy> eyeamaye oh no, 5% may be useful and legitimate reason
<shevy> for instance, I use it in my (super incomplete) ruby mud to simulate LPC behaviour of objects
<shevy> features just come at a price
Nukepuppy has quit [Ping timeout: 258 seconds]
<shevy> many years ago I was delegating non existing methods to other classes
<shevy> at the third delegation, I no longer understood what was going on when I tried to fix a bug a year later in that project
<ponga> altho I really the arts of ruby, I told my friend to try out JS for his first time in life learning programming
<shevy> ack
<shevy> why did you not tell him to php
<shevy> or not just to simply die ponga
<ponga> why lol i think JS is simple enough and yet holds essence
<shevy> the core of ruby is very simple
redondos has quit [Excess Flood]
crzrcn has joined #ruby
<ponga> i know but it doesn't for-loop and etc
Oog has quit []
redondos has joined #ruby
<shevy> ruby has the for loop
<ponga> the style is very different
r_rios has quit [Quit: No Ping reply in 180 seconds.]
<ponga> I think JS was good recommendation
<shevy> of course
<shevy> you recommended it
<shevy> it must be good
<shevy> :-)
rm__ has quit [Ping timeout: 250 seconds]
<shevy> you would not recommend a bad language would you ;)
danshultz has quit [Ping timeout: 252 seconds]
crucify_me has joined #ruby
<ponga> I was scared of what he'd say after learnt basic ruby then looked at source codes of JAVA, C++, etc
<ponga> he might scream and never gets out of his room
robbyoconnor has quit [Excess Flood]
r_rios has joined #ruby
wald0 has joined #ruby
<shevy> well
robbyoconnor has joined #ruby
<shevy> java and C++ look semi similar in style
fgo has joined #ruby
<shevy> int main() {
<shevy> return 42;
<shevy> }
danshultz has joined #ruby
<shevy> then you have some extra verbosity like perhaps public or private
<shevy> sometimes perhaps <bla> templates
dima_ has quit [Remote host closed the connection]
<Hytosys> final absolute holy shit public static void main() { ... }
<ponga> I think learning ruby for the first time in programming is too good, perhaps
<shevy> hehe
<crucify_me> hi when I was using amend-line in pry to correct a typo, I somehow got bumped out of the prog. How do you rerun code in pry without retyping the whole prog?
<InfraRuby> Hytosys: don't need final there
<ponga> puts "hello world" and then you see this public void static main(String[] args) { balh blah
<Hytosys> I know ;)
deens has quit [Remote host closed the connection]
<shevy> yes, extra verbosity
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Hytosys> the verbosity has its own charm, much like objective-c
<shevy> I think it is a language that aims to satisfy the parser much more than the human eye
dima_ has joined #ruby
crzrcn has quit [Client Quit]
<Hytosys> yeah
<ponga> from exprience i had when i learn JS, i think it was simple enough yet held that C-style of looks
<ponga> its why i recommended it to my friend
samg_ has quit [Quit: leaving]
<shevy> but your friend would not know C-style
<Devanon> crucify_me: I am not sure about your question, but... hist --replay init_line..end_line?
<ponga> well if he gets familiar with C style i thought he could handle many things after then
<InfraRuby> Hytosys: oh, and absolute holy shit is invalid
<shevy> now you primed him for his future java career, he will love that style ;-)
<crucify_me> oh all in one command Devanon ? thanks
<Hytosys> InfraRuby: yeah it's been a few years...
deens has joined #ruby
<Devanon> crucify_me: :)
jamto11 has joined #ruby
<ponga> my first language was java yet i much prefer ruby
<ponga> 'tis so pretty language
danijoo has quit [Read error: Connection reset by peer]
<ponga> well him learning JS is almost a hobby too!
fgo has quit [Ping timeout: 258 seconds]
danijoo has joined #ruby
<eyeamaye> shevy, better? http://pastie.org/9083512
<shevy> eyeamaye lol
<shevy> eyeamaye when I find such code I happily eliminate it, then I must try to identify the person in reallife
<ponga> wth
nateberkopec has quit [Quit: Leaving...]
<ponga> eyeamaye, i'm a noob but i could say that code looks a bit.. um
<ponga> i dunno
crzrcn has joined #ruby
dapz has joined #ruby
<Hytosys> does anyone know why protected/private in ruby are so different than say, java and c++?
<ponga> because it is different?..
<shevy> Hytosys ruby is always very dynamic
Devanon has quit [Quit: WeeChat 0.4.3]
<shevy> Hytosys for private and protected to work as-is in java, ruby would have to lose a lot of its flexibility
<ponga> good work shevy! i should give you a cookie
<eyeamaye> ponga, what's wrong with the code?
<Hytosys> I just find it interesting that `private` methods are accessible in subclasses whereas in java/c++ that would be `protected`
<crucify_me> anyone know what to do when pry crashes ad nauseum?
<shevy> Hytosys for instance, .class_eval, the other evals, method_missing, .send and so forth
<ponga> eyeamaye, never mind im a noob , i just thought it looked messy
<Hytosys> hmm, can you elaborate a bit shevy? I'm familiar with those methods
<shevy> crucify_me sure! go back to simplicty. irb ;-)
x77686d has quit [Quit: x77686d]
<eyeamaye> ponga, lol i wasn't being serious. it's parody code. shevy told me not to use def missing_method
<eyeamaye> so i didn't use def missing_method
<shevy> Hytosys well we can redefine every method in ruby at runtime
<Hytosys> right
SCommette has quit [Quit: SCommette]
<ponga> ok lol
<eyeamaye> i used self.class.send(:define_method, :method_missing)
nari has joined #ruby
narcan has joined #ruby
<shevy> so I should be able to really change any @ivars you try to protect away from me by redefining what you give me
<unholycrab> any idea how i can put a command like `diff <(foo) <(bar)` into ruby? it says "sytax error near unexpected token `('"
<Hytosys> right, makes sense..
<crucify_me> really shevy you don't like pry? I' m trying to learn ruby using pry. I read to install rubinius and play with it in pry as a good way to learn ruby.
<eyeamaye> has anybody experimented with different ways of invoking missing_method?
<shevy> unholycrab what is the string version of that command?
<unholycrab> i tried escaping the < and ( characters with a \, but i gto the same result
<Hytosys> thanks shevy
<shevy> crucify_me I have no problem with pry, I just don't use it
<unholycrab> shevy: the string version?
<shevy> unholycrab yeah, for instace: "ls --help" <--
<shevy> *instance
<unholycrab> oh its two mongoexport commands
<eyeamaye> because apparently missing_method is triggered whenever an object receives a message it doesn't know what to do
<shevy> ok unholycrab but there must be a string version you give to your shell that works
<unholycrab> and if i copy the exact command it gives in the error output to the terminal, it will work
<unholycrab> yes
<shevy> so when that command works, the same command will work in ruby, via ``
<Riking> How do I iterate an Enumerable with special behavior for the first and last?
<shevy> unholycrab let me try a simple command via < redirect
dik_dak has quit [Quit: Leaving]
senayar_ has joined #ruby
<unholycrab> diff <(mongoexport --host X.compute.amazonaws.com --db X --collection system.indexes --csv --fields ns,key | sed -e 's/X/db/' | sort) <(mongoexport --host X.amazonaws.com --db X --collection system.indexes --csv --fields ns,key | sed -e 's/X/db/' | sort)
<unholycrab> something like that
<shevy> unholycrab, this here works, so at least > redirectos work system "echo yo > hi"
<shevy> I assume < means to read in from a file?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
handlename has quit [Quit: ZNC - http://znc.in]
<shevy> hmm interesting
<shevy> I get different errors
<unholycrab> shevy: i get the same when i do something like `diff <(ls /var) <(ls /var)`
Fire-Dragon-DoL has joined #ruby
<unholycrab> syntax error near unexpected token `('
<shevy> but in one case it is ruby using sh, in the other it is bash
<shevy> bash gives me this error
<shevy> bash: mongoexport: command not found
<ponga> I heard EvE Online is written in python, does this mean we could write an enterprise game in ruby as well
kitak_ has joined #ruby
<shevy> ponga dunno
<ponga> game written in python...intersting
<unholycrab> shevy: of course, you don't have mongoexport installed...
<unholycrab> try my second example
rm__ has joined #ruby
<unholycrab> maybe that is the problem. ruby is using sh instead of bash
<shevy> unholycrab I think /bin/sh probably behaves different
<myke> specifically, stackless python
<shevy> you should be able to use bash via popen but I dont remember the syntax offhand
oo_ has joined #ruby
<eyeamaye> "pong".public_send("send", "eval", "`ping -c 3 8.8.8.8`")
<unholycrab> sh: -c: line 0: syntax error near unexpected token `('
<unholycrab> sh: -c: line 0: `/bin/bash diff <(ls /var) <(ls /var)'
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
senayar has quit [Ping timeout: 240 seconds]
<unholycrab> okay im retarded
<unholycrab> thanks shevy i think this helps
cashnguns has joined #ruby
<shevy> hmm
<shevy> the command looked quite complicated too
tkuchiki has joined #ruby
<eyeamaye> shevy, apparently missing_method is triggered whenever an object receives a message it doesn't know what to do, you ever played with that?
<shevy> ponga for some reason, either python is simpler in ruby, or there are more python devs. or perhaps both
<shevy> eyeamaye sure. didn't I tell you why I try to avoid it?
<shevy> <shevy> many years ago I was delegating non existing methods to other classes
<shevy> <shevy> at the third delegation, I no longer understood what was going on
<crucify_me> anyone know what pry-remote is ? I did a gem query --local and got this weird gem I didn't install.
pu22l3r has joined #ruby
<shevy> crucify_me there is #pry too btw
ghr has joined #ruby
<shevy> ponga if you ever find out why python has more GUI bindings pls lemme know
lukec has joined #ruby
samuel02 has joined #ruby
andy__ has quit [Ping timeout: 250 seconds]
blackavr has quit [Quit: blackavr]
<ponga> is that a proposed joke shevy
<crucify_me> a ruby method.. shevy
<shevy> crucify_me hmm?
<crucify_me> I installed pry-doc but something is listing as pry-remote
<shevy> crucify_me all gems should be at rubygems.org
<shevy> it has a search functionality too
<shevy> then you can find https://rubygems.org/gems/pry-remote
maletor has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
senayar_ has quit [Remote host closed the connection]
<shevy> the author of that is here btw Mon_Ouie
<shevy> ponga no joke
<ponga> ok
<crucify_me> thanks shevy something odd happened. I installed rubinius and all my pry related gems disappeared. then I uninstalled rubinius and they returned to the list. weird.
mansi has joined #ruby
<shevy> hehe
weaksauce has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 240 seconds]
JBreit has left #ruby ["Leaving"]
samuel02 has quit [Ping timeout: 252 seconds]
<crucify_me> is it valid to try to learn ruby by looking at rubinius methods in pry?
afreidah2 has quit [Ping timeout: 246 seconds]
r_rios has quit [Ping timeout: 240 seconds]
<shevy> sounds as if you want to have everything at the same time :-)
<shevy> now only add rails on top of that stack and you are ready to go!
amclain has joined #ruby
Hytosys has quit [Read error: Connection reset by peer]
Hytosys has joined #ruby
rook2pawn has quit [Remote host closed the connection]
baroquebobcat has quit [Ping timeout: 276 seconds]
sailias has quit [Ping timeout: 252 seconds]
<eyeamaye> shevy, how can i break these lines out of the send method? and use ruby's standard syntax http://pastie.org/9083564#5-6
ponga has quit [Ping timeout: 265 seconds]
<eyeamaye> or is it not possible with what im doing
<shevy> ewwww
nateberkopec has joined #ruby
<shevy> the problem is not only do you attempt to outsmart yourself by combining send and method_missing and define_method all at the same time
<shevy> you also do it in ways that makes it hard to understand what is going on
<shevy> for instance:
<shevy> self.class.send(('hi_' + v[1]).to_sym)
<shevy> if I ask you for the name of the method
<shevy> and display it to the user
<shevy> what is the name?
diegoviola has joined #ruby
<eyeamaye> hi_*
Hanmac1 has joined #ruby
<shevy> that is not a valid name
<eyeamaye> because it's only valid when there is input
<shevy> sure but it has a valid name then
<shevy> and I wanted to know that valid name
<shevy> you even use ('hi_' + v[1]).to_sym twice
<eyeamaye> ah good point
<shevy> I don't like this style of coding
<shevy> it does not follow the simplest possible way
Lewix has joined #ruby
osvico has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
<shevy> it is code that does not intent to stay simple
osvico has joined #ruby
jamto11 has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 265 seconds]
weaksauce has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<Hytosys> shevy I agree, but how would you address this specific issue? would you just shove ('hi_' + v[1]).to_sym into a variable or make it a method?
<eyeamaye> shevy, i'm just playing with concepts
s_e has quit [Ping timeout: 250 seconds]
afex has quit [Ping timeout: 240 seconds]
<eyeamaye> i think i can break it apart myself now
bricker`LA has quit [Ping timeout: 245 seconds]
<shevy> Hytosys yes, variable
handlename has joined #ruby
<Hytosys> missing_methods always grow to be too many lines in length for me :(
<Hytosys> I find it hard to prevent
s_e has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy> eyeamaye btw are you sure you want .capitalize! method?
<shevy> Hytosys :)
<eyeamaye> doesn't work
<shevy> what do you mean does not work
<shevy> you assigned a symbol to a variable
<shevy> and then
<shevy> you do nothing
<shevy> so
<shevy> :-)
nisstyre has joined #ruby
<eyeamaye> > No hi_john, lets try to make it!
Symbiosisz has quit [Quit: Leaving]
<eyeamaye> what u mean i do nothing?
<shevy> did you read what I wrote
<eyeamaye> yeah
<shevy> well what do you do with that variable?
<eyeamaye> i see what you're saying
<eyeamaye> but i dont know how to fix it
crzrcn has quit [Quit: Leaving.]
<shevy> perhaps by not commenting the two lines?
<eyeamaye> lol
<eyeamaye> im trying to /not/ use send method
<shevy> well
<shevy> you want to define a method dynamically somehow
<shevy> if you dont use .send then you must use something else
<eyeamaye> so
<eyeamaye> def couldn't be used?
ehc has quit [Quit: ehc]
pu22l3r has joined #ruby
<eyeamaye> send or public_send are only ways to achieve desired result?
<shevy> self.class.define_method(:screech)
ponga has joined #ruby
evenix has quit [Remote host closed the connection]
mary5030 has joined #ruby
<eyeamaye> o
<shevy> or
<eyeamaye> that'll work i guess
<shevy> Fixnum.class_eval { def number; self; end }
<shevy> dunno
<Hytosys> define_method is private!! ;)
<eyeamaye> still not quite what i wanted but.
<shevy> I hate your code
davispuh has quit [Remote host closed the connection]
<eyeamaye> lolol
Drewch has quit [Quit: Computer has gone to sleep.]
<eyeamaye> Hytosys, o, then i'd have to use public_send. which i'd rather not
crzrcn has joined #ruby
<eyeamaye> so it sounds like send is only way to do what im trying to do :/
tungd has joined #ruby
<Hytosys> to shevy's point, you can use class_eval as far as I know
<eyeamaye> hmm. okay
george2|chakra has joined #ruby
<shevy> please abandon your wicked path before it is too late eyeamaye
<eyeamaye> shevy, what wicked path?
<shevy> the path of the wicked missing methods being sent through eval
george2 has quit [Ping timeout: 252 seconds]
<eyeamaye> well im trying to make the code pretty now
<Hytosys> I must have missed the reasoning, but eyeamaye why do you want to create the method indefinitely instead of just inlining the behavior?
meatherly has joined #ruby
<eyeamaye> but. seems like to do this in ruby, i have to use hacky methods
<eyeamaye> Hytosys, it's just for fun
<Hytosys> ah ok
<eyeamaye> im new to oop, playing with all the new concepts
<Hytosys> :)
<eyeamaye> enjoying it
mary5030 has quit [Ping timeout: 240 seconds]
<benzrf> =]
<benzrf> try FP next B)
<eyeamaye> FP next B) ?
<Hytosys> lol gotta admit that's a pretty uncomprehensible sentence
<Hytosys> he means functional programming
<benzrf> B) is a smile
<eyeamaye> oo
<eyeamaye> lolol
trhodes_ has joined #ruby
<Hytosys> incomprehensible* murphy's law
alexju has joined #ruby
tungd has quit [Remote host closed the connection]
<eyeamaye> functional being like, haskell?
tungd has joined #ruby
<eyeamaye> what's the appeal of haskell?
<Hytosys> yeah
<eyeamaye> imo it just looks like a faster version of python
<Hytosys> the appeal of haskell is that it is purely functional :)
<eyeamaye> sans python's libs
ironsand has quit [Ping timeout: 240 seconds]
<Hytosys> I don't know much haskell (or any other fp language) but haskell does have a huge cult following
<eyeamaye> on reddit at least
<eyeamaye> outside or reddit i dont hear much about it
<benzrf> eyeamaye: are you serious
<benzrf> i
<benzrf> what
george2|chakra is now known as george2
<benzrf> in what way does haskell look even slightly like python
<benzrf> how could you possibly get that impression
<eyeamaye> no idea. never looked at haskell too seriously
ddv has quit [Ping timeout: 245 seconds]
deric_skibotn has quit [Ping timeout: 252 seconds]
sdouglas has joined #ruby
baweaver has joined #ruby
geggam has quit [Remote host closed the connection]
wallerdev has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> haskell code is very different
<shevy> getArgs >>= print
<shevy> environment <- getEnvironment
crystal77 has joined #ruby
<shevy> both haskell and python have "import" though
mary5030 has joined #ruby
<shevy> import Network.HTTP.Conduit
badhatter_ has quit [Quit: Leaving]
<eyeamaye> benzrf, neat
<eyeamaye> is haskell concurrent?
<Hytosys> benzrf: I'm not familiar with haskell syntax and that looks like keyboard spaghetti to me
djbender has joined #ruby
<eyeamaye> doesn't look like it
<wallerdev> erlang is the place to be for concurrent functional code
<benzrf> Hytosys: lol
sdouglas has quit [Remote host closed the connection]
<shevy> haskell users have a weird sense of beauty
<eyeamaye> is haskell type-safe?
<benzrf> eyeamaye: well haskell is (for the most part) effect-free, so most code can be made concurrent safely
<benzrf> also, haskell is the type SAFETS
<benzrf> *SAFEST
<benzrf> *warning may not actually be the safest
<eyeamaye> how so?
<benzrf> it's statically typed
<eyeamaye> nice warning
<benzrf> but it doesnt suck
<shevy> lol
<shevy> cool disclaimer
<eyeamaye> golang is type-safe
<agent_white> Relevant: http://xkcd.com/1312/
<benzrf> you can get away with writing no type signature at all like 90% of the time or more
<eyeamaye> statically typed
<eyeamaye> concurrent
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> and yet the type system is v. expressive
<eyeamaye> rust is also type safe and concurrent
<benzrf> not so much as a dependent typing system but stil
<benzrf> ;
<benzrf> *still
<eyeamaye> golang has a giant GC that comes with it though
<eyeamaye> so that's a pretty big drawback
<benzrf> so does haskell
<benzrf> haskell != go
<benzrf> they are extremely different as langs
<eyeamaye> im sure they are
mercwithamouth has quit [Ping timeout: 265 seconds]
<benzrf> Hytosys: the scale function defined in that sample takes a 2d list/array of chars
<eyeamaye> i guess i should familiarize myself with FP concepts
_maes_ has joined #ruby
sdouglas_ has joined #ruby
ddv has joined #ruby
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
<wallerdev> yeah functional programming is good to know about
<benzrf> then it makes one giant string, composed of taking each char in the array and turning it into an n×(n/2+1) square
<Hytosys> OH I see benzrf
<wallerdev> especially pure functional
vlad_starkov has joined #ruby
cj3kim_ has joined #ruby
<Hytosys> what is the single-quote operator there?
<Hytosys> and >>=
<benzrf> ' is just part of the name
<benzrf> prime, like in maths
<Hytosys> oh like math
<Hytosys> and $
<benzrf> >>= is the bind operator for monads
<eval-in> benzrf => /tmp/execpad-77ff23c16555/source-77ff23c16555:2: syntax error, unexpected '=' ... (https://eval.in/137260)
<Hytosys> lol
<benzrf> $ is just function application
<benzrf> with lower precedence
<benzrf> foo $ bar is like foo (bar)
<agent_white> So... take this VERY lightly... but in that way that you don'
<Hytosys> oh ok ok
cashnguns has quit [Remote host closed the connection]
<agent_white> don't describe the problem, but what you want out of it... is Haskell like PHP?
<agent_white> In that sense?*
<benzrf> >don't describe the problem, but what you want out of it...
<benzrf> yes
<benzrf> but how is that like php?
<Hytosys> lmao
<Hytosys> sounds like the terse opposite of PHP to me
<eyeamaye> wait so.
<agent_white> PHP you ask what data sets you want back, not how to retreive them... the way-of-retreival is built in.
<benzrf> ummmm
<benzrf> >_>
<eyeamaye> what's the point of a purely functional language if you can write purely functional code in other languages that are faster?
JoeGaudet has quit [Quit: Computer has gone to sleep.]
<benzrf> i suppose so TheMoonMaster
thomasxie has joined #ruby
<benzrf> *thyen
<agent_white> "Take this LIGHTLY"
<benzrf> eyeamaye: because the language can then do MAGIC~
fgo has joined #ruby
<agent_white> benzrf: I've never touched Haskell. I was told to, but I don't feel my young-developer mind should wander that way quite yet.
<benzrf> eyeamaye: for example safe pervasive lazy eval
<benzrf> agent_white: dude im 17 im sure u can handle it
danshultz has quit [Remote host closed the connection]
<Hytosys> agent_white: what did you mean by way-of-retrieval is built in?
jcromartie has joined #ruby
<wallerdev> erlang has an optimized reverse function
<eyeamaye> lol
<agent_white> benzrf: Pfft, it's not AGE (I'm 23) ;) It's just that I need to really be like "dayum I know OOP like I POOP." before going to functional shit.
<benzrf> kk
jason_ has joined #ruby
danshultz has joined #ruby
<wallerdev> im old as well agent_white :(
<eyeamaye> wallerdev, care to elaborate?
<eyeamaye> because that sent made absolutely no sense to me
<eyeamaye> "optimized reverse functions1!!1"
<wallerdev> eyeamaye: in erlang you get the results backwards because of the functional nature of things, so it has a very optimized reverse function
afex has joined #ruby
cj3kim_ has quit [Ping timeout: 245 seconds]
<agent_white> Hytosys: As in, you say "SELECT X WHERE X > Y"... and you get data. Not "while x < TABLE.length... DO STUFF."
<Hytosys> I think you meant SQL not PHP :)
<agent_white> SQL!
<agent_white> Hytosys: Wins!
<eyeamaye> do u give it the output and it returns the params?
<Hytosys> in that case you're right
vlad_starkov has quit [Ping timeout: 258 seconds]
<wallerdev> not too important, just thought id throw that fact out there since i thought it was interesting and ill never be able to really use that knowledge in a relevant way
mattmcclure has quit [Quit: Connection closed for inactivity]
lmickh has joined #ruby
<agent_white> Hytosys: Wierd. Well Haskell sounds cool but my brain needs to be less mushy to really grasp it.
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
Fire-Dragon-DoL has quit [Quit: Leaving.]
<Hytosys> agent_white: the name of the type of programming language that you're looking for is "declarative" as opposed to PHP/C/Ruby's "imperative"
<wallerdev> oh another cool thing about erlang is that you can change code while its running
<eyeamaye> >.>
<Hytosys> yeah haskell's over my head too, for now :)
<eyeamaye> wallerdev, that's a feature?
<wallerdev> yup
<agent_white> Hytosys: Ahhh! So it's declarative as a whole, then narrowed down to be "functional" as well?
<benzrf> wallerdev: so much stuff allows that wow
fgo has quit [Ping timeout: 265 seconds]
lmickh has left #ruby [#ruby]
<Hytosys> agent_white: yep!
<benzrf> agent_white: 99% of haskell code is in the form of function definitions [same in ruby ofc method defs]
afreidah2 has joined #ruby
<benzrf> function def looks like
<benzrf> f args go here = expr for result
jcromartie has quit [Quit: Textual IRC Client: www.textualapp.com]
<agent_white> f beans, cheese = beandip
<benzrf> f beans cheese = beandip
<wallerdev> anyway im going home
<agent_white> Who stole the commas? :(
<benzrf> currying
<Hytosys> lol
danshultz has quit [Ping timeout: 265 seconds]
<agent_white> Damned curry. I never liked it anyways.
<benzrf> all functions in haskell are curried
<agent_white> *spicy functions
<agent_white> \o
pu22l3r has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
fubelly has joined #ruby
<benzrf> i want a language built on delimited continuations
arubin has joined #ruby
eynj has quit [Quit: Leaving.]
hamakn has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
jlast has joined #ruby
momomomomo has joined #ruby
tjr9898 has quit [Remote host closed the connection]
joaoh82 has joined #ruby
snuffeluffegus has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
djbender has quit [Quit: djbender]
evenix has joined #ruby
andy__ has joined #ruby
mary5030 has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
djbender has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
afex has quit [Ping timeout: 252 seconds]
eynj has joined #ruby
samuel02 has joined #ruby
mengu has quit [Ping timeout: 276 seconds]
yekta has joined #ruby
mansi has quit [Ping timeout: 258 seconds]
yekta has quit [Client Quit]
sepp2k1 has quit [Quit: Leaving.]
Neener54 has joined #ruby
snath has joined #ruby
jason_ has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby
SCommette has joined #ruby
nisstyre has quit [Quit: WeeChat 0.4.3]
hamakn has joined #ruby
crucify_me has quit []
Solnse has quit [Quit: Leaving.]
radic has quit [Ping timeout: 265 seconds]
jroes has joined #ruby
radic has joined #ruby
tungd has quit [Ping timeout: 265 seconds]
djbender has quit [Quit: djbender]
sidik has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
r_rios has joined #ruby
nateberkopec has quit [Quit: Leaving...]
tungd has joined #ruby
bthesorceror has quit [Remote host closed the connection]
djbender has joined #ruby
crzrcn has quit [Quit: Leaving.]
bthesorceror has joined #ruby
_justin has joined #ruby
mansi has joined #ruby
wallerdev has joined #ruby
Celm has quit [Remote host closed the connection]
bthesorceror has quit [Ping timeout: 252 seconds]
afreidah3 has joined #ruby
mansi has quit [Ping timeout: 258 seconds]
rakm has quit [Quit: Connection closed for inactivity]
afreidah2 has quit [Ping timeout: 258 seconds]
nateberkopec has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
jack_rabbit has joined #ruby
momomomomo has quit [Quit: momomomomo]
bthesorceror has joined #ruby
Neener54 has quit [Quit: Off to kill some bad times!]
Guedes0 has quit [Ping timeout: 276 seconds]
iamjarvo has quit [Ping timeout: 265 seconds]
<shevy> haskell is so awful
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
jason__ has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
dtcrshr has quit [Quit: Saindo]
agarie has quit [Quit: Leaving...]
marcdel has joined #ruby
Solnse has joined #ruby
Cache_Money has joined #ruby
mary5030 has quit [Remote host closed the connection]
emaxi has joined #ruby
mary5030 has joined #ruby
<centrx> shevy hates everything
mrmargolis has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
<shevy> not everything
<shevy> most of ruby is cool
meatherly has joined #ruby
<TigerWolf> does ruby have another name for % so I can search for docs on google?
Spami__ has joined #ruby
<shevy> TigerWolf not sure... that is an alias to sprintf?
dima_ has quit [Remote host closed the connection]
TllT has joined #ruby
slawrence00 has joined #ruby
phoo1234567 has quit [Quit: Leaving]
<TigerWolf> Yep shevy - thats what I needed :)
ponga has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
<arubin> Searching for "ruby <class>" will generally get you to the right page, then look down the list of methods.
<TigerWolf> "ruby %" <- but not this search.
<arubin> TigerWolf: ruby string
djbender has quit [Quit: djbender]
<benzrf> ruby percent literals
<arubin> TigerWolf: Remember that operand1 operator operand2 is usually just sugar for operand1.operator(operand2).
FxK has joined #ruby
<TigerWolf> yup
<TigerWolf> ty
_justin has quit [Quit: _justin]
<arubin> So you usually want the documentation for operand1.class
zigomir has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
sski has joined #ruby
kitak_ has joined #ruby
eyeamaye has quit [Quit: Leaving.]
joaoh82 has quit []
_justin has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
fgo has joined #ruby
fuhgeddaboudit has joined #ruby
Shidash has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
fubelly has quit [Remote host closed the connection]
Spami__ has quit [Quit: This computer has gone to sleep]
kevinykchan has quit [Read error: Connection reset by peer]
jameswlane has joined #ruby
kevinykc_ has joined #ruby
jameswlane has quit [Max SendQ exceeded]
Spami__ has joined #ruby
jameswlane has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
jameswlane has quit [Max SendQ exceeded]
rrios has joined #ruby
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has quit [Remote host closed the connection]
oo__ has joined #ruby
r_rios has quit [Ping timeout: 265 seconds]
Bumptious has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
sdouglas_ has quit [Remote host closed the connection]
Spami__ has quit [Quit: This computer has gone to sleep]
pontiki has joined #ruby
Spami__ has joined #ruby
vpereira_ has joined #ruby
IceDragon has quit [Quit: Space~~~]
samuel02 has joined #ruby
marcdel has quit []
nateberkopec has quit [Quit: Leaving...]
braincra- has quit [Quit: bye bye]
vpereira has quit [Ping timeout: 250 seconds]
kobain has quit [Ping timeout: 245 seconds]
<InfraRuby> want to work on a new ruby web framework?
<InfraRuby> join #infraruby in one hour!
samuel02 has quit [Ping timeout: 240 seconds]
eyeamaye has joined #ruby
jroes has left #ruby [#ruby]
braincrash has joined #ruby
<benzrf> InfraRuby: wut
fgo has joined #ruby
Spami__ has quit [Quit: This computer has gone to sleep]
fieldfirst has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
mansi has joined #ruby
_justin has quit [Quit: _justin]
Celm has joined #ruby
<InfraRuby> benzrf: true
Seaweed17 has joined #ruby
<centrx> benzrf, This could be the Ruby web framework you've always been waiting for
eyeamaye has quit [Ping timeout: 240 seconds]
_justin has joined #ruby
<benzrf> pfft sure
mansi has quit [Ping timeout: 252 seconds]
horofox_ has joined #ruby
oo__ has quit [Remote host closed the connection]
goganchic has joined #ruby
wethu has quit [Quit: This computer has gone to sleep]
diegoviola has quit [Quit: WeeChat 0.4.3]
jamto11 has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
invinceable has quit [Ping timeout: 252 seconds]
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
oo_ has joined #ruby
jamto11 has quit [Ping timeout: 245 seconds]
helpD has joined #ruby
_justin has quit [Quit: _justin]
phinfonet has quit []
bthesorceror has quit [Ping timeout: 276 seconds]
wethu has joined #ruby
horofox_ has quit [Quit: horofox_]
helpD has quit [Ping timeout: 245 seconds]
lw has quit [Quit: s]
freerobby has quit [Quit: Leaving.]
pu22l3r has joined #ruby
Sid05 has joined #ruby
michaeldeol has joined #ruby
jason__ has quit [Remote host closed the connection]
eyeamaye has joined #ruby
Bumptious has quit [Remote host closed the connection]
mr_red has quit [Ping timeout: 252 seconds]
<ponga> if i used attr_accessor how do i 'access' attributes?
elshaka has joined #ruby
<ponga> i know if it were class defined i could access by .methodname but what about attr
Hanmac has joined #ruby
<benzrf> uhhh
<benzrf> thats what attr_accessor does
zeropx has joined #ruby
Ancient has left #ruby ["Leaving"]
<ponga> benzrf, so i could just do .methodname as usual?
<ponga> splendid
Hanmac1 has quit [Ping timeout: 276 seconds]
verto has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
<benzrf> attr_reader :foo
<benzrf> ====
<benzrf> def foo
mrmargolis has quit [Remote host closed the connection]
<benzrf> @foo
<benzrf> end
ahuman has quit [Quit: No Ping reply in 180 seconds.]
<benzrf> same
<benzrf> attr_writer :foo
ahuman has joined #ruby
<benzrf> ===
<benzrf> def foo=(v)
<benzrf> @foo = v
<benzrf> end
<benzrf> same
<benzrf> attr_accessor is both in 1
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkr090 has joined #ruby
verto has joined #ruby
jlast has joined #ruby
funktor has joined #ruby
Le_Ruby_Newbie has joined #ruby
Wolland has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<Le_Ruby_Newbie> Hi
mr_snowf1ake has joined #ruby
<Le_Ruby_Newbie> Anyone know if there's a simple way to perform case insensitive search through a hash?
ehc has joined #ruby
<centrx> Le_Ruby_Newbie, What do you mean by that
<InfraRuby> Le_Ruby_Newbie: downcase every time
<InfraRuby> (or upcase)
bridge_ has quit [Quit: Leaving]
freerobby has joined #ruby
sdouglas has joined #ruby
slawrence00 has quit [Quit: Textual IRC Client: www.textualapp.com]
lyanchih_ has quit [Quit: lyanchih_]
<Le_Ruby_Newbie> Hi centrx, I'm doing that, but if I want to match the already saved key regardless if it's downcased/upcased/capitalized ?
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
mary5030_ has joined #ruby
goganchic has quit [Quit: Computer has gone to sleep.]
m104 has joined #ruby
deens has quit [Remote host closed the connection]
<InfraRuby> Le_Ruby_Newbie: you need to downcase *every* time
<benzrf> Le_Ruby_Newbie: gl m8
<InfraRuby> read and write
<benzrf> hashes are hash tables
<benzrf> keys are hashed
deens has joined #ruby
<Riking> How do I loop over an Enumerable with special behavior for the last element?
<benzrf> Riking: loop over all but the last, then do the last separately
<benzrf> maybe
goganchic has joined #ruby
<InfraRuby> Le_Ruby_Newbie: you could wrap each string in an object with hash and eql? methods
<Riking> maybe I should make an each_with_firstlast method
freerobby has quit [Ping timeout: 258 seconds]
sdouglas has quit [Ping timeout: 258 seconds]
<Riking> so do |item, is_first, is_last|
<benzrf> Riking: n-no
<Riking> ok
<benzrf> i feel like maybe ive seen a gem for this kind of thing?
<benzrf> i remember writing a hacky prototype of more controllable/queryable looping
gancl has joined #ruby
<Le_Ruby_Newbie> Ok, I'm already downcasing key names as I save them, but in case there were already saved keys which are not downcased, would there be a simple way of performing a case insensitive search?
deens has quit [Ping timeout: 245 seconds]
pu22l3r has quit [Remote host closed the connection]
<Riking> Or I could nest another partial view
<Riking> And then create another one for a spacer
<Riking> But that feels way too deep for too little
<Le_Ruby_Newbie> Thanks elshaka
saarinen has quit [Quit: saarinen]
lw has joined #ruby
aspires has joined #ruby
anaeem1 has joined #ruby
mr_red has joined #ruby
<Riking> benzrf, how fucked up is this solution http://pastebin.com/LuayFh82
mansi has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
twiceday has joined #ruby
terrellt has quit [Remote host closed the connection]
<benzrf> >> [:element].one?
<eval-in> benzrf => true (https://eval.in/137267)
<benzrf> fyi
Celm has joined #ruby
<benzrf> anyway i fail to see the point of this
meatherly has quit [Read error: Connection reset by peer]
<benzrf> why not just do it the latter way period
m104 has quit [Quit: bye]
<Riking> oops
meatherly has joined #ruby
twiceaday has quit [Ping timeout: 245 seconds]
agjacome has quit [Quit: leaving]
mansi has quit [Ping timeout: 250 seconds]
<benzrf> lol
<Riking> aaand nope
<Riking> it ends up as
gancl has quit [Ping timeout: 265 seconds]
<Riking> everything and then a comma
<benzrf> commas?
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
lw has quit [Quit: s]
<benzrf> ur structurin it wrong m8
<benzrf> pass the comma as an arg to join
meatherly has quit [Remote host closed the connection]
<benzrf> wait, does erb even work that way?
Celm has quit [Ping timeout: 258 seconds]
<Riking> I wasn't sure
<Riking> Actually, I'm pretty sure it doesn't
<Riking> also I don't need to htmlsafe the comma anyways
<benzrf> w/e i need to sleep
<benzrf> otherwise my brain becomes poo
bluOxigen has joined #ruby
<Riking> I successfully have it... with no commas... I think I'm rubbing against a detail of how ERB works
njection has quit []
Melpaws has joined #ruby
<Riking> lul i'm an idiot
iamjarvo has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
<benzrf> ur just now realizing this?
<Riking> don't need to style each author differently, just put the <i> around them all
<benzrf> sorry
<benzrf> u may want an ol bt
<benzrf> w
<benzrf> anyway bye
JoeGaudet has joined #ruby
<benzrf> Nightmare:
<benzrf> * night
<benzrf> gluh
mengu has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
benzrf is now known as benzrf|offline
mr_red has quit [Ping timeout: 252 seconds]
Le_Ruby_Newbie has quit []
pu22l3r has joined #ruby
njection has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
Solnse has quit [Quit: Leaving.]
<agent_white> So I can't do regex for shit. What is the expression to capture all text between the delims "/" and "..." ?
tectonic has joined #ruby
<Riking> try this: /\/\w+\.\.\./
<Riking> \w+ is just word characters
<Riking> change it to .*? if you need that to cross whitespace
<Riking> (begin regex, literal slash, one or more word characters, literal ., literal ., literal ., end regex)
mr_snowf1ake has quit [Quit: Leaving]
freerobby has joined #ruby
Doppp has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<agent_white> Riking: Hmmm no luck there. The string is "Reading symbols from /usr/lib/liblzma.so.5...(no debugging symbols found)"... I'm just trying to snag that path name.
jlast has quit [Remote host closed the connection]
x1337807x has joined #ruby
<Riking> oh
yacks has joined #ruby
<Riking> try this: /(\/[\/a-zA-Z0-9 ]+)\.\.\./
<Riking> take the first capture
freerobby has quit [Ping timeout: 245 seconds]
crzrcn has joined #ruby
Slavox is now known as Slavox|AFK
pu22l3r has quit [Remote host closed the connection]
Petit_Dejeuner has joined #ruby
SonicX has joined #ruby
<agent_white> Riking: Nada :/
sdouglas has joined #ruby
<agent_white> Riking: But I'm throwing regex at pry, so it's a good learning exercise :P
mr_red has joined #ruby
tvw has joined #ruby
flingbob has joined #ruby
flingbob has quit [Client Quit]
Faris has joined #ruby
<Riking> lol
codabrink has joined #ruby
Mon_Ouie has quit [Ping timeout: 258 seconds]
<Cope> agent_white: what's an example? you mean /...hello.../ should return hello?
ehc has quit [Quit: ehc]
Spami__ has joined #ruby
<agent_white> Cope: "Reading symbols from /usr/lib/cmus/op/oss.so...(no debugging symbols found)" should return "/usr/lib/cmus/op/oss.so"
<rkr090> agent_white: \/(.*)\.\.\.
vlad_starkov has joined #ruby
<rkr090> between //
shashank_rs has joined #ruby
Slavox|AFK is now known as Slavox
<agent_white> rkr090: Hmmm, that got it to "/usr/lib/cmus/op/oss.so...(no debugging symbols found)..."
<agent_white> rkr090: I changed yours to \/(.*)\.\.\.\W
<rkr090> i get "usr/lib/cmus/op/oss.so"
<agent_white> rkr090: And got it down to "/usr/lib/cmus/op/oss.so...("
<agent_white> Wait really?
<Cope> agent_white: \/(?:\w+\/)+\w+\.\w+
yfeldblum has joined #ruby
<agent_white> Cope: That did the trick! :D
aantix has joined #ruby
yfeldblum has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 245 seconds]
<agent_white> Cope: Thank you!
<agent_white> Riking/rkr090: Thank you both for the help as well :)
yfeldblum has joined #ruby
Petit_Dejeuner has left #ruby ["Leaving"]
<Cope> of course wrap the whole lot in () if you want it as a capture group
<rkr090> agent_white: this is what i meant -> https://gist.github.com/anonymous/10808201
centrx has quit [Quit: All this computer hacking is making me thirsty]
havenwood has joined #ruby
<agent_white> rkr090: Whoa! I was using `string[/regexHere/]`
<agent_white> rkr090: Never knew about that match method... it's much prettier than what I was doing.
<rkr090> agent_white: :-)
Doppp has quit [Ping timeout: 245 seconds]
rrios has quit [Ping timeout: 265 seconds]
tuff has joined #ruby
Faris has quit [Ping timeout: 250 seconds]
<agent_white> That's another thing to put on the to-learn list... though I'm already despising it. ;P
lyanchih has joined #ruby
lukec has quit [Quit: lukec]
sambao21 has quit [Quit: Computer has gone to sleep.]
sputnik13 has joined #ruby
freerobby has joined #ruby
andy__ has quit [Remote host closed the connection]
jlast has joined #ruby
wookiehangover has quit [Read error: Connection reset by peer]
Melpaws has quit [Ping timeout: 276 seconds]
dima_ has joined #ruby
ghr has joined #ruby
Melpaws has joined #ruby
freerobby has quit [Ping timeout: 252 seconds]
<TigerWolf> Is the Ruby Hacking Guide still relevant if is based off ruby 1.7.3?
donnoc has joined #ruby
<Cope> TigerWolf: a more modern book is 'Ruby under a microscope'
<Cope> if you're interested in ruby internals
wookiehangover has joined #ruby
<TigerWolf> Thanks Cope
<Cope> a *lot* has changed in 10 yeats
kenneth has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
<TigerWolf> Yeah thats why I was thinking it wasnt going to be relevant :)
andy__ has joined #ruby
emaxi has quit [Remote host closed the connection]
Doppp has joined #ruby
emaxi has joined #ruby
Morkel has joined #ruby
donnoc has quit [Ping timeout: 276 seconds]
ponga has quit [Ping timeout: 245 seconds]
x77686d has quit [Quit: x77686d]
mansi has joined #ruby
evenix_ has joined #ruby
oo_ has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
Celm has joined #ruby
AlexRussia has joined #ruby
andy__ has quit [Ping timeout: 245 seconds]
emaxi has quit [Ping timeout: 250 seconds]
Sid05 has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
arietis has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 258 seconds]
amclain has quit [Quit: Leaving]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
dawkirst has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
jamto11 has joined #ruby
oo_ has quit [Remote host closed the connection]
handlename has quit [Quit: ZNC - http://znc.in]
mary5030_ has quit [Remote host closed the connection]
Milly_Bays has quit [Quit: Leaving]
mary5030 has joined #ruby
oo_ has joined #ruby
samuel02 has joined #ruby
iamjarvo has quit [Ping timeout: 240 seconds]
x1337807x has quit [Ping timeout: 250 seconds]
kitak_ has quit [Read error: Connection reset by peer]
helpD has joined #ruby
_justin has joined #ruby
kitak_ has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
jamto11 has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 245 seconds]
Faris has joined #ruby
thoraxe has quit [Ping timeout: 240 seconds]
xibalba has joined #ruby
samuel02 has quit [Ping timeout: 265 seconds]
<unholycrab> puts `/bin/bash -c '/bin/ls'` <-- works
<unholycrab> puts `/bin/bash -c '/bin/ls foo'` <-- no such file or directory ??
<Radar> unholycrab: yes
<Radar> unholycrab: Why are you doing that and not just `ls`
<unholycrab> Radar: help me understand this
oo_ has joined #ruby
<Radar> unholycrab: You're probably assuming that you're operating within a directory that you're not actually operating in.
<unholycrab> Radar: im actually trying to pass a complex command that has white spaces in it
<Radar> unholycrab: then use shellwords for that.
<unholycrab> im escaping with shellwords
<Radar> Great.
<unholycrab> i didn't in this example
<Radar> Then you're on your way.
<Radar> unholycrab: !fake
<helpa> unholycrab: Please do not use fake values, as they can be confusing or misleading. Sometimes both.
helpD has quit [Ping timeout: 265 seconds]
<unholycrab> Radar: thats not a fake value, thats me trying to narrow down the problem and dumb down the code for the sake of the question
<xibalba> how would i detect if a line in a file i've opened ends with a ':'
<Radar> unholycrab: Clearly it's too dumb.
Wolland has quit []
<Radar> unholycrab: Real code which reproduces the issue that you're seeing. Not fake code.
<xibalba> i'm trying to grab a set of data from a file that has the following : someName: \n /foo/1 \n /foo/2 \n
<xibalba> basically it's a host: and then file names under it
<Radar> xibalba: Why not make it a yml file and parse it with YAML.parse?
lethjakman has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
<unholycrab> Radar: here it is, slightly less dumb https://gist.github.com/anonymous/10811315
sidik has quit [Ping timeout: 250 seconds]
<Radar> unholycrab: Does it reproduce the problem?
<evenix_> hey guys
<evenix_> how do you do a redirect on rack
<evenix_> redirect_to ...
<unholycrab> the output im getting is similar
<unholycrab> /bin/bash: /usr/bin/diff <(/bin/ls /var) <(/bin/ls /var): No such file or directory
oo_ has joined #ruby
tungd has quit [Ping timeout: 252 seconds]
shashank_rs has quit [Ping timeout: 265 seconds]
<Radar> unholycrab: It's the escaping which is doing it,.
thoraxe has joined #ruby
tungd has joined #ruby
chipotle has quit [Quit: cya]
<xibalba> Radar i dont know anything about yaml at the moment
<Radar> xibalba: What you're trying to do sounds a lot like yaml parsing
<xibalba> ill check it out real quick
<Radar> xibalba: I guess you want something like this: https://gist.github.com/radar/10811726
PragCypher has joined #ruby
<unholycrab> here ive escaped more of the command
<xibalba> that's helpful, thanks
chris_thomson has quit [Quit: Zzz...]
bluOxigen has quit [Ping timeout: 258 seconds]
funktor has quit [Remote host closed the connection]
<Radar> unholycrab: I don't understand why you're using Shellwords.escape in this context.
<xibalba> i can use that instead as hosts: and fles
northfurr has quit [Quit: northfurr]
bluOxigen has joined #ruby
<Radar> unholycrab: I'm going to bet that this isn't reproducing the problem you're seeing becuase you're still trying to dumb down the code too much.
funktor has joined #ruby
<xibalba> what gem is this? i tried gem install yaml
<unholycrab> Radar: can you ive me a hint? it sounds like you understand the problem
<Radar> xibalba: It's built into Ruby.
<xibalba> ah
<unholycrab> it is reproducing the problem, in that im still seeing the problem
<Radar> unholycrab: Whatever hint you're picking up on is false. I honestly have no idea what it is you're trying to do because your code is not reproducing the problem.
<Radar> unholycrab: Removing the Shellwords.escape makes the code work fine.
<Radar> !next
<helpa> Next question, please!
sigurding has joined #ruby
<xibalba> thanks radar, super helpful. gonna check out yaml more. i was trying a custom format (total ruby newb) and was utilizing something similar in pattern.
havenwood has quit [Remote host closed the connection]
<unholycrab> okay. i see that its working, but i don't understand why
baweaver has quit [Ping timeout: 265 seconds]
<Radar> unholycrab: Because the command doesn't need escaping
<Radar> the escaping is multilating
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
<zorak> whats "super" do?
<zorak> i have this code
<zorak> class BullDog < Dog
<zorak> def bark
<zorak> end
<zorak> end
<zorak> super + ", GROWL"
<Radar> zorak: !gist
<helpa> zorak: http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<Radar> zorak: Please do not post code in the channel.
<zorak> ok
<Radar> zorak: It calls back to Dog's bark method.
funktor has quit [Ping timeout: 240 seconds]
phansch has joined #ruby
<zorak> I thin is call back the bark method for his parent
<Radar> zorak: Yes.
<zorak> but im not sure and cant fin info in the ruby page
vlad_starkov has joined #ruby
ciwolsey has quit [Ping timeout: 258 seconds]
<Radar> whgat
budrose has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
<Radar> zorak: You know what it does already :(
bluOxigen has joined #ruby
budrose has left #ruby [#ruby]
<Radar> Second result on google for "ruby super"
<unholycrab> Radar: but my first example, puts `/bin/bash -c '/bin/ls foo'`
<unholycrab> doesn't work
<unholycrab> and its not escaped
<Radar> unholycrab: !e
<helpa> unholycrab: You have not provided enough information to debug your problem. Please provide this information: https://gist.github.com/radar/5384431
<Radar> unholycrab: "doesn't work" isn't helpful.
<zorak> i was trying to find it in ruby-doc
<zorak> whats "Foo" means?
<zorak> i see it in a lot of example codes of ruby
thoraxe has quit [Ping timeout: 265 seconds]
<unholycrab> it was the first part of my question
<Radar> zorak: Again, second result on google for "foo"
<Radar> unholycrab: did you read the error message?
<Radar> unholycrab: ls: foo: No such file or directory
jlast has joined #ruby
<Radar> unholycrab: so clearly foo does not exist as a file or directory where you're running that code.
<unholycrab> derp. that makes sense
<Radar> Soooooooo
terrellt has joined #ruby
<Radar> Now is the point where you usually show us a small reproducible example of the code that is broken, we point out what's wrong, and you become happy
<xibalba> tuff
<Radar> xibalba: /ignore tuff
<xibalba> tuff is spamming
<xibalba> ok
elshaka has quit [Ping timeout: 245 seconds]
mehlah has joined #ruby
graft has quit [Ping timeout: 252 seconds]
apeiros has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
apeiros has joined #ruby
<shevy> Radar is the ultimate newbie trainer
kerin has joined #ruby
<shevy> no matter how many silly questions they toss on him, he remains like a rock against the stormy weather
<Radar> Because I remember I was a newbie once too
tungd has quit [Quit: leaving]
jlast has quit [Ping timeout: 276 seconds]
terrellt has quit [Ping timeout: 258 seconds]
agent_white has quit [Read error: Connection reset by peer]
snuffeluffegus has quit [Quit: Leaving]
tagrudev has joined #ruby
Slavox is now known as Slavox|AFK
thoraxe has joined #ruby
<xibalba> i haven't programmed in 10 years
emaxi has joined #ruby
aspires has quit []
<kerin> So I'm getting a "incompatible character encodings: UTF-8 and ASCII-8BIT" error when I try to cram a certain database string into my ERB template... ALL the stuff in my DB should be utf-8, and printing the strings says they're UTF-8. I've also tried encoding and force-encoding them, which hasn't helped. And just now I determined that the problem string contains a soft hyphen/U+00AD/&shy;
apeiros has quit [Ping timeout: 265 seconds]
<kerin> Curious how to encode that so that it doesn't make ERB cry.
<xibalba> wow working with this YAML loader is significantly easier
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 3 Hours 20 Minutes and 47 Seconds Online.]
agent_white has joined #ruby
<kerin> Oh I see. (maybe.) ERB is trying to output ASCII and that's the only character in my database that doesn't convert.
klaut has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
Macaveli has joined #ruby
mengu has quit [Remote host closed the connection]
emaxi has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
<Radar> kerin: <% encoding: utf-8 %> at the top of the template doesn't stop it?
ndrei has joined #ruby
<kerin> Radar: afraid not
<Radar> Hm
ylluminate has quit [Ping timeout: 276 seconds]
freerobby has joined #ruby
<kerin> stranger still, I tried copying the bad content to a different page on a whim
<kerin> and it, uh, displays fine there
<Radar> heh
Slavox|AFK is now known as Slavox
<Radar> I have no idea what could cause that.
<kerin> same.
bambuka has joined #ruby
davedev24 has quit [Remote host closed the connection]
<xibalba> Radar, this is what i've got so far. https://gist.github.com/RezaAmbler/10814164
<xibalba> now i jsut have to check out how to handle the multiple files
<xibalba> ah shoot i cropped the -system section
<Radar> xibalba: It looks like you're trying to rebuild Ansible
<xibalba> never heard of it.
dima_ has quit [Remote host closed the connection]
<xibalba> though my idea came from using rancid at work for our cisco routers/switches
kevinykc_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
<omosoj> is it me or is ruby-doc.org not easy to read and navigate?
kevinykchan has joined #ruby
Gabri has joined #ruby
anarang has joined #ruby
<xibalba> im just practicing. starting to learn ruby
leslie1 has quit [Read error: Connection reset by peer]
<Radar> omosoj: Not just you.
<Radar> xibalba: I would highly recommend using Ansible.
leslie1 has joined #ruby
<Radar> xibalba: It's very easy to learn.
freerobby has quit [Ping timeout: 250 seconds]
ghr has joined #ruby
<Radar> Although it's written in Python don't let that scare you off.
<xibalba> yeah i use to do alot of php dev about 10 years ago
ws2k33 has joined #ruby
bal has joined #ruby
Gabri has quit [Client Quit]
Gabri has joined #ruby
dawkirst has quit [Remote host closed the connection]
<kerin> Radar, to my excitement this issue seems to specifically be occurring when I also have a different long-format hyphen anywhere in the page data.
<kerin> Which applies to this specific dataset but not the test set.
<Radar> kerin: right
<omosoj> Radar, is there a better site?
<Radar> omosoj: Not that I am aware of.
havenwood has joined #ruby
<omosoj> Should I just poke around irb or pry to get a deeper sense?
leslie2 has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
leslie1 has quit [Ping timeout: 276 seconds]
<Radar> omosoj: what are you looking for in particular?
eynj has quit [Read error: Connection reset by peer]
havenn has joined #ruby
<omosoj> I want to see all the methods that are available.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
oo_ has quit [Remote host closed the connection]
<Radar> omosoj: For what object?
oo_ has joined #ruby
<Radar> omosoj: and to what end?
<omosoj> Prime. I'm doing Project Euler questions and there are a few involving prime numbers. I want to know what tools are available to solve the problems.
havenwood has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
AlexRussia has quit [Ping timeout: 245 seconds]
Gabri has quit []
Celm has joined #ruby
TllT has quit [Quit: Lost terminal]
Gabri has joined #ruby
havenn has quit [Remote host closed the connection]
havenwood has joined #ruby
aantix has quit [Quit: aantix]
Gabri has quit [Client Quit]
mansi has quit [Ping timeout: 245 seconds]
Al__ has joined #ruby
Celm has quit [Ping timeout: 245 seconds]
iamjarvo has joined #ruby
vlad_starkov has joined #ruby
sungai_keruh has joined #ruby
<omosoj> Thanks.
LiohAu has quit [Quit: LiohAu]
<xibalba> when i call `ruby myFile.rb` what method is it looking to hit first?
<Radar> xibalba: No method. It will run the code in that file in the order it's specified.
Gabri has joined #ruby
<xibalba> well i've constructed a class
<xibalba> i guess i just call new, then my class load it and call the method
<xibalba> doh
samuel02 has joined #ruby
<Hytosys> it executes the code in the scope of main:Object, notably (hint, type self in irb)
<xibalba> boy am i rust
<xibalba> rusty*
krz has joined #ruby
Kneferilis has quit [Ping timeout: 250 seconds]
m104 has joined #ruby
<xibalba> this is what i've got so far
vincent has joined #ruby
<Hytosys> private gist, can't see :(
<Hytosys> oh nevermind
<xibalba> hmm
vincent is now known as Guest37445
<Hytosys> apparently you have to be signed in no matter what to see a gist
<Hytosys> so are you getting Operations is undefined?
<InfraRuby> omosoj: using the Prime class would be cheating :-p
<Hytosys> at line 3
<xibalba> operations.rb:3:in `<main>': uninitialized constant Operations (NameError)
<xibalba> oh i am blind
<Hytosys> so put the definition of the class before anything else
horrorvacui has quit [Quit: Leaving]
<xibalba> also helps to spell it right :)
<Hytosys> also, line 3 should be `Operations.new` not `new Operations` ;)
<Hytosys> haha that too!
<xibalba> old C++ habit i suppose
iamjarvo has quit [Ping timeout: 245 seconds]
<Hytosys> I feel ya
nbezzala has joined #ruby
<omosoj> InfraRuby, I'm conflicted. Should I solve the problems with all the tools Ruby has to offer or no?
<InfraRuby> omosoj: depends what the problem is
samuel02 has quit [Ping timeout: 240 seconds]
<xibalba> sweet! making some progrress
<Hytosys> grats
oo_ has quit [Remote host closed the connection]
Guest37445 is now known as vc7
<InfraRuby> would you use Prime.prime? if the problem is to write code to test primality?
<InfraRuby> omosoj: ^^
bluOxigen has joined #ruby
<xibalba> is there a way with String#split to ignore the first element"?
<omosoj> The problem is to find the highest prime factor of a number. I've been given a few answers but I'm trying to figure it out from scratch.
<InfraRuby> xibalba: just shift it?
<xibalba> ah nm im going to use some array methods to pop it off
mehlah has quit [Quit: Leaving...]
oo_ has joined #ruby
dawkirst has joined #ruby
<InfraRuby> xibalba: Array#shift
<xibalba> ty
mweshi has joined #ruby
mweshi has quit [Client Quit]
<InfraRuby> omosoj: some simple code at http://infraruby.com/Live to generate prime numbers
mweshi has joined #ruby
m104 has quit [Quit: bye]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<InfraRuby> omosoj: don't just copy/paste
Gabri has quit []
<InfraRuby> learn how it works
<xibalba> goodnight folks
<xibalba> ill be back
<InfraRuby> xibalba: uh oh
jack_rabbit_ has joined #ruby
Gabri has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jack_rabbit has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
karupanerura is now known as karupa
vlad_starkov has joined #ruby
octarine has quit [Excess Flood]
Ancient has joined #ruby
octarine has joined #ruby
flowerpot_ has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
flowerpot_ has left #ruby [#ruby]
dagobah has joined #ruby
havenwood has quit [Remote host closed the connection]
Spami__ has quit [Quit: This computer has gone to sleep]
SCommette has quit [Quit: SCommette]
Al__ has quit [Quit: Al__]
grzywacz has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
Martxel has joined #ruby
rvraghav93 has joined #ruby
emaxi has joined #ruby
andy__ has joined #ruby
oo_ has quit [Remote host closed the connection]
jprovazn has joined #ruby
aganov has joined #ruby
claymore has joined #ruby
emaxi has quit [Ping timeout: 276 seconds]
andy__ has quit [Ping timeout: 250 seconds]
Gabri has quit [Remote host closed the connection]
nomenkun has joined #ruby
nomenkun_ has joined #ruby
Gabri has joined #ruby
rakm has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
mweshi has quit [Quit: mweshi]
nomenkun has quit [Ping timeout: 245 seconds]
shashank_rs has joined #ruby
sdouglas has quit [Remote host closed the connection]
freerobby has joined #ruby
SonicX has quit [Remote host closed the connection]
oo_ has joined #ruby
XenoWolf has quit [Ping timeout: 264 seconds]
zigomir has joined #ruby
madb055 has quit [Ping timeout: 245 seconds]
omosoj has quit [Quit: Leaving]
havenwood has quit [Remote host closed the connection]
Melpaws has quit [Ping timeout: 240 seconds]
noop has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
LetErikTry has quit [Quit: sleep]
fabrice31 has joined #ruby
dinosaurs has quit [K-Lined]
Martxel has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby
dinosaurs has joined #ruby
dinosaurs has quit [K-Lined]
crzrcn has quit [Quit: Leaving.]
ddv has quit [Changing host]
ddv has joined #ruby
dawkirst has quit [Remote host closed the connection]
mansi has joined #ruby
tectonic has quit []
Xeago has joined #ruby
vpereira_ is now known as vpereira
ponga has quit [Ping timeout: 250 seconds]
Celm has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
tjr9898 has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
darkaer has joined #ruby
jamto11 has joined #ruby
dawkirst has joined #ruby
iamjarvo has joined #ruby
samuel02 has joined #ruby
funburn has quit [Quit: funburn]
Hytosys has left #ruby [#ruby]
Hytosys has joined #ruby
helpD has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
agent_white has quit [Quit: goodnight]
alex88 has joined #ruby
Geniack_ has quit [Ping timeout: 258 seconds]
relix has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
Geniack has joined #ruby
sk87 has joined #ruby
samuel02 has quit [Ping timeout: 250 seconds]
afreidah3 has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
helpD has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
wethu has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevinykchan has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
samuel02 has joined #ruby
kevinykchan has joined #ruby
shashank_rs has quit [Ping timeout: 265 seconds]
dawkirst has quit [Remote host closed the connection]
Gabri has quit []
kung has joined #ruby
banister has joined #ruby
senayar has joined #ruby
weems has quit [Read error: Connection reset by peer]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
omosoj has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
ahawkins has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<omosoj> In irb if I type Numeric.methods an array is printed with 99 methods. Are those methods either defined within the class array or inherited from superclasses?
emaxi has joined #ruby
crzrcn has joined #ruby
<InfraRuby> omosoj: ye
<InfraRuby> yes*
mengu has quit [Remote host closed the connection]
dawkirst has joined #ruby
<omosoj> Cool, thanks
emaxi has quit [Ping timeout: 252 seconds]
<InfraRuby> omosoj: btw, those are class methods
<InfraRuby> maybe you want Numeric.instance_methods
ephemerian has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
<ponga> what was the $ dollar sign in ruby!?
<Mon_Ouie> Global variables
<InfraRuby> ponga: depends what follows the $
Xeago has joined #ruby
<InfraRuby> some $ variables are local
<ponga> it was global thanks thank
<omosoj> InfraRuby, k. so instance methods are called on objects, class methods only on classes?
qba73 has joined #ruby
<InfraRuby> omosoj: yes
<InfraRuby> (a class is also an instance of Class)
<omosoj> I feel like I'm doing something wrong: Object.methods, Numeric.methods, and Numeric.instance_methods all return 99
<InfraRuby> omosoj: yes, those are methods you can call on those classes
<InfraRuby> ahh.. but not the Numeric.instance_methods
St_Marx has quit [Quit: Ex-Chat]
<InfraRuby> those are methods you can call on numeric instances
<Mon_Ouie> Object/Numeric have the same methods because they have no class methods and they're both instances of the Class class
m0s^away is now known as m0s
<InfraRuby> here Numeric.instance_methods has 102 elements
St_Marx has joined #ruby
<InfraRuby> but if that's similar or equal to the number in Numeric.methods that's just a coincidence
<InfraRuby> they're very different
flagg0204 has quit [Ping timeout: 240 seconds]
mupkoo has joined #ruby
<Mon_Ouie> InfraRuby: How did you test that? Try ruby -e 'p Numeric.methods.size' so that no external library can be loaded
<InfraRuby> Mon_Ouie: Numeric.methods.size == 99 but Numeric.instance_methods.size == 102
<Mon_Ouie> omosoj: Also try instance_methods(false)/methods(false) to hide inherited methods
<ponga> ( ゚д゚)?! <- my face when looked at $#{@blance}
moritzs has joined #ruby
<ponga> $ and # and @ all in all!?
<InfraRuby> ponga: the dollar is just a dollar
<InfraRuby> #{...} is interpolated
<ponga> ah
<omosoj> Hm..
<ponga> ahh yeah
<ponga> InfraRuby: you are right.. lol
<ponga> to print something like $500
kevinykchan has quit [Quit: Computer has gone to sleep.]
<omosoj> Is there a way to look at the code of Object and Numeric et al?
<ponga> hey guys i got this weird spanish private msg with a link from guy named tuff, something about webcam
<ponga> is it spam
<Mon_Ouie> It's written in C in YARV so not really
dinoex has joined #ruby
<dinoex> hi
nvrch has joined #ruby
olivier_bK has joined #ruby
<dinoex> undefined method `synchronize' for #<Mutex:0x0000080137c248> (NoMethodError)
<dinoex> anyone has seen this before? require 'thread' is present
obs has joined #ruby
<omosoj> instance_methods(false)/methods(false) <- cool
BizarreCake has joined #ruby
<vc7> $#{@blance} <- shocked for this one
ahawkins_ has joined #ruby
<Mon_Ouie> The only weird thing with it is that it's missing one letter
kerin has quit [Ping timeout: 250 seconds]
kenndel has joined #ruby
kenndel has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
kenndel has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
ghr has joined #ruby
heftig has joined #ruby
xkx has joined #ruby
xkx has quit [Client Quit]
timonv has quit [Remote host closed the connection]
freerobby1 has quit [Ping timeout: 265 seconds]
yacks has joined #ruby
Al__ has joined #ruby
andikr has joined #ruby
senayar has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
senayar has joined #ruby
Xeago_ has joined #ruby
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
cover has joined #ruby
poikon has joined #ruby
kinginky has quit [Ping timeout: 240 seconds]
Xeago_ has quit [Remote host closed the connection]
kinginky has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
Geniack has quit [Ping timeout: 250 seconds]
samuel02 has quit [Read error: Connection reset by peer]
Melpaws has joined #ruby
ikaros has joined #ruby
ahawkins_ has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 245 seconds]
pen has quit [Ping timeout: 265 seconds]
<ponga> I typed in 'gem install rails' into terminal and nothing shows up, does it usually take long time
akonny has joined #ruby
m0s is now known as m0s^away
<DouweM> it can take a long time, sure, but if you've been waiting for an hour I'd try again
<DouweM> so it depends on your "long time"
<ponga> ah ok i only waited like 3mins
mansi has joined #ruby
<ponga> ruby is consuming my CPU as shown in Activity monitor, i will wait
afreidah3 has joined #ruby
shashank_rs has joined #ruby
_justin has quit [Quit: _justin]
<ponga> damn it!
<ponga> ERROR: While executing gem ... (Gem::FilePermissionError)
<ponga> You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<ponga> it didn't even request me to type in password
einarj has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
afreidah3 has quit [Ping timeout: 246 seconds]
nari has quit [Ping timeout: 245 seconds]
<DouweM> why would it, it's not just gonna sudo
Xeago has joined #ruby
poikon has quit [Remote host closed the connection]
akonny has quit [Ping timeout: 250 seconds]
<ponga> DouweM it keeps saying that how can i solve this issue :(
_justin has joined #ruby
tijmencc has joined #ruby
nfk has joined #ruby
Advocation has joined #ruby
MacTrash has joined #ruby
<MacTrash> puts Date.strptime("06/12/14 22.00", '%m/%d/%y %H.%M').strftime("%Y-%m-%d %H:%M") this is displaying 2014-06-12 00:00, is there something stupid I'm overlooking?
<dinoex> echo '<html> <% print "ruby here" %> </html>' | erb
<dinoex> why is the output out of# order?
samuel02 has quit [Read error: Connection reset by peer]
<MacTrash> By the way, tuff is a pm link spamming bot (got a pm just now)
poikon has joined #ruby
<dinoex> +1, he spammed me too
<DouweM> MacTrash: you're using Date, which doesn't save time. Use DateTime :)
olalonde has joined #ruby
thomasxie has left #ruby [#ruby]
<MacTrash> Doh thanks (coming from Java where there is no distinction)
<olalonde> anyone knows why I might be getting "Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch specs from http://rubygems.org/"
<DouweM> dinoex: because you're looking for `<%= "ruby here" %>`
Geniack has joined #ruby
<DouweM> dinoex: erb keeps track of a buffer, you're just printing to stdout
<DouweM> dinoex: use <%= %> to append to the buffer
<dinoex> is't <%= for expressions?
akonny has joined #ruby
<DouweM> dinoex: yeah it is. where do you want your "ruby here" to end up?
<dinoex> in the middle
<DouweM> "ruby here" is an expression, so ditch the print and use <%=
<dinoex> lots of code uses puts/print
m0s^away is now known as m0s
<dinoex> how do i fit that in order?
<DouweM> they write to stdout, which is something completely different from appending to the erb buffer
<DouweM> as I said, use <%=
Geniack has quit [Changing host]
Geniack has joined #ruby
samuel02 has joined #ruby
<dinoex> echo '<html> <%= print "ruby here" %> </html>' | erb
<dinoex> same
<DouweM> right, ditch the print
rm__ has quit [Remote host closed the connection]
timonv has joined #ruby
rm_ has joined #ruby
<dinoex> I the simple example i can,
ponga has quit [Ping timeout: 240 seconds]
<dinoex> but i have a lot of code written for eruby that uses puts/print
<dinoex> which does not work in erb.
<DouweM> right
<DouweM> you can use concat instead of print if you really want to
<dinoex> I thought there where compatible
<DouweM> but having large blocks of ruby in your erb is bad practice anyway
<dinoex> what instead?
Doppp has quit [Ping timeout: 245 seconds]
<DouweM> concat "ruby here"
AlSquire has joined #ruby
<DouweM> hmm
<DouweM> looks like that might not work with pure erb
<DouweM> apparently Rails adds that, but it's not in ERB itself
emaxi has joined #ruby
<dinoex> nods.
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
<dinoex> I have given up on rails, to mayn regressions.
<DouweM> looks like you can't concat to the buffer in ERB itself. You'll have to use <%=
rm_ has quit [Ping timeout: 240 seconds]
pen has joined #ruby
olalonde has quit [Ping timeout: 240 seconds]
Geniack has quit [Ping timeout: 258 seconds]
<dinoex> any way to redirect output output into a buffer?
FDj_ has joined #ruby
angelixd has quit [Read error: Operation timed out]
angelixd has joined #ruby
sigurding has quit [Quit: sigurding]
emaxi has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chihhsin1wego has quit [Ping timeout: 252 seconds]
FDj has quit [Read error: Operation timed out]
banister has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
cbreeze has joined #ruby
Advocation has quit [Quit: Advocation]
fella5s has joined #ruby
chihhsin_wego has joined #ruby
crzrcn has joined #ruby
tjr9898 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
Geniack has joined #ruby
eyeamaye has quit [Quit: Leaving.]
<dinoex> Output like hello from <% print "hello" %> would replace the ruby code between the delimiters.
mupkoo has quit [Remote host closed the connection]
Advocation has joined #ruby
<apeiros> dinoex: <%= "hello" %>
<dinoex> yes that will work
<apeiros> print will print to stdout, or whatever your erb's context defines for print.
wallerdev has quit [Quit: wallerdev]
<dinoex> but I don't want to rewite all the functions used.
crzrcn has quit [Ping timeout: 258 seconds]
<dinoex> how can i cahnged the stdout context for erb?
<mikecmpbll> what
terrellt has joined #ruby
<apeiros> oh, you wrote methods which print instead of returning?
dinosaurs has joined #ruby
<crome> printing from erb
<crome> wow
<crome> :D
marr has joined #ruby
<apeiros> changing the stdout won't solve your problem, since you want the output to end up at the place *in the template* where you print
<apeiros> depends on how erb internally works. you'd have to implement a print which appends to erb's output buffer
<apeiros> maybe somebody already did something like that
darkaer_ has joined #ruby
DreamingRainne has joined #ruby
tuff was kicked from #ruby by apeiros [spam is not tolerated]
tuff has joined #ruby
sevin has joined #ruby
yfeldblum has quit [Remote host closed the connection]
tuff was kicked from #ruby by apeiros [spam is not tolerated]
Es0teric has quit [Quit: Computer has gone to sleep.]
tijmencc has quit [Quit: tijmencc]
terrellt has quit [Ping timeout: 258 seconds]
<dinoex> Thanks for the kick.
<apeiros> yeah, I'm still not sure about that.
<apeiros> I don't like the idea of policing private messaging.
darkaer has quit [Ping timeout: 265 seconds]
darkaer_ is now known as darkaer
<dinoex> the bot msg me 5 times
<dinoex> Then i put him on ignire
lkba has quit [Ping timeout: 265 seconds]
<dinoex> is there a eruby patch for 1.9.3?
roolo has joined #ruby
joast has quit [Ping timeout: 240 seconds]
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
klaut has joined #ruby
jds has joined #ruby
tvw has quit []
<DreamingRainne> http://pastie.org/9084449 Is my mutex/CV logic (lines 19-38) okay in this? (I had done this before, using a SizedQueue from the library, but trying my hand at doing it "myself" here.)
LiohAu has joined #ruby
mengu has quit [Remote host closed the connection]
freerobby has joined #ruby
zarul has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
zarul has joined #ruby
zarul has quit [Changing host]
zarul has joined #ruby
sigurding has joined #ruby
crzrcn has joined #ruby
browndawg has joined #ruby
robbyoconnor has quit [Excess Flood]
Al__ has quit [Read error: Connection reset by peer]
Al___ has joined #ruby
rvraghav93_ has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
rvraghav93 has quit [Ping timeout: 252 seconds]
nbezzala has quit [Remote host closed the connection]
anarang_ has joined #ruby
crzrcn has quit [Ping timeout: 252 seconds]
anarang has quit [Ping timeout: 252 seconds]
Advocation has quit [Quit: Advocation]
Advocation has joined #ruby
Fractional has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Advocation has quit [Client Quit]
<Fractional> I need some help by someone, I am having a class variable issue. If you can help me, please send me a PM. Would appreciate it!
chrisseaton has joined #ruby
<ddv> Fractional: just ask the question here
<DreamingRainne> Fractional: You're more likely to get help if you present the problem here.
<DreamingRainne> Rather than demanding someone commit sight unseen to trying to help you.
fella6s has joined #ruby
<ddv> Fractional is just embarrassed by his programming mistakes
Faris has quit [Ping timeout: 252 seconds]
<Fractional> ddv: More or less, but give me a moment and I will present the problem.
<ddv> :)
<DreamingRainne> You should see some of the mistakes I've made before, and continue to. Hehe. That's part of programming.
* crome sends a Product Manager to Fractional
emaxi has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
<Fractional> DreamingRainee: I am still not really used to all the cool things you can do with Ruby so the code might be a little bit, yeah :P
samuel02_ has joined #ruby
<Fractional> Crome: You better not do that! ^^
<DreamingRainne> Fractional: No worries. We can probably help out.
ahawkins has joined #ruby
* DreamingRainne hasn't done much with class variables (@@, right?), though.
<crome> they are rarely the solution, even if it looks like they are, imo
mansi has joined #ruby
<DreamingRainne> Yeah, they're like one step removed from $these.
<Fractional> Error message: main.rb:53:in 'rectangle?: undefined method '/' for nil:NilClass <NoMethodError> called from play.rb:69:in 'block in update'
Celm has joined #ruby
Doppp has joined #ruby
fella5s has quit [Ping timeout: 276 seconds]
nvrch has quit [Ping timeout: 276 seconds]
<DreamingRainne> You haven't coded Ruby till you've gotten an "undefined method `derp' for nil:NilClass" a few zillion times. <looks>
emaxi has quit [Ping timeout: 250 seconds]
<Fractional> The thing is, I am pretty sure, that I should not have gotten a nil:NilClass error this game. I think it is a problem with dividing on player.height, but the player.height is set in the initialization of the player.
<Fractional> this time*
<DreamingRainne> It thinks HEIGHT is nil, but not WIDTH, but they're defined right next to each other. Hmm...
<crome> Fractional: first of all, Collision shouldnt really be a module
<Fractional> crome: What should it be? :P Anything that can help me is nice :)
nvrch has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
<DreamingRainne> Oh, wait, I was looking at line 53 in the first file, not of main.rb. (Didn't realize there'd be multiple files in that page.)
browndawg has left #ruby [#ruby]
<Fractional> Haha, I found the error.
<Fractional> Just.. wow..
vc7 has quit [Quit: vc7]
Celm has quit [Ping timeout: 258 seconds]
<Fractional> I have looked at line 9 so many times, and overlooked the problem so many times.. the solution was so simple, yet I was stuck on this for two hours.
jamto11 has joined #ruby
decoponio has joined #ruby
<Fractional> I only assign @width a value, not @height. That is why, god.. emberassing moment :P
<DreamingRainne> Ah, line 9 in Player.rb? "@width, @height = 32" when that probably should be "@width = @height = 32" (assign to both, rather than assign only to one).
Hytosys has quit [Quit: Hytosys]
<DreamingRainne> Yeah, a lot of problems come down to silly mistakes like that.
<Fractional> Yeah, thanks for the help! :)
<Fractional> Crome: How should I do the collision if it should not be a module?
yfeldblum has joined #ruby
goganchic has quit [Quit: Computer has gone to sleep.]
yfeldblum has quit [Read error: Connection reset by peer]
<crome> what I was getting at is that you dont really make use of its module nature but then its really a minor detail
<crome> at this point
<DreamingRainne> Maybe as an instance method on the object class? Like: "object1.hit? object2" rather than "Collision.rectangle?(object1,object2)" and let each type figure out what its collision primitives are.
havenwood has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<Fractional> So, should I make a module with the hit? function that is then included in the classes?
canton7-mac has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
helpD has joined #ruby
<DreamingRainne> Perhaps. Possibly even RectangularCollision, CircularCollision etc that does hit? in its own way. (Although you wind up with n² different algorithms for n approaches...)
dawkirst has quit [Remote host closed the connection]
<DreamingRainne> Or n-multichoose-2 more exactly. I think.
ahawkins_ has joined #ruby
dapz has joined #ruby
gbt has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
<DreamingRainne> If it's all rectangular, then yeah, you could just have "module CollisionDetection; def hit?( that )" and then "include CollisionDetection" in the object base class(es).
<Fractional> DreamingRainee: Thank you very much! I appreciate all the feedback I can get! :)
helpD has quit [Ping timeout: 240 seconds]
ahawkins has quit [Ping timeout: 240 seconds]
* DreamingRainne wrote a vaguely similar sort of thing recently, which turned out to be easier to do by having "x.hit? y" followed with "def collision?(that); self.hit?(that) and that.hit?(self); end" (in other words, a one-sided method, then a reciprocal one for the final answer.
<DreamingRainne> Simplified some of the logic.
sensen has joined #ruby
jcims is now known as cran
HashNuke has quit [Quit: Connection closed for inactivity]
samuel02_ has quit []
blackmesa has joined #ruby
<DreamingRainne> (Well, "okay_with?" and "compatible_with?" rather than "hit?" and "collided_with?", but broadly the same principle.)
<apeiros> crash_and_burns?
<Fractional> DreamingRainne: Do you include a module outside or within the class defintion?
dawkirst has joined #ruby
St_Marx has quit [Ping timeout: 272 seconds]
<DreamingRainne> Oh. I didn't do that as a module at all, but just as methods directly on one class that had no child classes, in my case.
sensen has quit [Client Quit]
ahawkins_ has quit [Quit: leaving]
ahawkins has joined #ruby
<DreamingRainne> In your case (a 2D game of some kind?), if there's a hierarchy of classes that can be subject to collisions (player, item, enemy, weapon shot, etc), I might do something like put "hit?" as a method on the base class, which might call out to some other information-providing method that child classes could override if needed.
<dinoex> apeiros, solved: echo '<html> <% print "ruby here" %> </html>' | erubis -E Stdou
<dinoex> +t
RaptorJesus has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
<DreamingRainne> Like, an object that changes size might report its width/height as instance variables (@these), or with a "size" method that returns [width,height], or something. Most might simply use the default provided in the base.
vky has quit [Ping timeout: 240 seconds]
<Fractional> Dreamingainne: Sadly I have no hierarchy of classes. I know, it is something I will use on my next project. I am just curious, should I 'declare' the rectangularcollision module in main.rb and include it with 'include RectangularCollision'?
alessandro1997 has joined #ruby
ada2358_ has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
codenapper has quit [Ping timeout: 265 seconds]
ironsand has joined #ruby
<DreamingRainne> For now, you might just put the collision-detection code in a "hit?" method in the Player class (in Player.rb), since it strikes me as more the concern of the Player object than of the overall game state.
<DreamingRainne> Or, the collision-detection code should be alongside whatever code is concerned with the location of each object in the game space. If that's the responsibility of the objects themselves, then put it as a method on those objects; if there's a separate "where's everything at?" class or something, have it as a method there. And so on.
kinginky_ has quit [Quit: Leaving]
redondos has quit [Ping timeout: 252 seconds]
kinginky has quit [Remote host closed the connection]
<DreamingRainne> (Like, if Player is concerned with health, attributes etc, while there's a separate "GameSpace" class that keeps track of where each object is within the level, then put it in GameSpace.)
vky has joined #ruby
<ddv> I would write an entity system
* DreamingRainne is speaking generally.
karupa is now known as zz_karupa
redondos has joined #ruby
<DreamingRainne> Looking at your code, you have x/y/angle on Player itself, so, I'd put the collision detection on Player. Whatever's responsible for where things are (for when collisions *could* happen), should also be what's responsible for figuring out when collisions *do* happen.
cran has quit [Quit: leaving]
ada2358 has joined #ruby
workmad3 has joined #ruby
tvw has joined #ruby
<DreamingRainne> So, no "Collision" module at all; I would take the code currently in Collision.rectangle? and make it an instance method of Player.
<DreamingRainne> That's the approach I'd take, anyway.
rakm has quit [Quit: Connection closed for inactivity]
* DreamingRainne isn't a spatial game programmer, but does play one on IRC when the topic arises! So, be sure to "include GrainOfSalt".
<mosez> damn... how can i get the result of a block into a variable?
<Fractional> DreamingRainne: Haha, roger that! :D
morenoh153 has quit [Ping timeout: 258 seconds]
<DreamingRainne> mosez: "yield" returns the last value that occured in the block, if that's what you mean. result = yield(derp)
robbyoconnor has quit [Excess Flood]
helpD has joined #ruby
terrellt has joined #ruby
robbyoconnor has joined #ruby
<mosez> dreamingrainne: thx... forgot about simply yield instead of things like block.call -.-
skaflem has joined #ruby
phansch has joined #ruby
<DreamingRainne> Hehe. block.call should return it too, in the same way.
RaptorJesus_ has joined #ruby
anaeem___ has joined #ruby
lolmaus has joined #ruby
emaxi has joined #ruby
terrellt has quit [Ping timeout: 276 seconds]
RaptorJesus has quit [Ping timeout: 245 seconds]
flagg0204 has joined #ruby
anaeem1 has quit [Ping timeout: 276 seconds]
havenwood has joined #ruby
dEPy has joined #ruby
narcan has joined #ruby
<lolmaus> There's a Ruby gem Middleman that allows creating projects with it. Every Middleman project has a config.rb file that contains configuration using some Middleman global methods. I would like to split config.rb into multiple files. But when i do `require ./foo.rb` from the config.rb, Middleman's public methods aren't available inside foo.rb. Why?
arietis has quit [Quit: Computer has gone to sleep.]
mehlah has joined #ruby
alessandro1997 has quit [Quit: Sto andando via]
freerobby has joined #ruby
andrewlio has joined #ruby
<DreamingRainne> lolmaus: It's still being successfully "require"d? Maybe you need to recreate any relevant scope for each of the other files? (Like, if they're method definitions, re-open the modules/classes in each file.)
<lolmaus> DreamingRainne: yes, it's required. It throws a "no such method" error. The config.rb file does not open any modules/classes, it just does `set :foo, 'bar'` right away.
RaptorJesus_ has quit [Remote host closed the connection]
mupkoo has joined #ruby
RaptorJesus_ has joined #ruby
crzrcn has joined #ruby
oo_ has quit [Remote host closed the connection]
roolo has quit [Quit: Leaving...]
crzrcn1 has joined #ruby
freerobby has quit [Ping timeout: 265 seconds]
txdv has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
funburn has quit [Client Quit]
Speed has joined #ruby
<DreamingRainne> My next guess is, if config.rb require()s anything (other than its new siblings), are they require()d in each of the siblings too?
davedev24 has joined #ruby
arietis has joined #ruby
crzrcn has quit [Ping timeout: 265 seconds]
crzrcn1 has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
St_Marx has joined #ruby
<workmad3> lolmaus: middleman doesn't do a simple 'require' for config.rb... by the looks of what 'self' is during the run, it loads the file in as a string and then instance_evals that string on the Middleman::Application object
<workmad3> lolmaus: any requires you then do will then not have the right context
oo_ has joined #ruby
shashank_rs has quit [Ping timeout: 265 seconds]
<lolmaus> workmad3: oh wow.
ndrei has quit [Ping timeout: 258 seconds]
<workmad3> lolmaus: you can see something odd is going on by doing 'puts self' in your config.rb
<workmad3> lolmaus: it then spits out Middleman::Application ;)
ndrei has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mansi has joined #ruby
afreidah3 has joined #ruby
shashank_rs has joined #ruby
fgo has quit [Remote host closed the connection]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
freggles has joined #ruby
oo_ has joined #ruby
weems has quit [Quit: Leaving]
iaj has quit [Ping timeout: 264 seconds]
mansi has quit [Ping timeout: 258 seconds]
Faris has joined #ruby
aagdbl1 has joined #ruby
aagdbl has quit [Disconnected by services]
aagdbl1 has quit [Client Quit]
dEPy_ has joined #ruby
afreidah3 has quit [Ping timeout: 252 seconds]
dEPy has quit [Ping timeout: 240 seconds]
weems has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
mupkoo has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
Xeago has joined #ruby
robustus has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
helpD has quit [Remote host closed the connection]
shashank_rs has quit [Ping timeout: 265 seconds]
lyanchih has quit [Ping timeout: 258 seconds]
helpD has joined #ruby
fabrice31 has joined #ruby
Cooler_ has quit [Remote host closed the connection]
dEPy_ has quit [Quit: Lingo - http://www.lingoirc.com]
Cooler_ has joined #ruby
chipotle has joined #ruby
sevin has quit [Quit: Leaving.]
leslie2 has left #ruby [#ruby]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
nvrch has quit [Quit: nvrch]
roolo has quit [Quit: Leaving...]
shashank_rs has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
iaj has joined #ruby
helpD has quit [Remote host closed the connection]
mupkoo has joined #ruby
Faris has quit [Ping timeout: 245 seconds]
danshultz has joined #ruby
chipotle has quit [Quit: cya]
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
_justin_ has joined #ruby
lolmaus has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 252 seconds]
_justin_ is now known as _justin
lolmaus has joined #ruby
helpD has joined #ruby
fgo has joined #ruby
anarang_ has quit [Ping timeout: 265 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senayar has quit [Remote host closed the connection]
aagdbl has joined #ruby
evenix_ has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
InfraRuby has quit [Remote host closed the connection]
terrellt has joined #ruby
fieldfirst has quit [Ping timeout: 245 seconds]
helpD has quit [Remote host closed the connection]
vadzimt has joined #ruby
narcan has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 265 seconds]
Squarepy has joined #ruby
fgo has joined #ruby
fannye has joined #ruby
terrellt has quit [Ping timeout: 258 seconds]
AlexRussia has joined #ruby
_justin has quit [Quit: _justin]
webgen has joined #ruby
tjr9898 has joined #ruby
emaxi has quit [Remote host closed the connection]
anarang_ has joined #ruby
sigurding has quit [Quit: sigurding]
emaxi has joined #ruby
freerobby has joined #ruby
eka has joined #ruby
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
AliRezaTaleghani has joined #ruby
chrisseaton has quit []
emaxi has quit [Ping timeout: 250 seconds]
freerobby has quit [Ping timeout: 250 seconds]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
crzrcn has joined #ruby
havenwood has joined #ruby
senayar has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
northfurr has joined #ruby
meatherly has joined #ruby
txdv has joined #ruby
senayar has quit [Remote host closed the connection]
tjr9898 has joined #ruby
fieldfirst has joined #ruby
nateberkopec has joined #ruby
crzrcn has quit [Ping timeout: 245 seconds]
havenwood has quit [Ping timeout: 276 seconds]
nateberkopec has quit [Client Quit]
roolo has joined #ruby
<webgen> nickserv -help
senayar has joined #ruby
<webgen> nickserv ?
senayar has quit [Remote host closed the connection]
<webgen> ? nickserv
<DreamingRainne> webgen: /msg nickserv help
senayar has joined #ruby
<webgen> DreamingRainne, thanks haha
northfurr has quit [Quit: northfurr]
<webgen> I registered my name yesterday and today I still cannot access #RubyOnRails
<webgen> I have the same username
<webgen> whats the deal
shashank_rs has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
<canton7-mac> have you identified with nickserv?
<DreamingRainne> Did you identify? (/msg nickserv identify whatever-your-password-is)
<canton7-mac> using /msg nickserv idrntify mypassword
<canton7-mac> *identify
mcrmfc has joined #ruby
<canton7-mac> yeah, that
shashank_rs has joined #ruby
<webgen> canton7-mac, DreamingRainne hehee thanks I ll do that one, never done it yet
<canton7-mac> otherwise how does nickserv know you're you?
<webgen> canton7-mac good point :D I thought it would recognize my username but didnt think of the password really nearly forgot it actually haha
vlad_starkov has joined #ruby
Hanmac has quit [Ping timeout: 258 seconds]
browndawg has joined #ruby
<workmad3> canton7-mac: using sasl auth when creating the connection? :P
browndawg has quit [Max SendQ exceeded]
Bofu2U has joined #ruby
<canton7-mac> yeah.......
Xeago_ has joined #ruby
<DreamingRainne> Or recognizing you by your hostname.
<canton7-mac> not so good if you're connecting from school/uni/work/whatever
<workmad3> DreamingRainne: that would be quite easily spoofable though :)
jamto11 has joined #ruby
AliRezaTaleghani has left #ruby [#ruby]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
tjr9898_ has joined #ruby
shashank_rs has quit [Ping timeout: 240 seconds]
<workmad3> hmm... freenode has a memo server?
tjr9898 has quit [Read error: Connection reset by peer]
ktun has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby
browndawg has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
browndawg has quit [Max SendQ exceeded]
goganchic has joined #ruby
tjr9898 has joined #ruby
browndawg has joined #ruby
senayar has quit [Remote host closed the connection]
sigurding has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898__ has joined #ruby
tjr9898_ has quit [Ping timeout: 258 seconds]
nicar has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
Lewix has quit [Remote host closed the connection]
senayar has joined #ruby
senayar has quit [Remote host closed the connection]
atmosx has joined #ruby
senayar has joined #ruby
sdouglas has joined #ruby
<atmosx> hello
<sungai_keruh> hi
sungai_keruh has quit [Quit: Leaving]
workmad3 is now known as wm3|lunch
meatherly has quit [Read error: Connection reset by peer]
tjr9898__ has quit [Ping timeout: 245 seconds]
yalue has joined #ruby
funburn has joined #ruby
sdouglas has quit [Ping timeout: 258 seconds]
obs has quit [Remote host closed the connection]
Iniesta8 has joined #ruby
obs has joined #ruby
tjr9898 has joined #ruby
timgauthier has joined #ruby
jhass|off is now known as jhass
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
<timgauthier> split('/) on a url would make http:// into http:/ and / right?
darkaer_ has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
<DefV> "http://".split('/') => ['http:']
anarang_ has left #ruby ["Leaving"]
<timgauthier> DefV well what i'd want is http://example.com/article/2014/the_linked_article_here
<timgauthier> but i've actually thought about what i'm designing in my head, i think i'd rather have it go to the url and grab the title of that page
anarang has joined #ruby
<timgauthier> because i'm too lazy to do it myself.
darkaer has quit [Ping timeout: 258 seconds]
darkaer_ is now known as darkaer
<timgauthier> the original idea was the split the url up, and then make the domain shaded out a bit then the link. but really thats an ugly way to present a link to something
<timgauthier> i've figured out what imma do, thanks for being a sounding board! (but do i understand split correctly?)
<ddv> timgauthier: why don't you just start a ruby console and try
oo_ has quit [Remote host closed the connection]
<timgauthier> is that rib ?
<timgauthier> irb* ?
<timgauthier> how would i load up a url into something to try applying split too it? :S
<ddv> c/p url to the console
m0s has quit [Quit: ZNC - http://znc.in]
<timgauthier> ohhhhh i figured it out. so exciting!
blackmesa has quit [Quit: WeeChat 0.4.3]
<timgauthier> thanks
terrellt has joined #ruby
alexju has quit [Remote host closed the connection]
oo_ has joined #ruby
darkaer has quit [Ping timeout: 258 seconds]
reisei has joined #ruby
pskosinski has joined #ruby
<reisei> hi, all! how can I send mail from ruby-script without authentication as I send mail from linux console?
terrellt has quit [Ping timeout: 276 seconds]
bthesorceror has joined #ruby
phoo1234567 has joined #ruby
Faris has joined #ruby
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinxreese has quit [Ping timeout: 246 seconds]
dapz has joined #ruby
matcouto has joined #ruby
popl has quit [Ping timeout: 250 seconds]
freerobby has joined #ruby
bthesorceror has quit [Remote host closed the connection]
ylluminate has joined #ruby
nateberkopec has joined #ruby
atno__ has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
atno__ has quit [Remote host closed the connection]
atno__ has joined #ruby
tkuchiki_ has joined #ruby
atno has quit [Ping timeout: 240 seconds]
Deejay_ has joined #ruby
moritzs has quit [Ping timeout: 258 seconds]
AxonetBE has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<AxonetBE> If I have a method def method(a = true, b = false, c = true); end
<AxonetBE> and I want to call it with only parameter c, how can I do this?
oo_ has quit [Remote host closed the connection]
bthesorc_ has joined #ruby
<DefV> use Ruby 2.0 and do def method(a: true, b: false, c: true)
oo_ has joined #ruby
babatz has joined #ruby
crzrcn has joined #ruby
bthesorc_ has quit [Remote host closed the connection]
havenwood has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
<crome> AxonetBE: if your method has too many optional parameters (the exact number is up to debate, I try not to have more than 1) then chances are its too complex
atno__ has quit [Client Quit]
<timgauthier> how do i turn "2014-04-16 11:04 UTC":String" into something that I can .strftime('%b %e %Y') ?
atno has joined #ruby
tkuchiki_ has quit [Ping timeout: 258 seconds]
Xeago_ has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
chrisseaton has joined #ruby
<timgauthier> :P
senayar has quit [Remote host closed the connection]
crzrcn has quit [Ping timeout: 250 seconds]
<timgauthier> thanks i'll go read up. I honestly didn't know what to search for other then that
havenwood has quit [Ping timeout: 240 seconds]
<crome> using search engines should be taught in elementary schools
<timgauthier> i love search engines, i just don't always know what to search for
banister has joined #ruby
marcux has joined #ruby
Iniesta8 has joined #ruby
<shevy> timgauthier pr0n
<timgauthier> i'm good at that! :P
<timgauthier> i mean!
* timgauthier backpedals
ndrei has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
Ramoune has joined #ruby
afreidah3 has joined #ruby
Ramoune has quit [Client Quit]
tgkokk has joined #ruby
kobain has joined #ruby
Celm has joined #ruby
emaxi has joined #ruby
mengu has quit [Remote host closed the connection]
Rhainur has joined #ruby
Kneferilis has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
lyanchih has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
<Rhainur> :(
afreidah3 has quit [Ping timeout: 258 seconds]
dblessing has joined #ruby
Celm has quit [Ping timeout: 258 seconds]
helpD has joined #ruby
nvrch has joined #ruby
kitak has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
kitak has joined #ruby
<vpereira> Rhainur: what is builder in your code?
<DreamingRainne> Maybe Test should inherit from or "include" something? (Unless 'builder' is supposed to do that automatically?)
<vpereira> Rhainur: builder = Builder::XmlMarkup.new ?
<Rhainur> I'm actually a bit confused about Sinatra, because I think maybe this is Sinatra functionality that I'm misinterpreting
<Rhainur> so let me start from the beginning
<Rhainur> I'm trying to make a sinatra app that generates an XML file from a template
<Rhainur> line 28 is the key line
<Rhainur> gistfile1 (calling builder :unknown within the get) works but the 2nd version doesn't
yfeldblum has joined #ruby
<DreamingRainne> Ah, the block at 21 is running at the top-level and thus is probably getting "builder" as a top-level variable, which won't be visible within methods.
<DreamingRainne> As a quick and dirty workaround, try: "$builder = builder" outside the class, then refer to "$builder" within it. Just to see whether that works.
<Rhainur> can I pass it in?
dumdedum has quit [Ping timeout: 276 seconds]
<DreamingRainne> Or do that, if you want.
mehlah has quit [Quit: Leaving...]
mark_locklear has joined #ruby
<DreamingRainne> Or, hmm. It's being passed arguments like a function, though, not like a variable.
Deejay_ has quit [Quit: Computer has gone to sleep.]
Iniesta8 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Rhainur> that's the problem :(
fgo has joined #ruby
<vpereira> Rhainur: hi, like you have a template unknown.builder
<Rhainur> yes I do
<Rhainur> fyi, when I do the builder :unknown outside the class, it works fine
<vpereira> hm path?
<Rhainur> views/unknown.builder
yfeldblum has quit [Ping timeout: 265 seconds]
vpretzel has joined #ruby
benzrf|offline is now known as benzrf
<vpereira> yup, but this class that you paste it.. can it find it?
vpretzel is now known as vpretzel|1280
<vpereira> is it running together with sinatra or is ist a PORO?
<atmosx> Anyone can figure out why these associations are not working? https://gist.github.com/atmosx/10865123 I'm using Sequel
<DreamingRainne> If it's callable in the top-level context, it should (technically) be a Kernel method and thus callable everywhere (everything would inherit it). If I understand correctly.
funburn has quit [Quit: funburn]
RaptorJesus_ is now known as RaptorJesus
mehlah has joined #ruby
<Rhainur> okay
<vpereira> Rhainur: start a irb, require 'builder' and call builder.. it doesnt exist. there is the builder and http://sinatra.rubyforge.org/api/classes/Sinatra/Builder.html
<Rhainur> let me make it clearer
<vpereira> to use
Speed has quit [Ping timeout: 245 seconds]
<vpereira> the require 'sinatra' does the whole difference than just open a irb session, require 'builder'
<vpereira> im talking about this here https://gist.github.com/Rhainur/f7e1eab8c86f12476be0
<vpereira> this wont work
sambao21 has joined #ruby
<Rhainur> so what do I have to do?
kpshek has joined #ruby
wald0 has quit [Quit: Lost terminal]
streetlight has joined #ruby
iamjarvo has joined #ruby
<vpereira> to make your sinatra code to work. read the link that i sent. you should just put your builder template into your view path
ponga has quit [Quit: Leaving :)]
<streetlight> hey all
<streetlight> does anyone know an easy way to install ruby 2 via yum?
enebo has joined #ruby
<Rhainur> vpereira: the problem is not the template...it's about getting the method to work inside a class
<vpereira> streetlight: yum install rvm :)
<Rhainur> the 2nd file works perfectly, the 1st doesnt
jack_rabbit_ is now known as jack_rabbit
<streetlight> vpereria is there a way to do it without having the extra dep :)
jack_rabbit has quit [Quit: Leaving]
<vpereira> Rhainur: yup make sense
Fractional_ has joined #ruby
<Rhainur> so how can I get the method to work inside a class?
<vpereira> Rhainur: you are requiring it in a different context
<Rhainur> okay...
senayar has joined #ruby
rmorello has joined #ruby
Fractional has quit [Ping timeout: 265 seconds]
<timgauthier> so _strptime makes a string into a date element. then i can use the strftime to output it the way i want?
<Rhainur> vpereira: how can I get access to it within the class then?
pika_pika has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
<shevy> Rhainur you can make your sinatra apps class-based
kaspergrubbe has joined #ruby
momomomomo has joined #ruby
bambuka has quit [Quit: Saliendo]
<shevy> but note that you define get on class object by default if you use it like that
<vpereira> Rhainur: you could try to include Sinatra::Templates in your class
Amirh has joined #ruby
krz has quit [Quit: WeeChat 0.4.3]
<shevy> Rhainur here is how http://www.sinatrarb.com/intro.html#Sinatra::Base%20-%20Middleware,%20Libraries,%20and%20Modular%20Apps
anaeem___ has quit [Remote host closed the connection]
<Amirh> as an outsource developer, what do you need to know what to develop for your customer? uml diagrams?
alexju has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Rhainur> vpereira: doesn't work
senayar has quit [Ping timeout: 265 seconds]
alex88 has quit [Read error: Connection reset by peer]
alex88 has joined #ruby
afreidah3 has joined #ruby
krz has joined #ruby
vlad_starkov has joined #ruby
<vpereira> Rhainur: go figure out
<vpereira> Rhainur: its in the documentation
BalkM has quit [Ping timeout: 250 seconds]
arturaz has joined #ruby
akonny has quit [Quit: akonny]
alexd has joined #ruby
aagdbl has quit [Quit: Connection closed for inactivity]
terrellt has joined #ruby
sambao21 has quit [Ping timeout: 250 seconds]
DreamingRainne has quit [Quit: Dreaming to the sound of rain.]
moritzs has joined #ruby
sambao21 has joined #ruby
Amirh has left #ruby [#ruby]
<wiscas> somehting i'm not quite understanding
<wiscas> does phusion passenger support ruby only or does it need to be ruby on rails ?
wiscas has left #ruby ["Leaving"]
wiscas has joined #ruby
<DefV> Passenger supports rack
iamjarvo has quit [Ping timeout: 276 seconds]
<DefV> so as long as your ruby app does rack, you can use passenger
afreidah3 has quit [Ping timeout: 245 seconds]
BalkM has joined #ruby
wm3|lunch is now known as workmad3
<streetlight> vpereira is there an easy way to get a version from yum?
PragCypher has quit [Remote host closed the connection]
_bart has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
paulfm has joined #ruby
<wiscas> humm i'm not sure on something DefV, and sorry for the newbie question, but wouldnt that mean that i'd have to make it compatible with ruby on rails?
terrellt has quit [Ping timeout: 258 seconds]
<DefV> wiscas: no
<DefV> wiscas: http://rack.github.io
<vpereira> streetlight: sorry, distributions dont do a good job in ruby packages.. rvm is way better
<vpereira> streetlight: the idea to have to call sudo to install the gems freak me out as well
<ddv> rbenv <3
sweeper has joined #ruby
<streetlight> vpereira agreed -- thanks for the help though
<vpereira> streetlight: ;)
tgkokk has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<sweeper> morning. does anyone know what encoding like "\xCA \xD0" IS?
<streetlight> if i install rvm to install ruby, can i uninstall rvm after and have it not effect the ruby install?
krz has quit [Quit: WeeChat 0.4.3]
<ddv> yes
tgkokk has joined #ruby
<vpereira> streetlight: you wont mess with the system ruby, but if you wipe out rvm you will remove your rvm installed rubies
ndrei has joined #ruby
<wiscas> so DefV i can have a ruby aplication and deploy it on phusion passenger and it should work?
<vpereira> streetlight: http://rvm.io
<streetlight> vpereia ahh lame
<streetlight> :(
deadlock has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
<vpereira> streetlight: curl -sSL https://get.rvm.io | bash -s stable
<DefV> wiscas: yup
<vpereira> streetlight: get a coffee, come back its ready..
<streetlight> vpereira lol thanks
<streetlight> vpereira no way to curl to a ruby 2 install and skip the whole shebang?
<streetlight> would this work for centos too? http://mac-dev-env.patrickbougie.com/ruby-200/
freerobby has joined #ruby
<vpereira> streetlight: http://rvm.io/rvm/install
<vpereira> streetlight: i never had a problem with rvm. i used it in centos, debian, opensuse and mac
<vpereira> if you have the dependencies installed
<vpereira> even in production, i just use rvm
ndrei_ has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> vpereira some people like to see the world burn, and do things the harder way ;)
<vpereira> timgauthier: then they shouldnt be working with ruby anyway :)
<streetlight> timgauthier :P
<timgauthier> yeah do it in PHP
browndawg has quit [Ping timeout: 252 seconds]
<streetlight> just used to node :)
<timgauthier> ;)
<timgauthier> doesn't node basically have RVM equivalent built in?
marr has quit []
marcux has quit [Quit: marcux]
<timgauthier> aka, you are used to doing it the harder way streetlight ;)
<streetlight> yeah, it's pretty easy to install a specific version via npm which also manages dependencies (like gem I think)
<streetlight> lol :)
tgkokk has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
vlad_starkov has joined #ruby
alexju has quit [Remote host closed the connection]
<streetlight> thanks guys though :)
benzrf is now known as benzrf|offline
joast has joined #ruby
browndawg has joined #ruby
freerobby has quit [Ping timeout: 276 seconds]
momomomomo has quit [Quit: momomomomo]
dapz has joined #ruby
tgkokk has joined #ruby
crzrcn has joined #ruby
havenwood has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ixti has joined #ruby
iamjarvo has joined #ruby
tgkokk has quit [Remote host closed the connection]
tgkokk has joined #ruby
djbender has joined #ruby
creativeembassy has joined #ruby
arietis has joined #ruby
tgkokk has quit [Remote host closed the connection]
crzrcn has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 276 seconds]
momomomomo has joined #ruby
sailias has joined #ruby
tkuchiki has joined #ruby
doodlehaus has joined #ruby
benzrf|offline is now known as benzrf
emaxi_ has joined #ruby
ddd_ has joined #ruby
iamjarvo has quit [Ping timeout: 258 seconds]
rkr090 has quit [Quit: Leaving]
mansi has joined #ruby
ddd_ is now known as ddd
emaxi has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
moritzs has quit [Ping timeout: 252 seconds]
rudisimo has joined #ruby
Faris2 has joined #ruby
Xeago has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Faris3 has joined #ruby
oponder has joined #ruby
Nukepuppy has joined #ruby
Faris has quit [Ping timeout: 250 seconds]
mrmargolis has joined #ruby
mansi has quit [Ping timeout: 258 seconds]
timonv has quit [Remote host closed the connection]
jamto11 has joined #ruby
Al___ has quit [Quit: Al___]
mjs2600 has quit [Remote host closed the connection]
timonv has joined #ruby
lxsameer has quit [Ping timeout: 250 seconds]
osvico has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
Al__ has joined #ruby
Faris2 has quit [Ping timeout: 276 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
osvico has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gbt has quit [Quit: Leaving...]
meatherly has joined #ruby
timonv has quit [Read error: Connection reset by peer]
mjs2600 has joined #ruby
timonv has joined #ruby
jamto11 has quit [Ping timeout: 258 seconds]
tgkokk has joined #ruby
jamto11 has joined #ruby
jackneill has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
amundj has quit [Ping timeout: 276 seconds]
benzrf is now known as benzrf|offline
fieldfirst has quit [Ping timeout: 245 seconds]
tgkokk has quit [Remote host closed the connection]
noop has quit [Ping timeout: 252 seconds]
DukeTogo13 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
Megtastique has joined #ruby
mjs2600 has joined #ruby
tgkokk has joined #ruby
tgkokk is now known as Guest35761
mjs2600 has quit [Remote host closed the connection]
Guest35761 has quit [Remote host closed the connection]
mjs2600 has joined #ruby
moritzs has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
mjs2600 has quit [Remote host closed the connection]
skulker has joined #ruby
robbyoconnor has quit [Ping timeout: 276 seconds]
browndawg has quit [Ping timeout: 240 seconds]
helpD has quit [Remote host closed the connection]
Kricir has joined #ruby
skulker has quit [Client Quit]
jonathanwallace has joined #ruby
dawkirst has quit [Ping timeout: 252 seconds]
dawkirst_ has joined #ruby
tgkokk` has joined #ruby
tgandrews has joined #ruby
<tgandrews> I'm looking for a ruby weighted graph data structure
<tgandrews> something that can be output to an image relatively easily
<tgandrews> does anyone know of anything?
tgkokk` has quit [Remote host closed the connection]
<streetlight> im having quite abit of trouble getting rvm running on a CentOS machine
arietis has joined #ruby
tgkokk` has joined #ruby
<shevy> haha
<shevy> centos!
elaptics`away is now known as elaptics
<shevy> hahaha
<shevy> ;-)
tgkokk` has quit [Remote host closed the connection]
<streetlight> lol
<streetlight> :(
<tgandrews> I've tried using gratr but it isn't ruby 2.0 compatible. Does anyone know of anything else?
creativeembassy has quit [Quit: FO SHO]
benzrf|offline is now known as benzrf
<streetlight> still wish ruby 2 was on yum!
<Schmidt> streetlight: package it :)
Melpaws1 has joined #ruby
<shevy> streetlight don't be a chicken, use the source: wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2
<streetlight> Schmidt haven't done it before, but fair point! could be worth trying
elaptics is now known as elaptics`away
<Schmidt> streetlight: if it simple things, FPM could probably help
bthesorceror has joined #ruby
jackneill has joined #ruby
<shevy> tgandrews nothing 100% to your criteria but gruff is sweet -> https://github.com/topfunky/gruff
senayar has joined #ruby
<tgandrews> shevy: thanks. I'll have a look
<benzrf> streetlight: just use ruby-install/chruby
<shevy> you can scan through the screenshots there and see whether anything remotely matches your need
<shevy> and if not, there is the programming language R still :P
<tgandrews> Ah sorry when I said graph I mean a network graph. The CS version of a graph not a bar chart etc.
Melpaws has quit [Ping timeout: 265 seconds]
momomomomo has quit [Quit: momomomomo]
timgauthier has joined #ruby
streetlight has quit [Quit: leaving]
<tgandrews> shevy: lol
<shevy> hmm
<shevy> a network graph
streetlight has joined #ruby
jameswlane has joined #ruby
<shevy> graphviz
bthesorceror has quit [Ping timeout: 245 seconds]
<shevy> and there are ruby bindings for it too
senayar has quit [Ping timeout: 265 seconds]
<Hanmac1> shevy iphone user would say, "there is a app for that" ... we can say "there is a binding for that" ;P
<timgauthier> any of you middleman users on?
helpD has joined #ruby
<timgauthier> how do you use an instance variable :|
<timgauthier> as in, i want to print it in an erg, would i just <%= @instance %> ?
<shevy> timgauthier just like you use local variables
<timgauthier> ok
<shevy> god
<shevy> erb
charlies_ has joined #ruby
reisei has quit [Quit: leaving]
<shevy> timgauthier, the @ivar resides inside of your class
poikon_ has joined #ruby
<shevy> class Foo; def initialize; @tim = 'this is tim here'; end; end
SonicX has joined #ruby
<timgauthier> my brain just clicked what the heck this instruction was saying.. man how the heck does someone use a different template engine in this middleman, literally EVERYTHING is build for .erb...
creativeembassy has joined #ruby
<timgauthier> where does a normal lowercase variable reside?
momomomomo has joined #ruby
<shevy> usually inside of a method
terrellt has joined #ruby
<timgauthier> okay, now translate that to PHP speak so i can understand it :P
charliesome has quit [Ping timeout: 240 seconds]
<timgauthier> *hehehe*
bthesorceror has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
jprovazn has joined #ruby
<shevy> a method is def bla
<shevy> you asked where a normal lowercase variable reside
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<shevy> and that's like a no question? because you can uhm... define a normal lowercase variable everywhere?
poikon has quit [Ping timeout: 250 seconds]
<shevy> def foo
<shevy> x = 'hi tim'
<shevy> end
<workmad3> timgauthier: a normal lowercased variable is a local variable, it only exists in the local scope it gets defined in
sambao21 has joined #ruby
ponga has quit [Client Quit]
<timgauthier> sorry shevy, i meant like if i define a lowercase variable what is the scope,
<workmad3> timgauthier: local
<timgauthier> I realize that base PHP doesn't really have classes so a @variable doesn't have a real analog
jds has quit [Quit: Connection closed for inactivity]
<timgauthier> thanks workmad3
andikr has quit [Remote host closed the connection]
<timgauthier> and to call a local variable from outside a method you call the method and receive the output but you can't grab a specific variable?
lmickh has joined #ruby
jeregrine has joined #ruby
terrellt has quit [Ping timeout: 258 seconds]
<workmad3> timgauthier: yeah, can't access a local var from outside the scope it's created in
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ktun_ has joined #ruby
DukeTogo13 has quit [Quit: [BX] Khaled uses BitchX. CTCP TROUT THIS, BITCH!]
browndawg has joined #ruby
<timgauthier> mhmm, ok yup you've said words I actually understand :D thanks
ellbot has joined #ruby
ktun_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
ktun has quit [Read error: Connection reset by peer]
Port3M5[Work] has quit [Read error: Connection reset by peer]
Macaveli has quit [Ping timeout: 252 seconds]
ehc has joined #ruby
beaky has joined #ruby
<Schmidt> Has anyone worked with WebVTT files? I need to parse and split .vtt files by timestamps. Most gems I've found does not seem to support that...
<beaky> hello
<beaky> why are symbols good
<tobiasvl> beaky: they're only stored once
lukec has joined #ruby
mary5030 has joined #ruby
<tobiasvl> beaky: they're immutable
<tobiasvl> beaky: they're faster
<tgandrews> shevy: I eventually got plexus working.
<beaky> wow ruby strings arent immutable?
<DouweM> beaky: nope
<timgauthier> i love changing strings
<DouweM> beaky: but the main point of symbols is that they're stored only once
bthesorceror has quit [Ping timeout: 276 seconds]
<beaky> so symbols are basically interned strings
<timgauthier> Can you tell me what the actual error is?
<tobiasvl> >> a = " hello "; a.strip!; puts a
<eval-in> tobiasvl => hello ... (https://eval.in/137480)
<tobiasvl> beaky: yes that's exactly what they are
<DouweM> beaky: that's exactly right
<DouweM> beaky: that's also what they're called in source, basically
<shevy> timgauthier you have a nil value
Port3M5[Work] has joined #ruby
<timgauthier> in what?
<shevy> dunno, that error message you get looks fucked up
<shevy> perhaps extension[1..-1].to_sym returns nil
<shevy> before .to_sym is called
<shevy> it's the erb disease, error messages no longer make sense
timonv has joined #ruby
sdouglas has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> yeah... lol
jlast has joined #ruby
dawkirst has joined #ruby
ktun has joined #ruby
evenix_ has joined #ruby
evenix has joined #ruby
<benzrf> shevy: wenk wenk
momomomomo has quit [Quit: momomomomo]
<timgauthier> benzrf you guys are right, erb is ugly
<shevy> benzrf it's written "wank" man
<mikecmpbll> stop wenking.
<timgauthier> but I don't understand the logic of haml yet
<mikecmpbll> i like erb. fuck haml.
kevind has joined #ruby
<timgauthier> mikecmpbll :P
<shevy> lol
<benzrf> mikecmpbll: wrong
<timgauthier> I like {{
<mikecmpbll> no u
<timgauthier> DOCH
<benzrf> timgauthier: just read the docs
<ddd> s/OC/OUC/
<shevy> timgauthier if you combine erb with haml you got only two things
<benzrf> haml is a simpler more elegant solution [trufax]
akonny has joined #ruby
<timgauthier> elegant isn't what i'd call it
<mikecmpbll> that's also an opinion masquerading as a fact.
<ddd> show me the trufax
<workmad3> haml sucks for content
<DouweM> erb makes me feel dirty
fgo has quit [Remote host closed the connection]
<shevy> lol
<workmad3> but it's ok for templates
<timgauthier> Fight Fight Fight!
<benzrf> yea
<shevy> those are some epic responses here
oo_ has quit [Remote host closed the connection]
<timgauthier> lol shevy
<timgauthier> guess what shevy, I AM NOT REDOING ALL MY ERB INTO HAML
<workmad3> erb is also ok for templates
<shevy> haha
<timgauthier> so either you do it all, or i leave it
gbt has joined #ruby
krz has joined #ruby
chad___ has joined #ruby
<workmad3> both haml and erb are ugly if you've got too much happening in the template though :)
<timgauthier> i do lots of logic "if this exists" but only because I don't want to render a <div> that isn't being used.
<timgauthier> which to me, is why you'd use a template
Melpaws1 has quit [Quit: Leaving.]
crzrcn has joined #ruby
rm_ has joined #ruby
treehug88 has joined #ruby
danijoo has quit [Quit: Leaving...]
<shevy> man
<shevy> wouldn't you wish you could have if/else checks in html
<Hanmac1> shevy: centos would say "man - command not found"
Hanmac1 is now known as Hanmac
<workmad3> shevy: not particularly
<workmad3> shevy: I've seen XSLT
<mikecmpbll> lolwat
<timgauthier> yes shevy i wish i could
maroloccio has quit [Ping timeout: 240 seconds]
<timgauthier> but they'd be just as ugly
<workmad3> timgauthier: uglier
<chad___> quite a bit uglier
<timgauthier> really your finally HTML should not have logic in it
Morkel has quit [Ping timeout: 258 seconds]
senayar has joined #ruby
ellbot has quit [Remote host closed the connection]
Morkel_ has joined #ruby
iamjarvo has joined #ruby
<timgauthier> so a template engine should do that
beaky has left #ruby [#ruby]
ellbot has joined #ruby
<workmad3> timgauthier: ideally, your template shouldn't have logic in it either... at most, it should have very simple logic
<timgauthier> liquid is actually quite nice, but .erb is amazing because you have all of the ruby available, you can do things that are insanely powerful, like reference models and controllers, but you output a true HTML
ktun_ has joined #ruby
<mikecmpbll> i like to put my M, V and C into the V
<timgauthier> workmad3 yeah, I agree, more then "out put this string this way" or "do this here unless that isn' t a set variable"
<mikecmpbll> keeps it simple, yo.
crzrcn has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
<timgauthier> but if its more complicated then a single if statement to output a truthy or nil then a controller does it better
ndrei_ has quit [Ping timeout: 252 seconds]
<timgauthier> or if you do it more then once
davispuh has joined #ruby
endash_ has joined #ruby
<timgauthier> but then you can end up having html in your controller which i think is worse, so then you have a controller, a partial and a template
evenix has quit [Remote host closed the connection]
evenix_ has quit [Remote host closed the connection]
<timgauthier> talk about atomizing your design!
<workmad3> timgauthier: no, in that situation you're better off with a proper view layer that sits behind the template
<timgauthier> i'm sad sad, i don't know how to add a switch to the middleman article command :|
<timgauthier> wait...
<timgauthier> i thought the view layer WAS the template?
<workmad3> timgauthier: in a lot of MVC frameworks, they're collapsed together for simplicity
lw has joined #ruby
<timgauthier> ah
vlad_starkov has joined #ruby
<mikecmpbll> or rather, they're not yet divided
<timgauthier> so you'd have a .ruby for the view, then a template layer
vlad_sta_ has joined #ruby
ktun__ has joined #ruby
ktun has quit [Ping timeout: 240 seconds]
<timgauthier> then do you create two templates that differ only by if a variable appears or not or do you still do that in your template ?
ellbot has quit [Ping timeout: 245 seconds]
ellbot has joined #ruby
<workmad3> timgauthier: nah, I'd have a template that always output the result of a view method
maroloccio has joined #ruby
ktun_ has quit [Ping timeout: 252 seconds]
<workmad3> timgauthier: and that view method would either return or not return the content based on that variable
Squarepy has quit [Quit: Leaving]
freerobby has joined #ruby
<timgauthier> so if you have a page where you may or may not have tags.. then you have a template that includes tags and a template that does not? even though the templates are otherwise identical?
<workmad3> timgauthier: see above
<timgauthier> yeah i'm trying to understand above
<workmad3> timgauthier: the template would always have '<%= render_tags %>'
Iniesta8 has joined #ruby
<timgauthier> ok
Iniesta8 has quit [Max SendQ exceeded]
ellbot has quit [Remote host closed the connection]
Iniesta8 has joined #ruby
<timgauthier> so now what if <%= render tags %> is inside a div called <div class="tags"> but you want that to collapse and not be there if there are zero tags?
sambao21 has quit [Quit: Computer has gone to sleep.]
Iniesta8 has quit [Max SendQ exceeded]
ellbot has joined #ruby
<workmad3> timgauthier: why would that call be inside the div?
<mikecmpbll> heh
<workmad3> timgauthier: that call would add the div
<timgauthier> because you don't want to put the div with the styling into the view
<workmad3> timgauthier: the template is saying 'tags go here man'
Iniesta8 has joined #ruby
<workmad3> timgauthier: why wouldn't I? :)
ktun has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier> yeah, i've worked with templates that where built like that, and they are unessesarily awkward. I firmly believe that you should never have html that appears from nowhere
<mikecmpbll> what
vlad_starkov has quit [Ping timeout: 240 seconds]
<timgauthier> the html should all be put in once place so that it is manageable to change
<mikecmpbll> have you ever rendered a partial?
<timgauthier> yes
<mikecmpbll> so what's that
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
lxsameer has quit [Quit: Leaving]
<timgauthier> the html partials are in the same place as the rest of the html though, not segregated from them in some ruby file
luriv has joined #ruby
Iniesta8 has joined #ruby
<timgauthier> are you saying that render tags is calling a partial that contains the html to draw that div?
Iniesta8 has quit [Max SendQ exceeded]
<workmad3> timgauthier: it can do
helpD has quit [Remote host closed the connection]
jrhe has joined #ruby
<timgauthier> i'm okay with that, as long as it is commented into the template saying what partial is pulling the html
<workmad3> timgauthier: there's lots of ways to skin this cat
Iniesta8 has joined #ruby
vpretzel|1280 is now known as vpretzel
ktun__ has quit [Ping timeout: 276 seconds]
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier> yeah thats what people say... but really I think there isn't.
<timgauthier> Ever work with Php Formbuilder?
<workmad3> timgauthier: sometimes I'd generate the HTML directly in the view, with the template just being a very simple thing saying what order stuff gets put into
<mikecmpbll> lol
flagg0204 has quit [Ping timeout: 240 seconds]
<timgauthier> Try to edit the output of the form, oh you want to change how it builds a form to update it from 1999 to html5 standerd forms? great now you get to go rewrite PHP!
Iniesta8 has joined #ruby
vpretzel is now known as vpretzel|941
Iniesta8 has quit [Max SendQ exceeded]
jkamenik has joined #ruby
<timgauthier> workmad3 as a developer I understand why you would, but as a designer I have to say that it actually makes things more difficult
ellbot has quit [Ping timeout: 240 seconds]
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
benzrf is now known as benzrf|offline
tkuchiki has quit [Remote host closed the connection]
afreidah3 has joined #ruby
<workmad3> timgauthier: if I was working with a designer, I wouldn't do that approach
<timgauthier> its much harder to design. If i can write out a full static html page with all of the content in it and then design and built all of it out, then remove the content and plug in ruby/php/javascript/node/batman then its a much more flexible and agnostic process
danijoo has joined #ruby
joshualivesay has joined #ruby
<timgauthier> thanks then workmad3 :)
Veidit has quit [Remote host closed the connection]
<timgauthier> see, and i'm really a designer pretending to be a developer here, so I always build the basic logic out in the front.
<workmad3> timgauthier: and you say that's a much more flexible approach... but when you 'plug in' the language, you frequently end up with an atrocious unmaintainable mess :)
Spami__ has joined #ruby
<timgauthier> what do you mean?
<timgauthier> if I put a logic block into my html and then change from PHP to erb or from liquid to erb then I just change the language of those logic blocks. I don't have to change the html at all, or even move it
ktun has quit [Read error: Connection reset by peer]
<workmad3> timgauthier: I mean that you end up with a single, huge template that's filled with crufty condition rendering, loops going over badly named variables and all sorts of other mess that makes it really difficult to see what the hell is going on
<timgauthier> but if that html is in a ruby file controller then I have to make sure I move it to the new language
<timgauthier> ah
sdouglas has quit [Remote host closed the connection]
rvraghav93_ has quit [Read error: Connection reset by peer]
Rhainur has quit [Quit: Leaving]
ktun has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<workmad3> timgauthier: I've seen the extremes of that approach too ;)
<timgauthier> yes it can, but I also divide my templates and such up quite a bit
Kricir has quit [Remote host closed the connection]
<workmad3> timgauthier: I think the worst I saw was a fucking 3000 line XSLT file that couldn't even be indented properly because it broke stuff
<timgauthier> haha wow
lw has quit [Quit: s]
jrhorn424 is now known as zz_jrhorn424
<timgauthier> yeah, no every view has a different template, at least
<workmad3> timgauthier: this was for 1 view
<DouweM> that's on a whole other level, bordering on impressive workmad3
<timgauthier> anything that is in more then one place goes into a partial
rayners has joined #ruby
<timgauthier> anything that repeats gets turned into a partial
<mikecmpbll> hey, i was under the influence when i wrote that xslt
<timgauthier> if its a different state, then if at all possible, different template
<workmad3> mikecmpbll: you've worked on dspace? :D
tagrudev has quit [Remote host closed the connection]
<mikecmpbll> oh yeah, thems were the days
sdouglas has joined #ruby
<mikecmpbll> no, no i haven't.
Iniesta8 has joined #ruby
paulfm has quit []
Iniesta8 has quit [Max SendQ exceeded]
garndt has joined #ruby
flagg0204 has joined #ruby
yfeldblum has joined #ruby
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier> what do you call the thing that runs when i do $ bundle exec middleman article
<shevy> madness
Iniesta8 has joined #ruby
<timgauthier> I know it outputs a markdown file based on a template in a folder and adds the date etc
andrewlio has quit [Remote host closed the connection]
<timgauthier> but what is "article" ? and how can i change it, modify it, or create a new variation?
<Hanmac> shevy: this is not madness this! is! bundler!! ;DP
<shevy> wouldn't you like to know!
<shevy> timgauthier, Hanmac is THE bundler expert
<shevy> ask him bundler related questions
joshualivesay has left #ruby [#ruby]
<timgauthier> i don't need to know shevy, honestly its me being a lazy sod and not wanting to have to add layout: linked_list to some of my blog articles when i create them
<timgauthier> not that i will likely create very many.
<workmad3> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/dri2xhtml/structural.xsl looks like it's just as bad... although that generates the 'repository view'....
<timgauthier> hanmac can i use bundler to install a local version of bundler that is different, then have that automatically create a specific gem and scaffold a full website for me?!
mengu has quit [Remote host closed the connection]
LadyRainicorn has joined #ruby
<workmad3> but I think they fixed the indentation problem since I last had to touch it :)
<Hanmac> timgauthier: shevy lied to you, i never used bundler :/
alem0lars has joined #ruby
Iniesta8 has quit [Client Quit]
<timgauthier> hahaha :P
nouitfvf has joined #ruby
<workmad3> timgauthier: that also answers the question of what it would look like if you had <if> tags in HTML...
<timgauthier> yea
<timgauthier> thats .xsl
<timgauthier> we all agree that that was a mistake
<shevy> wesnoth game does not agree with you!
crystal77 has joined #ruby
<timgauthier> html is for content markup, css is for style and layout
<canton7-mac> reminds me of ColdFusion as well...
<timgauthier> don't put style and mark up in html if you can, and don't put content in css if you can
<shevy> [if] [variable] name=we.gold
yfeldblum has quit [Ping timeout: 258 seconds]
<timgauthier> of course we fuck both of those up most of the time with stuff like i:before { content:" " } just so we can do stupid icons and stuff
<timgauthier> and technically it isn't "content" so i guess its ok
acrussell has joined #ruby
Briareos1 has joined #ruby
Briareos1_ has joined #ruby
<timgauthier> thats ugly shevy
Kricir has joined #ruby
Briareos1__ has joined #ruby
Briareos1___ has joined #ruby
Briareos1_ has quit [Remote host closed the connection]
Briareos1__ has quit [Remote host closed the connection]
Briareos1___ has quit [Remote host closed the connection]
<timgauthier> why not [ if variable name = we.gold
<timgauthier> ]
<LadyRainicorn> That is pretty awful syntax.
<shevy> don't ask me, I did not implement it
<timgauthier> LadyRainicorn yea... well thats what happens when the W3C tries to create new languages
<shevy> timgauthier but it is curious that one of the maintainers came to the conclusion in 2010 that it sucked haha :D http://shadowm.rewound.net/blog/archives/83-Why-the-Wesnoth-Markup-Language-is-bad-for-you.html
<timgauthier> have you seen CSS LadyRainicorn ?
<shevy> they'll probably switch to lua fully eventually
<timgauthier> lua isn't bad
<LadyRainicorn> How about ]var,name^^gold-we
<timgauthier> what language is that?
<workmad3> we should all use APL for templates
<shevy> hehehe
<LadyRainicorn> The only thing I could think of writing worse syntax ;p
<workmad3> then we could have a template as short and succinct as the APL prime-number seive... (~R∊R∘.×R)/R←1↓ιR
<timgauthier> whats apl? some microsoft stuff?
<timgauthier> what the...
<workmad3> or their Conway's implementation... life←{↑1 ⍵∨.∧3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵}
iamjarvo has quit [Ping timeout: 276 seconds]
canton7-mac has quit [Remote host closed the connection]
sambao21 has joined #ruby
<LadyRainicorn> wow that is confusing
<timgauthier> workmad3 that'd be awesome to see in source files... 90% of windows users wouldn't be able to process it!
canton7-mac has joined #ruby
canton7-mac has quit [Remote host closed the connection]
fgo has joined #ruby
kevinykchan has joined #ruby
<workmad3> heh, not seen this one before... remove all HTML tags with APL - '⎕←{⍵/⍨~{⍵∨≠\⍵}⍵∊'<>'}txt'
SCommette has joined #ruby
paulfm has joined #ruby
cburyta has joined #ruby
cburyta has quit [Client Quit]
<timgauthier> thats awesome shevy
kevinykchan has quit [Client Quit]
kevinykchan has joined #ruby
<timgauthier> all of my dummy articles in my blog section right now are late night shows... :|
mansi has joined #ruby
_justin has joined #ruby
Robbo__ has quit [Ping timeout: 265 seconds]
iamjarvo has joined #ruby
<timgauthier> you know what is hard to understand... the way templates nest backwards
Lewix has joined #ruby
fieldfirst has joined #ruby
dunix has joined #ruby
madb055 has joined #ruby
<shevy> chinese is also hard to understand
<timgauthier> yes
fgo has quit [Ping timeout: 250 seconds]
mansi_ has joined #ruby
jespada has joined #ruby
<shevy> I wonder why new code is written
<shevy> haven't we by now solved all possible problems anyway?
mansi has quit [Ping timeout: 245 seconds]
fgo has joined #ruby
shashank_rs has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
lukec has quit [Quit: lukec]
Hobogrammer has quit [Read error: Connection reset by peer]
vlad_sta_ has quit []
<shevy> like when I compare evince to okular
<shevy> that one got this feature and the other does not have it, and vice versa
<timgauthier> ruby has :D
<DefV> most problems have been solved for a long time
<DefV> but they haven't all been solved in <new programming language>
<timgauthier> OH WE CANT DO THAT IN RUBY okay well then lets do it in a language we can do it in and then have ruby access that!
<shevy> yeah DefV :(
<timgauthier> I understand how node.js got invented
<timgauthier> i still think it was a bad idea
cjbottaro has joined #ruby
<shevy> what did you expect
<shevy> it is javascript after all
<DefV> it has its merits
tgandrews has quit [Remote host closed the connection]
<timgauthier> it has merits?
<Veejay> IT NEVAR BLOCKS
<Veejay> Which is an merit
mansi_ has quit [Ping timeout: 265 seconds]
mcrmfc has quit [Ping timeout: 245 seconds]
<timgauthier> lol
<timgauthier> it is?
<timgauthier> i thought blocks were good?
<Veejay> I have no idea. I've read that online often enough now that I've become convinced that never blocking is the way.
fgo has quit [Ping timeout: 258 seconds]
<timgauthier> oh i see
<timgauthier> thats pretty easy to convince you then Veejay :D
krz has quit [Read error: Connection reset by peer]
iceden has joined #ruby
<Veejay> Until someone is better at ramming shit in my brain
<timgauthier> haha
<timgauthier> Veejay are you a video DJ or Indian?
<timgauthier> :P
<timgauthier> i'm not sure how to pronounce it in my head
<Veejay> Like right now, I don't know what kind of program I will write in 10 years
<Veejay> But there's a fair chance it will have monads on the JVM
<Veejay> Prepare to be disappointed. I'm not a DJ and I'm French. HA!
<timgauthier> so its feeshay
<timgauthier> got it
<Veejay> Your name sounds suspiciously French too
evenix_ has joined #ruby
evenix has joined #ruby
<timgauthier> ja
<Veejay> Ahh the good old times of the colonies
bthesorceror has joined #ruby
<Veejay> (j/k colonization is horrible, don't do it)
<timgauthier> I'm Half French Canadian, living in Germany speaking more german then french
<timgauthier> the french where half decent at it, i don't see any former french colonies angry about it
mupkoo has quit []
alexju has joined #ruby
<timgauthier> ugh, does anyone know a nice clear easy to read list for the %Y %m %d codes?
anarang has quit [Quit: Leaving]
wykydtron has quit [Ping timeout: 240 seconds]
<shevy> timgauthier you'll move away from germany again eventually!
<timgauthier> the one i found.. the %Y is offset from the line after it by half a line... so how the heck do i read it!
<timgauthier> shevy likely :P
<shevy> what %Y code, for time?
streetlight has quit [Quit: Lost terminal]
<shevy> >> Time.now.strftime "%d.%m.%Y"
<eval-in> shevy => "16.04.2014" (https://eval.in/137504)
jhass is now known as jhass|off
<timgauthier> yes i know that shevy
terrellt has joined #ruby
<shevy> \o/
<Veejay> timgauthier: You haven't looked very closely then haha
<timgauthier> what i'm looking for is the list that shows all of the %Y and %h and what they mean
<Veejay> We were awful at it
<shevy> you are reaching the point in ruby where you answer your own questions timgauthier :)
<Veejay> Also, it's not like you can be any good at stealing people's shit
<shevy> that list is somewhere on the internetz I am sure
<shevy> probably ruby docu
<timgauthier> Veejay nawww you're good, heck Mali even invited you back for a second try!
<timgauthier> yeah shevy its okay, if no one has a nice list i'll keep looking
<shevy> look at "Format directives:"
<timgauthier> there we go!
sdouglas has quit [Remote host closed the connection]
<shevy> but a real rubyist has that memorized for life
<shevy> OR
<shevy> he tries in irb until it matches
<timgauthier> haha :P
<timgauthier> some of them are weird, lile %k
wykydtron has joined #ruby
<shevy> hmm
Kricir has quit [Remote host closed the connection]
bal has quit [Quit: bal]
sputnik13 has joined #ruby
<shevy> $VERBOSE is such a hack
<olivier_bK> i try to get all caracter after = in rubular everything doing well but in my script i get an error :( and i dont understand why
<timgauthier> then you get some awesome things like %F and %R which do exactly what i need
<chad___> strftimer.com for strftime :)
<shevy> am I right in assuming that $VERBOSE = nil is the same as $VERBOSE = 0 ?
<olivier_bK> line.match((?==).+) #.gsub(/\.;/,'').gsub(/...
<olivier_bK> ... ^
<olivier_bK> (irb):95: syntax error, unexpected keyword_end, expecting ')'
<shevy> olivier_bK where are the //
terrellt has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
<shevy> timgauthier what is %F and %R doing?
<olivier_bK> ohh
<DefV> sitting in a tree
<DefV> K I S S I N G
lmickh has quit [Ping timeout: 258 seconds]
<timgauthier> they are shorthand for %Y - %m - %d and %H:%M
Lewix has quit [Remote host closed the connection]
<timgauthier> so you can build your UTC timestamp with 2 calls instead of 5
<shevy> hmm
geggam has joined #ruby
<shevy> >> Time.now.strftime "%F"
<eval-in> shevy => "2014-04-16" (https://eval.in/137505)
<timgauthier> :)
<shevy> but I like my year last!
cantonic has joined #ruby
<workmad3> timgauthier: by UTC, I assume you mean ISO8601?
<timgauthier> then you are a heathen
sputnik13 has quit [Client Quit]
<timgauthier> yes workmad3
<timgauthier> i had to google that
<timgauthier> I realize UTC is just a timezone
<timgauthier> sort of
mansi has joined #ruby
paulfm has quit []
mansi has quit [Read error: Connection reset by peer]
<shevy> it could be a company too
codebro has joined #ruby
<workmad3> shevy: I thought you liked simple, uncomplicated things?
Fretta has joined #ruby
<shevy> workmad3 yes!
<workmad3> shevy: so surely you like the year first? :D
<shevy> no!
mansi has joined #ruby
<timgauthier> biggest to smallest
<shevy> I live by the day, not the year!
<workmad3> shevy: ok... so give me the date-ordering algorithm for a year-last format pls :P
<shevy> smallest counter to biggest counter!
<timgauthier> Year-Month-date-hour-minute-second timecode
<timgauthier> but shevy, what if you realize you need to add something too it?
dinosaurs is now known as randytravis
<shevy> add where to?
terrellt has joined #ruby
<workmad3> shevy: so the number '1234' is four-thousand, three hundred and twenty one?
<timgauthier> you can't prepend an entry on a form by hand!
<timgauthier> workmad3 in arabit it is
<timgauthier> :D
paulfm has joined #ruby
<shevy> workmad3 we write from left to right
<timgauthier> arabic* lol
<timgauthier> yes shevy
<shevy> workmad3 so we count dd.mm.yyyy as well
<workmad3> shevy: as I asked... give me the date ordering algorithm for that pls ;)
<timgauthier> so we write year month day hour minute second millisecond nanosecond timezone
<timgauthier> you stop when you have enough detail
<shevy> dd.mm.yyyy
alem0lars has quit [Quit: Going AFK...]
<workmad3> shevy: I have d1.m1.yyy1 and d2.m2.yyy2... how do I compare them and put them in order?
dawkirst has quit [Remote host closed the connection]
Martxel has joined #ruby
<shevy> workmad3 you sort it properly
treehug8_ has joined #ruby
<workmad3> shevy: yeah... I'm asking you for the simple, uncomplicated algorithm for that ;)
<shevy> workmad3 use a method
<timgauthier> you sort it by split(".") then you reverse it, then you make it a date object
<timgauthier> and then you can use normal ruby!
aniM has joined #ruby
<shevy> why would you have to reverse it if it would be the default?
<timgauthier> because it isn't
<timgauthier> its wrong
<workmad3> shevy: because YYYYMMDDD is automatically ordered
<shevy> it's not the default, that is what is wrong
treehug88 has quit [Ping timeout: 250 seconds]
<workmad3> shevy: while DDMMYYYY isn't
<timgauthier> i mean at least he's not being completely convoluted and asking for MMDDYYYY
<shevy> workmad3 now in your example you used ., where did these go!
bluOxigen has joined #ruby
<workmad3> shevy: gsub them out ;)
snath has quit [Ping timeout: 245 seconds]
<workmad3> shevy: you'd need to do that no matter what
<timgauthier> in the filesystem 1folder goes before 2folder automatically
lmickh has joined #ruby
<workmad3> shevy: also, YYYY/MM/DD and YYYY.MM.DD are also automatically lexically ordered
<shevy> I really fail to see the unsolvable mystery in it :(
<timgauthier> so YYYY/MM/DD works way easier for file naming conventions too
lw has joined #ruby
<shevy> I don't see any of that
<workmad3> shevy: while DD.MM.YYYY isn't lexically or numerically ordered without jumping through hoops to compare each part separately
mcrmfc has joined #ruby
<timgauthier> but seriously people who want their legal documents filled out MM DD YY are ridiculous :|
<shevy> workmad3 do you really write "signed on 2014-04-16" in the UK?
<atmosx> timgauthier: hey I'm European, I like to read my date as I'm used to.
simplyaubs has joined #ruby
<timgauthier> DD MM YY isn't european
<timgauthier> DD MM YY is american
treehug88 has joined #ruby
<atmosx> timgauthier: nope.
<workmad3> shevy: I wish we did :(
<shevy> now something isn't consistent here
<timgauthier> YYYY MM DD is correct, DD MM YYYY i can accept
dawkirst has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
<timgauthier> but MM DD YY or MM DD YYYY are unacceptable
<atmosx> Ah sure
<timgauthier> I mean MM DD YYYY is slightly better because you at least know what year it is
<atmosx> month-day-year? never saw that
dima_ has joined #ruby
<atmosx> timgauthier: of course.
<timgauthier> month day year is standard in america and some parts of canada
lkba has joined #ruby
joast has quit [Quit: Leaving.]
<shevy> ack
<timgauthier> the federal standard in canada is DD MM YYYY for forms which annoys me but at least has them in a semi logical order
<shevy> they start with the month first?
arietis has quit [Quit: Computer has gone to sleep.]
<timgauthier> yes shevy
<shevy> why do they always pick the stupidest solution
<oponder> so you can sort by month nicely =D
<timgauthier> and once you break away from YYYY MM DD and allowing people to write their dates willy nilly then it gets unacceptable
<shevy> lol
<workmad3> timgauthier: MM/DD/YYYY does have a sort-of logical reason behind it
<workmad3> timgauthier: 'september the eleventh'
<timgauthier> no september the 11th is because they do it wrong, it should be 11th of september
<shevy> the eleventh of september?
crzrcn has joined #ruby
<timgauthier> i was born the 23rd day of september year of our lord 1986. Simple
<shevy> yes
<shevy> dd.mm.yyy
<shevy> +y
<workmad3> timgauthier: but by your own rationale, that's the 'correct' way of saying it ;)
treehug8_ has quit [Ping timeout: 265 seconds]
<workmad3> timgauthier: largest to smallest
<timgauthier> sure, but when you add time it gets dumb
<shevy> haha
<DouweM> dd-mm-yyyy ftw
<timgauthier> HH:MM:SS
<shevy> MM:HH:SS would be worse
<timgauthier> so then if i write it out in notation i write it out YYYY:MM:DD HH:MM:SS
x77686d has joined #ruby
Martxel has quit [Ping timeout: 265 seconds]
<timgauthier> and I write it 100$
<shevy> I have a question
<timgauthier> because that makes sense too
<shevy> when I start IRB, and put $VERBOSE
<timgauthier> but goes against my logic.
roolo has quit [Quit: Leaving...]
<shevy> hmm I get false
<timgauthier> what happens when you quit IRB with verbose ?
<timgauthier> don't you have to start IRB with a flag to get verbose?
<timgauthier> irb --verbose
joast has joined #ruby
<atmosx> is safe_yaml part of core?
dima_ has quit [Ping timeout: 265 seconds]
<timgauthier> why does time.parse error when it has seconds, but time.now generates seconds?
<shevy> I think I understand it finally
<shevy> also I was setting $VERBOSITY and wondered why it did nothing :P
<timgauthier> haha
<shevy> the default is false, which they think is 1, and if you set $VERBOSE to nil it means "be silent"
rmorello is now known as rmorello|securit
jprovazn is now known as jprovazn_afk
joast has quit [Remote host closed the connection]
<shevy> so I can do: $VERBOSE = nil; require 'stupid_library_that_has_a_million_warnings'; $VERBOSE = false
<shevy> but having to set global variables really stinks
crzrcn has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
jobewan has joined #ruby
dik_dak has joined #ruby
fabrice31 has quit [Remote host closed the connection]
joast has joined #ruby
<jamto11> for ruby whats an elegant way to unArray am array with 1 string value inside of it. ex: ["select * from"]. I know about .join("") and [0] anything else?
<LadyRainicorn> .firsr
<LadyRainicorn> .first
<randytravis> compile error
<randytravis> wth
<randytravis> how do I solve this?
<shevy> yeah sure
<shevy> images
sski has quit [Remote host closed the connection]
rvraghav93 has joined #ruby
sski has joined #ruby
alex88 has quit [Ping timeout: 265 seconds]
<LadyRainicorn> lol, there should be an AdviceAnimal about posting terminal screenshots.
<shevy> if we could just set $VERBOSE and $DEBUG and also interpreter warnings
<pontiki> more lube, randytravis ?
Celm has joined #ruby
roolo has joined #ruby
<timgauthier> LadyRainicorn nice...
akonny has quit [Quit: akonny]
<timgauthier> is there a way to print the terminal to a file?
MacTrash has quit [Quit: This computer has gone to sleep]
<shevy> what does this even mean
aganov has quit [Quit: Leaving]
<shevy> there are some ways to capture what is typed
<LadyRainicorn> lol pontiki
<pontiki> there is in OSX
<timgauthier> like, take take the output of the terminal and save as a .txt file
<shevy> timgauthier is an osx user
<timgauthier> how so in pontiki ?
<timgauthier> do share!
<pontiki> i sometimes hit CMD-P instead of CTRL-P and get a print menu
<LadyRainicorn> shevy: What does what mean?
<shevy> LadyRainicorn to print the terminal to a file :)
<shevy> screenshot!
<timgauthier> yea but that saves a pdf
<pontiki> what's your point?
<timgauthier> i mean i'd like to output the terminal to .txt
<pontiki> it's the bloody print menu
<shevy> hehe
<pontiki> you said "print the terminal"
<LadyRainicorn> No, what are you referring to when you ask what 'this' meant.
<pontiki> not "save the contents to a text file"
randytravis has quit [K-Lined]
<timgauthier> i mean yeah i can copy but it would be cool to be able to flag a command and have the output of that commands terminal print to a file
<shevy> LadyRainicorn it was meant in response to what timgauthier meant when he wrote <timgauthier> is there a way to print the terminal to a file?
<timgauthier> well i meant print in the print_r kind of way
<pontiki> my_command 2>&1 | tee my_command_output.txt
<LadyRainicorn> Select and copy.
<shevy> tea!
<LadyRainicorn> copypasta
<LadyRainicorn> copynoodles
<shevy> aha
<shevy> you like rainbow noodles
<LadyRainicorn> imitationnoodles
<pontiki> don't we all?
<shevy> instanoodles
<timgauthier> lady yeah but the pasta is sometimes hard to find the be inning between the various attempts and failures so if i could just run the command that fails
<timgauthier> so tea!
sski has quit [Ping timeout: 258 seconds]
madb055 has quit [Quit: Konversation terminated!]
<pontiki> or the really cool thing to do is start script in your shell, then you get everything logged to a file
fgo has joined #ruby
madb055 has joined #ruby
<LadyRainicorn> ah ok
<pontiki> it doesn't play so well with *curses programs though
<timgauthier> is tea a thing?
<timgauthier> or is it tee? and where does the output of a file exsist?
<pontiki> are you asking about the tee(1) command?
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
Celm has quit [Ping timeout: 258 seconds]
<LadyRainicorn> Rainbow noodles are the best!
<timgauthier> yes pontiki
<pontiki> try man tee at your terminal
* LadyRainicorn gives everyone rainbow noodles.
meatherly has quit [Remote host closed the connection]
arubincloud has joined #ruby
sigurding has quit [Quit: sigurding]
<shevy> happiness!
* LadyRainicorn wants tea now.
<shevy> was there a tee party?
ikaros has quit [Quit: Ex-Chat]
codabrink has joined #ruby
<timgauthier> sweet!
<timgauthier> tee is exactly what i want!
<timgauthier> now when something is failing i can just run it with tee and have a file!
<timgauthier> is man the manual ?
<olivier_bK> i need to get only the param after the = but in my file i have a lot of params with = $config['uid'] = 'booster';
mg^away is now known as mg^
<olivier_bK> for that i use this regex ((?=uid)(.*))
<olivier_bK> but in rubular i get that uid'] = 'boosters';
<olivier_bK> and i only want the params after =
paulfm has quit []
dima_ has joined #ruby
<shevy> I am confused why you use two ()
fgo has quit [Ping timeout: 250 seconds]
<shevy> I mean
<shevy> two ((
ahawkins has quit [Quit: leaving]
<olivier_bK> it's an error
alex88 has joined #ruby
<shevy> you said it is a regex
ellbot has joined #ruby
<olivier_bK> it's a regex yes
<LadyRainicorn> He is using Lisp style regexps.
dawkirst has quit [Remote host closed the connection]
<LadyRainicorn> Though he seems to have forgotten several parentheses.
<shevy> >> "foo = uid yo".match(/(?=uid)(.*)/)[1]
<shevy> where is the bot
_maes_ has joined #ruby
paulfm has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
jameswlane has quit [Quit: Logging off]
<pontiki> $config['uid'] = 'booster'; looks like perl
ellbot has quit [Remote host closed the connection]
<pontiki> or php
niharvey is now known as niharvey|afk
ellbot has joined #ruby
snath has joined #ruby
frem_ has joined #ruby
hiall has joined #ruby
<shevy> yeah
kaspergr_ has joined #ruby
<shevy> pontiki he wants to convert a php array into yaml, through ruby
<pontiki> why?
havenwood has quit [Remote host closed the connection]
<olivier_bK> pontiki, +1
<olivier_bK> it s php
<shevy> olivier_bK, if the regex confuses you, why dont you just .split ?
benzrf|offline is now known as benzrf
<pontiki> why not convert it to yaml from the language it's written in?
<shevy> pontiki dunno why, I save myself headache by not asking ;-)
<olivier_bK> shevy, may e
<pontiki> or is this just an exercise?
<olivier_bK> shevy, may be sorry
JBreit has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
kerin has joined #ruby
ndrei has joined #ruby
<timgauthier> i really should turn on sass-globbing :|
<olivier_bK> i m almost i dont need uid i need all after =
kaspergrubbe has quit [Ping timeout: 252 seconds]
<timgauthier> "WHY DEOSNT" THIS SASS FILE MAKE ANY CHANGES", oh yeah forgot to include it cause its new. derp
ce_afk is now known as cescalante
kaspergrubbe has joined #ruby
<benzrf> wenk wenk
<benzrf> jesus christ i cant stop doing that >.<
ellbot has quit [Ping timeout: 252 seconds]
<timgauthier> haha
<timgauthier> don't you get sore benzrf ?
<benzrf> much funny
<benzrf> wenk as in the noise penguins in adventure time make
<timgauthier> heh heh
<benzrf> sounds kinda like a duck
<timgauthier> i really need to watch that at some point
<benzrf> yes u do
<timgauthier> I also need a larger monitor, seriously, a 13-inch display is awesome on the go, but I need a 27-inch iMac soon
kaspergr_ has quit [Ping timeout: 240 seconds]
JBreit has left #ruby [#ruby]
<sweeper> man
<sweeper> don't ever get suckered in by jruby
<DouweM> timgauthier: man, I can't imagine doing any serious work on a 13" display
jxf has joined #ruby
<tobiasvl> is there anything j* that's cool
<tobiasvl> scala?
<timgauthier> its small man.. its small, and now that i'm using my external keyboard and mouse, i need to lift this sucker up higher
<timgauthier> brb, need stack of books
afreidah3 has quit [Ping timeout: 252 seconds]
<headius> sweeper: suckered?
alem0lars has joined #ruby
<timgauthier> ehh box from some solomons will do
<headius> sweeper: did you have a problem running jruby?
<timgauthier> show me on this doll where jruby touched you
<DouweM> lol
tvw has quit []
<headius> no doubt
lukec has joined #ruby
qmfnp has joined #ruby
paulfm has quit []
Fractional_ has quit [Read error: Connection reset by peer]
<DouweM> headius: you've got an alert set up for mentions of JRuby? :)
Fractional_ has joined #ruby
<headius> of course
<pontiki> the 13" retina is actually workable for a bit, but not for long-haul coding sessions
maletor has joined #ruby
<DouweM> pontiki: I find 15" barely doable, there's just too much switching between windows. I love tiling on a 27" display :)
pu22l3r has joined #ruby
shashank_rs has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
goganchic has quit []
atmosx has quit [Quit: Lost in trance]
Tamal has joined #ruby
machete has quit [Ping timeout: 250 seconds]
<timgauthier> i'd love a 15 retina and i'd scale down things sometimes, but i'd still need a 27 external
<timgauthier> or even 2
<pontiki> i still have to switch on the 27:
<pontiki> "
paulfm has joined #ruby
<DouweM> pontiki: sure, but a lot less than on 15"
<pontiki> 2 27's would be ideal
<timgauthier> the amount of crap I tend to have open at once because i'm using it is rediculous
<pontiki> oh sure
<DouweM> yeah I'm gonna get a second 27" at some point
fgo has joined #ruby
<pontiki> when i'm in 13" mode, i tend to use fullscreen mode and flip screens
<timgauthier> I need to make some money, first up i buy a 27" display, then the new laptop, then the second display
<timgauthier> of course pay for the wedding first :P
<pontiki> or maybe a bank of 6, 2 rows of 3!!
<DouweM> timgauthier: nice
<timgauthier> haha yea
<DouweM> pontiki: that would be the best :P
crazysim has quit [Excess Flood]
<DouweM> timgauthier: when are you getting married?
zxq9 has quit [Remote host closed the connection]
<timgauthier> August this year
crazysim has joined #ruby
<DouweM> timgauthier: congrats
<pontiki> nice
<LadyRainicorn> wow such monitor
<timgauthier> thanks
zxq9 has joined #ruby
<pontiki> my advice: spend more on the honeymoon than the wedding
<timgauthier> its a bunch of stress planning a wedding, and then we have 2 countries on top of that
<timgauthier> well, we don't even have the money for the wedding. and so we're going to do the honeymoon next year :|
<DouweM> hehe
<pontiki> same advice :)
<timgauthier> we get married in Canada then come back and get married again for the german family
yalue has quit [Ping timeout: 250 seconds]
<pontiki> it's amazing how little of the wedding ceremony i remember
<LadyRainicorn> Drunk?
<pontiki> oh, two weddings
<pontiki> no
<timgauthier> yea i suspect that too, we're trying to be as cheap as possible
binaryhat has joined #ruby
Tamal has quit [Client Quit]
machete has joined #ruby
<pontiki> actually, it was a dry reception, held in the church reception hall
<timgauthier> we only have 5k€ for all of it
<tobiasvl> hello fellow soon-to-be-wed
<DouweM> pfft, two weddings must be exhausting
<DouweM> planning them and attending them
benzrf is now known as benzrf|offline
hamakn has quit [Remote host closed the connection]
<pontiki> but it was dizzying -- so many relatives, so many people i'd never met before
<pontiki> neither of us even got to eat anything besides cake
<timgauthier> the canadian one is a BBQ outside so that'll be fun :D
<pontiki> awesome :)
<pontiki> my sister and her wife have been married 5 times :)
<timgauthier> still gotta figure out how to cook for 60 people but yeah
Lewix has joined #ruby
<DefV> I'm getting married in Oktober, and I don't even want to think about the money that's going to that wedding :-|
<DouweM> pontiki: haha nice
<timgauthier> haha pontiki that sounds exhuasting
<pontiki> delegate, my friend, delegate
<pontiki> well, not all in the same year
<timgauthier> well yeah, but i'm being told I can't ask anyone who was invited to cook, that isn't fair they want to come and have fun.
snath has quit [Remote host closed the connection]
<pontiki> i keep telling them they have to come out here to minnesnowda now that they've made SSM legal
<pontiki> make it 6 :)
<timgauthier> my woman's been invited to too many weddings just so that she can work. so theres that
<DouweM> catering for 60 people is gonna cost ya
fgo has quit [Ping timeout: 250 seconds]
havenwood has joined #ruby
<timgauthier> we're going to have people bring their own salads and we'll provide some of the meat, or maybe we'll provide meat for the wedding party and drinks and they bring their own meat and salads
<timgauthier> they all know that we're dirt poor so they can deal with it
<timgauthier> :P
<DouweM> :)
<pontiki> what you'll probably *really* need are extra grills
canton7-mac has joined #ruby
canton7-mac has quit [Remote host closed the connection]
<pontiki> or do a luao (sp?)
<timgauthier> we're in a park with a big fire pit and then 3 bbq stands
codezomb has joined #ruby
<mg^> When I got married, we went to Costco and spent about $200 on mini sandwiches and meat/cheese platters and did a picnic-style lunch on my parents' acreage. Worked out nice.
<timgauthier> and we can bring more i believe
<DouweM> pontiki: what's that?
<LadyRainicorn> Don't people bring money to pay for the wedding?
<pontiki> roast a whole pig in the ground, hawaiian style, DouweM
<timgauthier> a luao is a hawaiian bbq
<timgauthier> LadyRainicorn they do?
<DouweM> ah, all right
arietis has joined #ruby
<mg^> Not in American culture, they don't.
<pontiki> it varies
<LadyRainicorn> Huh.
<timgauthier> yeah LadyRainicorn
snath has joined #ruby
<LadyRainicorn> America is weird.
<pontiki> traditional american weddings, the father of the bride pays for everything
<mg^> I am sure where you are at is weird to us :)
benzrf|offline is now known as benzrf
<mg^> yeah, that comes from the traditional dowry.
<pontiki> America *is* weird
<timgauthier> i don't know many people who've had that pontiki
<mg^> We made sure to go easy on my in-laws.
MattStratton has joined #ruby
<pontiki> neither do i, tim
<DouweM> LadyRainicorn: where is that the norm?
<LadyRainicorn> But doesn't it seem inefficient to have everyone bring their own salada rather than just contribute money?
<pontiki> we got married in 83, no one else was going to pay for ours
Speed has joined #ruby
<timgauthier> by fiancées parents are giving us 5000€ for the wedding, and my parents have zilch to give us so we hope to save up some money SOMEHOW before then to help pay
<mg^> LadyRainicorn: there's a big difference in perception
<timgauthier> LadyRainicorn naw because then we'd have to make salads for everyone too
<timgauthier> and we are only in canada about a week before our wedding, and still have to figure out where to stay for that time.
<pontiki> ah, well, the *other* great American tradition is the Potluck
<mg^> timgauthier: my wedding cost just over $5000 total including my wife's dress. It can be done.
<timgauthier> then the fiancee's parents are coming and we are all renting a house for a week, then we go for vacation!
<mg^> that was 12 years ago, inflation hasn't been that bad since
bthesorceror has quit [Ping timeout: 250 seconds]
<timgauthier> mg^ yeah, we got the dress for 400, and I hope to get rings for about 120 and a suit for 200
LadyRainicorn has quit [Read error: Connection reset by peer]
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<timgauthier> its the flight that concerns us
LadyRainicorn has joined #ruby
<pontiki> photographers, florists, food, space, and such are the big ticket items
<timgauthier> yeah
<pontiki> that's just for *one* place
vadzimt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mg^> We solved the photographer problem in a fun way
<timgauthier> actually space isn't bad here in germany
<pontiki> oh good
<pontiki> the bbq in the park thing is great
<timgauthier> and photographer, I have very good photographers as friends so I've got someone who offered to do it for free
mary5030_ has joined #ruby
<mg^> We bought disposable 35MM cameras, like 20 of them
<mg^> and handed them out to random guests
<mg^> and encouraged people with good cameras to bring them out
<timgauthier> and the park only cost 400 for the day (okay thats a lot, and its more then an old factory cost us in germany)
mary5030_ has quit [Remote host closed the connection]
<pontiki> back in the day, i was asked to do photography for some friends' weddings
<DouweM> timgauthier: didn't you just say you shouldn't let guests work at the wedding? :)
<pontiki> i did that with the pile of disposable cameras as well
<mg^> so we ended up with something like 1500 pictures, and a subset of them were very nice.
<pontiki> it worked out great
<timgauthier> mg^ thats awesome for the reception, but for the ceremony its a pain in the ass having everyone more paying attention to the cameras then the actual wedding ;)
afreidah3 has joined #ruby
<pontiki> i did the composed wedding shots, which they still wanted
<timgauthier> DouweM i don't care if guests work at the wedding :P the bride does, but when i invited the friend they asked if i had a photographer, and then offered to do it, so thats awesome
phinfonet has joined #ruby
<pontiki> but holy crap, after like doing 5 friends' weddings, i was sick of it
<DouweM> timgauthier: ah nice of them
<timgauthier> pontiki yeah friends turn into monsters at weddings. so I don't do any work for friends weddings
<pontiki> more their families, but yeah
<timgauthier> and I never do film at weddings, video is hard enough, but weddings are rediculous
Hanmac1 has joined #ruby
momomomomo has joined #ruby
<pontiki> aunt jane and cousin maude have a blood fued going on, so they can't be next to each other
mary5030 has quit [Ping timeout: 258 seconds]
<pontiki> WHO THE HELL ARE AUNT JANE AND COUSIN MAUDE AND WHY ARE YOU MAKING THIS MY PROBLEM?
Dude007 has joined #ruby
havenwood has quit [Remote host closed the connection]
<pontiki> very unprofessional of me
atno has quit [Remote host closed the connection]
Celm has joined #ruby
kreantos has joined #ruby
<timgauthier> do you want me to burn down the wedding? this is how you get me to burn down the wedding
nomenkun_ has quit [Ping timeout: 245 seconds]
danman_ has joined #ruby
nomenkun has joined #ruby
<timgauthier> We only invited one person who we didn't want to invite, my aunt who I don't interact with. Cause mom.
<timgauthier> families, why can't we truncate them?
ndrei has quit [Ping timeout: 258 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
<DefV> hm, I just pay for my own wedding so I invite only people I want
dagobah has quit [Quit: Leaving...]
<pontiki> DROP TABLE relatives;
mary5030 has joined #ruby
<timgauthier> haha
<olivier_bK> how with regex i can get all caracter after one params ?
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> it was more of a my mother wouldn't come if i didn't invite her sister who she doesn't get along with anyhow
<timgauthier> but the 59 other people are awesome so that'll be okay
<pontiki> a wedding never belongs to the wedding couple
<DefV> timgauthier: the words you were looking for were "Fine, don't come then"
<LadyRainicorn> olivier_bK: ?
<timgauthier> pontiki correct, the wedding is a party for the family
lethjakman has joined #ruby
<DouweM> pontiki: as you said, spend more on the honeymoon than the wedding :)
<timgauthier> DefV that was very tempting, we discussed it
<pontiki> ^
ndrei has joined #ruby
<timgauthier> :D
<timgauthier> olivier_bK, yeah i didn't understand the question either, what does the param look like?
<olivier_bK> LadyRainicorn, i try t oget all caracter after this params ['uid'] = (the params can be change)
<timgauthier> gist ?
<pontiki> my younger daughter got married a couple years ago, and although everyone i know is fabulous, she said there were still contentious moments.
<timgauthier> oh, this question too
<timgauthier> agian*
aspires has joined #ruby
Lewix has quit [Remote host closed the connection]
andrewlio has joined #ruby
<DouweM> olivier_bK: I am very disturbed by your trying to parse PHP code. I can't imagine any good reason why you'd want to do that
jameswlane has joined #ruby
<timgauthier> nothing good can come from it DouweM
<timgauthier> :P
momomomomo has quit [Quit: momomomomo]
<pontiki> maybe it's an exercise in learning to parse things with regexps
<pontiki> but i rather think their shaving yaks
<timgauthier> yeah
<pontiki> they're
ccham_ has joined #ruby
<pontiki> blah
<olivier_bK> DouweM, because i must to generate a csv from php file
<olivier_bK> i hate php
<DouweM> olivier_bK: you "must"?
<LadyRainicorn> oliver_bK: /\['(\w+?)'\] = '(.*?)'/
<olivier_bK> DouweM, yes
bthesorceror has joined #ruby
MattStratton has joined #ruby
<DouweM> olivier_bK: what is your input and expected output? maybe we can think of a better way
<LadyRainicorn> (note that breaks if an escaped single quote is ever used.
heftig has quit [Quit: Quitting]
simplyaubs has quit [Quit: simplyaubs]
canton7-mac has joined #ruby
<timgauthier> olivier_bK can you put a snippet of the PHP into a gist?
momomomomo has joined #ruby
<timgauthier> and why not just make a piece of PHP that outputs that param into a way that ruby can more easily grab it?
<timgauthier> instead of trying to parse raw php
deric_skibotn has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<olivier_bK> timgauthier, is difficult to explain
<timgauthier> are you converting a project from PHP to ruby?
<DouweM> yeah, a simple JSON dump would be best. Otherwise, LadyRainicorn's suggestion looks all right
<timgauthier> or is the PHP going to continue running and therefore you will be parsing the PHP on a regular basis? is this a thing that watches the PHP constantly or a script that you run at intervals?
gbt has quit [Quit: Leaving...]
marcdel has joined #ruby
<mg^> yeah I'd convert the data on the PHP end to a portable format (JSON, XML, whatever) and then import it with Ruby using the appropriate library/gem on each end.
Spami__ has quit [Quit: This computer has gone to sleep]
cantonic has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<shevy> so much php here!
ndrei has quit [Ping timeout: 258 seconds]
cantonic has joined #ruby
<pontiki> so much!
<pontiki> php!
<timgauthier> pip!?
marcdel has quit [Client Quit]
crzrcn has joined #ruby
fveillette has joined #ruby
<mg^> Well, you have to get off PHP and onto Ruby somehow :)
<fveillette> I have a weird issue... puts ::File.exist?("C:\\abcde\\abc\\abc.exe") return me false but C:\\abcde\\abc\\abc.exe exist on that location on my server...
<Veejay> No, now you can get into Hack instead
kobain has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
luriv has quit [Read error: Connection timed out]
larissa has joined #ruby
toastynerd has joined #ruby
<Veejay> It's Facebook and typed. It works with scales.
hamakn has joined #ruby
<pontiki> fveillette: you can use forward slashes in ruby libraries on windows, might be a little easier?
pietr0 has joined #ruby
browndawg has quit [Quit: Leaving.]
<fveillette> pontiki i tried with both / and \\ but same result
ndrei has joined #ruby
<Veejay> fveillette: Look at the Pathname class
sambao21 has joined #ruby
<timgauthier> single quotes?
lw has quit [Quit: s]
kobain has joined #ruby
<pontiki> well, i would suggest you've got something else wrong there -- why do you have double backslashes in the actual windows path?
<Veejay> Pathname#join especially
<Veejay> And to_path
<pontiki> paste up some actual code and proof that the file exists outside of ruby?
obs has quit [Quit: Konversation terminated!]
timonv has quit [Remote host closed the connection]
<pontiki> i doubt switching to using Pathname will fix the underlying problem
<pontiki> since it just uses the File stuff in that case
crzrcn has quit [Ping timeout: 252 seconds]
<fveillette> i see the file in front of my eye so yes the file exist :D
<pontiki> i don't
<pontiki> i don't see your code in front of my eyes either
afreidah3 has quit [Ping timeout: 276 seconds]
<fveillette> hehe
<timgauthier> and its very hard to replicate the issue without more information
<fveillette> it's in chef context but should not change the ruby logic
<fveillette> let me do for you a gist :D
<pontiki> thank you
bthesorceror has quit [Remote host closed the connection]
lw has joined #ruby
babatz has quit [Ping timeout: 240 seconds]
<timgauthier> you'd be surprised what causes issues
<timgauthier> especially on windoze
nomenkun has quit [Remote host closed the connection]
djbender has quit [Quit: djbender]
bthesorceror has joined #ruby
bthesorceror has quit [Read error: Connection reset by peer]
kevinykchan has quit [Quit: Computer has gone to sleep.]
bthesorceror has joined #ruby
erikruthven has joined #ruby
canton7-mac has quit [Remote host closed the connection]
nomenkun_ has joined #ruby
grzywacz has quit [Ping timeout: 276 seconds]
andy___ has joined #ruby
<fveillette> <fveillette> that my code
<fveillette> <fveillette> that the output
agent_white has joined #ruby
<agent_white> Mornin'
<Sp4rKy> [A[B/W 40
shashank_rs has joined #ruby
erikruthven has left #ruby [#ruby]
afreidah3 has joined #ruby
<timgauthier> eve'n agent_white
chipotle has joined #ruby
GaryOak_ has joined #ruby
Hobogrammer has joined #ruby
sputnik13 has joined #ruby
nomenkun_ has quit [Ping timeout: 276 seconds]
kevind_ has joined #ruby
charlies_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kitak has quit [Remote host closed the connection]
Gabri has joined #ruby
emaxi_ has quit [Remote host closed the connection]
tvw has joined #ruby
kitak has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
emaxi has joined #ruby
LadyRainicorn has joined #ruby
lw has quit [Quit: s]
kevind has quit [Ping timeout: 265 seconds]
kevind_ is now known as kevind
BalkM has quit [Read error: No route to host]
d33tah has joined #ruby
rmorello|securit has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<d33tah> "" or "a" returns "". is there another way to say "some string variable, but if it's empty, use that instead"?
<shevy> wat
<shevy> how does "a" return ""
luriv has joined #ruby
<d33tah> i mean
<d33tah> y = "" or "a"
<d33tah> y == ""
jjbohn has joined #ruby
<shevy> you mean, if empty, assign to variable a?
<shevy> y = a if y.empty?
<LadyRainicorn> x=="" ? y : x
djbender has joined #ruby
<DefV> in Rails: y = "".presence || "a"
<d33tah> LadyRainicorn: i see. so i need to use the same expression twice. thanks.
aantix has joined #ruby
<shevy> ewwww
<shevy> rails
<DefV> OK
havenwood has joined #ruby
<pontiki> is this the or-equals thing?
<pontiki> only with empty instead of falsy?
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
jhass|off is now known as jhass
emaxi has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby
MattStratton has joined #ruby
centrx has joined #ruby
<lagweezle> auugh!
<lagweezle> Death to 'falsy'!
mcrmfc has quit [Ping timeout: 240 seconds]
<LadyRainicorn> ?
<LadyRainicorn> why death to falsy?
yfeldblu_ has joined #ruby
<timgauthier> wait, is there truthy and falsy? or is it just truthy and false?
<centrx> nil is falsy
<LadyRainicorn> nil
lethjakman has quit [Ping timeout: 240 seconds]
creativeembassy has quit [Quit: FO SHO]
qba73 has quit []
<centrx> FalseClass and NilClass are falsy
<LadyRainicorn> Really?
<LadyRainicorn> >> !!FalseClass
<eval-in> LadyRainicorn => true (https://eval.in/137561)
<DouweM> instances of those classes, rather :P
<LadyRainicorn> lies.
<workmad3> >> FalseClass.new
<eval-in> workmad3 => undefined method `new' for FalseClass:Class (NoMethodError) ... (https://eval.in/137562)
<workmad3> :D
<DouweM> :'(
lukec has quit [Quit: lukec]
<lagweezle> The concept irritates me and seems lazy. (nearly?) every time I've encountered it's use, 'truthy' and 'falsey' are treated the same as true and false. We're using computers. Something is true, or it is false. Exceptions to that are 'undefined' and dealing with floating point numbers.
<DouweM> pedanticism ftw
<LadyRainicorn> Those are singleton classes.
alex88 has quit [Quit: Leaving...]
djbkd has quit [Ping timeout: 245 seconds]
<LadyRainicorn> Hmm, an undefined that excepts if used as a conditional would be an interesting feature
yfeldblum has quit [Ping timeout: 276 seconds]
<mg^> You forgot FILENOTFOUND :)
<shevy> I can not bear this channel anymore without any beer
mikecmpbll has quit [Ping timeout: 245 seconds]
<workmad3> lagweezle: the most common time I encounter 'truthy' and 'falsey' is when someone is essentially checking if they have something
<LadyRainicorn> How do floats come into it?
<LadyRainicorn> lol shevy
<havenwood> shevy: s/this channel/life
<LadyRainicorn> Y WE MAKE U SAD?
<shevy> havenwood this channel is my life man
<LadyRainicorn> I wish IRC had stickers like LINE
<LadyRainicorn> That would be amazing.
<LadyRainicorn> Aw shevy
LadyRainicorn has quit [Read error: Connection reset by peer]
<workmad3> mg^: ah, the classic 3 values in boolean logic...
LadyRainicorn has joined #ruby
* LadyRainicorn gives shevy a hug.
mercwithamouth has quit [Ping timeout: 250 seconds]
RastaqWhere has joined #ruby
yfeldblu_ has quit [Ping timeout: 258 seconds]
RastaqWhere has quit [Client Quit]
<shevy> thanks
<lagweezle> >> 0.1 + 0.2
<eval-in> lagweezle => 0.30000000000000004 (https://eval.in/137580)
<lagweezle> LadyRainicorn: That
<shevy> that's worth a beer
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<LadyRainicorn> I don't see the relation to truthiness.
michaeldeol has joined #ruby
pel_daniel has joined #ruby
<LadyRainicorn> Floats are weird, but always truthy.
blackavr has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gabri has quit []
<mg^> Though in logic hardware there often are three line states, but the third state is due to deactivation, not because of a third possible value for a boolean.
Gabri has joined #ruby
enricostn has joined #ruby
<LadyRainicorn> (Actually floats aren't that bad; the issue is with using them to represent decimals )
phansch has quit [Quit: WeeChat 0.4.2]
Es0teric has joined #ruby
<lagweezle> Aside from floats, or 'true if x is in a range of plus/minus y' I don't see the need for truthy/falsey.
lyanchih has quit [Ping timeout: 245 seconds]
<workmad3> LadyRainicorn: the problem with floats is that people assume they form a consistent algebra :)
binaryhat has quit [Quit: Leaving]
<workmad3> lagweezle: how about 'true if file Foobar is present in the Fizzbuzz directory'? :P
<mg^> I once saw a neat visual showing what was representable in IEEE 754, wish I could find it again.
rmorello has joined #ruby
kevinykchan has joined #ruby
<havenwood> >> 0.1r + 0.2r
<eval-in> havenwood => (3/10) (https://eval.in/137591)
kevinykchan has quit [Client Quit]
<workmad3> lagweezle: as by your definition of truthy/falsey in relation to float precision, that would also be a 'truthy'
erikruthven has joined #ruby
cantonic has quit [Quit: cantonic]
kevinykchan has joined #ruby
<workmad3> lagweezle: a.k.a. you just changed 'truthy' to 'any conditional' and then claimed there was no need for them other than float precision :P
banister has joined #ruby
<enricostn> hi there, I have a function and I need to find the first element in an array that returns something from that function (not nil) and return that something
<enricostn> any hint?
dapz has joined #ruby
<centrx> >> nil && false && :everything_else
<eval-in> centrx => nil (https://eval.in/137595)
vky has quit [Remote host closed the connection]
binaryhat has joined #ruby
<centrx> >> nil || false || :everything_else
<eval-in> centrx => :everything_else (https://eval.in/137596)
vpretzel|941 is now known as vpretzel|lunch
dunix has quit []
moritzs has quit [Ping timeout: 252 seconds]
<lagweezle> workmad3: You've completely lost me.
<centrx> enricostn, Array#detect or Array#find
<workmad3> lagweezle: 'Aside from floats, or 'true if x is in a range of plus/minus y' I don't see the need for truthy/falsey'
<workmad3> lagweezle: 'true if x is in a range of plus/minus y' is what we commonly call a conditional :P
fgo has joined #ruby
funktor has quit [Remote host closed the connection]
<havenwood> enricostn: [nil, nil, :omgwtfbbq, nil].compact.first #=> :omgwtfbbq
<workmad3> lagweezle: and you equated that to a truthy value
<lagweezle> workmad3: My wording was very poor.
<workmad3> lagweezle: indeed ;)
kaspergrubbe has quit [Remote host closed the connection]
funktor has joined #ruby
timonv has joined #ruby
<workmad3> lagweezle: but still... your reasoning for floats basically applies to *any* conditional statement
x77686d has quit [Quit: x77686d]
<agent_white> So. I want to override Array to have next/previous methods. Good idea to open the class or just make a new, childclass?
* lagweezle ponders and tries again.
<LadyRainicorn> How would those work?
meatherly has joined #ruby
<havenwood> agent_white: my first thought would be #to_enum
blackavr has quit [Quit: blackavr]
<workmad3> lagweezle: not to mention that what you're talking about is float comparison... which would always come out as true or false, not truthy or falsey :)
<agent_white> havenwood: I was thinking about that as well. But enum doesn't have a previous method.
<agent_white> havenwood: Just make my own?
niharvey|afk is now known as niharvey
djbkd has joined #ruby
<LadyRainicorn> Yes.
<lagweezle> workmad3: Truthy and falsey, at least to me, imply fuzziness. Things are true, or false. Undefined breaks out of that in some cases. The mention of floats was that when using them for maths, they don't quite work the way many expect them to.
echevemaster has joined #ruby
pen has quit [Remote host closed the connection]
<agent_white> LadyRainicorn/havenwood: Roger that! :)
astrofog has joined #ruby
rippa has joined #ruby
<workmad3> lagweezle: that's a fair comment... 'truthy' meaning 'true enough' or 'accurate enough'
<lagweezle> workmad3: I'm not saying that truthy/falsey should be used with floats, but more that floats may need to be treated differently, where "true" will often need a plus/minus range if doing normal math with them then checking to see if x == y.
<workmad3> lagweezle: floats are hardly the only place that fuzziness makes sense though
fgo has quit [Ping timeout: 276 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
<lagweezle> Aye.
funktor has quit [Ping timeout: 258 seconds]
<agent_white> So. If anyone in the Colorado area is looking for an intern/coffee-bot. Let me know! :D
<lagweezle> I'm just generally against the use of truthy/fals(e)y and think the adoption of the terms is bad.
<workmad3> lagweezle: in reality, the use of 'truthy' is really just a way of saying 'I'm going to treat this arbitrary object as either true or false in a boolean expression'
<tobiasvl> some of the problem is probably that in ruby, the boolean values are the same as the english words
<workmad3> lagweezle: with objects that get treated as equivalent (not equal) to 'true' being 'truthy' etc.
<tobiasvl> if we could say "is that value TRUE or true" then we wouldn't have to say "truthy" :P
akonny has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
<tobiasvl> "1 is true, but it's not Bool::TRUE" ;P
kreantos has quit [Quit: Page closed]
<workmad3> tobiasvl: 1 is equivalent to true when used in boolean expressions
zigomir has quit [Remote host closed the connection]
<timgauthier> tobiasvl if you don't like how ruby works... then don't use ruby! ?
<timgauthier> the fact that it isn't so precise is why it is such a nice language for newbs like me!
<workmad3> tobiasvl: as a slightly more formal way of stating that :)
sk87 has joined #ruby
<timgauthier> and the truthy aspect of ruby is one of its defining characteristics
<shevy> my sex appeal is truthy
<timgauthier> shevy isn't sexxy
<shevy> neither is php YET YOU USED IT!!!
<tobiasvl> timgauthier: hey don't worry, I love ruby. just saying that the need for the words "truthy" and "falsey" arise from the fact that the boolean values are called "true" and "false" and we need to separate the two concepts somehow
<timgauthier> naw
<timgauthier> truthy is fun
<timgauthier> like rubyrific!
<timgauthier> it gets rid of that "PROGRAMMER" feel
<tobiasvl> yeah, i think so, but lagweezle doesn't apparently
<agent_white> Programmers, ewwwww!
<workmad3> shevy: yeah... -Float::INFINITY is still truthy ;)
nvrch has quit [Quit: nvrch]
obscured has joined #ruby
jcs222 has joined #ruby
<lagweezle> How about "does it evaluate as true?" instead?
<certainty> Float::NAN
<timgauthier> :P
<LadyRainicorn> Pretty much everything works like that.
<LadyRainicorn> Even assembly has truthiness.
<timgauthier> what i like about truthy is that it states, its true, or its there
<workmad3> lagweezle: that's what 'truthy' is ;)
<agent_white> LadyRainicorn: Have you seen Rick & Morty? You may like it!
<timgauthier> it's *
<tobiasvl> LadyRainicorn: well, assembly ONLY has truthiness, not actual true/false values, doesn't it?
<workmad3> lagweezle: although I'd prefer the phrasing 'evaluates as true in a boolean expression'
lethjakman has joined #ruby
<LadyRainicorn> No, what is it?
rezzack has quit [Quit: Leaving.]
<LadyRainicorn> Well there are boolean flags in x86.
<timgauthier> i like truthy
emaxi has joined #ruby
<workmad3> lagweezle: as the evaluate is specific to the that context :)
<slash_nick> So why not just double bang all the things to determine truthiness?
<lagweezle> workmad3: Given the lack of time saved, I don't see a point to having 'truthy' or 'falsey' exist. :/
<lagweezle> slash_nick: hawt!
<agent_white> LadyRainicorn: It's my second to Adventure Time at the moment. It's like Adventure Time 'cept universe-dimension tavels.
<agent_white> s/travels
mark_locklear has quit [Ping timeout: 258 seconds]
<LadyRainicorn> :o cool
<centrx> All is truey except what is falsey
<slash_nick> i'm down with an Object#truthy? Object#falsey?... i figure it'd just be sugar for !!obj
<workmad3> lagweezle: because it's really fricking annoying saying "I'm going to treat this object Foobar as true within this boolean comparison" compared to "this object Foobar is truthy"
x77686d has joined #ruby
<tobiasvl> lol
kidoz has joined #ruby
<workmad3> lagweezle: that's kinda the point of introducing a term for it in the first place ;)
supermar_ has joined #ruby
<LadyRainicorn> !! is actually not the arbiter of truthiness.
<LadyRainicorn> Truthiness is inherent, whereas ! isn't.
ghr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<LadyRainicorn> I think workmad3 is mad.
* LadyRainicorn passes the peace pipe.
vpretzel|lunch is now known as vprezel|941
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
Gabri has quit []
marr has joined #ruby
<workmad3> LadyRainicorn: yes I am :)
Gabri has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick> truthiness is inherent... i wouldn't want people saying @obj is falsey but I need it to be truthy. still, a method for programmatically discovering an object's truthiness is necessary... !! is the best i've seen
supermar_ has quit [Remote host closed the connection]
bklane has joined #ruby
supermarin has joined #ruby
mark_locklear has joined #ruby
* lagweezle twitches.
r_rios has joined #ruby
<workmad3> slash_nick: you can override !
<LadyRainicorn> But not truthiness.
<workmad3> ^^
ghr has quit [Ping timeout: 240 seconds]
<workmad3> slash_nick: if you want a programmatic way, you're looking at something like 'def truthy(obj); obj ? true : false; end'
<LadyRainicorn> (In Python you can. I really wish it were possible in Ruby too.)
LadyRainicorn has quit [Read error: Connection reset by peer]
pen has joined #ruby
prdx_ is now known as prdx
roolo has quit [Quit: Linkinus - http://linkinus.com]
lukec has joined #ruby
<timgauthier> why the heck is this css rule being over ridden, and what is overriding it?!
LadyRainicorn has joined #ruby
<slash_nick> workmad3, LadyRainicorn: gotchas
bthesorceror has quit [Remote host closed the connection]
<workmad3> slash_nick: and then just to make lagweezle twitch, you define the invese... 'def falsey(obj); obj ? false : true; end' and write 'obj = 'foo'; puts "I exist purely to annoy lagweezle" if falsey(obj) || truthy(obj)'
<workmad3> *inverse
simplyaubs has joined #ruby
donnoc has joined #ruby
<lagweezle> EBIL! EBIL PEOPLEZ!
diegoviola has joined #ruby
bthesorceror has joined #ruby
<slash_nick> workmad3: def falsey(obj); !truthy(obj);end
supermarin has quit [Read error: Connection reset by peer]
alexju has quit [Remote host closed the connection]
<LadyRainicorn> class Object; def !() [true, false].choice; end; end
<workmad3> slash_nick: no... that could be influenced by someone redefining ! on TrueClass
<centrx> All boolean logic should be done with the new methods #falsey and #truthy
<centrx> #falsey? and #truthy?
<slash_nick> workmad3: yikes
supermarin has joined #ruby
<centrx> or #acts_like?(true) and #acts_like?(false)
<workmad3> slash_nick: see LadyRainicorn's fun snippet :D
<slash_nick> LadyRainicorn: where'd #choice come from?
<workmad3> >> [1,2].choice
<eval-in> workmad3 => undefined method `choice' for [1, 2]:Array (NoMethodError) ... (https://eval.in/137606)
<workmad3> >> [1,2].sample
<eval-in> workmad3 => 2 (https://eval.in/137607)
<slash_nick> sample i knew... but choice
<slash_nick> anyway, understood
<workmad3> >> class Object; def !(); [true, false].sample; end; end; !true
<eval-in> workmad3 => false (https://eval.in/137608)
<workmad3> >> class Object; def !(); [true, false].sample; end; end; !true
<eval-in> workmad3 => false (https://eval.in/137609)
<workmad3> >> class Object; def @!(); [true, false].sample; end; end; !true
<eval-in> workmad3 => /tmp/execpad-4ba061546dc6/source-4ba061546dc6:2: `@!' is not allowed as an instance variable name ... (https://eval.in/137610)
<workmad3> hmm...
<workmad3> yikes...
<slash_nick> just do it once or twice more and you'll see it swap
crystal77 has quit [Quit: Computer has gone to sleep.]
<LadyRainicorn> Huh, did it get removed?
<workmad3> slash_nick: just did 'def !; end' in irb, then tried !true
<LadyRainicorn> >> RUBY_VERSION
<eval-in> LadyRainicorn => "2.1.0" (https://eval.in/137612)
<workmad3> >> def !; end; !true
<eval-in> workmad3 => private method `!' called for true:TrueClass (NoMethodError) ... (https://eval.in/137613)
<timgauthier> i come back and you guys are posting /'s and @'s and crap... what the heck!
<timgauthier> :D
<LadyRainicorn> Indeed, removed in Ruby 2.
<LadyRainicorn> Well, renamed.
ndrei has quit [Ping timeout: 250 seconds]
<timgauthier> what version of ruby are we on now
bthesorceror has quit [Ping timeout: 245 seconds]
<timgauthier> i thought it was like 3?
<workmad3> timgauthier: 2.1
<benzrf> 99999999999999999999999999999999999999999999999999999999999999999999999
<timgauthier> woaah?
arietis has quit [Quit: Computer has gone to sleep.]
<LadyRainicorn> g64
<timgauthier> i remember 1.9 coming out ages ago and moving over to that.
<timgauthier> i guess they are yearly releases still?
<timgauthier> and PHP is still only on 5 .. yeah i guess that makes sense
<timgauthier> nevermind me :D
crystal77 has joined #ruby
kitak__ has joined #ruby
pothibo has joined #ruby
<olivier_bK> how i can match $config in readlines https://gist.github.com/anonymous/b99925c863cd4cdca1f6
crzrcn has joined #ruby
kaspergrubbe has joined #ruby
bthesorceror has joined #ruby
Rainicorn has joined #ruby
kitak has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
sambao21 has joined #ruby
alexju has joined #ruby
browndawg has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LadyRainicorn has quit [Disconnected by services]
Rainicorn is now known as LadyRainicorn
timonv has quit [Remote host closed the connection]
rm_ has quit []
klaut has quit [Remote host closed the connection]
deadlock has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Shidash has joined #ruby
Xeago has joined #ruby
Hanmac has joined #ruby
Squarepy has joined #ruby
webgen has quit [Ping timeout: 276 seconds]
Hanmac1 has quit [Ping timeout: 258 seconds]
afreidah3 has quit [Ping timeout: 265 seconds]
arietis has joined #ruby
<shevy> timgauthier there is usually the x-mas release
<shevy> try to guess when it is released
tkuchiki has quit [Remote host closed the connection]
oo_ has joined #ruby
<shevy> olivier_bK, please
<shevy> you must read a tutorial about regexes
<shevy> if you would have done so
kirun has joined #ruby
<shevy> you would know that these are special characters in regex:
<shevy> . * + ? ^ $ { } [ ] ( ) \ |
<shevy> olivier_bK, write that down in a notebook now!
AlSquire has quit [Quit: This computer has gone to sleep]
<shevy> so first thing
<shevy> lines.match('$config[/\'/\uid/\'/\]')
<shevy> stop using the ''
<shevy> go and use //
<shevy> and then, escape all special characters in your regex
oso|away is now known as oso96_2000
<shevy> you are already using rubular, I dont understand why you don't finish!
mikecmpbll has joined #ruby
relix has joined #ruby
yfeldblum has joined #ruby
rvraghav93_ has joined #ruby
kaspergrubbe has quit []
rvraghav93 has quit [Ping timeout: 240 seconds]
yalue has joined #ruby
larsam has quit [Read error: Connection reset by peer]
banister has joined #ruby
Drewch has joined #ruby
GaryOak_ has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
skulker has joined #ruby
locriani has joined #ruby
r_rios has quit [Quit: No Ping reply in 180 seconds.]
jcs222 has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has quit [Remote host closed the connection]
r_rios has joined #ruby
kenneth has joined #ruby
Xeago has joined #ruby
jamto11 has quit [Remote host closed the connection]
fuzzyhorns has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
crzrcn has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
sambao21 has quit [Quit: Computer has gone to sleep.]
dkamioka has joined #ruby
Xeago has joined #ruby
apeiros has joined #ruby
Dude007 has quit [Remote host closed the connection]
jcs222 has joined #ruby
afreidah3 has joined #ruby
nowthatsamatt has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
alem0lars has joined #ruby
sambao21 has joined #ruby
atmosx has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
michaeldeol has joined #ruby
atmosx has joined #ruby
<atmosx> m
spinx^ has joined #ruby
spinx^ has quit [Remote host closed the connection]
Valesk has joined #ruby
creativeembassy has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin has quit [Remote host closed the connection]
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olivier_bK has quit [Ping timeout: 252 seconds]
browndawg has quit [Quit: Leaving.]
treehug88 has quit [Ping timeout: 245 seconds]
<shevy> timgauthier are you designing games like this? https://www.youtube.com/watch?v=DHwV7GSBcIc
webgen has joined #ruby
<timgauthier> i don't do games...
<timgauthier> thats awesome
einarj has quit [Remote host closed the connection]
<timgauthier> is this that wolf game?
<shevy> dunno
<shevy> but I suspect the programmers forgot to remove a test animation
apeiros has quit [Ping timeout: 250 seconds]
<timgauthier> or the person replaced it
<shevy> hahaha
<timgauthier> because the character isn't responding either
Lewix has quit [Remote host closed the connection]
<shevy> or perhaps it is a genius idea to make the game more hilarious :-)
RaptorJesus has quit [Ping timeout: 252 seconds]
<timgauthier> awesome art style
<shevy> well perhaps he was supposed to just lie down somewhere, aching in pain
<shevy> instead he decides to do a floating pole dance dance
sambao21 has quit [Ping timeout: 250 seconds]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
crystal77 has quit [Quit: Computer has gone to sleep.]
<timgauthier> yeah
<timgauthier> no i think he's supposed to be leaning on the desk
<timgauthier> and then active listening animation is supposed to play
timonv has joined #ruby
havenwood has joined #ruby
dapz has joined #ruby
Sawbones has joined #ruby
supermarin has joined #ruby
fgo has joined #ruby
geopet has joined #ruby
<shevy> lol
agent_white has quit [Quit: brb]
dapz has quit [Client Quit]
Al__ has quit [Quit: Al__]
dapz has joined #ruby
treehug88 has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<xybre> Is there a Unicorn webserver specific channel?
bthesorceror has quit [Remote host closed the connection]
mjs2600 has joined #ruby
bthesorceror has joined #ruby
mjs2600 has quit [Remote host closed the connection]
atno has joined #ruby
dapz has quit [Client Quit]
<centrx> xybre, Did you try #unicorn
<centrx> So, hash[x][y] vs hash[[x,y]]
<timgauthier> i'd be afraid to jointhat
<timgauthier> probably full of weird bronies
rmorello is now known as rmorello|1136
fgo has quit [Ping timeout: 240 seconds]
<timgauthier> imma go eat
<xybre> #unicorn has 8 people in it according to channels stats, so I didn't bother.
<centrx> Yeah they don't even have a topic
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
<LadyRainicorn> Unicorns are fun!
sdouglas has quit [Remote host closed the connection]
agent_white has joined #ruby
crystal77 has joined #ruby
agent_white has quit [Client Quit]
agent_white has joined #ruby
<shevy> hehe
dapz has joined #ruby
rezzack has joined #ruby
sambao21 has joined #ruby
benzrf|offline is now known as benzrf
bthesorceror has quit [Ping timeout: 265 seconds]
crystal77 has quit [Client Quit]
<benzrf> timgauthier: why do u fear the pony
etqqkoiflwhb has joined #ruby
* LadyRainicorn sings the ponicorn song.
mehlah has quit [Quit: Leaving...]
agent_white has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
dapz has quit [Client Quit]
andy___ has quit [Remote host closed the connection]
<benzrf> my little pony, my little pony
erikruthven has joined #ruby
<benzrf> aah-aah-aah-aaaaah....
Gabri has quit []
senayar_ has joined #ruby
agent_white has joined #ruby
<shevy> omg
pskosinski has quit [Quit: Til rivido Idisti!]
<shevy> benzrf was raised as a girl
<LadyRainicorn> :o
bklane has quit [Quit: Leaving...]
r_rios has quit [Quit: No Ping reply in 180 seconds.]
* Hanmac remembers a GravityFalls episode where GuncleStan Shows the Tourists a "Unicorn made out of corn!" ;P
mjs2600 has joined #ruby
x77686d has quit [Quit: x77686d]
x1337807x has joined #ruby
crystal77 has quit [Client Quit]
r_rios has joined #ruby
_justin has quit [Quit: _justin]
dapz has joined #ruby
WilfredTheGreat has joined #ruby
senayar has quit [Ping timeout: 265 seconds]
noop has joined #ruby
agent_white has quit [Ping timeout: 252 seconds]
jprovazn_afk is now known as jprovazn
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
phansch has joined #ruby
alekst has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<benzrf> shevy: holy shit way to enforce the gender binaryhat
<benzrf> *binary
benzrf is now known as benzrf|offline
kidoz has quit [Quit: Ухожу я от вас]
sambao21 has joined #ruby
cmarques has joined #ruby
sigurding has joined #ruby
<havenwood> agent_white: any luck with the #pred situation, curious what you came up with if you've given it a stab?
roolo has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
vadzimt has joined #ruby
<agent_white> havenwood: Ah not quite yet! Actually diving into it now, and trying to see if I really need it :P
lw has joined #ruby
hiall has quit [Ping timeout: 258 seconds]
pen has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
Kricir has joined #ruby
<agent_white> havenwood: I'm writing an IRC client in Ncurses, and was looking at it for scrolling since when I bump up/down the window, I need to add the next or previous line in the buffer.
vadzimt has quit [Client Quit]
simplyaubs has quit [Quit: simplyaubs]
<agent_white> Not sure if turning the whole array to an enum each time is the most efficient?
<havenwood> agent_white: here's a freedom patch just cause we can :P https://gist.github.com/havenwood/10914614
<LadyRainicorn> Is there a binaryhat?
* LadyRainicorn wants one!
dima_ has quit [Remote host closed the connection]
<havenwood> agent_white: would be easy to make it a refinement, but yeah i'm not sure about it
<agent_white> havenwood: Ah! Badass! Thank you :DD
roolo has quit [Client Quit]
klaut has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
funktor has joined #ruby
<agent_white> havenwood: Man after seeing that code... I really need to remember to handle failure in my methods.
pen has joined #ruby
emaxi has quit [Remote host closed the connection]
chrisja has joined #ruby
jjbohn has quit [Quit: Leaving...]
Gabri has joined #ruby
Psy-Q has joined #ruby
emaxi has joined #ruby
<Psy-Q> i can't seem to build ruby 2.1.1 (readline.c:1977:26: error: ‘Function’ undeclared (first use in this function))
<Psy-Q> this is through rbenv, but i could try with a plain ruby tarball as well
<arubincloud> Psy-Q: How are you attempting to build it?
<Psy-Q> should i try the vanilla tarball?
<arubincloud> So ruby-install?
<Psy-Q> yeah, ruby-build inside of rbenv
x77686d has joined #ruby
dima_ has joined #ruby
<arubincloud> Ah, ruby-build.
<havenwood> ruby-build != ruby-install
kevinykchan has joined #ruby
<arubincloud> I can never remember which is which.
<Psy-Q> this is on debian unstable, it could be the readline debian has right now
jamto11 has joined #ruby
x1337807x has quit [Ping timeout: 250 seconds]
<Psy-Q> i'll try the vanilla tarball now
<Psy-Q> just to make sure
treehug88 has quit [Ping timeout: 276 seconds]
<havenwood> Psy-Q: You might try ruby-install: ruby-install --rubies-dir ~/.rbenv/versions ruby
gbt has joined #ruby
Xeago has quit [Remote host closed the connection]
treehug88 has joined #ruby
gbt has quit [Client Quit]
<havenwood> Psy-Q: Works well with rbenv and smarter than ruby-build.
<Psy-Q> i'll give that a try, thanks! if the vanilla tarball works, it should probably work through ruby-install (?)
cescalante is now known as ce_afk
jcs222 has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
<Psy-Q> ah. vanilla won't compile either
<Psy-Q> same error. it's probably debian's readline that's too new or broken
<havenwood> Psy-Q: See if ruby-install can't just fetch dependencies for ya.
jcs222 has joined #ruby
<Psy-Q> i think i have the dependencies, but it doesn't like that readline
<timgauthier> and pizza in the oven.
<timgauthier> what is readline?
emaxi has quit [Ping timeout: 240 seconds]
shashank_rs has quit [Ping timeout: 240 seconds]
<Psy-Q> some while ago at least 2.1.0 compiled fine on the same machine, but i've upgraded a bunch of times since
<Hanmac> Psy-Q are you shure its to new? maybe your readline is to old?
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Psy-Q> it's readline 6.3, debian stable still ships with 5.2
<Hanmac> Psy-Q: try to run this "apt-get build-dep ruby2.0"
<Psy-Q> and i've compiled 2.1.1 against readline 5.2 before, that seems to work
figgleberry has joined #ruby
<Psy-Q> Hanmac: okay, will install those deps and make clean/make on a vanilla ruby
figgleberry has quit [Client Quit]
lmickh has quit [Quit: No Ping reply in 180 seconds.]
<Hanmac> readline-6.3 should be supported from the changelog ... it could be that the headers are missing
Kricir has quit [Remote host closed the connection]
lmickh has joined #ruby
<Psy-Q> i have libreadline-dev:amd64 installed, that should be the headers it needs, right?
figgleberry has joined #ruby
noober03 has joined #ruby
<Hanmac> hm it should
<Psy-Q> Hanmac: same error after installing those deps
cantonic has joined #ruby
cantonic has quit [Client Quit]
jprovazn has quit [Quit: Odcházím]
<Psy-Q> this is with debian-unstable from today (upgraded 30 minutes ago). maybe it's a debian problem
<shevy> debian is usually a problem
<AlexRussia> shevy: shevy!
<noober03> does anyone know how to add a route with dashes in the name?
<Psy-Q> debian is fine :P but unstable means unstable sometimes
<shevy> the fact that people have to uncripple their system by having to search for arbitrary names of packages is testimony to what is all wrong on debian
bthesorceror has joined #ruby
JoeGaudet has joined #ruby
<Psy-Q> shevy: i know i'm not on a stable distribution, that's why it's called unstable
<Psy-Q> none of these issues on wheezy
<Hanmac> Psy-Q: hm maybe it was a fixed ruby problem? did you try ruby-trunk?
<shevy> you don't even know the name of the package
afex has joined #ruby
<Psy-Q> Hanmac: ah! will try
lmickh has quit [Remote host closed the connection]
<Psy-Q> shevy: which package? libreadline-dev has the headers, it does use them properly, but something else is going wrong
cornfeedhobo has joined #ruby
<AlexRussia> shevy: you should try #subtle :)
<shevy> Psy-Q I would not know what package splitup they did, it was you who asked what was the right package :-)
<Psy-Q> shevy: i just wanted to confirm :)
<Psy-Q> it's usually headers in -dev, binaries in the main package
<Psy-Q> but it seems the headers aren't the problem
andy__ has joined #ruby
pen has quit []
helpD has joined #ruby
GaryOak_ has joined #ruby
donnoc_ has joined #ruby
<shevy> what is the new error
<cornfeedhobo> hello, i am very new to ruby and am trying to solve small tasks to learn...
<shevy> cornfeedhobo good!
cescalante is now known as ce_afk
<cornfeedhobo> what would you guys suggest i use to round up to the nearest GB for a unit
apeiros has joined #ruby
<Senjai> cornfeedhobo: Well seeing as though a unit could be anything
<Psy-Q> trying nightly snapshot now
<cornfeedhobo> i thought about converting to MB and dividing, but the logic there gets long for something that seems simple
<Senjai> cornfeedhobo: Converting what to mb
<cornfeedhobo> Senjai: sorry, for example, if i want to use 75% of installed RAM
<shevy> cornfeedhobo other people should have solved that before you
bthesorceror has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
workmad3 has quit [Ping timeout: 250 seconds]
jds has joined #ruby
grzywacz has joined #ruby
<cornfeedhobo> 16GB gives a real world value of 15.55, which 75% of is 11.xxx GB
<cornfeedhobo> it would seem rational to round up to the nearest whole value
lmickh has joined #ruby
wallerdev has joined #ruby
<cornfeedhobo> lol. nvm
<Psy-Q> yes, the problem is fixed in trunk, 2.2.0-rwhatever compiles fine
donnoc has quit [Ping timeout: 250 seconds]
<cornfeedhobo> typing it out... i can just treat is a float
<cornfeedhobo> :facepalm:
<Psy-Q> so it's probably something that changed in newer readline, i guess
<Senjai> cornfeedhobo: Use BigDecimal
<cornfeedhobo> kk
<cornfeedhobo> thanks
SCommette has quit [Quit: SCommette]
<Psy-Q> i'll install 2.2.0 trunk for now
<Psy-Q> err. trunk, which might become 2.2.0
<Senjai> Psy-Q: You mean master right?
<Psy-Q> Senjai: it seems ruby development is on svn (?)
<Psy-Q> i usually just rbenv install whatever :D
<Senjai> Orly?
<Senjai> news to me
crzrcn has joined #ruby
Lewix has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Senjai> I guess it is
<cornfeedhobo> shevy: thanks, yeah some times the obv eludes me =P
<Senjai> those poor people
<Psy-Q> https://www.ruby-lang.org/en/community/ruby-core/ <-- this seems to say that
jxf has quit [Ping timeout: 276 seconds]
<shevy> cornfeedhobo it's quite common, people often have to display bytes in a human readable manner
<Psy-Q> yeah, well. git would probably make life easier for them, but it seems to work okayish for now on svn
<shevy> there is also a git mirror
funktor has quit [Remote host closed the connection]
bradhe has joined #ruby
<shevy> and stuff like mruby is on github
funktor has joined #ruby
<bradhe> Is there an array method that deletes/removes elements that match a regex, and returns the elements it deleted?
<atmosx> ithub
doodlehaus has quit [Remote host closed the connection]
<bradhe> delete_if reject/delete_if remove the elemenst but returns the remainder.
jjbohn has joined #ruby
<shevy> bradhe hmm you mean something like pop?
yarou has joined #ruby
<bradhe> shevy: Yeah, but for elements that match a regex.
<bradhe> So perhaps takes a block
<shevy> what about .select ?
<bradhe> I think .partition does what I want actually
<bradhe> good, bad = arr.partition { |elem| elem =~ /my-regex/ }
ndrei has joined #ruby
<havenwood> TIL, my nick in swedish is tillflyktsortskog
donnoc_ has quit [Quit: WeeChat 0.4.3]
bthesorceror has joined #ruby
<Senjai> havenwood: ORLY
<shevy> havenwood I thought it was knaeckebrot
<stephenmac7> I'm having an issue
donnoc has joined #ruby
<shevy> oh... I mean knäckebröd
<shevy> swedish is weird
<stephenmac7> I'm trying to use an if statement: if @ship_date_changed?
<tobiasvl> havenwood: well it's just tillflyktskog
<stephenmac7> But ruby -c is saying unexpected keyword_end
fieldfirst has quit [Quit: Leaving]
<havenwood> shevy: lol
<bradhe> can ivars have a ?
<tobiasvl> stephenmac7: gist it
<tobiasvl> no
<shevy> bradhe people often ask for that
SonicX has quit [Ping timeout: 245 seconds]
<shevy> also local vars that have last char a ?
funktor has quit [Ping timeout: 252 seconds]
<bradhe> meh
<stephenmac7> Oh, vars cannot have a ? at the end?
<shevy> yeah
<shevy> but the workaround is simply
<stephenmac7> tobiasvl: Nevermind then
<shevy> if ship_date_changed?
<shevy> #
<shevy> def ship_date_changed?; @ship_date_changed; end
<shevy> it can all fit on one line!
<stephenmac7> I'll just drop the ?
<shevy> :(
Oog has joined #ruby
<Oog> trying to use net::smtp with port 465 ssl just getting readtimeout. 587 tls everything works
Gabri has quit [Ping timeout: 240 seconds]
<Oog> i swear this worked before..... i blame heartbleed
doodlehaus has joined #ruby
ellbot has joined #ruby
<stephenmac7> What's the difference between putting a default in initialize instead of in the class itself?
fannye has quit [Read error: Connection reset by peer]
supermarin has quit [Remote host closed the connection]
<stephenmac7> def initialize; @x = 5; end or class Object5; x = 5; end
supermarin has joined #ruby
<shevy> stephenmac7 first off look at your line ^^^
<Hanmac> stephenmac7: because second does not do what you think it does
<shevy> then tell me if @x is the same as x
<stephenmac7> Sorry, @x (typo)
mrmargolis has quit [Remote host closed the connection]
<shevy> stephenmac7 scope to self is different
<tobiasvl> here's a hint stephenmac7: classes are objects in ruby
<stephenmac7> On the second, that should be @x, not x
<Hanmac> stephenmac7: class Object5; @x = 5; end & def initialize; @x = 5; end are still different
helpD has quit [Ping timeout: 245 seconds]
<tobiasvl> in ruby, classes are just objects of the class Class
<stephenmac7> Hanmac: What is different about them?
<tobiasvl> so in the latter you'd make an instance variable for the Class instance
<shevy> :)
<stephenmac7> Oh, I see.
<shevy> which rarely is what you want
<tobiasvl> ie. a class instance variable (a kind of "static variable" if you're a java person)
<stephenmac7> I thought that was @@x
decoponio has quit [Quit: Leaving...]
<atmosx> Snow in Florida?!
<tobiasvl> shevy: well, it's more often what you want than @@x
<atmosx> wtf
lw has quit [Quit: s]
<tobiasvl> hehe yeah exactly ^^
mrmargolis has joined #ruby
<tobiasvl> stephenmac7: @@vars aren't much used anymore because they're... shall we say... confusing like hell
ce_afk is now known as cescalante
<shevy> @@foo should be removed
<Hanmac> stephenmac7: class variables (@@) are different than class instance variables (class @)
helpD has joined #ruby
<Oog> wait its something rails is doing...
<shevy> stephenmac7 please forget that @@x exists
<stephenmac7> So, is there a way to set @x from outside a method?
noober03 has quit [Quit: Page closed]
* Hanmac whispers you can even store something inside the instance variables of singleton classes (of singleton classes ... )
<stephenmac7> So, it's like Python
<shevy> stephenmac7 if you have setup your class to do so, yeah
<shevy> also there is instance_variable_set()
<tobiasvl> stephenmac7: why do you want to set it from outside the method? what's the use case here
<shevy> but the more important question is why you want to suddenly set a @x directly
<tobiasvl> there are always ways
<tobiasvl> but I don't see why
agjacome has joined #ruby
LadyRainicorn has quit [Ping timeout: 276 seconds]
<tobiasvl> yeah what shevy said
<stephenmac7> tobiasvl: Honestly, I just want to know if it's possible
<shevy> people love to explore
vlad_starkov has joined #ruby
<stephenmac7> But, actually it's that ship_date_changed thing... I just want it to be false to start off
<shevy> >> object = Object.new; object.instance_variable_set(:@a, 'dog'); p object
<eval-in> shevy => #<Object:0x4139240c @a="dog"> ... (https://eval.in/137644)
<stephenmac7> Could, ofc, use an accessor
<shevy> stephenmac7 there ^^^
<tobiasvl> stephenmac7: that's a good attitude, and yes, it's possible (but hacky and rarely necessary - if you have an instance it will have called initialize())
vprezel|941 has quit [Remote host closed the connection]
lw has joined #ruby
<shevy> stephenmac7 yeah set it in initialize(), or call a method from initialize. I like to call a method called reset()
<tobiasvl> stephenmac7: using an accessor isn't REALLY doing it outside of a method though
funktor has joined #ruby
<stephenmac7> True.
vprezel|941 has joined #ruby
<tobiasvl> stephenmac7: an accessor is just shorthand for def x=(value); @x = value; end
<tobiasvl> so
<Hanmac> shevy why not?
<Hanmac> >> object = Object.new; object.singleton_class.instance_variable_set(:@a, 'dog'); p object.singleton_class.instance_variables
<eval-in> Hanmac => [:@a] ... (https://eval.in/137646)
<stephenmac7> Do methods in a class use the accessor?
x1337807x has joined #ruby
<stephenmac7> Hanmac: That does seem to work.
lw has quit [Client Quit]
RowdyChild|Away is now known as RowdyChildren
<shevy> Hanmac because your code is super complicated
crystal77 has joined #ruby
sdouglas has joined #ruby
sepp2k has quit [Ping timeout: 265 seconds]
luriv has quit [Read error: Connection timed out]
<Hanmac> shevy in ruby even the "super" keyword is complicated ;P
<shevy> stephenmac7 an attr_accessr is the same as if you would define these methods manually
<shevy> *accessor
aspires has quit []
luriv has joined #ruby
<stephenmac7> Right, but if I do that, would it use the method when inside the class?
<stephenmac7> So @with_accessor = 5 would be the same as self.with_accessor = 5
jjbohn has quit [Quit: Leaving...]
jprovazn has joined #ruby
kanaki has joined #ruby
emaxi has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi has joined #ruby
Eiam has joined #ruby
rrios has joined #ruby
<shevy> if you have a method defined like that then yes
sepp2k has joined #ruby
<shevy> but I am curious why you use self. there
<shevy> as said above, attr_reader :foo is 100% the same as if you would do this manually in your class: def foo; @foo; end
gsvolt has quit [Ping timeout: 252 seconds]
<shevy> attr_writer :foo is the same as def foo=(i); @foo = i; end
<rrios> So, this page teaches how to make a stable sort method for an Array using sort_by, but does anyone know how to do a stable sort_by?
<shevy> and attr_accessor simply combines the two above
agjacome has quit [Quit: leaving]
aspires has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
chrisseaton has quit []
r_rios has quit [Remote host closed the connection]
ktosiek has joined #ruby
<tobiasvl> not so sure about that shevy
toastynerd is now known as steve_mcqueen
mansi has quit [Remote host closed the connection]
<tobiasvl> he needs the self there
<tobiasvl> >> class Hello; def x=(value); @x = value; puts "hello"; end; def test; @x = 1; end; end; Hello.new.test
<eval-in> tobiasvl => 1 (https://eval.in/137647)
<tobiasvl> class Hello; def x=(value); @x = value; puts "hello"; end; def test; self.x = 1; end; end; Hello.new.test
<tobiasvl> >> class Hello; def x=(value); @x = value; puts "hello"; end; def test; self.x = 1; end; end; Hello.new.test
<eval-in> tobiasvl => hello ... (https://eval.in/137648)
SCommette has joined #ruby
gsvolt has joined #ruby
steve_mcqueen is now known as toastynerd
arietis has quit [Quit: Computer has gone to sleep.]
MattStratton has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Fractional_ has quit [Read error: Connection reset by peer]
Fractional_ has joined #ruby
mansi has joined #ruby
funktor has quit [Read error: Connection reset by peer]
jxf has joined #ruby
funktor has joined #ruby
crzrcn has quit [Quit: Leaving.]
Xeago has joined #ruby
RowdyChildren is now known as RowdyChild|Away
<shevy> we need more action
_maes_ has quit [Read error: Connection reset by peer]
Lewix has quit [Remote host closed the connection]
sigurding_ has joined #ruby
mjs2600 has quit [Remote host closed the connection]
pu22l3r_ has joined #ruby
jespada has quit [Quit: Leaving]
sigurding has quit [Ping timeout: 265 seconds]
sigurding_ is now known as sigurding
kpshek has quit []
alem0lars has joined #ruby
pu22l3r has quit [Ping timeout: 245 seconds]
andrewlio has quit [Quit: Leaving.]
Lewix has joined #ruby
simplyaubs has joined #ruby
rrios has quit [Ping timeout: 276 seconds]
Bumptious has joined #ruby
wallerdev has quit [Quit: wallerdev]
yubrew_ has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
ws2k33 has quit []
SCommette has quit [Quit: SCommette]
figgleberry has quit []
<lagweezle> I can complaign about truthy/falsey again...
mrgoodcat is now known as dyladan
zigomir has joined #ruby
yubrew has quit [Ping timeout: 245 seconds]
<shevy> ok
<shevy> lagweezle let it out man
<shevy> don't let the anger add up
afreidah4 has joined #ruby
<lagweezle> hehehe
Macaveli has quit [Client Quit]
x77686d has quit [Quit: x77686d]
fuzzyhorns has joined #ruby
afreidah3 has quit [Ping timeout: 276 seconds]
ellbot has quit [Remote host closed the connection]
skulker has quit []
funktor_ has joined #ruby
stosh has quit [Ping timeout: 265 seconds]
ellbot has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
funktor has quit [Read error: Connection reset by peer]
GaryOak_ has quit [Remote host closed the connection]
supermarin has quit [Remote host closed the connection]
anaeem1 has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
<RubyPanther> def truthy? ; true? or almost? and horseshoes? end
mengu has joined #ruby
mengu has joined #ruby
alem0lars has quit [Quit: alem0lars]
Sawbones has quit []
bluOxigen has quit [Ping timeout: 276 seconds]
ellbot has quit [Ping timeout: 252 seconds]
phinfonet has quit []
vlad_starkov has quit [Remote host closed the connection]
phinfonet has joined #ruby
robbyoconnor has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
crzrcn has joined #ruby
SCommette has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
_maes_ has joined #ruby
donnoc has quit [Remote host closed the connection]
lw has joined #ruby
shashank_rs has joined #ruby
donnoc has joined #ruby
dawkirst has joined #ruby
mjs2600 has joined #ruby
noop has quit [Ping timeout: 252 seconds]
lw has quit [Client Quit]
aniM has quit [Remote host closed the connection]
bluehavana has joined #ruby
afex has quit [Ping timeout: 245 seconds]
etqqkoiflwhb has quit [Ping timeout: 240 seconds]
mark_locklear has quit [Ping timeout: 240 seconds]
madb055 has quit [Ping timeout: 265 seconds]
<sdelmore> Anyone know the method I need to make to have my ruby classes awesome_printable? I just started using awesome print and love it, but my own classes I create don't have the nice formatting that built in objects have.
djbkd has quit [Remote host closed the connection]
<Hanmac> hm seems that your classes are not "youthful" enough ;P
<crome> only awesome classes can be awesome printed
etqqkoiflwhb has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
<sdelmore> Still learning my way around ruby documentation. It is really nice when debugging to just do "ap my_object" and see a nicely formatted output but I haven't figured out how to make it work with my own objects.
jrhe has quit [Quit: Connection closed for inactivity]
davedev24 has joined #ruby
SHyx0rmZ has joined #ruby
sambao21 has joined #ruby
<Hanmac> hm there might be some kind of trick behind ... maybe you need to have "object.awesome?" return true? </sarcasm>
bthesorceror has quit [Remote host closed the connection]
bthesorceror has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bthesorceror has quit [Remote host closed the connection]
mehlah has joined #ruby
afex has joined #ruby
ndrei has joined #ruby
<sdelmore> Are there other more popular pretty printers, or is this just not done much in ruby land?
fubelly has joined #ruby
<baweaver> pry, show-doc Array#length
quitobro has joined #ruby
<baweaver> pry is your friend
Azure has quit [Quit: My MBP went to sleep.]
<baweaver> learn it, live it, love it.
mehlah has quit [Client Quit]
XenoWolf has joined #ruby
<jhass> sdelmore: what do you get, what do you expect?
ktosiek has quit [Ping timeout: 245 seconds]
binaryhat has quit [Quit: Leaving]
<sdelmore> Let me create a gist of what I get with my objects, vs system objects…
Azure has joined #ruby
zarul has quit [Ping timeout: 276 seconds]
alvaro_o has joined #ruby
chad___ has quit [Quit: chad___]
donnoc has quit [Quit: WeeChat 0.4.3]
dawkirst has quit [Remote host closed the connection]
donnoc has joined #ruby
chrisseaton has joined #ruby
<shevy> multimedia - tell me what you need in a multimedia project
kenneth has quit [Quit: Bye.]
<sdelmore> An example of using awesome print to pretty print my objects vs other objects. https://gist.github.com/ShaneDelmore/98fddd7ed605b55a9111
ixti has quit [Ping timeout: 252 seconds]
<shevy> timgauthier tell me what you expect a ruby project capable of doing that wants to do multimedia related stuff
<shevy> awesome print has this colour overflow
<timgauthier> hmm
dawkirst has joined #ruby
<timgauthier> whats the question?
<shevy> I sticked to pretty print
<shevy> timgauthier that was the question! it is purposely broad as a category
<timgauthier> but i don't know what you are asking
vpretzel_ has joined #ruby
<shevy> timgauthier k what do you expect from any ruby project that wants to deal with multimedia information?
<timgauthier> ah
<shevy> shoot out features
* shevy waits...
<timgauthier> what would the ruby thing do?
<shevy> precisely, that's the question! hahaha :D
<shevy> oh man...
<jhass> sdelmore: that's just the AR special casing in awesome_print
<timgauthier> you need EXIF data for anything images
Eiam has joined #ruby
<shevy> ok
<timgauthier> but like
<timgauthier> you gotta work backwards
<sdelmore> jhass: Yeah, I was hoping there was a hook to add my own special casing so I could make my classes pretty print.
<jhass> sdelmore: since AR has an internal attributes hash and uses method_missing to delegate to that, it makes sense. It's not something you'd do in your POROs
<timgauthier> what would the project is a web based tool for managing multimedia?
helpD_ has joined #ruby
<jhass> sdelmore: well, just figure out what method it calls on the object
donnoc has quit [Quit: WeeChat 0.4.3]
wallerdev has joined #ruby
donnoc has joined #ruby
<sdelmore> Exactly, been looking through that code for the past half an hour, don't quite get what it is doing.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
vprezel|941 has quit [Ping timeout: 252 seconds]
fubelly has left #ruby ["Leaving..."]
<jhass> where are you stuck?
<sdelmore> Seems like it might be calling the ai method on a class, but I can't tell what it expects the output to be. Not having types is still hard for me.
helpD has quit [Ping timeout: 265 seconds]
<sdelmore> I think the answer may be in here https://github.com/michaeldv/awesome_print/blob/master/lib/awesome_print/formatter.rb but don't see it.
fgo has joined #ruby
ktosiek has joined #ruby
<jhass> well, it just puts the result, so a string or something that responds to #to_s properly
gsvolt_ has joined #ruby
gsvolt has quit [Ping timeout: 250 seconds]
<sdelmore> Oh geez, I didn't realize that is all I needed to do.
oponder has quit []
omosoj has quit [Ping timeout: 240 seconds]
<Eiam> if we moved our dev env to run via Nginx instead of via Padrino c /rails c, is there some way i can pass through a binding.pry to launch a debug console now?
<Eiam> pry-remote maybe?
yubrew has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Oog has quit []
rodri_gore has joined #ruby
donnoc has quit [Client Quit]
<webgen> just posting over here if there are anymore noobs, there is a course on edx.org starting 18th of april (2days). it is a berkley course and my hopes are high, register if u are interested!
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> timgauthier no real limitation really, it always starts from commandline first though, but then should not be limited, whether it is GUI or web-based
<webgen> Engineering Software as a Service this is the name of the course, uses RoR
donnoc has joined #ruby
apeiros_ has joined #ruby
<timgauthier> there needs to be limits ;)
cornfeedhobo has left #ruby ["when i leave, come together like butt cheeks"]
<timgauthier> you got to start with a product idea before you make a product ;)
mehlah has joined #ruby
<sdelmore> jhass, I just defined a to_s method on my object, returning "stuff goes here" for a simple test, but it doesn't output that. Can you tell how I identify what method I would need to define?
<timgauthier> I have a thing I want to make, but i don't know how to make it yet. Its like github for recipes
yubrew__ has joined #ruby
rodri_gore has quit [Client Quit]
klaut has quit [Remote host closed the connection]
<sdelmore> perfect.
relix has joined #ruby
fgo has quit [Ping timeout: 265 seconds]
<jhass> sdelmore: puts calls to_s, so #ai which #ap calls should return something that responds to that
yubrew_ has quit [Ping timeout: 258 seconds]
<sdelmore> Thanks for pointing out the line, that helps me understand what is happening.
<shevy> timgauthier I like the chaotic model, I grow and grow until I have everything covered
<timgauthier> haha
<timgauthier> i think you probably have a decent idea in your head
apeiros has quit [Ping timeout: 276 seconds]
<shevy> well only for larger projects
<shevy> for small projects, single classes, I completely agree with you timgauthier
lxsameer has quit [Ping timeout: 265 seconds]
pu22l3r_ has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 245 seconds]
<sweeper> man I want a framework that forces you to SOA by default
<timgauthier> soa?
<sweeper> service oriented architecture
<shevy> sweeper start one!
<shevy> make it useful
<shevy> once it his a certain threshold, people will start using it
<shevy> just as timgauthier went into the available static html generators
gsvolt_ has quit [Ping timeout: 258 seconds]
<shevy> and now has found his beloved ... uhm... erb
testcore has joined #ruby
<shevy> his/hits
<timgauthier> lol
<shevy> and ... haml?
<shevy> I am no longer up to date what all you combine
<timgauthier> no haml just erb and html
bradhe has quit [Remote host closed the connection]
djbkd has joined #ruby
<timgauthier> it is tough being an old man shevy
<crome> "forces you to soa"
<crome> what does that mean
<sweeper> yea that's the thing :D
pu22l3r_ has joined #ruby
<sweeper> when designing such an architecture, the problem domain is very much a factor
supermarin has joined #ruby
<shevy> timgauthier I could have sworn you also used something else above
<crome> shevy: drugs probably
pgmcgee has joined #ruby
<shevy> lol
<shevy> yeah, lsds
<timgauthier> sass/css html, erb
<shevy> sass!
<shevy> that was it
<shevy> sasserb
<sweeper> but I get the feeling that monolithic, relational apps would be much easier to break apart if it wasn't so easy to "relate all the things"
<timgauthier> sass is just synstastically awesome style sheets
vadzimt has joined #ruby
vadzimt has quit [Max SendQ exceeded]
ricer has joined #ruby
<gizmore> ,railsc I18n.t :hello_world
<ricer> gizmore: "translation missing: en.hello_world"
<gizmore> ,railsc "aaaaa"*2
<ricer> gizmore: "aaaaaaaaaa"
<gizmore> ,part #ruby
<ricer> gizmore: Ruby Exception: "undefined method `has_permission_in?' for #<Ricer::Plugin::Channel::Partu:0x00000004fe06d8>" in app/models/ricer/plugin/channel/partu.rb:16:in `part'.
<crome> hahaha
<gizmore> rails irc bot
<gizmore> ,perf
<ricer> gizmore: Memory: 140 MB (140 MB max). DB: 2994 queries in 3690.721331132 (0.81 queries per second). Threads: 17 (29 max). PID: 21860. CPU usage: 0.60%
<gizmore> ,raw PART #ruby :gizmore is gay
ricer has left #ruby ["gizmore is gay"]
callenb has joined #ruby
klaut has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
hiall has joined #ruby
jprovazn has quit [Quit: Odcházím]
codebro has quit [Ping timeout: 258 seconds]
Celm has quit [Remote host closed the connection]
ghr has joined #ruby
<timgauthier> so what are you building shevy
funktor_ has quit [Remote host closed the connection]
kyb3r_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
sailias has quit [Read error: Connection reset by peer]
<agent_white> Lawd I hate regex. Finding shit by splitting the string then throwing the array to a lambda seems so much easier.
<timgauthier> hahaha
<timgauthier> actually it does :O
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
mansi has quit [Ping timeout: 240 seconds]
mansi has joined #ruby
ixti has joined #ruby
<shevy> timgauthier well... I just decided that I will merge two projects of mine into a larger one
<timgauthier> sweet, what are they?
<shevy> 'multimedia' and 'videotools'
<timgauthier> what does multimedia do?
ghr has quit [Ping timeout: 245 seconds]
dyladan is now known as mrgoodcat
<shevy> I'll also have to add a test suite from scratch :(
<shevy> timgauthier initially it just wanted to be a wrapper over all sorts of conversions, from .flv to .avi and so forth and so on, trying to use "smart defaults" without me having to think about it on the commandline
agent_white has quit [Quit: be back in a bit]
tvw has quit []
<timgauthier> ah neat
Avahey_ has quit [Quit: Connection closed for inactivity]
yalue has quit [Quit: Leaving]
anaeem1 has quit [Remote host closed the connection]
BizarreCake has quit [Ping timeout: 258 seconds]
skaflem has quit [Quit: Leaving]
Squarepy has quit [Quit: Leaving]
Celm has joined #ruby
bthesorceror has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
fuzzyhorns has joined #ruby
x1337807x has joined #ruby
senayar_ has quit [Remote host closed the connection]
<shevy> omg
<shevy> timgauthier you mentioned node.js right?
aspires has quit []
<timgauthier> yeah
<timgauthier> i hear its terrible :P
<shevy> timgauthier what do you say to this: http://www.lescentslignes.com/makefiles-in-node.html
<timgauthier> its all fancy type and nice flowery language, then you get to the first sample thing under going incremental and its ugly
crzrcn has quit [Quit: Leaving.]
<shevy> lol
<shevy> dont worry
<shevy> when they have added Makefiles it will all get better
<timgauthier> when a language has a feature called uglify y'know
<timgauthier> i'm not really sure WHAT they're showing, or even what a makefile is after reading that
<timgauthier> i'm more interested in, how did they change the colour of those scrollbars
senayar has joined #ruby
crzrcn has joined #ruby
Krajsnick has joined #ruby
hackman127 has joined #ruby
gizmore has quit [Remote host closed the connection]
<shevy> wat
<shevy> hehehe
<shevy> damn designers
<shevy> they look for the colours and UI rather than the features first
theRoUS has quit [Ping timeout: 252 seconds]
Avahey_ has joined #ruby
paolooo has joined #ruby
sailias has joined #ruby
etqqkoiflwhb has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
<bricker> shevy: one of my designers couldn't handle that someone's name was too long to fit into his design
<shevy> lol
fuzzyhorns has quit [Quit: Leaving.]
kyb3r_ has quit [Quit: Leaving]
kyb3r_ has joined #ruby
<shevy> who was the guy here who played with method_missing lately?
<timgauthier> not all designers do shevy
<shevy> here is another cool snippet:
<shevy> def method_missing(m)
<shevy> DELEGATE_TO_CONFIG.include?(m.to_sym) ? config.send(m) : super
<shevy>
<timgauthier> though I do look at colours and typography first, as i find they are a skeleton
<timgauthier> but i always start with a page full of content, and a designer that doesn't want to deal with a users name being too long isn't a designer
<timgauthier> designers are supposed to solve problems, yes it sucks that the field you created is limited in length and you may have to deal with content that is too long for it. One of the golden rules of design is that you need to throw out your favourite element, it usually is the shittiest and the thing holding the design back
northfurr has joined #ruby
luriv has quit [Ping timeout: 258 seconds]
hiall has quit [Quit: hiall]
omosoj has joined #ruby
gsvolt has joined #ruby
<hackman127> I have a sinatra server process that is restarting itself on a regular basis without giving me any trace in the logs. Any idea how I can get some error output to try to debug?
<bricker> hackman127: "restarting itself"?
AxonetBE has joined #ruby
havenwood has quit []
<bricker> hackman127: Does Sinatra have a built-in process manager?
bradhe has joined #ruby
<bricker> hackman127: what server are you actually using? Sinatra is a ruby framework, not a server
<timgauthier> a tweet of mine from ages ago just got retweeted twice :(
<hackman127> bricker, clients are complaining about getting kicked out of the app, so I put some log messages that will tell me when the process starts and they are showing up quite regularly.
<timgauthier> and some weirdo spamming me on query
postmodern has joined #ruby
<bricker> hackman127: well if you're using Passenger or another multi-threaded or multi-process server (which you should be in production), that is expected
<bricker> hackman127: how are you running your Sinatra app?
mansi has quit [Remote host closed the connection]
<hackman127> bricker, I'll have to look. Honestly, it's a legacy app that I haven't paid much attention to in longer than I'd care to admit. :-)
shashank_rs has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
jottr is now known as elementz
codebro has joined #ruby
paolooo has quit [Ping timeout: 240 seconds]
emaxi has quit [Remote host closed the connection]
eyeamaye has joined #ruby
michaeldeol has joined #ruby
olivier_bK has joined #ruby
emaxi has joined #ruby
<hackman127> bricker, yes, it is using passenger. It makes sense to see multiple startups if it's threading, just not sure about clients getting the boot while going about their business on the app.
morenoh153 has joined #ruby
timonv has quit [Remote host closed the connection]
<bricker> hackman127: what do you mean getting kicked off? Like, they're logged out of their session?
madb055 has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
arietis has joined #ruby
momomomomo has quit [Quit: momomomomo]
emaxi_ has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
<hackman127> bricker, exactly. They will be doing their work and next thing they know they are staring at the login screen like they have logged out. They are not hitting session timeouts, it's like the process has just restarted with empty sessions.
mansi has joined #ruby
theRoUS has quit [Ping timeout: 252 seconds]
ellbot has joined #ruby
ellbot has quit [Remote host closed the connection]
<bricker> hackman127: where are the sessions being stored?
AxonetBE has quit [Quit: AxonetBE]
ndrei has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
gregf has joined #ruby
treehug8_ has joined #ruby
popl has joined #ruby
popl has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MattStratton has joined #ruby
saarinen has joined #ruby
<hackman127> bricker, not sure. Looking
zB0hs has joined #ruby
treehug88 has quit [Read error: Connection reset by peer]
jkamenik has quit [Quit: Leaving.]
momomomomo has joined #ruby
funktor has joined #ruby
Seaweed17 has quit [Quit: Leaving]
alexju has quit [Remote host closed the connection]
<timgauthier> ohm time to go Skype the fiancée
GaryOak_ has joined #ruby
lkba has joined #ruby
obscured has quit [Quit: leaving]
qmfnp has joined #ruby
kirun has quit [Quit: Client exiting]
jackneill has quit [Remote host closed the connection]
fbernier has quit [Read error: Connection reset by peer]
arietis has quit [Quit: Computer has gone to sleep.]
pu22l3r_ has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
ndrei has joined #ruby
timonv has joined #ruby
erikruthven has joined #ruby
aspiers has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
spacebug has quit [Ping timeout: 240 seconds]
grzywacz has quit [Ping timeout: 258 seconds]
saarinen has quit [Quit: saarinen]
andrewlio has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
funktor has quit [Remote host closed the connection]
sdouglas has quit [Remote host closed the connection]
aspires has joined #ruby
funktor has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
alexju has joined #ruby
roland has joined #ruby
phansch has quit [Quit: WeeChat 0.4.2]
supermar_ has joined #ruby
Briareos1_ has joined #ruby
Briareos1 has quit [Ping timeout: 250 seconds]
sailias has quit [Quit: Leaving.]
fuzzyhorns has joined #ruby
<hackman127> bricker, I think I may be getting a bit above my pay grade. I'm going to have to do more research. Thanks for the help.
elementz has quit [Ping timeout: 265 seconds]
paulfm has quit []
momomomomo has quit [Quit: momomomomo]
supermarin has quit [Ping timeout: 276 seconds]
pushpak has joined #ruby
momomomomo has joined #ruby
Dude007 has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
<olivier_bK> hy
bthesorceror has quit [Remote host closed the connection]
treehug8_ has quit []
treehug88 has joined #ruby
bthesorceror has joined #ruby
<bricker> hackman127: :)
r_rios has joined #ruby
sdouglas has joined #ruby
chipotle has quit [Quit: cya]
ziyadb_ has quit []
<olivier_bK> i have a probleme that i cant resolved
ziyadb_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alekst has quit [Quit: Leaving...]
<hackman127> bricker: After some of your hints my googling has turned this up, which seems to explain exactly what's going on: http://stackoverflow.com/questions/4983511/rack-session-resets-expires
Shidash has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<olivier_bK> i try to how explain
evenix has quit [Remote host closed the connection]
evenix_ has quit [Remote host closed the connection]
<bricker> hackman127: yep, if you're storing sessions in memory, that would explain your problem exactly
ikawnoclast has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
popl has quit [Ping timeout: 276 seconds]
bthesorceror has quit [Ping timeout: 252 seconds]
<hackman127> bricker, makes perfect sense. Thanks!
XenoWolf has quit [Ping timeout: 265 seconds]
<olivier_bK> bricker, do you have an idea how i can resolved my probleme
XenoWolf has joined #ruby
<olivier_bK> ohh sorry Briareos1_
<olivier_bK> ohh sorry bricker
GaryOak_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mammoth_tusk has joined #ruby
funburn has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kpshek has joined #ruby
ktosiek has quit [Ping timeout: 240 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AxonetBE has joined #ruby
<shevy> lol
<shevy> clear thoughts lead to clear actions
<shevy> unclear thoughts lead to olivier_bK
ndrei has joined #ruby
mammoth_tusk has quit [Client Quit]
<olivier_bK> :(
mammoth_tusk has joined #ruby
donnoc has quit [Ping timeout: 240 seconds]
RowdyChild|Away is now known as RowdyChildren
mammoth_tusk has left #ruby [#ruby]
sdouglas has quit [Remote host closed the connection]
divi_ has joined #ruby
michaeldeol has joined #ruby
<olivier_bK> shevy, maybe you can give me a good advise
elementz has joined #ruby
chipotle has joined #ruby
qmfnp has joined #ruby
metamaterial has joined #ruby
sent-hil has joined #ruby
<olivier_bK> all the time in my loop te variable take the index 2 and i dont understand why ??
<shevy> you and your english
<shevy> and where is your code?
<divi_> >> 1+1
<eval-in> divi_ => 2 (https://eval.in/137670)
<olivier_bK> sorry if i make some mistake or error in my english
nhmood has quit [Read error: Connection reset by peer]
<shevy> well
<olivier_bK> i m french :(
<shevy> what do you do with this? url = line.match(/(?=url)(.*)/)
nhmood has joined #ruby
<shevy> olivier_bK Mon_Ouie is also french but he is able to formulate sentences that other people can understand ;)
<olivier_bK> i understand
sambao21 has joined #ruby
<shevy> is that what you want?
<shevy> you store MatchData Objects here, I assume
timgauthier has joined #ruby
x1337807x has joined #ruby
zcreative has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
divi_ has left #ruby [#ruby]
<olivier_bK> i want to store the object in the hash
<shevy> how many entries are in the variable array
<olivier_bK> but he override all the time
<olivier_bK> a lot of
<shevy> no
<shevy> you must give an answer n
<shevy> like 5, or 10
<shevy> tell me
<olivier_bK> approximately 150
<shevy> ok so your hash will have integer keys from 1 up to 150
<olivier_bK> okai
<shevy> and each stored value will be a matchdata object
<shevy> now where is the bug?
lw has joined #ruby
mjs2600 has quit [Remote host closed the connection]
funktor has quit [Remote host closed the connection]
<olivier_bK> when i execute the script i get that
Morkel_ has quit [Quit: Morkel_]
x77686d has joined #ruby
zcreative has quit [Ping timeout: 265 seconds]
<olivier_bK> all the time he override the index 2
rudisimo has quit []
sdouglas has joined #ruby
zcreative has joined #ruby
alexju has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
polyidus has joined #ruby
x1337807x has quit [Ping timeout: 258 seconds]
supermar_ has quit []
DrShoggoth has quit [Quit: Leaving]
emaxi_ has quit [Remote host closed the connection]
yarou has quit []
emaxi has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> well
mary5030 has quit [Remote host closed the connection]
x1337807x has joined #ruby
<shevy> you dont provide simple example data + code to reproduce
geopet has quit []
<shevy> and why don't you debug by printing out the results?
<shevy> p array
<shevy> p line
<shevy> etc...
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
<atmosx> yaml is part of core in ruby-2.1?
<atmosx> I don't have to require in gemfiles?
<atmosx> for fems?
<olivier_bK> it s what i do
<atmosx> gems
emaxi has quit [Ping timeout: 245 seconds]
<olivier_bK> did you try to your ruby script require 'rubygems'
zcreative has quit [Ping timeout: 276 seconds]
jxf has joined #ruby
<shevy> yaml is part of ruby
x1337807x has quit [Client Quit]
<shevy> require 'rubygems' is no longer required past version 1.9.x and higher
<olivier_bK> maybe he use 1.8
zcreative has joined #ruby
Cooler_ has quit [Remote host closed the connection]
alexherbo2 is now known as alexherbo2|zZz
Cooler_ has joined #ruby
afreidah4 has quit [Ping timeout: 276 seconds]
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
mrmargolis has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
creativeembassy has quit [Quit: FO SHO]
afreidah4 has joined #ruby
<olivier_bK> the script with file exemple https://gist.github.com/anonymous/23b533e8213dd072f2ed
deens has joined #ruby
<olivier_bK> kanaki, could you stop to send me that please
bean has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
sambao21 has joined #ruby
funktor has joined #ruby
<shevy> kanaki is a bot
Hanmac1 has joined #ruby
rrios has joined #ruby
r_rios has quit [Ping timeout: 276 seconds]
<olivier_bK> i see just after writing
<olivier_bK> :(
<olivier_bK> i understand why he override all the times
roland_ has joined #ruby
r_rios has joined #ruby
<shevy> olivier_bK this is not how others can reproduce man
<olivier_bK> because he read a new file each time
roland has quit [Ping timeout: 265 seconds]
<shevy> and you don't use any methods
<shevy> your code is spaghetti
wallerdev has quit [Quit: wallerdev]
<shevy> also
<shevy> rl = line.match(/(?=url)(.*)/)
<shevy> how do you check that the line does not contain url?
jason_ has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<shevy> go add: if line.include? 'url'
<olivier_bK> okai
<shevy> it is impossible to work with such a code, you are not making clear decisions in the code
<shevy> best would be to write small classes
Es0teric has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
doodlehaus has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
rrios has quit [Ping timeout: 250 seconds]
helpD_ has quit [Remote host closed the connection]
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
Nukepuppy has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
r_rios has quit [Ping timeout: 250 seconds]
agjacome has joined #ruby
chipotle has quit [Quit: cya]
r_rios has joined #ruby
michaeldeol has joined #ruby
saarinen has joined #ruby
<atmosx> Is there any way I can 'create' this file using ruby? https://gist.github.com/atmosx/10936292 adding some variables where needed?
jason_ has quit [Remote host closed the connection]
evenix_ has joined #ruby
evenix has joined #ruby
<atmosx> kanaki: stop spamming
vlad_starkov has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
Jolly1 has joined #ruby
acrussell has quit [Quit: Leaving.]
<olivier_bK> atmosx, kanaki is a bot
<atmosx> cool
<olivier_bK> not cool
<olivier_bK> lol..
<shevy> lol
fuzzyhorns has quit [Quit: Leaving.]
claymore has quit [Quit: Leaving]
jlast has quit [Remote host closed the connection]
Es0teric has joined #ruby
zcreative has quit [Ping timeout: 265 seconds]
<olivier_bK> atmosx, it's possible you for example replace Run.. <key>RunAtLoad</key> by you variable <key> <% @my_var %></key>
<atmosx> olivier_bK: I know it's possible, I don't know how
<atmosx> I need an exampl eor a doc
<atmosx> but I think I'll pos tin the ML and go to bed
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elementz has quit [Ping timeout: 258 seconds]
rainmanjam has joined #ruby
<atmosx> and continue tomorrow
<olivier_bK> becarful what i write it's rails variable
akonny has quit [Quit: akonny]
sdouglas has quit [Remote host closed the connection]
zcreative has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Drewch has quit [Quit: Computer has gone to sleep.]
<atmosx> olivier_bK: I know, it's erb
mengu has quit []
r_rios has quit [Ping timeout: 250 seconds]
rainmanjam has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rainmanjam has joined #ruby
bean has joined #ruby
djbender has quit [Quit: djbender]
moritzs has joined #ruby
rainmanj_ has joined #ruby
sdouglas has joined #ruby
bean has quit [Client Quit]
rainmanjam has quit [Ping timeout: 258 seconds]
chipotle has joined #ruby
Jolly1 has quit [Quit: WeeChat 0.4.3]
elementz has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
djbkd has joined #ruby
meatherly has quit [Remote host closed the connection]
zcreative has quit [Quit: Computer has gone to sleep.]
snuffeluffegus has joined #ruby
Solnse has joined #ruby
tacos1de has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
dblessing has quit [Quit: dblessing]
tacos1de has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
peret has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
jobewan has quit [Quit: Leaving]
sputnik13 has quit [Ping timeout: 258 seconds]
aaah has joined #ruby
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fuzzyhorns has joined #ruby
chipotle has quit [Quit: cya]
helpD has joined #ruby
bean has joined #ruby
bradhe has quit [Remote host closed the connection]
chipotle has joined #ruby
zcreative has joined #ruby
chris_thomson has joined #ruby
Solnse has quit [Quit: Leaving.]
XenoWolf has quit [Ping timeout: 258 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
erikruthven has joined #ruby
havenwood has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
bradhe_ has joined #ruby
cescalante is now known as ce_afk
ce_afk is now known as cescalante
AlexRussia has quit [Ping timeout: 252 seconds]
aaah has quit [Quit: leaving]
r_rios has joined #ruby
vlad_starkov has joined #ruby
fuzzyhorns has quit [Ping timeout: 258 seconds]
<zorak> ok, Ended the koans
<zorak> now, i need some rails tutorials
SonicX has joined #ruby
<zorak> some recomendation?
zcreative has quit [Ping timeout: 245 seconds]
hackman127 has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
nowthatsamatt has quit [Quit: nowthatsamatt]
<wallerdev> might have better luck asking about that in #rubyonrails
fuzzyhorns has joined #ruby
Schmidt has quit [Ping timeout: 240 seconds]
<zorak> #rubyonrails :Cannot join channel (+r) - you need to be identified with services
<bricker> zorak: register your nick then login
kpshek has quit []
geggam has quit [Remote host closed the connection]
platzhirsch has joined #ruby
<platzhirsch> ooo
jxf has quit [Ping timeout: 252 seconds]
treehug88 has quit []
reimorster has joined #ruby
dstynchula has joined #ruby
enebo has quit [Quit: enebo]
<zorak> how can i register my user?
dstynchula has quit [Client Quit]
blackavr has joined #ruby
fuzzyhorns has quit [Ping timeout: 252 seconds]
dapz has joined #ruby
rayners has quit [Remote host closed the connection]
cover has quit [Remote host closed the connection]
<platzhirsch> zorak: what?
cescalante is now known as ce_afk
northfurr has quit [Quit: northfurr]
osvico has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 258 seconds]
<zorak> platzhirsch: i want enter to #rubyonrails, but i need a registred user
Hytosys has joined #ruby
<platzhirsch> zorak: yeah, sec
osvico has joined #ruby
helpD has quit [Remote host closed the connection]
r_rios has quit [Read error: Connection reset by peer]
<zorak> thanks platzhirsch
r_rios has joined #ruby
zigomir has quit [Remote host closed the connection]
Martxel has joined #ruby
rmorello|1136 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
momomomomo has quit [Quit: momomomomo]
rvraghav93_ has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn has quit [Read error: Connection reset by peer]
chris_th_ has joined #ruby
mahlon has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
emaxi has joined #ruby
gry has quit [Read error: Connection reset by peer]
ezrios has quit [Ping timeout: 252 seconds]
zorak is now known as zorak8
gry has joined #ruby
mahlon has joined #ruby
andy__ has quit [Remote host closed the connection]
sambao21 has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
grieg has joined #ruby
chris_thomson has quit [Ping timeout: 245 seconds]
simplyaubs has quit [Quit: simplyaubs]
andy__ has joined #ruby
rrios has joined #ruby
sambao21 has quit [Client Quit]
ezrios has joined #ruby
Xeago has joined #ruby
Shidash has quit [Ping timeout: 245 seconds]
andy__ has quit [Remote host closed the connection]
quitobro has quit [Remote host closed the connection]
danman_ has quit [Quit: danman_]
peret has quit [Remote host closed the connection]
r_rios has quit [Ping timeout: 250 seconds]
bluehavana has quit [Quit: Connection closed for inactivity]
afreidah4 has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Quit: Leaving...]
sambao21 has joined #ruby
elementz has quit [Quit: WeeChat 0.4.2]
testcore has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
reimorster has left #ruby ["Leaving"]
Martxel has quit [Quit: Leaving]
Martxel has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xiella has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
dapz has joined #ruby
djbkd has joined #ruby
helpD has joined #ruby
omosoj has quit [Ping timeout: 245 seconds]
Martxel has quit [Client Quit]
simplyaubs has joined #ruby
Martxel has joined #ruby
Robbo_ has joined #ruby
lmickh has quit [Ping timeout: 265 seconds]
fubelly has joined #ruby
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
<shevy> platzhirsch are you finally in london now
<platzhirsch> shevy: It's not May yet
x1337807x has joined #ruby
<platzhirsch> still sitting in my apartment, no boxes packed
RowdyChildren is now known as RowdyChild|Away
emaxi_ has joined #ruby
emaxi has quit [Read error: Connection reset by peer]
aspires has quit []
robbyoconnor has quit [Ping timeout: 252 seconds]
x1337807x has quit [Client Quit]
mrgoodcat is now known as dyladan
dyladan is now known as mrgoodcat
iamjarvo has joined #ruby
lmickh has joined #ruby
RowdyChild|Away is now known as RowdyChildren
bradhe_ has quit [Remote host closed the connection]
bradhe has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x1337807x has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
dorei has joined #ruby
kitak__ has quit [Remote host closed the connection]
kitak has joined #ruby
testcore has joined #ruby
chrisseaton has quit []
SCommette has quit [Quit: SCommette]
jhass is now known as jhass|off
fubelly has quit [Remote host closed the connection]
lmickh has quit [Read error: Connection reset by peer]
Al__ has joined #ruby
weirdpercent has joined #ruby
ephemerian has quit [Quit: Leaving.]
blackavr has quit [Quit: blackavr]
omosoj has joined #ruby
bthesorceror has joined #ruby
aspires has joined #ruby
funburn has joined #ruby
i_s has joined #ruby
sdouglas has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
<timgauthier> platzhirsch where are you moving from?
<timgauthier> shevy where am i going next
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
<platzhirsch> timgauthier: Berlin
<timgauthier> and seriously why does "kanaki" keep sending me queries... how can is top it!
<timgauthier> sweet, i'm right outside Zwichau
bradhe has joined #ruby
<timgauthier> i stop* not top, i already muted them
crystal77 has quit [Quit: Computer has gone to sleep.]
<shevy> timgauthier dunno, perhaps australia or new zealand eventually
x1337807x has joined #ruby
<timgauthier> haha wow really?
<timgauthier> why do you suggest those?
lw_ has joined #ruby
<shevy> well moving like just a little bit in europe doesn't make much sense!
Trynemjoel has quit [Ping timeout: 245 seconds]
<shevy> in africa, there isn't so much save perhaps for a few mega cities like nairobi
<shevy> russia is too cold
<shevy> china only for those who speak mandarin
robbyoconnor has joined #ruby
andrewlio has quit [Remote host closed the connection]
chrisseaton has joined #ruby
<shevy> oh
<shevy> I forgot japan
<shevy> so perhaps japan
<timgauthier> why not america?
rakm has joined #ruby
<timgauthier> or south america
klaut has quit [Remote host closed the connection]
<shevy> at least you would have good weather in nairobi http://upload.wikimedia.org/wikipedia/commons/6/66/Nairobi_Montage.jpg
<shevy> what is in south america
<shevy> save for brazil
crystal77 has joined #ruby
eynj has joined #ruby
lw has quit [Ping timeout: 258 seconds]
klaut has joined #ruby
crystal77 has quit [Client Quit]
<timgauthier> also a good chance of malaria and death by terrorism but yes :P
<timgauthier> my sister says its very nice, she has been several times
<timgauthier> peru is neat
<weirdpercent> I have this method, http://gist.github.com/weirdpercent/10940927, and when I get a 500 Error the script aborts. I've tried rescue like suggested here: http://safe.mn/tRSh but the script still aborts
<timgauthier> i'd love to see Chile
arubincloud has quit []
<timgauthier> but yes shevy its funny you say NZ or AU, since the Fiancée and I would like to go there for a short time
<platzhirsch> I'd love to see the sun hit the ocean, because art is a baaaang, booom
funburn has quit [Quit: funburn]
<timgauthier> what?
<platzhirsch> yeah, damn right
<timgauthier> lol
<shevy> weirdpercent I have no idea about this gem MultiJson
Lewix has quit [Remote host closed the connection]
lw_ has quit [Ping timeout: 250 seconds]
<timgauthier> i've seen the sun turn green as it disappears over the water, its neat.
<timgauthier> also what is a 500 error again?
kevind has quit [Quit: kevind]
<weirdpercent> Internal Server Error
blackavr has joined #ruby
<timgauthier> well that'd be hard to rescue no?
<timgauthier> i mean the thing that does the rescue is itself failing?
<weirdpercent> shevy: any json gem can be substituted, JSON.parse is same
baweaver has joined #ruby
Drewch has joined #ruby
fubelly has joined #ruby
mansi has quit [Remote host closed the connection]
<weirdpercent> http://safe.mn/tRSh that begin,rescue,end doesn't seem to do anything
mansi has joined #ruby
<platzhirsch> see you
<platzhirsch> coucou
platzhirsch has left #ruby [#ruby]
klaut has quit [Ping timeout: 245 seconds]
Trynemjoel has joined #ruby
Lewix has joined #ruby
chipotle has quit [Quit: cya]
<timgauthier> coucou?
<timgauthier> i think Platz was doing drugs
WilfredTheGreat has quit [Quit: its time to die, and by die I mean sleep.]
kenneth has joined #ruby
coderhs has joined #ruby
<timgauthier> probably some lines of PHP
northfurr has quit [Quit: northfurr]
javierbuilder has joined #ruby
baweaver has quit [Ping timeout: 245 seconds]
<shevy> lol
mansi has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
SCommette has joined #ruby
fubelly has left #ruby ["Leaving..."]
<timgauthier> :P
endash_ has quit [Read error: Connection reset by peer]
endash__ has joined #ruby
sputnik13 has joined #ruby
<olivier_bK> lol
<timgauthier> hey olivier_bK, how are the Netherlands ?
<olivier_bK> timgauthier, do you take some drugs ??
<olivier_bK> i m french
<olivier_bK> je suis francais
<olivier_bK> lol..
<timgauthier> I probably should take some
<timgauthier> but y'know whateves
<timgauthier> I thought your IRC info said NL
SCommette has quit [Ping timeout: 245 seconds]
<timgauthier> isn't it français ?
weirdpercent has quit [Quit: Leaving]
DreamingRainne has joined #ruby
<olivier_bK> no
Xuerian has joined #ruby
<timgauthier> ok
<shevy> hehe
lkba has quit [Ping timeout: 258 seconds]
Bumptious has quit [Remote host closed the connection]
pel_daniel has left #ruby [#ruby]
Bumptious has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
afreidah4 has joined #ruby
nadirvardar has joined #ruby
kanaki has quit [Ping timeout: 258 seconds]
sent-hil has quit [Quit: Connection closed for inactivity]
XenoWolf has joined #ruby
<shevy> timgauthier now I am writing all test cases for multimedia formats + conversions
<shevy> that is so tedious
<timgauthier> yes
kanaki has joined #ruby
djbkd has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
charliesome has joined #ruby
dkamioka has quit [Remote host closed the connection]
Cooler_ has quit [Remote host closed the connection]
Cooler_ has joined #ruby
djbkd has joined #ruby
djbkd has quit [Client Quit]
gregf has joined #ruby
jlast has joined #ruby
Briareos1 has joined #ruby
TheMoonMaster has quit [Excess Flood]
Briareos1_ has quit [Ping timeout: 258 seconds]
TheMoonMaster has joined #ruby
blackavr has quit [Quit: blackavr]
sdelmore has quit [Quit: Leaving.]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
robbyoconnor has quit [Read error: Connection reset by peer]
bean has joined #ruby
chrisja has quit [Quit: leaving]
theRoUS has quit [Changing host]
theRoUS has joined #ruby
nateberkopec has joined #ruby
<timgauthier> i can imagine it being a chore :S
deens has quit [Remote host closed the connection]
<timgauthier> there isn't an automated way to do that?
deens has joined #ruby
<shevy> not sure
<shevy> in ruby? which gem?
deens has quit [Read error: Connection reset by peer]
deens has joined #ruby
trhodes_ has quit [Ping timeout: 264 seconds]
aspires has quit []
robbyoconnor has joined #ruby
<zorak8> how can i update my ruby from 1,9 to 2?? (linux mint, devian)
<Hytosys> zorak8: try rvm https://rvm.io/
Milly_Bays has joined #ruby
javierbuilder has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
asdkfjk has joined #ruby
<shevy> zorak8 come on man
<shevy> wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.bz2
<asdkfjk> eh, ruby is usually used for making web applications only?
<havenwood> zorak8: sudo apt-get install ruby2.0 ruby2.0-dev -y
<asdkfjk> Or people also develope products in this language that are not web based?
<havenwood> zorak8: then update-alternatives --config ruby
<zorak8> sheepman: im downloading this package
<shevy> asdkfjk that depends on your use case. ruby is in good perl tradition
<zorak8> but maybe there are a better/easy way
<asdkfjk> shevy: so after learning some framework like rubyonrails there are chances that I'd be able to write softwares as well?
<shevy> asdkfjk ruby is a general purpose language
<shevy> you can not write software in rubyonrails?
<zorak8> havenwood: i dint have ruby2.0 in my repos :-/
<shevy> ruby python perl and php are very similar
<havenwood> zorak8: is there a newer mint you can get?
Krajsnick has quit [Remote host closed the connection]
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zorak8> need to reinstall al the system and i dont want to do it
iceden has quit [Ping timeout: 276 seconds]
<havenwood> zorak8: a server or dev box? need more than one Ruby?
<havenwood> zorak8: you could ruby-install to /usr/local
<asdkfjk> shevy: oh that means I can write GUI stuff, thanks
<shevy> asdkfjk sure. ruby-gnome bindings are available for example
mansi has joined #ruby
<asdkfjk> shevy: can you please give me examples of some software that are developed in ruby?
<shevy> asdkfjk well rubygems.org
<shevy> I really dont want to give examples but I will show you my local gems
rainmanj_ has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
rainmanjam has joined #ruby
prakriti has quit [Quit: Leaving]
agjacome has quit [Quit: Lost terminal]
bradhe has quit [Remote host closed the connection]
<asdkfjk> shevy: I don't understand much of that but, yeah will soon, thanks
<shevy> I wouldn't be able to tell you what you want either
<shevy> there are many thousand examples out there
<asdkfjk> right
<olivier_bK> asdkfjk, for example puppet
<zorak8> github
<zorak8> twitter ircc
<asdkfjk> wow, github
blackmesa has quit [Ping timeout: 250 seconds]
rainmanjam has quit [Ping timeout: 276 seconds]
* DreamingRainne uses Ruby a lot for various things, but never web development so far. You can do almost anything with it that you can do with any other language.
eyeamaye has quit [Quit: Leaving.]
SCommette has joined #ruby
bradhe has joined #ruby
aantix has quit [Quit: aantix]
Nukepuppy has joined #ruby
<DreamingRainne> I've written IRC bots (from scratch!), relatively simple GUI programs of various types, and so on. Just off the top of my head. Local scripts to run.