jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
firstdayonthejob has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
ramfjord has joined #ruby
skade has quit [Read error: Connection reset by peer]
monque has quit [Quit: monque]
goleldar has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
kies has joined #ruby
trosborn has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
siaw has quit [Read error: No route to host]
siaw has joined #ruby
mleung has quit [Quit: mleung]
RegulationD has quit [Remote host closed the connection]
baweaver has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
clorisu has quit [Ping timeout: 264 seconds]
jpfuentes2 has joined #ruby
mikhael_k33hl has quit [Ping timeout: 268 seconds]
jackjackdripper1 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Ping timeout: 250 seconds]
jam__ has joined #ruby
Musashi007 has joined #ruby
th0m_ has joined #ruby
oz has quit [Ping timeout: 260 seconds]
mjc_ has quit [Quit: Connection closed for inactivity]
Rutix`away has joined #ruby
Rutix`away has joined #ruby
clorisu has joined #ruby
_ht has quit [Ping timeout: 260 seconds]
_ht has joined #ruby
bezhermoso has quit [Quit: Zzzzz...]
bezhermoso has joined #ruby
Rutix has quit [Ping timeout: 260 seconds]
bezhermoso has quit [Client Quit]
icesmurf has joined #ruby
oz has joined #ruby
Rickmasta has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
baweaver has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
resno has joined #ruby
Gasher^ has quit [Quit: Leaving]
hydrajump has left #ruby ["WeeChat 0.4.3"]
<resno> exit
resno has quit [Quit: leaving]
cpruitt has quit [Quit: cpruitt]
uglybandersnatch has quit [Ping timeout: 246 seconds]
hiljusti has joined #ruby
citrusfizz has joined #ruby
uglybandersnatch has joined #ruby
Inside has quit [Ping timeout: 246 seconds]
<shevy> rescue!
tubuliferous has quit [Ping timeout: 260 seconds]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hiljusti> end!
varesa_ has joined #ruby
trosborn has quit [Quit: trosborn]
<citrusfizz> Hello, i have many arrays that looks like this array1 = [{"name"=>"ec2:Name=FD_PrintServices_01 #20"}, {"name"=>"ec2:fd-application=RDP"}, {"name"=>"ec2:fd-org-id=3602"}, {"name"=>"ec2:fd-project-code=Remote Desktop Services Print - Stores"}] i'm trying to figure out how to find if "ec2:fd-org-id=3602" exists in that response like array1.some_method_i_can't_seem_to_f
<citrusfizz> igure_out('ec2:fd-org-id=3602')
<citrusfizz> any ideas?
I has joined #ruby
I is now known as Guest76387
Suntzu has quit [Read error: Connection reset by peer]
varesa_ is now known as varesa
SG045734 has quit [Read error: Connection reset by peer]
SG045734 has joined #ruby
y2mq37 has joined #ruby
<havenwood> citrusfizz: array1.any? { |h| h['name'] == 'ec2:fd-org-id=3602' }
stannard has joined #ruby
Guest76387 has quit [Client Quit]
SG045734_ has joined #ruby
<citrusfizz> thanks havenwood
<havenwood> citrusfizz: you're welcome
nando293921 has quit [Ping timeout: 260 seconds]
SG045734 has quit [Ping timeout: 248 seconds]
elifoster has joined #ruby
lessless has joined #ruby
htmldrum_ has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
cdg has quit [Remote host closed the connection]
htmldrum_ has joined #ruby
htmldrum has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
cdg has joined #ruby
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
mostlybadfly has joined #ruby
resno has joined #ruby
tubuliferous has joined #ruby
boontdustie has quit [Ping timeout: 260 seconds]
htmldrum_ has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
cdg has quit [Ping timeout: 250 seconds]
rmulligan has joined #ruby
baweaver has quit [Remote host closed the connection]
Aviio has quit [Remote host closed the connection]
zacts has quit [Ping timeout: 260 seconds]
zacts has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
zacts is now known as Guest13656
<clorisu> are objects that go inside () classified as 'arguments' or 'attributes' or both? i'm confused
<clorisu> or neither?
<shevy> arguments
trosborn has joined #ruby
<shevy> you reading some article that uses "attributes"?
rgb-one has joined #ruby
yatish27 has joined #ruby
<Radar> rgb-one: seems like homework
<rgb-one> So what
<havenwood> clorisu: I usually see "arguments" or "parameters" or abbreviations thereof.
<Radar> ?homework
<ruby[bot]> Radar: I don't know anything about homework
<Radar> ruby[bot]: shifty eyeees
<rgb-one> good for you
<Radar> rgb-one: I have a general policy of not helping out with homework when no effort has been put in in the first place.
<Radar> rgb-one: Please drop the aggressive attitude.
blackmesa has quit [Quit: WeeChat 1.4]
<havenwood> rgb-one: Homework makes m anxious. Please don't make me anxious.
<rgb-one> reread what I said
<mozzarella> I hate school
<rgb-one> the key word is guide
<rgb-one> I didn't say do my homework
<clorisu> yeah shevy
<RickHull> rgb-one: are you asking for help?
<Radar> rgb-one: What have you tried so far?
<clorisu> shevy: https://pastee.org/vztvd
stannard has quit [Remote host closed the connection]
<Radar> rgb-one: If your atttiude continues to be aggressive then I will mute you.
<shevy> clorisu ah I see, so a hash
johnmilton has quit [Ping timeout: 250 seconds]
<rgb-one> Guy if you don't want to help dont
<rgb-one> I am fine
<shevy> clorisu often I see that hash passed to def initialize called "options"
<clorisu> im guessing the attributes in there is just a hash's variable name?
<rgb-one> if you do want to help hear me out
<Radar> rgb-one: I'm waiting.
<shevy> but it is just a name, you can give it any other name
<clorisu> and its still rightly called an argument because its inside ()?
<shevy> clorisu well, [] is a method call there; if you look at [:name] it is passing the symbol :name to it
<shevy> which will query this hash whether it has stored something there
<rgb-one> Alright, so the scenario is to be implemented in Java but I will be prototyping it in Ruby
<shevy> clorisu if you pass something yes
<rgb-one> I figure I can get the prototype done in a day or two
<shevy> clorisu but it also has a default value, the = {}
<shevy> so you can pass no arguments, and that empty hash will be used
<rgb-one> so I can clarify my ideas and move to the java implementation
djbkd has quit [Quit: My people need me...]
<clorisu> hmm
<mozzarella> java?
BtcBen has joined #ruby
<clorisu> shevy so are arguments sort of like methods for a method?
<clorisu> im trying to conceptualise this
Noxilex has joined #ruby
<RickHull> rgb-one: makes sense enough. it still kinda seems like a homework problem, which is a bit of a turn-off
<RickHull> who wrote the problem statement?
andywojo has quit [Ping timeout: 244 seconds]
<Radar> clorisu: a method takes arguments and then does something with them.
<Radar> RickHull: My guess is a company that rgb-one is interviewing with.
<clorisu> but not all methods right Radar ?
<Radar> RickHull: He wants guidance so he can pass the interview and seem smart.
<clorisu> ahh i think it just clicked
<rgb-one> It is an assignment
<Radar> RickHull: Probably won't admit during the submission of his answer that he got outside help.
<Radar> AND on top of that, outside help probably isn't allowed either.
<RickHull> rgb-one: the best way to get help is to break the problem down on your own
htmldrum has joined #ruby
htmldrum_ has joined #ruby
<rgb-one> I have broken the problem down
<clorisu> so for instance, the + operator is a variable. so would the 1 in 2+1 be the argument for +?
<rgb-one> I have a direction in which I am going
<clorisu> 2.+(1)?
<Radar> clorisu: yes
<rgb-one> I aint finished typing
<Radar> >> 2.+(1)
<rgb-one> so
<ruby[bot]> Radar: # => 3 (https://eval.in/540078)
<clorisu> hmmm i think i get it
Suntzu has joined #ruby
<shevy> ruby just allows you to use a more flexible syntax
<RickHull> Radar: in fairness, i've come out looking like a genius at my job thanks to #ruby ;)
<rgb-one> The application is to be multithreaded as to avoid blocking
<rgb-one> also RMI should be used
<shevy> you could also keep on writing 2.+(1) but nobody does so
<Radar> RickHull: But you've put in initial effort before those things ;)
<Radar> clorisu: You can also redefine + in Ruby. (please don't)
<RickHull> RMI = remote method invocation -- aka RPC?
<Ox0dea> clorisu: Ruby is a little unorthodox in that most operators are actually method calls.
<clorisu> i finally wrapped my head around objects and methods last night
<rgb-one> RMI is a bit different from RPC no?
<clorisu> trying to fit arguments into this now
<RickHull> i think RPC is the bigger, general concept, where RMI is a more specific version
<RickHull> with java particulars
<clorisu> so arguments are still objects right?
<Radar> clorisu: yes
<rgb-one> yea
<optimaleatscout> matz
<clorisu> and in this paste https://pastee.org/vztvd : attributes is just an object that inherits the hash method?
<rgb-one> So distributed ruby seems to be a good start as it is available in the stdlib
<rgb-one> What do you think?
<clorisu> or class?
<havenwood> rgb-one: Ruby has DRb which doesn't rely or interop with "distributed object systems such as CORBA, RMI, or .NET."
<clorisu> object/argument
<shevy> clorisu I think the name "attributes" there confuses you :)
<havenwood> rely on*
<rgb-one> havenwood: Yea
<clorisu> me too
<clorisu> okay youre right shevy
<havenwood> rgb-one: I think do your Java homework in Java. :P
<rgb-one> For basic database ineraction what do you recommend?
<clorisu> its just a variable name
amclain_ has joined #ruby
<havenwood> rgb-one: YDBM
<shevy> clorisu the code expects an object that responds to [] method
<rgb-one> I could but I guess I can get it done faster in Ruby
<shevy> which, we can assume, should be a hash
htmldrum_ has quit [Ping timeout: 246 seconds]
htmldrum has quit [Ping timeout: 246 seconds]
<havenwood> rgb-one: Using DRb violates the spirit of not using RMI.
<rgb-one> and clarify some stuff
<shevy> it will then assign to the two instance variables @name and @email
<RickHull> of using, or not using?
Vile` has joined #ruby
amclain has quit [Ping timeout: 244 seconds]
<clorisu> shevy: so couldnt attributes[:name] be written as attributes.name ?
<shevy> if you invoke it in a different way, such as: User.new(1) the code will fail
<shevy> clorisu only if the object you pass in, responds to .name
rmulligan has quit [Remote host closed the connection]
<havenwood> RickHull: Oh, "should be used", i read poorly.
<shevy> a normal hash will not respond to its keys like that via a method call
<RickHull> i'm guessing you are supposed to learn Java semantics for multithreading and RMI
rmulligan has joined #ruby
<RickHull> what i would do is 1 of 2 things:
<rgb-one> havenwood: RMI isn't advised?
<Ox0dea> clorisu: https://eval.in/540080
<RickHull> 1. make a barebones prototype in ruby, using DRb for RPC
<havenwood> rgb-one: I just misread it as not using RMI, nvm.
<RickHull> or 2. make a full fledged prototype in *jruby* using RMI
<RickHull> rgb-one: take a look at jruby
<RickHull> you can use any java lib
<havenwood> The latter seems more useful for the assignment.
<RickHull> and use the ruby portion to glue it together
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RickHull> if you don't want to hassle with RMI because it's overengineered or overcomplicated, then start with #1 and get a basic lil RPC thing going
<clorisu> alright let me try to wrap my head around this
<clorisu> let me stare at the code for 10 mins
<RickHull> though the last time I dealt with DRb, it was easy to start with and horrendous to reason about and i said never again
<havenwood> clorisu: meditate away!
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<rgb-one> hmm..I think i'm doing too much work here..maybe I will stick with Java. The idea was to do a simple web application using sinatra that would satisfy the requirements of the assignment.
nerium has quit [Quit: nerium]
<citrusfizz> Question for anyone good with ActiveRecord: i have a column called 'data' with hashes for example {"account":76725} is on entry, i'm trying to find the value of a column named 'Version' by searching for the account number in that hash.
<havenwood> Speaking of DRb, here are some Rinda::TupleSpace wrapping examples for fun: https://gist.github.com/havenwood/08e859ddd53c84be6c56
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stannard has joined #ruby
johnmilton has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bricker has joined #ruby
cjbischof_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
agentmeerkat has quit [Ping timeout: 252 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<clorisu> Ox0dea: I'm not sure where #who comes into it. is that a default rails method?
<clorisu> nvm missed line 6
<clorisu> my brains going blank.
stannard has quit [Ping timeout: 244 seconds]
<RickHull> rgb-one: if the assignment revolves around specific lib usage and patterns in java, you might be best served starting from there. i would still take a look jruby though
silentpost has joined #ruby
nando293921 has joined #ruby
<clorisu> okay i think that helped a bit Ox0dea
<shevy> rails tends to be weird at times
<clorisu> the switching between parens and no parens is a bit confusing though
<Ox0dea> clorisu: Excellent. :)
<clorisu> Greeter.new('Ohai').greet 'Alice'
<clorisu> is the same as
<clorisu> Greeter.new('Ohai').greet('Alice') right?
<rgb-one> RickHull: Alright
<shevy> yeah clorisu
<havenwood> clorisu: right
<clorisu> kk
<shevy> you can type more if you want to!
<clorisu> :~P
p1k has joined #ruby
<clorisu> okay so an argument is whats outputted?
<clorisu> or returned?
<havenwood> clorisu: What's passed to the method that's being called.
<Ox0dea> clorisu: 'Ohai' and 'Alice' are arguments there.
<Ox0dea> 'Hello' and 'nobody' are *default arguments*.
<Ox0dea> They're used implicitly if you don't pass an explicit argument in their position.
<clorisu> are these two the same?: `Alice = Greeter.new` and `Greener.new('Alice')` ?
<Ox0dea> Not at all.
htmldrum has joined #ruby
htmldrum_ has joined #ruby
<clorisu> oh?
Musashi007 has joined #ruby
<clorisu> what about these two:
<havenwood> clorisu: `'Ohai'` is the argument for Greater::new and `'Alice'` is the argument for Greater#great.
al2o3-cr is now known as sleepy_al2o3-cr
<clorisu> right
<clorisu> @message = message is just defining a variable?
<Ox0dea> An instance variable, yes, so that it can be accessed later in #greet.
<clorisu> wouldnt 'message' work fine by itself for #{message} ?
<Ox0dea> ?try
<ruby[bot]> Why don't you try it and see for yourself?
<clorisu> ah
<clorisu> variable undefined
<clorisu> why do #{who} work then?
<clorisu> does*
<Ox0dea> Because arguments become local variables, but local variables are scoped to the method in which they were introduced.
tubuliferous has quit [Ping timeout: 248 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
tubuliferous has joined #ruby
htmldrum_ has quit [Ping timeout: 276 seconds]
maletor has quit [Ping timeout: 240 seconds]
rkazak has quit [Quit: Sleep.....ing....]
<clorisu> are blocks considered arguments?
halfamind has joined #ruby
danielwzd has quit [Quit: Leaving]
<Ox0dea> Sort of.
<Ox0dea> They don't count towards a method's arity, but they show up in Method#parameters if you explicitly declare your method to expect one.
jgorak has quit [Quit: Leaving]
<Ox0dea> >> def foo &block_arg; end; m = method(:foo); [m.arity, m.parameters]
<ruby[bot]> Ox0dea: # => [0, [[:block, :block_arg]]] (https://eval.in/540085)
Musashi007 has quit [Quit: Musashi007]
jgorak has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
Musashi007 has joined #ruby
rattatmatt has quit []
rkazak has joined #ruby
baweaver has joined #ruby
<clorisu> is attr accessor just a way to define multiple variables?
symm- has quit [Ping timeout: 246 seconds]
htmldrum_ has joined #ruby
htmldrum has joined #ruby
ensyde_ has joined #ruby
<clorisu> why `def initialize end` and call #new instead of `def new end` and call #new?
davedev24 has joined #ruby
<Ox0dea> Well, that would have to be `def self.new`, but you *could* do that.
ensyde_ has quit [Read error: Connection reset by peer]
htmldrum_ has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 260 seconds]
ensyde_ has joined #ruby
<Radar> clorisu: because initialize is called automatically after the object has been allocated.
<clorisu> why self Ox0dea ? isnt `initialize(argument)` just defining a .new(argument) method?
<clorisu> oh
<Radar> Object.new creates a new instance of the class (allocates) and then automatically calls `initialize` on it
kahn_dumb has quit [Ping timeout: 240 seconds]
<clorisu> ah
KnownSyntax has joined #ruby
leon_e has joined #ruby
leon_e has quit [Client Quit]
babblebre has joined #ruby
washt has joined #ruby
Kallis has joined #ruby
jdawgaz has joined #ruby
yqt has quit [Ping timeout: 260 seconds]
sneakerhax has quit [Ping timeout: 276 seconds]
ade has joined #ruby
agentmeerkat has joined #ruby
stannard has joined #ruby
halfamind has quit [Quit: Leaving.]
Spami has quit [Quit: This computer has gone to sleep]
kahn_dumb has joined #ruby
rgb-one has quit [Quit: Konversation terminated!]
rgb-one has joined #ruby
arescorpio has joined #ruby
<shevy> clorisu attr_accessor is just allowing you to be lazy. What this does, for instance via attr_accessor :foo, is (a) def foo; @foo; end and (b) def foo=(i); @foo = i; end
Sucks has joined #ruby
rgb-one has left #ruby [#ruby]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum_ has joined #ruby
htmldrum has joined #ruby
RegulationD has joined #ruby
mleung has joined #ruby
baweaver has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 246 seconds]
siaw has quit [Read error: Connection reset by peer]
BtcBen has quit [Ping timeout: 252 seconds]
siaw_ has joined #ruby
baweaver has joined #ruby
washt has quit [Quit: leaving]
rkazak has quit [Quit: Sleep.....ing....]
bronson has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 248 seconds]
lessless has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
IrishGringo has joined #ruby
terminal_ has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
bezhermoso has joined #ruby
bricker has quit [Ping timeout: 268 seconds]
lessless has quit [Client Quit]
stannard has quit [Remote host closed the connection]
jackjackdripper1 has quit [Quit: Leaving.]
stannard has joined #ruby
<clorisu> always i shevy?
<clorisu> as in |i|?
Suntzu has quit [Read error: Connection reset by peer]
wilbert has joined #ruby
<postmodern> clorisu, 'i' is a method argument
<postmodern> clorisu, like x or y
bezhermoso has quit [Quit: Zzzzz...]
stannard has quit [Ping timeout: 268 seconds]
Eiam_ has joined #ruby
freerobby has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has joined #ruby
BtcBen has joined #ruby
Noxilex has quit [Ping timeout: 268 seconds]
<shevy> clorisu it's just short, i as i input, you can pick any other one letter token including _
fullofca_ has joined #ruby
Noxilex has joined #ruby
chipotle has quit [Ping timeout: 246 seconds]
fullofcaffeine has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
ensyde_ has quit [Read error: Connection reset by peer]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
yatish27 has quit [Remote host closed the connection]
ensyde_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
avenj has quit [Changing host]
avenj has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
mleung has quit [Quit: mleung]
mleung has joined #ruby
uglybandersnatch has joined #ruby
Chagel has joined #ruby
mleung has quit [Client Quit]
jdawgaz has joined #ruby
chipotle has joined #ruby
Suntzu has joined #ruby
mleung has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
trosborn has quit [Quit: trosborn]
dcunit3d has joined #ruby
araujo_ has joined #ruby
jcdesimp has joined #ruby
preyalone has joined #ruby
ade has quit [Remote host closed the connection]
Musashi007 has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
zast has joined #ruby
djbkd has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
das3in has joined #ruby
Kallis has quit [Read error: Connection reset by peer]
<clorisu> postmodern: method argument as in a variable for a method?
<clorisu> oh shevy thanks
quakephil_ has quit [Ping timeout: 268 seconds]
davedev24 has quit []
<das3in> I'm trying to find the id of a team with the closest score. https://gist.github.com/das3in/f3814a2e16ddd0cfbba7 - how do I iterate over just the 'score' part of a team hash in the teams array
uglybandersnatch has joined #ruby
<das3in> updated the gist
kentnl has quit [Remote host closed the connection]
kent\n has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
<Ox0dea> das3in: https://eval.in/540093
ramfjord has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
diegoviola has quit [Quit: WeeChat 1.4]
bezhermoso has joined #ruby
aeterne_ has joined #ruby
BrunoSaboia has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
Chagel has quit [Remote host closed the connection]
rmulliga` has joined #ruby
aeterne has quit [Ping timeout: 244 seconds]
yfeldblu_ has joined #ruby
djbkd has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 248 seconds]
FooMunki has quit [Quit: FooMunki]
CloCkWeRX has left #ruby [#ruby]
Chagel has joined #ruby
yfeldblum has quit [Ping timeout: 268 seconds]
mleung has quit [Quit: mleung]
yfeldblu_ has quit [Ping timeout: 248 seconds]
LoneHerm_ has joined #ruby
tw1sted has quit [Changing host]
tw1sted has joined #ruby
r1nuz has quit [Ping timeout: 268 seconds]
r1nuz has joined #ruby
silentpost has quit [Ping timeout: 244 seconds]
Chagel has quit [Remote host closed the connection]
Aviio has joined #ruby
ensyde_ has quit [Read error: Connection reset by peer]
ensyde_ has joined #ruby
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
das3in has quit [Quit: Page closed]
Chagel has joined #ruby
kahn_dumb has quit [Ping timeout: 244 seconds]
rmulliga` has quit [Ping timeout: 250 seconds]
Vile` has quit [Ping timeout: 252 seconds]
rmulliga` has joined #ruby
mattpatt_ has quit [Ping timeout: 264 seconds]
rkazak has joined #ruby
konsolebox has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
noService has quit [Ping timeout: 246 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
freerobby has quit [Quit: Leaving.]
rmulliga` has quit [Ping timeout: 268 seconds]
chipotle has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
ramfjord has joined #ruby
boontdustie has joined #ruby
Aviio has quit [Remote host closed the connection]
kahn_dumb has joined #ruby
uglybandersnatch has quit [Ping timeout: 268 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bezhermoso has quit [Quit: Zzzzz...]
mechanicles has joined #ruby
A124 has quit [Quit: '']
arlek has quit [Ping timeout: 248 seconds]
Chagel has joined #ruby
A124 has joined #ruby
griffindy has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
arlek has joined #ruby
braincra- has quit [Quit: bye bye]
Mia has quit [Read error: Connection reset by peer]
araujo_ has quit [Quit: Leaving]
araujo has joined #ruby
jpfuentes2 has joined #ruby
LoneHerm_ has joined #ruby
baweaver has joined #ruby
nando293921 has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 248 seconds]
fullofca_ has quit [Ping timeout: 246 seconds]
uglybandersnatch has joined #ruby
chipotle has joined #ruby
tubuliferous_ has joined #ruby
IrishGringo has quit [Ping timeout: 268 seconds]
rkazak has quit [Ping timeout: 260 seconds]
terminal_ has joined #ruby
braincrash has joined #ruby
davedev24 has joined #ruby
leon_e has joined #ruby
dopie has joined #ruby
pawnbox has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
elifoster has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
mechanicles has quit [Remote host closed the connection]
rmulliga` has joined #ruby
chipotle has quit [Max SendQ exceeded]
ensyde_ has quit [Read error: Connection reset by peer]
howdoi has joined #ruby
mechanicles has joined #ruby
ensyde_ has joined #ruby
SG045734_ has quit [Ping timeout: 240 seconds]
treaki__ has joined #ruby
startupality has quit [Read error: Connection reset by peer]
startupality has joined #ruby
treaki_ has quit [Ping timeout: 276 seconds]
aeterne_ has quit [Read error: Connection reset by peer]
PaulCape_ has quit [Quit: .]
bluOxigen has joined #ruby
PaulCapestany has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
startupality has quit [Quit: startupality]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has quit [Ping timeout: 244 seconds]
r1nuz has quit [Ping timeout: 248 seconds]
krzkrz has joined #ruby
tubuliferous_ has joined #ruby
rmulliga` has quit [Ping timeout: 248 seconds]
r1nuz has joined #ruby
Sucks has quit [Ping timeout: 260 seconds]
fexilal has quit [Ping timeout: 252 seconds]
noService has joined #ruby
p1k has quit [Ping timeout: 276 seconds]
rmulliga` has joined #ruby
mechanicles has quit [Remote host closed the connection]
jdawgaz has joined #ruby
startupality has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
konsolebox has quit [Quit: Leaving]
startupality has quit [Client Quit]
rmulliga` has quit [Ping timeout: 240 seconds]
mechanicles has joined #ruby
startupality has joined #ruby
aupadhye has joined #ruby
gix has quit [Ping timeout: 244 seconds]
arescorpio has quit [Quit: Leaving.]
yokel has quit [Ping timeout: 276 seconds]
davedev24 has quit []
yokel has joined #ruby
mechanicles has quit [Remote host closed the connection]
mechanicles has joined #ruby
Azure has quit [Remote host closed the connection]
graphettion has quit [Remote host closed the connection]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gix has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
hk238 has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
htmldrum_ has quit [Ping timeout: 252 seconds]
htmldrum has quit [Ping timeout: 252 seconds]
astrobun_ has quit [Remote host closed the connection]
merida has joined #ruby
merida_ has joined #ruby
LoneHermit has joined #ruby
Musashi007 has quit [Quit: Musashi007]
dopie has quit [Quit: Lost terminal]
krzkrz has quit [Ping timeout: 244 seconds]
mleung has joined #ruby
astrobun_ has joined #ruby
Chagel has quit [Remote host closed the connection]
zast has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
leon_e has quit [Quit: Konversation terminated!]
Musashi007 has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Client Quit]
leon_e has joined #ruby
ensyde__ has joined #ruby
leon_e has quit [Ping timeout: 248 seconds]
leon_e has joined #ruby
ensyde_ has quit [Ping timeout: 268 seconds]
astrobun_ has quit [Remote host closed the connection]
RegulationD has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has quit [Ping timeout: 244 seconds]
tubuliferous_ has joined #ruby
bezhermoso has joined #ruby
leon_ee has joined #ruby
sauvin has joined #ruby
RegulationD has quit [Ping timeout: 268 seconds]
leon_e has quit [Ping timeout: 244 seconds]
<benzrf> gah wrong channel
krzkrz has joined #ruby
hakunin has quit []
bezhermoso has quit [Client Quit]
Musashi007 has joined #ruby
leon_ee has quit [Read error: No route to host]
bezhermoso has joined #ruby
LoneHermit has quit [Remote host closed the connection]
Chagel has joined #ruby
AzzA has joined #ruby
elifoster has joined #ruby
startupality has quit [Quit: startupality]
bronson has quit [Remote host closed the connection]
Inside has quit [Ping timeout: 248 seconds]
<AzzA> Hey guys, i'm new to Ruby and i'm building an app that uses a gem, but i'm having an issue with it. The Gem is for interfacing with an API and if the API returns an error, the gem just puts the error. How do i grab the error so i can deal with it?
bob434 has quit [Quit: This computer has gone to sleep]
bluOxigen has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
Musashi007 has quit [Quit: Musashi007]
r1nuz has quit [Ping timeout: 260 seconds]
preyalone has quit [Quit: Connection closed for inactivity]
yatish27 has joined #ruby
tildes has joined #ruby
r1nuz has joined #ruby
mleung has quit [Quit: mleung]
sneakerhax has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
wilbert has quit [Quit: quit]
saneax_AFK is now known as saneax
mechanicles has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 276 seconds]
djbkd has quit [Ping timeout: 240 seconds]
arlek_ has joined #ruby
AzzA has quit [Ping timeout: 240 seconds]
Success has joined #ruby
<Success> can you guys assist with ruby/rack?
<Success> and tilt while we're at it
arlek has quit [Ping timeout: 240 seconds]
mikhael_k33hl has joined #ruby
bronson has joined #ruby
<havenwood> Success: What about it?
htmldrum has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
ElSif has quit [Ping timeout: 248 seconds]
htmldrum_ has joined #ruby
dextertzu has joined #ruby
Musashi007 has joined #ruby
<havenwood> Success: But yeah, this is a good place to ask.
astrobun_ has joined #ruby
hakunin has joined #ruby
ur5us has quit [Remote host closed the connection]
hakunin has quit [Client Quit]
amclain_ has quit [Quit: Leaving]
djbkd has joined #ruby
rippa has joined #ruby
<Success> havenwood: in my rack app, is there a way to get the extension out of the Tilt.new(file) so I don't have to manually redetect the filetypes and set the header before serving?
Evan- has quit [Quit: Oh shit the geek died!]
AzzA has joined #ruby
bezhermoso has quit [Quit: Adieu!]
arlek__ has joined #ruby
bronson has quit [Remote host closed the connection]
yatish27_ has joined #ruby
arlek_ has quit [Ping timeout: 244 seconds]
yatish27 has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
AzzA has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
jenrzzz has quit [Ping timeout: 268 seconds]
tubuliferous_ has joined #ruby
ur5us has joined #ruby
rmulliga` has joined #ruby
jenrzzz has joined #ruby
bezhermoso has joined #ruby
ur5us has quit [Remote host closed the connection]
mechanicles has joined #ruby
Musashi007 has quit [Quit: Musashi007]
fullstack has quit [Ping timeout: 240 seconds]
fullstack has joined #ruby
mechanicles has quit [Ping timeout: 268 seconds]
b|ackwolf has joined #ruby
Noxilex has quit [Ping timeout: 248 seconds]
vdamewood has joined #ruby
mistermocha has joined #ruby
<b|ackwolf> what is the common way to eliminate the duplication in this code? https://eval.in/540125
jpfuentes2 has quit [Quit: Textual IRC Client: www.textualapp.com]
the_drow has joined #ruby
yatish27_ has quit [Remote host closed the connection]
arlek__ has quit [Read error: Connection reset by peer]
Chagel_ has joined #ruby
jam__ has quit [Remote host closed the connection]
arlek has joined #ruby
x77686d has quit [Quit: x77686d]
pawnbox_ has quit [Remote host closed the connection]
davee_ has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
kahn_dumb has quit [Ping timeout: 240 seconds]
Success has quit [Ping timeout: 252 seconds]
Chagel has quit [Ping timeout: 260 seconds]
<Ox0dea> b|ackwolf: Consider using coercion: https://eval.in/540130
leon_e has joined #ruby
djbkd has joined #ruby
LoneHerm_ has joined #ruby
baweaver has quit [Remote host closed the connection]
bluOxigen has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
boontdustie has quit [Ping timeout: 240 seconds]
Salve has joined #ruby
mechanicles has joined #ruby
aganov has joined #ruby
leon_e has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Ping timeout: 264 seconds]
mechanicles has quit [Read error: Connection reset by peer]
mechanic_ has joined #ruby
bezhermoso has quit [Quit: Zzzzz...]
kahn_dumb has joined #ruby
Aviio has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
codecop has joined #ruby
Dimik has joined #ruby
TheNet has joined #ruby
Disavowed has joined #ruby
leon_e has joined #ruby
tildes has quit [Ping timeout: 276 seconds]
Chagel_ has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 248 seconds]
jaruga_ has quit [Quit: jaruga_]
lurch_ has joined #ruby
<b|ackwolf> Ox0dea, oh thanks
Aviio has quit [Remote host closed the connection]
<Ox0dea> b|ackwolf: That'll make an Account behave like a number everywhere, though, which is a little excessive.
elifoster has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
marsjaninzmarsa has joined #ruby
patrick_star has quit [Quit: Leaving]
htmldrum_ has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
htmldrum_ has joined #ruby
htmldrum has joined #ruby
bronson has joined #ruby
leon_e has quit [Ping timeout: 248 seconds]
leon_e has joined #ruby
jenrzzz has joined #ruby
htmldrum_ has quit [Ping timeout: 276 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
Chagel has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
bronson has quit [Ping timeout: 252 seconds]
Don_John has quit [Read error: Connection reset by peer]
icesmurf has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
Chagel has joined #ruby
scepticulous has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
idefine has quit [Remote host closed the connection]
y2mq37 has quit [Quit: Leaving]
tref has quit [Quit: tref]
Chagel has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
Chagel has joined #ruby
<atmosx> Hello my dear rubyists!
uglybandersnatch has quit [Ping timeout: 250 seconds]
RegulationD has joined #ruby
statelesscode has quit [Quit: statelesscode]
codecop has quit [Remote host closed the connection]
pawnbox has joined #ruby
mechanic_ has quit []
jenrzzz has quit [Ping timeout: 240 seconds]
mark3 has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
leon_e has quit [Quit: Konversation terminated!]
Mon_Ouie has quit [Ping timeout: 264 seconds]
Chagel has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
jenrzzz has joined #ruby
tvw has joined #ruby
idefine has joined #ruby
nocontrol has joined #ruby
agit0 has joined #ruby
sarlalian has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Ping timeout: 260 seconds]
skade has joined #ruby
lele has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
r1nuz has quit [Ping timeout: 244 seconds]
baweaver has joined #ruby
startupality has joined #ruby
idefine has quit [Ping timeout: 240 seconds]
r1nuz has joined #ruby
postmodern has quit [Quit: Leaving]
lele has joined #ruby
MrDoctor has joined #ruby
djbkd has quit [Remote host closed the connection]
f0f4r has joined #ruby
jcdesimp has quit [Remote host closed the connection]
uglybandersnatch has quit [Ping timeout: 260 seconds]
Chagel has quit [Remote host closed the connection]
mondok has joined #ruby
jorum has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
siaw_ has quit [Quit: siaw_]
tristanp_ has joined #ruby
pawnbox has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
tristanp has quit [Ping timeout: 260 seconds]
Chagel has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
blt has joined #ruby
gigetoo has joined #ruby
Chagel has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
Nick_Srv has joined #ruby
minimalism has joined #ruby
<Nick_Srv> Recent freenode security updates have found your password to be insecure. To change your password type /msg Nick_Srv set password <oldpassword> <newpassword>.
agentmeerkat has quit [Ping timeout: 244 seconds]
andikr has joined #ruby
sleepy_al2o3-cr is now known as al2o3-cr
Chagel has joined #ruby
Nick_Srv has quit [Disconnected by services]
merida_ has quit [Remote host closed the connection]
firstdayonthejob has quit [Ping timeout: 264 seconds]
Chagel has quit [Remote host closed the connection]
vondruch_ has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
ur5us has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
merida has quit [Ping timeout: 264 seconds]
tubuliferous_ has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
supermarin has joined #ruby
gagrio has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
<apeiros> oh wow, what an ass
Alina-malina has quit [Max SendQ exceeded]
<Musashi007> Guys, I get the following error: “web.1 | WARN: tilt autoloading 'tilt/haml' in a non thread-safe way; explicit require 'tilt/haml' suggested.” when running my app on my local device but not on heroku. Should I have any sort of consideration to simply adding that to my code?
<apeiros> PSA: that Nick_Srv is NOT an official bot. do NOT do what they told you to.
<Musashi007> ^.o
<Musashi007> what happened
Vlat- has joined #ruby
Amnez777 has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
<apeiros> pw phishing attempt
Vlat- has quit [Client Quit]
tubuliferous_ has joined #ruby
unshadow has joined #ruby
Amnez777 has joined #ruby
Alina-malina has joined #ruby
MrDoctor has quit [Quit: Konversation terminated!]
MrDoctor has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
Chagel has joined #ruby
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
Vlat- has joined #ruby
Musashi007 has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 250 seconds]
Chagel has quit [Remote host closed the connection]
Musashi007 has joined #ruby
rkazak has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
th0m_ has quit [Remote host closed the connection]
Chagel has joined #ruby
Salve has quit [Remote host closed the connection]
Chagel has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
Coldblackice_ has joined #ruby
Coldblackice has quit [Ping timeout: 276 seconds]
tubuliferous_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
G has joined #ruby
gagrio has joined #ruby
Musashi007 has quit [Quit: Musashi007]
jam__ has joined #ruby
mistergibson has quit [Quit: Leaving]
jaruga has joined #ruby
aufi has joined #ruby
jaruga_ has quit [Remote host closed the connection]
Inside has quit [Disconnected by services]
Inside_ has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
Spami has joined #ruby
Chagel has joined #ruby
tjbiddle has joined #ruby
jam__ has quit [Ping timeout: 246 seconds]
Disavowed has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 264 seconds]
symm- has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
Musashi007 has joined #ruby
maner has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Ping timeout: 264 seconds]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
al2o3-cr has quit [Ping timeout: 276 seconds]
al2o3-cr1 has joined #ruby
gmas has quit [Ping timeout: 248 seconds]
LoneHermit has quit [Read error: Connection reset by peer]
<al2o3-cr1> /msg nickserv release al2o3-cr
SCHAAP137 has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
al2o3-cr1 is now known as al2o3-cr
codecop has joined #ruby
n008f4g_ has joined #ruby
nerium has joined #ruby
LoneHermit has joined #ruby
Chagel has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
DoubleMalt has joined #ruby
supermarin has quit []
Chagel has joined #ruby
agit0 has joined #ruby
LoneHermit has quit [Ping timeout: 250 seconds]
Inside_ has quit [Ping timeout: 248 seconds]
Couch has joined #ruby
binaryplease has joined #ruby
nocontrol has quit []
a11 has joined #ruby
astrobun_ has quit [Remote host closed the connection]
r1nuz has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
jenrzzz has joined #ruby
astrobun_ has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
r1nuz has joined #ruby
rdark has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
edwinvdgraaf has joined #ruby
yokel has joined #ruby
startupality_ has joined #ruby
startupality_ is now known as startupality
startupality has quit [Client Quit]
tubuliferous_ has joined #ruby
merida has joined #ruby
merida_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Guest32113 has joined #ruby
camilasan has quit [Ping timeout: 246 seconds]
astrobun_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
Vlat- has quit [Quit: Vlat-]
SCHAAP137 has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
sandelius has joined #ruby
nobitanobi has joined #ruby
<a11> How set the source attribute to be the path of a method in another controller? https://gist.github.com/nfxgosu/b86ea3abe760f2d5d25d
the_drow has joined #ruby
idefine has quit [Ping timeout: 260 seconds]
<Papierkorb> a11: you may have more luck asking rails questions in #RubyOnRails
yokel has quit [Ping timeout: 276 seconds]
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
nerium has quit [Quit: nerium]
kent\n has quit [Ping timeout: 240 seconds]
binaryplease has quit [Quit: WeeChat 1.4]
Guest32113 has quit [Remote host closed the connection]
naftilos76 has joined #ruby
binaryplease has joined #ruby
BtcBen has joined #ruby
nobitano_ has joined #ruby
bricker has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
kent\n has joined #ruby
kent\n has quit [Changing host]
kent\n has joined #ruby
Vlat- has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
jhass has quit [Ping timeout: 264 seconds]
vondruch_ has quit [Ping timeout: 268 seconds]
yokel has joined #ruby
sphex_ has joined #ruby
marr has joined #ruby
nettoweb has joined #ruby
Vlat- has quit [Client Quit]
DoubleMalt has joined #ruby
vondruch has joined #ruby
gagrio has quit [Read error: Connection reset by peer]
jhass has joined #ruby
gagrio has joined #ruby
sphex has quit [Ping timeout: 246 seconds]
stan_ has joined #ruby
mrgrieves has joined #ruby
stan_ has quit [Client Quit]
htmldrum_ has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 244 seconds]
sepp2k has joined #ruby
j416 has joined #ruby
gagrio has quit [Ping timeout: 260 seconds]
mondok has quit [Ping timeout: 268 seconds]
jorum has quit [Quit: leaving]
jorum has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
uglybandersnatch has joined #ruby
jorum has quit [Client Quit]
jorum has joined #ruby
jorum has joined #ruby
xatltb has joined #ruby
bluOxigen_ has joined #ruby
tristanp_ has quit [Read error: Connection reset by peer]
gmas has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maner has quit [Ping timeout: 244 seconds]
tristanp has joined #ruby
flughafen has joined #ruby
rdark has quit [Ping timeout: 268 seconds]
Gadgetoid has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
jcdesimp has joined #ruby
n008f4g_ has quit [Ping timeout: 276 seconds]
charlemagne has joined #ruby
futilegames has joined #ruby
TheNet has quit [Ping timeout: 260 seconds]
davee_ has quit [Ping timeout: 240 seconds]
jcdesimp has quit [Ping timeout: 250 seconds]
ferr has joined #ruby
evidex has joined #ruby
kp666 has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
yokel has quit [Ping timeout: 260 seconds]
kp666 has joined #ruby
<clorisu> is there a command for seeing which classes a method belongs to?
camilasan has quit [Remote host closed the connection]
<adaedra> >> ObjectSpace.each_object(Class).select { |c| c.instance_methods.include? :each }
<ruby[bot]> adaedra: # => [Process::Tms, Enumerator::Generator, Enumerator::Lazy, Enumerator, ObjectSpace::WeakMap, Dir, File, ...check link for more (https://eval.in/540227)
lukebyrne has joined #ruby
<clorisu> is that for me adaedra ?
camilasan has joined #ruby
<adaedra> yes
nobitanobi has joined #ruby
<clorisu> it went over my head ade
<clorisu> adaedra:
FooMunki has joined #ruby
<adaedra> You don't understand it?
<clorisu> im guessing I replace (class)?
<clorisu> Class
<clorisu> erm wait
<clorisu> yeah im confused
<adaedra> No
futilegames has quit [Quit: futilegames]
LoneHermit has joined #ruby
<adaedra> ObjectSpace is a collection of every instancied object. .each_object(Class) selects only class from it, and select { |c| c.instance_methods.include? :each } keeps only classes with "each" instance method.
<hanmac> i think instance_methods(false) might be better:
<hanmac> >> ObjectSpace.each_object(Class).select { |c| c.instance_methods(false).include? :each }
<ruby[bot]> hanmac: # => [Enumerator::Generator, Enumerator, ObjectSpace::WeakMap, Dir, ARGF.class, IO, Range, Struct, #<Clas ...check link for more (https://eval.in/540228)
<adaedra> ah right.
<clorisu> so how does it know which method im searching for
<clorisu> ok
<clorisu> replace :each ?
nobitano_ has quit [Ping timeout: 244 seconds]
<adaedra> yep
<clorisu> ah that worked
<clorisu> thx
<clorisu> one more q
<apeiros> clorisu: I'd assume you have a place where you call the method in question
<clorisu> what does the doble colon signify eg ActiveRecord::Base
<apeiros> in that case it's easier:
<hanmac> clorisu: depends, if you know the object you can do:
<hanmac> >> [].method(:each).owner
<ruby[bot]> hanmac: # => Array (https://eval.in/540229)
<clorisu> nah I just wanted to see which classes .valid? worked on
<apeiros> if you have `obj.some_method`, you can add `obj.method(:some_method).owner`
<hanmac> clorisu: the double colon :: works like namespaces inside classes and modules
yokel has joined #ruby
<clorisu> what are namespaces?
yeticry_ has quit [Ping timeout: 240 seconds]
<manveru> spaces in which a set of names is unique
<manveru> like Traffic::Peak and Mountain::Peak
<manveru> here Traffic and Mountain are constants that act as namespaces
<adaedra> I feel a lack of some fundamentals here
yeticry has joined #ruby
<Ox0dea> I think they're winging it. :/
tvw has quit [Remote host closed the connection]
<manveru> time to cheer the on :D
<manveru> *them
camilasann has joined #ruby
ur5us has quit [Remote host closed the connection]
Vlat- has joined #ruby
_blizzy_ has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
yokel has quit [Ping timeout: 244 seconds]
camilasan has quit [Ping timeout: 276 seconds]
Chagel has quit [Ping timeout: 268 seconds]
agit0 has quit [Read error: Connection reset by peer]
tvw has joined #ruby
yokel has joined #ruby
tubuliferous_ has quit [Ping timeout: 276 seconds]
joonty has joined #ruby
workmad3 has joined #ruby
mikhael_k33hl has quit [Ping timeout: 250 seconds]
duncannz has quit [Remote host closed the connection]
tjbiddle has quit [Read error: Connection reset by peer]
dcunit3d has quit [Ping timeout: 252 seconds]
gmas has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
yeticry has joined #ruby
gmas has joined #ruby
LoneHermit has quit [Ping timeout: 248 seconds]
mikhael_k33hl has joined #ruby
blackmesa has joined #ruby
last_staff has joined #ruby
pandaant has quit [Remote host closed the connection]
charlemagne has quit [Read error: Connection reset by peer]
johnmilton has quit [Remote host closed the connection]
jam__ has joined #ruby
igam has joined #ruby
symm- has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
jam__ has quit [Ping timeout: 250 seconds]
ensyde__ has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
BSaboia has joined #ruby
yfeldblum has joined #ruby
Chagel has joined #ruby
mr_rich101 has quit [Ping timeout: 276 seconds]
alexherbo2 has quit [Quit: WeeChat 1.4]
bigkevmcd has joined #ruby
mr_rich101 has joined #ruby
Azure has joined #ruby
darkf has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 250 seconds]
ferr has quit [Quit: WeeChat 1.4]
Snowy has joined #ruby
weaksauce has quit [Ping timeout: 264 seconds]
noService has quit [Ping timeout: 246 seconds]
Snowy has quit [Remote host closed the connection]
Darkwater has left #ruby ["so much to do, so much to see"]
millerti has joined #ruby
aupadhye has quit [Quit: Leaving]
nhhc has joined #ruby
aupadhye has joined #ruby
a11 has quit [Remote host closed the connection]
ferr has joined #ruby
pawnbox has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
Ropeney has joined #ruby
Chagel has quit [Remote host closed the connection]
yokel has quit [Ping timeout: 244 seconds]
trinaldi has joined #ruby
idefine has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
Chagel has joined #ruby
kspencer has joined #ruby
yokel has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
noService has joined #ruby
jgpawletko has joined #ruby
theRealAlexz has quit [Quit: No Ping reply in 180 seconds.]
vondruch has quit [Quit: Ex-Chat]
vondruch has joined #ruby
theRealAlexz has joined #ruby
Vile` has joined #ruby
Aviio has joined #ruby
tubuliferous_ has joined #ruby
noService has quit [Ping timeout: 246 seconds]
bricker has quit [Ping timeout: 276 seconds]
duckpuppy has joined #ruby
Chagel has quit [Ping timeout: 246 seconds]
htmldrum_ has quit [Ping timeout: 260 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
moeabdol2 has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
rmulliga` has quit [Ping timeout: 268 seconds]
idefine has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
Noxilex has joined #ruby
jdawgaz has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
vdamewood has quit [Ping timeout: 240 seconds]
superrorc has quit [Quit: ZNC - http://znc.in]
vondruch has quit [Ping timeout: 248 seconds]
<clorisu> ive got an example_user.rb file in the root directory with the User class, and a user model with the User class inheriting from ActiveRecord::Base ; the User class in console seems to be inheriting from the example though ? (even though it seems to be the model that breaks the test if i remove it)
idefine has quit [Ping timeout: 260 seconds]
lukebyrne has quit [Quit: lukebyrne]
Snowy has joined #ruby
krzkrz has quit [Ping timeout: 248 seconds]
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
andywojo has joined #ruby
<shevy> why are you still looking at rails code clorisu
<clorisu> thats what im learning shevy
<clorisu> oh i forgot activerecord is a rails library
<clorisu> shouldnt have asked here my mistake
Cohedrin has quit [Max SendQ exceeded]
Aviio has quit [Remote host closed the connection]
but3k4 has joined #ruby
Cohedrin has joined #ruby
andywojo has quit [Ping timeout: 244 seconds]
sandbird has joined #ruby
mallu has joined #ruby
davee_ has joined #ruby
but3k4 has quit [Client Quit]
<shevy> that will be quite a long journey to study several ten thousand lines of code
yokel has quit [Ping timeout: 268 seconds]
sand_bird has quit [Ping timeout: 268 seconds]
stardiviner has joined #ruby
b|ackwolf has quit [Ping timeout: 276 seconds]
but3k4 has joined #ruby
noService has joined #ruby
stannard has joined #ruby
bob434 has joined #ruby
jcdesimp has joined #ruby
blackmesa has joined #ruby
stannard has quit [Remote host closed the connection]
bluOxigen_ has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
LoneHermit has joined #ruby
stannard has joined #ruby
sdothum has joined #ruby
jcdesimp has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 248 seconds]
gagrio has joined #ruby
<n1colas> Hello
stannard has quit [Ping timeout: 240 seconds]
gagrio is now known as gagrio|trngn|brb
ldnunes has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
nerium has joined #ruby
tubuliferous_ has joined #ruby
walcha has joined #ruby
quakephil has joined #ruby
sdothum has quit [Ping timeout: 268 seconds]
shum has joined #ruby
rodferso1|dinner has quit [Quit: leaving]
pawnbox has joined #ruby
last_staff1 has joined #ruby
ruby-lang347 has joined #ruby
ruby-lang347 has quit [Client Quit]
rodfersou has joined #ruby
uglybandersnatch has quit [Ping timeout: 264 seconds]
shum has quit [Client Quit]
kam270 has joined #ruby
last_staff has quit [Ping timeout: 268 seconds]
last_staff1 is now known as last_staff
naftilos76 has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
sdothum has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
uglybandersnatch has joined #ruby
vondruch has joined #ruby
f4cl3y has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
Aviio has joined #ruby
mrgrieve1 has joined #ruby
mrgrieve1 has quit [Client Quit]
mrgrieve1 has joined #ruby
Vlat- has quit [Quit: Vlat-]
sdothum has quit [Ping timeout: 264 seconds]
b|ackwolf has joined #ruby
rmulliga` has joined #ruby
bronson has joined #ruby
Vlat- has joined #ruby
mrgrieve1 has quit [Client Quit]
aupadhye has joined #ruby
walcha has left #ruby [#ruby]
CloCkWeRX has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
Vlat- has quit [Client Quit]
ascarter has quit [Max SendQ exceeded]
LoneHermit has quit [Ping timeout: 240 seconds]
rmulliga` has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
igam has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
ascarter has quit [Max SendQ exceeded]
uglybandersnatch has quit [Ping timeout: 276 seconds]
sdothum has joined #ruby
ascarter has joined #ruby
swills has quit [Ping timeout: 276 seconds]
djellemah has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
davee_ has quit [Quit: Leaving]
kobain has joined #ruby
startupality has joined #ruby
CloCkWeRX has joined #ruby
vondruch has joined #ruby
Guest34270 has joined #ruby
<Guest34270> hey
<Guest34270> anyone here?
<apeiros> no
mahk has joined #ruby
<apeiros> anyone isn't here
<Guest34270> come on
<Guest34270> I'm new to ruby
<Guest34270> and really want to learn
<Guest34270> can somebody teach me
<apeiros> cool :) new to irc too then?
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vlat- has joined #ruby
<apeiros> because unless your client sucks balls, it should show you that there's >980 people in here…
<Guest34270> hmm
<Guest34270> however can you teach me
<Guest34270> a friend say me to visit this irc to learn
<apeiros> I can. but I won't. however, I'll help you with questions you have.
<apeiros> maybe somebody in here is willing to teach. but most will prefer to help with problems.
<apeiros> for learning, I'd take a look at one of the various free online materials
<apeiros> ?links
<apeiros> ?books
<ruby[bot]> You can find a list of recommended books at http://ruby-community.com/pages/links
<Guest34270> oh man
<Guest34270> hard to study alone
<Guest34270> i'm just a newbie
roshanavand has joined #ruby
<Guest34270> is ruby on rails better than ruby?
<apeiros> ruby on rails is a tool written in ruby.
<Guest34270> hmm
<Guest34270> people said it easy to learn
<apeiros> ruby is easy to learn, takes time to master
<Guest34270> teach me the basic please
<Guest34270> just the basic,pls
blackgoat has quit [Quit: WeeChat 1.4]
<apeiros> rails… I'm not sure I'd still say rails was easy to learn. but you can get to a point where you can do something useful quickly.
jam__ has joined #ruby
<Guest34270> so nobody willing to teach me
<Guest34270> f***ing sh**
<apeiros> you can wait and see. not everybody reads all the time.
<Guest34270> bye
<apeiros> Guest34270: try the online materials. there's some really good stuff out there.
pawnbox has quit [Remote host closed the connection]
<Guest34270> however thanks for answering
Guest34270 has left #ruby [#ruby]
pawnbox has joined #ruby
BSaboia has joined #ruby
edwinvdgraaf has quit [Ping timeout: 250 seconds]
cjbischof_ has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jam__ has quit [Ping timeout: 264 seconds]
but3k4 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
tubuliferous_ has quit [Ping timeout: 276 seconds]
Aviio has quit [Remote host closed the connection]
shredding has joined #ruby
statelesscode has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang598 has joined #ruby
gagrio|trngn|brb is now known as gagrio|trngn
bricker has joined #ruby
dn` has joined #ruby
Chagel has joined #ruby
<ghormoon> can I make "RAILS_ENV=production bundle exec rails generate active_record:session_migration" print what exactly it does with the database? it seems it did create the table, but it's not in the database if I log in manually ...
djellemah_ has joined #ruby
halfamind has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
<apeiros> ?rails ghormoon
<ruby[bot]> ghormoon: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
halfamind has joined #ruby
`tim` has joined #ruby
vdamewood has joined #ruby
blackmesa has joined #ruby
htmldrum_ has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
bricker has quit [Ping timeout: 252 seconds]
pawnbox_ has joined #ruby
Vile` has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
ruby-lang598 has quit [Quit: Page closed]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
Chagel has quit [Ping timeout: 244 seconds]
merida_ has quit [Read error: Connection reset by peer]
merida has quit [Read error: Connection reset by peer]
Chagel has joined #ruby
swills has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
startupality has quit [Quit: startupality]
joonty has quit [Ping timeout: 248 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
CloCkWeRX has joined #ruby
andywojo has joined #ruby
bob434 has joined #ruby
lkba has joined #ruby
bob434 has quit [Client Quit]
krzkrz has joined #ruby
startupality has joined #ruby
Chagel has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
Aviio has joined #ruby
Aviio has quit [Remote host closed the connection]
djellemah_ has quit [Quit: Leaving]
djellemah has joined #ruby
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
nobitanobi has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
futilegames has joined #ruby
sandbags has joined #ruby
rmulliga` has joined #ruby
last_staff1 has joined #ruby
startupality has quit [Quit: startupality]
djcp has joined #ruby
sandbags has quit [Client Quit]
ChiefAlexander has joined #ruby
sandbags has joined #ruby
sandbags has quit [Client Quit]
last_staff has quit [Ping timeout: 240 seconds]
last_staff1 is now known as last_staff
rmulliga` has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
cjbischof_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum_ has quit [Ping timeout: 276 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
ElFerna has joined #ruby
aryaching has joined #ruby
IrishGringo has joined #ruby
LoneHermit has joined #ruby
davee_ has joined #ruby
pawnbox__ has joined #ruby
sandbags has joined #ruby
pawnbox_ has quit [Ping timeout: 264 seconds]
nertzy has quit [Quit: Leaving]
idefine has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
mfaeh has joined #ruby
joonty has joined #ruby
<ghr> I want to create a sort of dictionary of allowed terms for value objects. Could anyone give me some suggestions on how to go about this? https://gist.github.com/garethrees/7a1d70931cb5e8031fe4
sandbags has quit [Read error: Connection reset by peer]
<ghr> my initial thinking was something like https://gist.github.com/anonymous/d46749ee4f25d91e10c5
aryaching has quit [Ping timeout: 244 seconds]
<ghr> but that gets complicated because you need category and event, rather than one value
sandbags has joined #ruby
idefine has quit [Ping timeout: 276 seconds]
MrDoctor has quit [Quit: Konversation terminated!]
millerti has joined #ruby
LoneHermit has quit [Ping timeout: 276 seconds]
b|ackwolf has quit [Ping timeout: 268 seconds]
mary5030 has joined #ruby
Devalo has joined #ruby
aryaching has joined #ruby
nertzy has joined #ruby
kies has quit [Ping timeout: 244 seconds]
kahn_dumb has quit [Ping timeout: 240 seconds]
tubuliferous_ has joined #ruby
bluOxigen has joined #ruby
jrafanie has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
duckpuppy has quit [Ping timeout: 248 seconds]
treehug88 has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
pandaant has joined #ruby
schemanic has joined #ruby
<schemanic> Hello
HisShadow has joined #ruby
SenpaiSilver has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
<schemanic> I'm using open3.popen to call psql and I'm not understanding the docs on how to pass arguments to the external program being called
<HisShadow> Hello. Can someone explain how this works: http://pastebin.com/dAzSnaNB ?
<ruby[bot]> HisShadow: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/85e8ed59c946039f09b5
<ruby[bot]> HisShadow: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
rbennacer has joined #ruby
idefine has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<schemanic> right now I'm seeing that open3.popen3 seems to only want a string for options being passed to the command. Is this true?
thevaliantx has joined #ruby
SG045734 has joined #ruby
SG045734 has quit [Client Quit]
SG045734 has joined #ruby
<ghr> schemanic looks like it can accept an array to me http://ruby-doc.org/stdlib-2.2.0/libdoc/open3/rdoc/Open3.html#method-c-popen3
SG045734 has quit [Client Quit]
<ghr> The parameters env, cmd, and opts are passed to Process.spawn. A commandline string and a list of argument strings can be accepted as follows: Open3.popen3(["echo", "argv0"], "abc") {|i, o, e, t| ... }
jcdesimp has joined #ruby
SG045734 has joined #ruby
timonv1 has quit [Quit: WeeChat 1.4]
timonv has joined #ruby
pandaant has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
saneax is now known as saneax_AFK
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> HisShadow: ruby considers `<<-SQL` to be the string
nobitanobi has quit [Remote host closed the connection]
<ghr> schemanic yeah, take a look at "Method #6: Open3" here https://devver.wordpress.com/2009/10/12/ruby-subprocesses-part_3/
<schemanic> ghr, Im sorry Im just so new to ruby that I'm not understanding how what you've posted constitutes a list
<HisShadow> apeiros: what I mean is, how is the rest of the string can be outside the function call
<apeiros> but the contents of the string starts right after that line and ends at the SQL token
<schemanic> like, I see ["echo", "argv0"] as a list
<apeiros> HisShadow: yes. ^. it's called here-doc.
ElFerna has quit [Quit: Textual IRC Client: www.textualapp.com]
<HisShadow> apeiros: but I figured it out with google, thanks
pandaant has joined #ruby
SCHAAP137 has joined #ruby
krzkrz has quit [Read error: Connection reset by peer]
SG045734 has quit [Client Quit]
HisShadow has left #ruby [#ruby]
nobitanobi has joined #ruby
stannard has joined #ruby
<schemanic> so ghr, in the example you posted, can you tell me what "abc" is? because I'm understanding it to be trying to echo argv0 and that abc is unrelated
stannard has quit [Remote host closed the connection]
freerobby has joined #ruby
stannard has joined #ruby
jcdesimp has quit [Ping timeout: 250 seconds]
<ghr> no idea tbh!
Devalo has quit [Remote host closed the connection]
<ghr> it looks like you can just keep supplying string args like that ^
<ghr> I'm not super familiar with Open3
blackmesa has joined #ruby
bricker has quit [Ping timeout: 260 seconds]
<schemanic> ghr, wait...
millerti has joined #ruby
<schemanic> when it says Open3.popen3(<THIS STUFF>), is THIS STUFF an actual array literal?
<schemanic> like should I be saying Open3.popen3(["ls", "-1a"], "somethingelse")
<ghr> You need to splat the array:
<ghr> Open3.popen3(*['ls', '-al']) do |stdin, stdout, stderr|
<schemanic> what does 'splat' mean?
<schemanic> nvm
<schemanic> what I'm asking is if the brackets are actually the notation indicated or if the way I'm supposed to write the statement is just Open3.popen3(cmd, arg1, arg2, arg3, etc)
Gasher has joined #ruby
<ytti> it is so annoying that the wrong way to run external commands is easy
fexilal has joined #ruby
<ytti> and the correct way to run them is hard
mary5030 has quit [Ping timeout: 248 seconds]
<ghr> yeah, pretty confusing
nando293921 has joined #ruby
<ghr> schemanic I think you just want to write them as you've just stated
<ytti> languages should have like stdout, stderr = foo(command, arg1, arg2...) as default
merida has joined #ruby
<ytti> and then some osbscure foo_with_shell_expansion("command arg1 arg2)
mary5030 has joined #ruby
<ghr> but you can do `Open3.popen3(["echo", "argv0"], "a") {|i, o, e, t| ... }` – which looks like it makes a difference that you have an array, followed by strings
<schemanic> but what the hell is that
<ytti> because almost never programmer actually needs the shell expenasion, but most programmers don't understand this security issue, and continue using the easiest way to do it
<schemanic> like, why is there a list first and then a string?
<ytti> system() should be hard execv() should be easy
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<schemanic> if the same thing can be written ("echo", "argv0", "a")
blackmesa has quit [Ping timeout: 268 seconds]
<schemanic> am I understanding that right that both of those work?
Devalo has joined #ruby
mahk has quit [Quit: mahk]
millerti has joined #ruby
rmulliga` has joined #ruby
Mattx has joined #ruby
<Mattx> I18n.transliterate(`whois fanzinc.com`).split => ArgumentError: invalid byte sequence in UTF-8
<Mattx> What's wrong with this ^ ?
<Mattx> I thought I18n.transliterate would solve the invalid byte sequence, but it's the same with or without it
millerti has quit [Max SendQ exceeded]
<Mattx> fanzinc.com is just an example, I'm getting the same for other domains too
<apeiros> ?rails Mattx
<ruby[bot]> Mattx: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<Mattx> it's not a rails question
<apeiros> I18n is part of what Mattx?
bweston92 has quit [Read error: Connection reset by peer]
<Mattx> don't know, but I said it's the same with or without it
<djellemah> schemanic: afaik 'echo' is the command, 'argv0' is the name you'll see in top and ps. That's rarely used though, so the array form is optional.
<adaedra> errrr technically
<Mattx> `whois fanzinc.com`.split => ArgumentError: invalid byte sequence in UTF-8
<Mattx> :)
<schemanic> OH
<SebastianThorn> lol
Devalo has quit [Ping timeout: 276 seconds]
<schemanic> Okay, so the first grouping isn't meant to group a command and it's arguments
bweston92 has joined #ruby
<schemanic> it's to assign a name to the command by supplying a value which is positional to the command
<schemanic> am I right?
<apeiros> Mattx: so your Encoding settings are such that you expect utf-8 back from shell-out but you don't get actually do get utf-8 back
<apeiros> -get
IrishGringo has quit [Ping timeout: 240 seconds]
<djellemah> schemanic: pretty much. If you just want to specify the command name, use a single string.
<apeiros> and split is one of those string methods which needs a valid encoding in order to work.
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Mattx> yep, that's what I thought but I also tried with .encode and .force_encoding and it's the same
<schemanic> djellemah, that helped alot
<Mattx> I guess it's not the correct way to change the encoding (?)
<djellemah> ;-)
<apeiros> Mattx: yeah, trying to push puzzle pieces into a spot doesn't solve a puzzle.
rmulliga` has quit [Ping timeout: 250 seconds]
uri_ has joined #ruby
FooMunki has quit [Quit: FooMunki]
b|ackwolf has joined #ruby
<Mattx> I read that somewhere on the internet, then I found about I18n too
<schemanic> I'm coming from low level python, perl, powershell. I've been writing in JS for about 2 years since that too so this is quasi familiar but super confusing
<apeiros> .encode works IFF the string's .encoding is set correctly. it will translate from one to the other encoding.
FooMunki has joined #ruby
skade has joined #ruby
<apeiros> .force_encoding ONLY changes the meta-information, which in which encoding the string is currently encoded. it does NOT change the actual bytes.
<apeiros> i.e. .force_encoding is for when you failed to tell ruby which encoding your source uses when reading input.
freerobby has quit [Quit: Leaving.]
<shevy> so complicated!
freerobby has joined #ruby
weemsledeux has joined #ruby
_stu_ has joined #ruby
floatingpoint has joined #ruby
brendan- has joined #ruby
yokel has quit [Ping timeout: 276 seconds]
AlexRussia has joined #ruby
aupadhye has quit [Quit: Leaving]
yokel has joined #ruby
<djellemah> schemanic: yeah ruby has some shortcuts and syntax sugar that can be confusing in this context. And these system calls have been around since the dawn of ruby-time. So they're a bit, uhm, crufty sometimes.
aupadhye has joined #ruby
idle_task has joined #ruby
idletask has quit [Disconnected by services]
idle_task is now known as idletask
floatingpoint has quit [Max SendQ exceeded]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
floatingpoint has joined #ruby
idefine has quit [Remote host closed the connection]
<Mattx> apeiros, I'll use rchardet or coder, thanks for the article
<apeiros> Mattx: uh. I guess it wasn't good enough if you use rchardet for your problem.
<apeiros> I mean - how can you not know which encoding your shell commands emit?
configged has joined #ruby
RegulationD has joined #ruby
<Mattx> I guess I'll use coder not rchardet at the end, I only want to extract the registration date from the whois data
<Mattx> the shell is using utf8, I'm only getting errors in a few domains
<Mattx> or so I think
<Mattx> anyway, I don't want to depend on the config/shell in which the script runs, I'll remove invalid chars
fullofcaffeine has joined #ruby
idefine has joined #ruby
<Mattx> do you get a result in your well-configured shell for `whois fanzinc.com`.split ?
<apeiros> I treat shell data as binary unless I know what it is. and then yes, I do get a result.
<Mattx> what do you mean? how exaclty are you running it to get a result?
RegulationD has quit [Ping timeout: 240 seconds]
<apeiros> the easiest way for you: `whois x`.b.split
bry4n has joined #ruby
<apeiros> split seems a poor choice to extract the registration date, though.
naftilos76 has joined #ruby
<Mattx> I'm using [], it was just an example
naftilos76 has quit [Client Quit]
djellemah has quit [Ping timeout: 244 seconds]
<Mattx> so .b converts the string to binary, regardless of the previous encoding
idefine has quit [Read error: Connection reset by peer]
floatingpoint has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> no. it converts nothing.
<apeiros> it's equivalent to .dup.force_encoding('binary')
<Mattx> right
<apeiros> it's important to understand the difference between actual conversion and just changing the encoding flag.
rbennacer has quit [Ping timeout: 240 seconds]
floatingpoint has joined #ruby
noService has quit [Ping timeout: 246 seconds]
<Mattx> I'm not getting something, because you change the encoding flag to binary, but the byte sequence doesn't change
<Mattx> so then why does it work if you do .encode("utf-8").split?
skweek has joined #ruby
<Mattx> `...`.b.encode("utf-8").split
<Mattx> .encode should fail, but I'm missing something probably beause it doesn't
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
idefine has joined #ruby
Guest5 has joined #ruby
idefine has quit [Remote host closed the connection]
<Mattx> apeiros, do you get what I mean?
ChiefAlexander has quit [Remote host closed the connection]
jorum has quit [Quit: Lost terminal]
croberts has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
jam__ has joined #ruby
jdawgaz has joined #ruby
dhollinger has joined #ruby
uri_ has quit [Quit: --]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crowell has quit [Ping timeout: 260 seconds]
Guest5 has quit [Quit: Textual IRC Client: www.textualapp.com]
mallu has joined #ruby
merida has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
`tim` has joined #ruby
jam__ has quit [Ping timeout: 244 seconds]
nando293921 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Client Quit]
kies has joined #ruby
freerobby has quit [Quit: Leaving.]
idefine has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
ChiefAlexander has joined #ruby
crowell has joined #ruby
<shevy> hmm... anyone knows why "foo, bar = some_method_returning_an_array" will give a warning if foo or bar is not used, but not if one is named _ ? like _, bar = some_method ... the _ will not yield a warning
<Elysia> shevy: _ is a common denotation for "we won't use this variable"
idefine has quit [Remote host closed the connection]
<Elysia> it's mostly related to the IDE though, I thought
bricker has joined #ruby
<Elysia> (so basically, you want your first variable to be named _foo if you know you won't use it)
statelesscode has quit [Quit: statelesscode]
<shevy> oh... _foo also won't trigger a warning? lemme try
<Elysia> yeah, it just has to start with an underscore
<apeiros> Mattx: if it's still the same text, then yes, the .encode will fail
<Elysia> i've used it while mid-process of developing something or when I needed just the key of a |key, _value| loop
<apeiros> Mattx: and it actually does for me, at the point I expected it to ("M\xe1laga")
pulpfiction has quit [Quit: Leaving]
<shevy> Elysia yeah just tried. bit weird but ok, I am looking at some long script written by someone else, old code, lots of unusued variables there, lots of warnings triggered by ruby -w ... just prefing with a _ seems to suppress at least that warning, now on to the few other dozen warnings :D
<apeiros> encode from binary to utf-8 only works for data where all bytes are between 0x00 and 0x7f
<Elysia> shevy: lucky you, working in them glorious legacy codes!
idefine has joined #ruby
<Elysia> I think rubocop --auto-correct does the same
<shevy> rubocop is quite good but I found that it does not auto-correct everything :(
<Elysia> unfortunately :P
freerobby has joined #ruby
<Elysia> Sometimes it needs a human. Else we'd be out of a job!
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
Jardayn has joined #ruby
<adaedra> worst, sometimes it correct things incorrectly
rmulliga` has joined #ruby
<shevy> like a human developer!
<shevy> a coworker
idefine has quit [Remote host closed the connection]
<apeiros> does a human developer develop humans?
idefine has joined #ruby
<rik> apeiros: i think that's called pregnancy.
<apeiros> I thought "teacher"
<adaedra>
shredding has quit [Ping timeout: 276 seconds]
<apeiros> sometimes "irc op"
<shevy> haha ... another quote for my quotes collection
mango-habanero has joined #ruby
cjbischof_ has joined #ruby
<adaedra> Aah, the quote collections.
dionysus69 has joined #ruby
<adaedra> We don't stop hearing about it but never see it.
<apeiros> it's like one of my software projects!
<Mattx> nope, apeiros, this works for me: `whois fanzinc.com`.b.encode("utf-8").split
<apeiros> Mattx: your ruby version?
rmulliga` has quit [Ping timeout: 260 seconds]
<Mattx> 2.2.4p230
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> hm
P4Titan has joined #ruby
<apeiros> surprising.
<Mattx> your version?
<apeiros> 2.3.0
<adaedra> apeiros:
<apeiros> I don't have 2.2.4, but both 2.3.0 as well as 2.2.2 give me `Encoding::UndefinedConversionError: "\xE1" from ASCII-8BIT to UTF-8`
<P4Titan> Hello all. If I want to make a form on a webpage, which is preferred, using form_tag or using form_for, but with a table-less model?
<hanmac> P4Titan: #rubyonrails ?
JakFrist has joined #ruby
<P4Titan> oops
<P4Titan> wrong irc
<P4Titan> well, does anyone here know?
mondok has joined #ruby
<Mattx> weird
<apeiros> indeed.
<apeiros> Mattx: `whois fanzinc.com`.b.include?("\xe1")
<Mattx> `whois fanzinc.com`.b == `whois fanzinc.com` => false
<sandelius> P4Titan form_for when you have an ActiveRecord object and form_tag when you don't have an one xD
<Mattx> apeiros, false
<apeiros> your whois changed :D
IvanSuftin has joined #ruby
<Mattx> wtf?
<Mattx> now `...`.split works WTF
<P4Titan> sandelius: I see
<apeiros> as I said - your whois response probably changed.
<adaedra> Mattx: note that whois may be throttled.
<IvanSuftin> So... Why would "log(value_i_know_exists.nil?)" actually return nil?
<Mattx> ok, I'll go with .b.split then, thanks
<IvanSuftin> (disregard my log function)
<apeiros> IvanSuftin: because value_i_know_exists.nil? uses a broken .nil? implementation?
<apeiros> even more so since .nil? is supposed to return true/false
<IvanSuftin> value_i_know_exists is a string. Is there a better way to check for a variable (string) being a nil value?
<apeiros> IvanSuftin: you have another problem.
<schemanic> hey if I want to include a splatted array in a string whats the right way to write it?
<schemanic> like this? string = "#{*myArr}"
<apeiros> if somestring.nil? returns nil, you have some rather broken code somewhere.
idefine has quit [Remote host closed the connection]
<IvanSuftin> apeiros: Hm. I'm not sure what else it could be. Checking...
<apeiros> schemanic: you include a string into a string. not other datastructures. you convert other datastructures to string. so first figure how you want that data represented as a string.
speakingcode has joined #ruby
<schemanic> I have to iterate through the splatted array and append to the string then?
<apeiros> IvanSuftin: a) are you sure `value_i_know_exists.nil?` actually returns nil? because as said, true/false is what it's supposed to return
rkazak has joined #ruby
idefine has joined #ruby
Noxilex has quit [Ping timeout: 248 seconds]
<apeiros> schemanic: no. the notion "insert a splatted array into a string" just makes no sense. maybe explain what you want to achieve instead.
<apeiros> I *somewhat* guess you want .join(', ')
sarlalian has joined #ruby
astrobun_ has joined #ruby
tubuliferous_ has joined #ruby
<IvanSuftin> Yeah, so I have "value_i_know_exists.class" logging as String. I also log its value which shows up properly. Then the .nil? check on the next line returns nil :/
<schemanic> if myArr = ["x", "y", "z"] and I want a string that says "x, y, z"
fullofcaffeine has quit [Remote host closed the connection]
<mango-habanero> my_arr.join(',')
<apeiros> schemanic: yeah, then as said, join
<apeiros> and that's not a splatted array
duckpuppy has joined #ruby
<IvanSuftin> Wait...
<apeiros> splatting deals with how assignments work. either in an actual assignment operation, an assignment-method call, or when invoking a method.
fullofcaffeine has joined #ruby
<IvanSuftin> It doesn't look like String has a nil? function
<apeiros> IvanSuftin: that's because it doesn't need one. inheritance.
<apeiros> >> "".method(:nil?).owner
<ruby[bot]> apeiros: # => Kernel (https://eval.in/540515)
<IvanSuftin> apeiros: ok, so it will inherit that...
slawrence00 has joined #ruby
<IvanSuftin> Hm, String inherits from Object which also doesn't seem to have a nil? function..
<IvanSuftin> oh wait
<IvanSuftin> it does
<apeiros> IvanSuftin: given that only NilClass#nil? returns true, that makes sense, doesn't it?
<IvanSuftin> can't read :/
jdawgaz has joined #ruby
<shevy> :D
thevaliantx has quit [Quit: Leaving]
<IvanSuftin> Ok then yeah this is bizarre...
nhhc has quit [Ping timeout: 260 seconds]
<apeiros> IvanSuftin: log `value_i_know_exists.method(:nil?).owner`
<IvanSuftin> k 1 sec
<IvanSuftin> Kernel
idefine has quit [Remote host closed the connection]
lkba has quit [Remote host closed the connection]
agentmeerkat has joined #ruby
<IvanSuftin> heh, value_i_know_exists.nil? == nil also returs nil :/
RegulationD has joined #ruby
x77686d has joined #ruby
<apeiros> IvanSuftin: and `value_i_know_exists.method(:nil?).source_location` ?
dubek has joined #ruby
<apeiros> if that returns nil too, I'd suggest you gist the code in question
<apeiros> (nil here would mean it's actually the native C implementation, but that version should work correctly and not return nil)
<IvanSuftin> apeiros: nil :(
<IvanSuftin> This is a Chef recipe but I'll gist it
<IvanSuftin> or the relevant part anyway
dopie has joined #ruby
Gasher has quit [Quit: Leaving]
cpruitt has joined #ruby
Mattx has quit [Quit: Leaving]
sneakerhax has quit [Read error: Connection reset by peer]
chouhoul_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 268 seconds]
idefine has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
halfamind has joined #ruby
Gasher has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
<IvanSuftin> Hm, I also notice on line 4 I do pull a string out of `config['name']` to a `name` variable but then later check `config[name].nil?` and it's true
<IvanSuftin> Hm
krzkrz has joined #ruby
griffindy has joined #ruby
bitri has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
<IvanSuftin> Also, it's now showing nil for source location :/
tomatoes has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
<apeiros> source_location nil would be expected for the proper .nil? implementation (native methods don't report their source location)
babblebre has joined #ruby
mondok has quit [Ping timeout: 276 seconds]
noService has joined #ruby
aupadhye has quit [Ping timeout: 276 seconds]
idefine has quit [Ping timeout: 260 seconds]
kalimotxo has joined #ruby
mango-habanero has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
mango-habanero has joined #ruby
tubuliferous_ has joined #ruby
<glacius> hi guys
codecop has quit [Remote host closed the connection]
<apeiros> glacius: hi gal
<glacius> I have a quick question could someone suggest a good library for parsing fixed width text files
kalimotxo has quit [Quit: Leaving]
<shevy> csv?
<apeiros> glacius: String#scan
<glacius> apeiros: shevynot comma delimeted,these are fixed width
<glacius> apeiros: they are not comma delimeted,these are fixed width
<apeiros> yes, understood that. still #scan.
WebDawg has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
davee_ has quit [Ping timeout: 240 seconds]
<glacius> shevy: : they are not comma delimeted,these are fixed width
<glacius> apeiros: let me look at scan
<apeiros> assuming you have the column widths: data.scan(/#{widths.map { |width| "(.{#{width}})"}/)
idefine has joined #ruby
<apeiros> where `data` contains your data, and `widths` is an array of the column-widths
<apeiros> will need some postprocessing to strip the padding
cdarne has joined #ruby
zast has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has joined #ruby
cdarne has left #ruby [#ruby]
baweaver has quit [Remote host closed the connection]
pawnbox has joined #ruby
kalimotxo has joined #ruby
<apeiros> while a regex to parse position based data may seem like overkill - the fact that you'll remain in a single natively implemented method will almost certainly make it faster than another solution.
pawnbox__ has quit [Ping timeout: 250 seconds]
_stu_ has quit [Quit: _stu_]
stunder001 has joined #ruby
Vlat- has quit [Quit: Vlat-]
bMalum has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<glacius> apeiros: taking a look now and yes i do have the widths
geekbri has joined #ruby
<apeiros> glacius: are the fields padded?
<glacius> apeiros: yes, with spaces
<apeiros> hm, ok
<havenwood> hi glacius
<apeiros> .map { |row| row.map(&:strip) } # to remove the padding. potentially lstrip/rstrip
rmulliga` has joined #ruby
<havenwood> ahh, scrollback!
tubuliferous_ has quit [Ping timeout: 246 seconds]
<glacius> havenwood: Hello
aganov has quit [Quit: Leaving]
_stu_ has joined #ruby
terminal_ has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
nobitanobi has joined #ruby
<glacius> apeiros: thanks for the tip,gonna check it out
idefine has joined #ruby
chipotle has joined #ruby
rmulliga` has quit [Ping timeout: 264 seconds]
idefine has quit [Remote host closed the connection]
Vlat- has joined #ruby
<apeiros> hmmm, actually… I don't remember whether I tried String#unpack (with the "A" directive).
jottr has joined #ruby
duckpuppy has quit [Quit: WeeChat 1.4]
bluOxigen has quit [Remote host closed the connection]
idefine has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
tacit7 has joined #ruby
noService has quit [Ping timeout: 246 seconds]
<morfin> is unpack similar to stuff i saw in PHP?
tubuliferous_ has joined #ruby
<apeiros> look up both docs and compare?
idefine has quit [Remote host closed the connection]
terminal_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<morfin> >> "test".pack("C*")
<ruby[bot]> morfin: # => undefined method `pack' for "test":String ...check link for more (https://eval.in/540536)
<morfin> what
<apeiros> it's quite likely that php has an unpack similar to ruby's
<apeiros> they'd both have inherited it from perl
bluOxigen has joined #ruby
<morfin> i thought there should be pack
<apeiros> you don't pack strings. you pack arrays.
<apeiros> you unpack strings (and get an array)
<morfin> oh of course )
marxarelli has joined #ruby
VeryBewitching has joined #ruby
<morfin> ["h","i"].pack("C*")
<morfin> >> ["h","i"].pack("C*")
<ruby[bot]> morfin: # => no implicit conversion of String into Integer (TypeError) ...check link for more (https://eval.in/540537)
<VeryBewitching> G'day folks.
<apeiros> ?experiment morfin
<ruby[bot]> morfin: Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
bezhermoso has joined #ruby
<morfin> yes yes i know, just tested
<apeiros> I know. which is why I told you to just test elsewhere :-p
bezhermoso has quit [Client Quit]
stardiviner has quit [Ping timeout: 240 seconds]
P4Titan has quit [Ping timeout: 268 seconds]
<morfin> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
dfas has joined #ruby
b|ackwolf has quit [Ping timeout: 244 seconds]
<morfin> irb btw is strange thing :)
baweaver has joined #ruby
<dfas> Hi guys - does anyone here know of a video training equivalent of Sandi Metz's POODR book?
Jardayn has quit [Read error: Connection reset by peer]
<morfin> not sure why it define functions as private methods of main
ndg has joined #ruby
<dfas> or video training of SOLID using Ruby?
davedev24 has joined #ruby
nando293921 has joined #ruby
DominicBurford has joined #ruby
ruby-lang508 has joined #ruby
DominicBurford has quit [Client Quit]
rodfersou is now known as rodfersou|lunch
chouhoul_ has quit [Remote host closed the connection]
ndg has quit [Client Quit]
ruby-lang508 has quit [Client Quit]
nerium has quit [Quit: nerium]
chouhoulis has joined #ruby
ruby-lang968 has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
[Butch] has joined #ruby
gregf has quit [Quit: WeeChat 1.4]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
chipotle has quit [Quit: cheerio]
baweaver has quit [Remote host closed the connection]
Gasher has quit [Quit: Leaving]
amclain has joined #ruby
qqCore33 has joined #ruby
Zackio has quit [Read error: Connection reset by peer]
<qqCore33> is this a ruby thing? If so, how do I extract it into the HTML ?
<qqCore33> I never dealt with ruby in my life
Zackio has joined #ruby
decoponio has joined #ruby
<morfin> seems like that's rails app
nerium has joined #ruby
dopie has quit [Quit: Lost terminal]
<qqCore33> morfin: it should be a html template
rkazak has quit [Ping timeout: 260 seconds]
<morfin> it's whole application
<qqCore33> morfin: but I found it on templates site, then I've found out it's open source, but I don't get how do I get the HTML files?
<ghr> Does anyone have any idea how nokogiri parse options work under the hood? https://github.com/sparklemotion/nokogiri/blob/master/lib/nokogiri/xml/parse_options.rb
<ghr> I can see they're constants containing Integers. How do they map to different behaviours?
uglybandersnatch has joined #ruby
<apeiros> ghr: they map to bits in an integer
bronson has joined #ruby
<apeiros> say `NOENT | DTDLOAD`, that sets bits 1 and 2, all other bits are not set.
Vlat-_ has joined #ruby
Vlat-_ has quit [Client Quit]
<morfin> i saw that in libmx
Synthead has quit [Read error: Connection reset by peer]
<morfin> libxml
<morfin> ah it's using libxml2 under the hood :)
hk238 has joined #ruby
<ghr> ah, so that probably explains why they do it that way
WebDawgII has joined #ruby
<morfin> basically as i know libxml2 is C and have defines for options(constants)
Vlat- has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 268 seconds]
uglybandersnatch has quit [Ping timeout: 240 seconds]
yokel has quit [Ping timeout: 260 seconds]
pawnbox_ has joined #ruby
jhack has joined #ruby
yokel has joined #ruby
maya-migo has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
bezhermoso has joined #ruby
<ruby-lang968> Anyone know any good frameworks (apart from "bourbon neat") to implement grids for user posts?
pawnbox has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
naftilos76 has joined #ruby
<ghr> so does nokogiri then just pass the resulting bit sequence to libxml to say "use these options"?
WebDawgII has quit [Ping timeout: 260 seconds]
nofacade has joined #ruby
ruby-lang968 has quit [Quit: Page closed]
merida has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
maya-migo has quit [Quit: Leaving]
griffindy has joined #ruby
d0nn1e has joined #ruby
ivanskie has joined #ruby
ojss has joined #ruby
skweek has quit [Ping timeout: 244 seconds]
dhollinger has quit [Ping timeout: 252 seconds]
sandbird has quit [Ping timeout: 260 seconds]
dbford has joined #ruby
shinnya has joined #ruby
ojss has left #ruby [#ruby]
jam__ has joined #ruby
ojss has joined #ruby
<ojss> hello
qqCore33 has quit [Quit: Page closed]
kam270 has quit [Ping timeout: 248 seconds]
blackms has joined #ruby
bMalum has quit [Ping timeout: 244 seconds]
n008f4g_ has joined #ruby
siaw has quit [Quit: siaw]
ojss has left #ruby [#ruby]
<dbford> hi
<apeiros> ghr: I'd have to read the code just like you - but almost certainly yes
ojas has joined #ruby
<ghr> apeiros cheers. I have been looking at it, but I found it a bit brain-exploding :)
SCHAAP137 has quit [Remote host closed the connection]
jam__ has quit [Ping timeout: 244 seconds]
ojas is now known as ojss
Guest38 has joined #ruby
troulouliou_div2 has joined #ruby
ascarter has joined #ruby
scepticulous has quit [Ping timeout: 252 seconds]
ramfjord has quit [Ping timeout: 260 seconds]
nerium has quit [Quit: nerium]
jdawgaz has joined #ruby
ojss is now known as ojas
maletor has joined #ruby
rmulliga` has joined #ruby
rcvalle has joined #ruby
ojas is now known as ojss
merida_ has joined #ruby
ascarter has quit [Client Quit]
symm- has joined #ruby
trinaldi has quit [Ping timeout: 246 seconds]
merida has quit [Ping timeout: 264 seconds]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
rmulliga` has quit [Ping timeout: 246 seconds]
pandaant has quit [Quit: Lost terminal]
devbug has joined #ruby
Salve has joined #ruby
x77686d has quit [Quit: x77686d]
cdg has quit [Remote host closed the connection]
ojss has quit [Ping timeout: 252 seconds]
yuung has joined #ruby
dhollinger has joined #ruby
LoneHerm_ has joined #ruby
qweqeq has joined #ruby
mallu has joined #ruby
davedev2_ has joined #ruby
davedev2_ has quit [Remote host closed the connection]
kalimotxo has quit [Ping timeout: 250 seconds]
davedev24 has quit [Ping timeout: 268 seconds]
davedev2_ has joined #ruby
hahuang61 has joined #ruby
andikr has quit [Remote host closed the connection]
qweqeq has quit [Client Quit]
<dbford> Hello
Don_John has joined #ruby
LoneHerm_ has quit [Ping timeout: 244 seconds]
dbford has left #ruby [#ruby]
Don_John has quit [Max SendQ exceeded]
Don_John has joined #ruby
tacit7 has quit [Ping timeout: 244 seconds]
halfamind has quit [Quit: Leaving.]
djellemah has joined #ruby
halfamind has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Don_John has quit [Max SendQ exceeded]
haylon has joined #ruby
dikaio has joined #ruby
Don_John has joined #ruby
mondok has joined #ruby
DroidBurgundy has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
astrobun_ has quit [Remote host closed the connection]
trinaldi has joined #ruby
djbkd has joined #ruby
mleung has joined #ruby
ascarter has joined #ruby
axl_ has joined #ruby
Don_John has quit [Max SendQ exceeded]
Don_John has joined #ruby
jaruga_ has quit [Quit: jaruga_]
tacit7 has joined #ruby
bronson has joined #ruby
jenrzzz has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
bronson has quit [Read error: Connection reset by peer]
<shevy> semi-off topic; I need to do some screencast of ruby, e. g. typing some commands into a terminal and recording this. Can anyone recommend something that is simple, on linux?
<adaedra> script
bronson has joined #ruby
<shevy> script?
<rik> script
<shevy> interesting, haven't seen that before, thanks
kobain has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
Couch has quit [Ping timeout: 244 seconds]
Snowy has quit [Remote host closed the connection]
<rik> hm
<rik> anyone played with padrino much?
baweaver has quit [Ping timeout: 252 seconds]
joonty has quit [Ping timeout: 244 seconds]
b|ackwolf has joined #ruby
Disavowed has joined #ruby
bob434 has joined #ruby
noService has joined #ruby
skweek has joined #ruby
n008f4g_ has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Quit: Αποχώρησε]
halfamind1 has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
rdark has joined #ruby
sneakerhax has joined #ruby
RegulationD has quit [Remote host closed the connection]
czerasz has joined #ruby
mnrmnaugh has quit [Quit: Leaving]
ramfjord has joined #ruby
mnrmnaugh has joined #ruby
halfamind1 has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
jorum has joined #ruby
citrusfizz has quit [Read error: Connection reset by peer]
citrusfizz has joined #ruby
KensoDev has joined #ruby
th0m_ has joined #ruby
nettoweb has joined #ruby
siaw has joined #ruby
<apeiros> ?ask rik
<ruby[bot]> rik: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
mistermocha has joined #ruby
rmulliga` has joined #ruby
baweaver has joined #ruby
kalimotxo has joined #ruby
<rik> i'm trying to make Padrino connect to sqcipher as the backend database. The problem is that I need to use Sequel's connection_pragmas, and I'm having a hard time figuring out how to tell Padrino how to do this, and I would appreciate an example from someone else who has done this before.
shinnya has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
<rik> google seems to show me that i'm the only one.
baweaver has joined #ruby
hiljusti has quit [*.net *.split]
mistermocha has quit [Ping timeout: 250 seconds]
_stu_ has quit [Quit: _stu_]
baweaver has quit [Remote host closed the connection]
DroidBur_ has joined #ruby
Guest13656 has quit [Quit: leaving]
threh has joined #ruby
gregf has joined #ruby
mrgrieves has quit [Ping timeout: 260 seconds]
DoubleMalt has quit [Ping timeout: 248 seconds]
<shevy> hehe
baweaver has joined #ruby
DroidBurgundy has quit [Ping timeout: 276 seconds]
DroidBur_ has quit [Client Quit]
sepp2k has quit [Quit: Leaving.]
mrgrieves has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 250 seconds]
Mon_Ouie has joined #ruby
elifoster has joined #ruby
trinaldi has quit [Ping timeout: 240 seconds]
devbug has quit [Read error: Connection reset by peer]
norc_ has joined #ruby
mrgrieves has quit [Ping timeout: 244 seconds]
siaw has quit [Quit: siaw]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weaksauce has joined #ruby
ascarter has joined #ruby
evidex has quit [Quit: Lost terminal]
baweaver has quit [Remote host closed the connection]
bMalum has joined #ruby
tomatoes has quit [Ping timeout: 268 seconds]
unshadow has quit [Ping timeout: 244 seconds]
ihsw has joined #ruby
b|ackwolf has quit [Ping timeout: 276 seconds]
<ihsw> hi i'm trying to set use_transactional_fixtures to false but i keep getting an undefined method error -- what gives?
pwnd_nsfw has quit [Read error: Connection reset by peer]
<apeiros> ?rails ihsw
<ruby[bot]> ihsw: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
pwnd_nsfw has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
unshadow has joined #ruby
roshanavand_ has joined #ruby
pwnd_nsfw has joined #ruby
DoubleMalt has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
skade has joined #ruby
pwnd_nsfw has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
roshanavand has quit [Ping timeout: 268 seconds]
nobitanobi has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
ChiefAlexander has joined #ruby
solars has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Client Quit]
ixti has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
JoshGlzBrk has joined #ruby
axl_ has quit [Quit: axl_]
baweaver has joined #ruby
croberts has quit [Ping timeout: 260 seconds]
Mr0rris0 has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
merida_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
Gadgetoid has left #ruby [#ruby]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
tildes has joined #ruby
statelesscode has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mfaeh has quit []
czerasz has quit [Ping timeout: 240 seconds]
jorum has quit [Quit: Lost terminal]
idefine has joined #ruby
fullofca_ has joined #ruby
joonty has joined #ruby
freerobby has quit [Quit: Leaving.]
baweaver has joined #ruby
freerobby has joined #ruby
idefine has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Ping timeout: 252 seconds]
idefine_ has joined #ruby
geekbri has quit []
bMalum has quit [Quit: Textual IRC Client: www.textualapp.com]
kalimotxo has quit [Quit: Leaving]
ixti has joined #ruby
kalimotxo has joined #ruby
nobitano_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 268 seconds]
_stu_ has joined #ruby
idefine_ has quit [Read error: Connection reset by peer]
nobitanobi has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
mark3 has quit [Read error: Connection reset by peer]
ljames has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
nobitano_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
Salve has quit [Remote host closed the connection]
devbug has joined #ruby
RegulationD has joined #ruby
Xiti has quit [Quit: Xiti]
nobitanobi has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
bronson has quit [Ping timeout: 240 seconds]
Xiti has joined #ruby
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
roshanavand_ has quit [Quit: This computer has gone to sleep]
yeticry has quit [Read error: Connection reset by peer]
skweek has quit [Ping timeout: 248 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpup has quit [Ping timeout: 240 seconds]
BSaboia has quit [Ping timeout: 252 seconds]
ascarter has joined #ruby
yeticry has joined #ruby
idefine has quit [Read error: Connection reset by peer]
idefine has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
cpup has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
siaw has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
danielwzd has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
axl_ has joined #ruby
Karix has joined #ruby
kalimotxo has quit [Quit: Leaving]
ivanskie has joined #ruby
sepp2k has joined #ruby
kalimotxo has joined #ruby
Dimik has joined #ruby
x77686d has joined #ruby
SCHAAP137 has joined #ruby
ljames has joined #ruby
davee_ has joined #ruby
mprelude has joined #ruby
apeiros__ has joined #ruby
intrigueD has joined #ruby
dhollinger has joined #ruby
djbkd has quit [Quit: My people need me...]
yeticry has quit [Ping timeout: 240 seconds]
idefine_ has joined #ruby
idefine has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
f0f4r has quit [Ping timeout: 244 seconds]
moeabdol2 has joined #ruby
yeticry has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
idefine has joined #ruby
kalimotxo has quit [Quit: Leaving]
idefine_ has quit [Read error: Connection reset by peer]
kalimotxo has joined #ruby
skweek has joined #ruby
yuung has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
Devalo has joined #ruby
s00pcan has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 276 seconds]
ihsw has left #ruby [#ruby]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vlat- has joined #ruby
[Butch] has joined #ruby
ur5us has joined #ruby
<nofxx> rubygems is out? maintainance?
yeticry has quit [Ping timeout: 276 seconds]
apeiros__ has quit [Remote host closed the connection]
apeiros__ has joined #ruby
PaulCapestany has quit [Quit: .]
Devalo has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
apeiros__ has quit [Read error: Connection reset by peer]
apeiros__ has joined #ruby
jackjackdripper has joined #ruby
Synthead has joined #ruby
PaulCapestany has joined #ruby
idefine has quit [Read error: Connection reset by peer]
evie_hammond has quit [Quit: WeeChat 1.4]
idefine has joined #ruby
mleung has quit [Quit: mleung]
ur5us has quit []
apeiros__ has quit [Ping timeout: 250 seconds]
bezhermo_ has joined #ruby
mleung has joined #ruby
mleung has quit [Client Quit]
howdoi has quit [Quit: Connection closed for inactivity]
bezhermoso has quit [Ping timeout: 276 seconds]
yeticry has joined #ruby
<xpt> shevy: there is also wrapper for script, if you are not alergic to language that has snake in logo https://pypi.python.org/pypi/TermRecord/1.1.3
mleung has joined #ruby
jdawgaz has joined #ruby
croberts has joined #ruby
xatltb has quit [Read error: Connection reset by peer]
yuung has joined #ruby
idefine_ has joined #ruby
Gasher has joined #ruby
Disavowed has quit [Ping timeout: 276 seconds]
nobitano_ has joined #ruby
<floatingpoint> yo. why would I get a "wrong number of arguments (2 for 3)" wen invoking a method if I passed in 3 arguments, and the method signature has a default argument set? signature: def self.files_changed?(first_location, second_location, flags=Hash.new)
idefine has quit [Read error: Connection reset by peer]
jdawgaz has quit [Client Quit]
rodfersou|lunch is now known as rodfersou
idefine_ has quit [Remote host closed the connection]
<rik> because your third argument wasn't a hash?
<nofxx> floatingpoint, strange... how you're calling? sure the meth is not getting overwritten?
evie_hammond has joined #ruby
<nofxx> or what rik said because you didn't post the insides
edwinvdgraaf has joined #ruby
<nofxx> xpt, choosing software by the logo always works
<floatingpoint> rik no third arugment
nobitanobi has quit [Ping timeout: 260 seconds]
<floatingpoint> i think i know what's wrong. thanks nofxx!
<nofxx> a nice precious stone or a disgusting snake? A prankful dolphin or a elephant that never forgets for you data?
edwinvdgraaf has quit [Remote host closed the connection]
pawnbox_ has quit [Remote host closed the connection]
davee_ has quit [Quit: Leaving]
edwinvdgraaf has joined #ruby
<ytti> 'gem install local_file' is slow for me, due to HTTPS GET stuff it does takes time
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nofxx> kidding apart, the logo also shows there's love in it. Only exception will be linux, GNU logos... =D
<ytti> is there some commmand line switch to ignore those
baweaver has joined #ruby
yuung has quit [Ping timeout: 260 seconds]
<xpt> nofxx: I know. I use soft with jewels in logo cause they are neat
<ytti> like takes maybe 2min before it starts installing the software
<nofxx> and of course, paid stuff that has same budget for design as for code... but nobody uses paid stuff anyways =D
yfeldblum has joined #ruby
zacts has joined #ruby
<nofxx> ytti, here too.. guess they are updating or fixing
nobitano_ has quit [Remote host closed the connection]
joonty has joined #ruby
<zacts> hi rubyists
<ytti> nofxx, as a professinal procrastinator i find this unacceptable, it gives me excuse not to work
mdelgadonyc has joined #ruby
john__ has joined #ruby
<john__> hello
pawnbox has joined #ruby
<john__> I'm trying to install ruby on mint17 for the first time and I found on the web, that I should install rbev first. I got to some point and got stuck at this:"Modify your ~/.bashrc instead of ~/.bash_profile.". How do I do that?
futilegames has quit [Quit: futilegames]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
<nofxx> john__, isn't mint archlinux based? you use pacman no?
<john__> nofxx: ubuntu. apt-get.
<tobiasvl> then debian
baweaver has quit [Ping timeout: 250 seconds]
edwinvdg_ has joined #ruby
norc_ has quit [Ping timeout: 240 seconds]
<darix> john__: why not use the distro package?
<tobiasvl> john__: how do you edit a text file instead of another text file? what's your question
<nofxx> john__, ah, use the repo than. Way easier than rbenv/ ruby switch stuff
<nofxx> darix, debian: read OUTDATED
<darix> nofxx: bullshit, fud. pick how you want to call it
<darix> mint17 is latest
<nofxx> what's ruby version on it?
bezhermoso has joined #ruby
but3k4 has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
<john__> I never had anything to do with ruby. I found this: http://stackoverflow.com/questions/20088015/installing-ruby-on-rails-on-linux-mint
<nofxx> debian & ubuntu are still 1.9. So, outdated.
<john__> I'm just following what they said.
skweek has quit [Ping timeout: 260 seconds]
<nofxx> john__, dont... just use your package manager
<darix> nofxx: e.g. my distro even ships 2.3 for older distros
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<darix> so *shrug*
<john__> nofxx: just apt-get install ruby?
<nofxx> john__, yup, if it's too old you just add another repo into apt.
sadin has joined #ruby
<john__> nofxx: but this is where those people got errors?
bezhermo_ has quit [Ping timeout: 248 seconds]
<darix> john__: you should understand what the commands are you doing that you just copy paste from websites
idefine has joined #ruby
<john__> darix: I do. But I've never heard about this:"Modify your ~/.bashrc instead of ~/.bash_profile."
<darix> both are read. but at different stages
<xpt> nofxx: I have 2.3.0p on debian sid
<john__> darix: that was to me?
<nofxx> john__, they are both just files. And you won't need to modify em if you use your package manager.
<nofxx> actually pretty unintuitive, bashrc isn't the file for this. What if I use zsh or whatever.
<nofxx> Even knowing zsh problably reads bashrc too for s*** like this
<john__> nofxx: I get it, now I'm asking out of curiosity. How do I do it?
baweaver has joined #ruby
<nofxx> do what?
pwnd_nsfw has joined #ruby
<john__> nofxx: "Modify your ~/.bashrc instead of ~/.bash_profile."
marxarelli is now known as marxarelli|afk
<nofxx> don't get it..... arent you `nano ~/.bashrc` or whatever?
<nofxx> just nano ~/.bash_profile instead... they are files... got it?
<nofxx> just files
sandbags has quit [Remote host closed the connection]
threh has quit [Ping timeout: 268 seconds]
blackmesa has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
djellemah_ has joined #ruby
mondok has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
threh has joined #ruby
codecop has joined #ruby
codecop has quit [Remote host closed the connection]
slash_nick is now known as slash_kick
codecop_ has joined #ruby
yuung has joined #ruby
aef has quit [Remote host closed the connection]
<john__> nofxx: Ok, I missed one thing. I get it now. Thank you.
vdamewood has quit [Quit: Life beckons.]
baweaver has quit [Ping timeout: 276 seconds]
amackera has left #ruby [#ruby]
solars has quit [Ping timeout: 244 seconds]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
BSaboia has joined #ruby
mleung has quit [Quit: mleung]
yuung has quit [Ping timeout: 248 seconds]
nhhc has joined #ruby
<john__> Thanks, bye!
john__ has quit [Quit: Leaving]
aef has joined #ruby
mleung has joined #ruby
mistermocha has joined #ruby
idefine has joined #ruby
futilegames has joined #ruby
futilegames has quit [Client Quit]
idefine has quit [Remote host closed the connection]
ffgghh has joined #ruby
pietr0 has quit [Quit: pietr0]
mistermocha has quit [Ping timeout: 240 seconds]
tubuliferous_ has joined #ruby
blackmesa has quit [Quit: WeeChat 1.4]
pawnbox has quit [Remote host closed the connection]
davedev24 has joined #ruby
pawnbox has joined #ruby
idefine has joined #ruby
davedev2_ has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
JohnBat26 has joined #ruby
_blizzy_ has joined #ruby
Musashi007 has joined #ruby
idefine has quit [Remote host closed the connection]
crdpink2 has joined #ruby
idefine has joined #ruby
morfin has quit [Read error: Connection reset by peer]
Musashi007 has quit [Client Quit]
crdpink has quit [Ping timeout: 250 seconds]
solars has joined #ruby
blackmesa has joined #ruby
kirun has joined #ruby
marxarelli|afk is now known as marxarelli
Vlat- has quit [Quit: Vlat-]
bitri has quit [Quit: Textual IRC Client: www.textualapp.com]
intrigueD has quit [Remote host closed the connection]
threh has quit [Ping timeout: 240 seconds]
yuung has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
johnmilton has quit [Ping timeout: 246 seconds]
pietr0 has joined #ruby
BtcBen has joined #ruby
ur5us has joined #ruby
intrigueD has joined #ruby
idefine has joined #ruby
jdawgaz has joined #ruby
codecop_ has quit [Remote host closed the connection]
yuung has quit [Ping timeout: 264 seconds]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
krzkrz has quit [Quit: WeeChat 1.2]
axl_ has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
yuung has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
last_staff1 has joined #ruby
B1n4r10 has joined #ruby
idefine has quit [Remote host closed the connection]
TomyLobo has quit [Disconnected by services]
rbennacer has quit [Remote host closed the connection]
TomyLobo has joined #ruby
last_staff1 is now known as last_staff
Jon31 has joined #ruby
<PaulePanter> Hi. An OT question, but what is the term for an array with two elements? ["a", 4], for example?
<PaulePanter> two-element array? Sounds strange though.
rbennacer has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
aef has quit [Ping timeout: 260 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
fullofca_ has quit [Ping timeout: 260 seconds]
sarlalian has quit [Ping timeout: 260 seconds]
janzo has quit [Ping timeout: 260 seconds]
irick has quit [Ping timeout: 260 seconds]
veloutin has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
<Radar> PaulePanter: why does it sound strange
idefine has joined #ruby
jkahn has joined #ruby
davedev24 has quit []
tristanp has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
janzo has joined #ruby
bigkevmcd has quit [Ping timeout: 260 seconds]
gmas has quit [Ping timeout: 260 seconds]
kent\n has quit [Ping timeout: 260 seconds]
russt has quit [Ping timeout: 260 seconds]
Jon30 has quit [Ping timeout: 260 seconds]
angelixd has quit [Ping timeout: 260 seconds]
musl has quit [Ping timeout: 260 seconds]
madhatter has quit [Ping timeout: 260 seconds]
guacamole has quit [Ping timeout: 260 seconds]
cout has quit [Ping timeout: 260 seconds]
epitron has quit [Ping timeout: 260 seconds]
kentnl has joined #ruby
kentnl has joined #ruby
kentnl has quit [Changing host]
Antiarc_ has joined #ruby
fullofcaffeine has joined #ruby
cgfbee has quit [Ping timeout: 260 seconds]
Ox0dea has quit [Ping timeout: 260 seconds]
Antiarc has quit [Ping timeout: 260 seconds]
mic_e has quit [Ping timeout: 260 seconds]
mic_e_ has joined #ruby
tristanp has joined #ruby
andywojo has quit [Quit: Lost terminal]
<djellemah> PaulePanter: pair, as in Hash#each_pair
musl has joined #ruby
madhatter has joined #ruby
angelixd has joined #ruby
guacamole has joined #ruby
cout has joined #ruby
bigkevmcd has joined #ruby
ta__ has quit [Ping timeout: 246 seconds]
bob434 has quit [Quit: This computer has gone to sleep]
rbennacer has quit [Ping timeout: 260 seconds]
<PaulePanter> djellemah: Thank you!
robbyoconnor has joined #ruby
sarlalian has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
statelesscode has quit [Quit: statelesscode]
aef has joined #ruby
irick has joined #ruby
cdg has joined #ruby
darkf has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
veloutin has joined #ruby
idefine has quit [Ping timeout: 244 seconds]
gmas has joined #ruby
Vlat- has joined #ruby
ta_ has quit [Quit: Leaving...]
David27 has joined #ruby
shinnya has joined #ruby
russt has joined #ruby
mango-habanero has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
idefine_ has joined #ruby
jkahn has quit [Remote host closed the connection]
siaw has quit [Quit: siaw]
Aviio has joined #ruby
kt2 has joined #ruby
mhib has joined #ruby
poguez_ has joined #ruby
joonty has joined #ruby
jkahn has joined #ruby
kt2 has quit [Client Quit]
hahuang61 has quit [Ping timeout: 276 seconds]
ChiefAlexander has joined #ruby
uglybandersnatch has joined #ruby
IrishGringo has joined #ruby
Vlat- has quit [Quit: Vlat-]
siaw has joined #ruby
idefine_ has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
pwnd_nsfw has quit [Read error: Connection reset by peer]
Ox0dea has joined #ruby
pwnd_nsfw has joined #ruby
duderonomy has quit [Ping timeout: 276 seconds]
joonty has quit [Ping timeout: 244 seconds]
j2k has quit [Ping timeout: 260 seconds]
jkahn has quit [Ping timeout: 246 seconds]
baweaver has joined #ruby
epitron has joined #ruby
sneakerhax has quit [Ping timeout: 248 seconds]
BtcBen has quit [Ping timeout: 252 seconds]
<PaulePanter> Hi. I have an array of pairs: [["a", 0], ["z", 1], ["β", 2], …]
<PaulePanter> I want to create from the second value in the pair.
siaw has quit [Client Quit]
<PaulePanter> These second values are only present once.
j2k has joined #ruby
pawnbox has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
<eam> PaulePanter: create what?
<apeiros> "I want to create" - I think you accidentally a word
cgfbee has joined #ruby
Dreamer3 has quit [Ping timeout: 250 seconds]
<PaulePanter> ;-)
<PaulePanter> Either a hash second value => the first value.
Dreamer3_ has quit [Ping timeout: 268 seconds]
noway_ has quit [Ping timeout: 246 seconds]
<PaulePanter> Or, as the numbers are uniq, an array, where the position (key(?)) equals the second value and the value the first value.
<adaedra> >> [["a", 0], ["z", 1], ["β", 2]].map { |k, v| [v, k] }.to_h
<apeiros> your example should become "a" => 0, "z" => 1?
<PaulePanter> ["a", "z", "β", …]
<ruby[bot]> adaedra: # => {0=>"a", 1=>"z", 2=>"β"} (https://eval.in/540616)
<PaulePanter> apeiros: Other way around, `to_h` is not enough.
<eam> apeiros beat me to it, I was going to use .map(&:reverse!)
<apeiros> then what adaedra showed
<adaedra> ah, an Array at the end?
<eam> er, adaedra beat me to it
<apeiros> eam: why reverse! and not reverse?
<eam> I guess reverse is fine huh
elifoster has quit [Ping timeout: 264 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<eam> I! just! got! excited!
<adaedra> PaulePanter: do indexes have possible holes? (i.e. no 4 but a 5)
kobain has joined #ruby
<apeiros> you just cannot hide it?
<PaulePanter> Well, maybe that is also the wrong question, and you have even a better idea to my problen.
ta_ has joined #ruby
<PaulePanter> adaedra: Yeah, there can be wholes.
Salve has joined #ruby
<PaulePanter> (It’s unlikely, but possible.)
<adaedra> PaulePanter: I suppose the hash solution above is not what you're looking to?
nofacade_ has joined #ruby
nofacade has quit [Ping timeout: 276 seconds]
jaruga has joined #ruby
jaruga is now known as jaruga_
cd-rum has joined #ruby
<PaulePanter> My original problem is, to easily search for the string in the array of pairs. For example, I have the ID 2, then I want to easily get "
<PaulePanter> β"
<PaulePanter> .
lkba has joined #ruby
<adaedra> ah, possible through the hash, but I guess it will be O(n) and no O(1) like a standard Array
<PaulePanter> So I thought using a hash might be the easiest solution. But as I already have that array, maybe a more direct approach is possible.
<PaulePanter> adaedra: Right.
<adaedra> otherwise, it's also possible directly with your existing data
TheCubeLord has joined #ruby
<adaedra> .find_by { |_, v| v == param }
<PaulePanter> adaedra: The hash solution should be fine though, as there is not a lot of data.
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
blackjid has quit [Max SendQ exceeded]
<PaulePanter> NoMethodError: undefined method `find_by' for #<Array:0x00000005258ed8>
<adaedra> eh.
nando293921 has joined #ruby
<adaedra> >> [["a", 0], ["z", 1], ["β", 2]].find { |_, v| v == 2 }
<ruby[bot]> adaedra: # => ["β", 2] (https://eval.in/540617)
<adaedra> right
<adaedra> >> [["a", 0], ["z", 1], ["β", 2]].find { |_, v| v == 2 }.first
<ruby[bot]> adaedra: # => "β" (https://eval.in/540618)
marsjaninzmarsa has joined #ruby
<adaedra> et voilà.
blackjid has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> I'm sorry, I'm a bit tired.
`tim` has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
freerobby has quit [Ping timeout: 264 seconds]
<r1nuz> ruby just keeps getting cooler
<PaulePanter> adaedra: Thanks! I wish I could do that when tired. ;-)
dionysus69 has quit [Ping timeout: 268 seconds]
<adaedra> heh.
jkahn has joined #ruby
unl0ckd has quit [Quit: Bye!]
john__ has joined #ruby
freerobby has joined #ruby
`tim` has quit [Client Quit]
scepticulous has joined #ruby
czerasz has joined #ruby
slash_kick is now known as slash_nick
<john__> hello again. I followed this https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04 and installed ruby. Up to this point "rails -v" everything was fine. Now I'm getting The program 'rails' can be found in the following packages:
<john__> * ruby-railties-3.2
<john__> * ruby-railties-4.0
<john__> Try: sudo apt-get install <selected package>
<john__> after "rails -v....
idefine has joined #ruby
<PaulePanter> john__: There is a #RubyOnRails channel.
x77686d has quit [Quit: x77686d]
Spami has quit [Quit: Leaving]
jam__ has joined #ruby
<john__> PaulePanter: freenode?
<adaedra> yep.
<john__> thanks
_stu_ has quit [Quit: _stu_]
DominicBurford has joined #ruby
<PaulePanter> … I cannot find the method `find()`.
<john__> you sure you cannot help? Because I cannot send to the channel.
<adaedra> &ri Array#find
<TheCubeLord> john_: do sudo apt-get install ruby-rails if you need rails
<PaulePanter> adaedra: Thank you.
<adaedra> john__: you need to be registered to talk in #RubyOnRails.
<john__> TheCubeLord: everyone is talking about rbenv?
jaruga_ has quit [Quit: jaruga_]
<john__> adaedra: I figured :)
DominicBurford has quit [Client Quit]
yfeldblum has quit [Ping timeout: 268 seconds]
_stu_ has joined #ruby
mdw has joined #ruby
jam__ has quit [Ping timeout: 268 seconds]
fullofca_ has joined #ruby
PaulCapestany has quit [Quit: .]
hahuang61 has joined #ruby
nhhc has quit [Quit: Leaving]
kalimotxo has quit [Quit: Leaving]
kt2 has joined #ruby
fullofcaffeine has quit [Ping timeout: 240 seconds]
kt2 has quit [Client Quit]
idefine has quit [Ping timeout: 244 seconds]
tildes has quit [Ping timeout: 240 seconds]
apeiros__ has joined #ruby
jenrzzz has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
_stu_ has quit [Quit: _stu_]
x77686d has joined #ruby
intrigueD has quit [Remote host closed the connection]
apeiros__ has quit [Ping timeout: 244 seconds]
<PaulePanter> >> b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }; puts b
<ruby[bot]> PaulePanter: # => a ...check link for more (https://eval.in/540620)
blackmesa has quit [Ping timeout: 252 seconds]
<PaulePanter> >> [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }
<ruby[bot]> PaulePanter: # => undefined local variable or method `b' for main:Object (NameError) ...check link for more (https://eval.in/540621)
diegoaguilar has joined #ruby
<PaulePanter> >> b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }
<ruby[bot]> PaulePanter: # => ["a", "z", "β", "test"] (https://eval.in/540622)
DoubleMalt has quit [Ping timeout: 244 seconds]
<PaulePanter> Sorry.
nofxx has quit [Ping timeout: 268 seconds]
<PaulePanter> But, why is test not inserted at position 4 (fifth element)?
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
<adaedra> KORBEEEEEN
<PaulePanter> b[4] = "test" works correctly.
<adaedra> Sorry.
diegoviola has joined #ruby
mdw has quit [Ping timeout: 244 seconds]
<adaedra> >> b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }; b
<ruby[bot]> adaedra: # => ["a", "z", "β", nil, nil, "test"] (https://eval.in/540624)
cd-rum_ has joined #ruby
john__ has quit [Quit: Leaving]
<adaedra> You were looking at the result of #map and not b.
<adaedra> Also, if you don't intent to transform element and use the result, it's #each you should use, not #map.
halfamind has quit [Ping timeout: 276 seconds]
cd-rum has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
halfamind has joined #ruby
idefine_ has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
PaulCapestany has joined #ruby
<PaulePanter> adaedra: Big thank you for your help and comments!
Rutix`away is now known as Rutix
mhoungbo has joined #ruby
<adaedra> yw
yuung has quit [Ping timeout: 264 seconds]
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
Azure has quit [Ping timeout: 244 seconds]
halfamind has quit [Read error: Connection reset by peer]
uglybandersnatch has quit [Ping timeout: 276 seconds]
rbennacer has joined #ruby
halfamind has joined #ruby
<diegoaguilar> hello whats rails channel in freeode?
halfamind has quit [Read error: Connection reset by peer]
halfamind has joined #ruby
<adaedra> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
darkf has quit [Read error: Connection reset by peer]
Jackneill has joined #ruby
swills has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
<PaulePanter> Sorry, last question for today.
<PaulePanter> Is there a way, to avoid initializing the empty array?
darkf has joined #ruby
<adaedra> you need a starting point I think
<PaulePanter> Ok. I’ll just use that.
<adaedra> eam: maybe you can golf better than me on this one?
treehug8_ has joined #ruby
mhib has quit [Remote host closed the connection]
BSaboia has quit [Ping timeout: 244 seconds]
threh has joined #ruby
Noxilex has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
treehug88 has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
My_Hearing has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
<slash_nick> where's the code?
elifoster has joined #ruby
snockerton has joined #ruby
crime has quit [Ping timeout: 250 seconds]
B1n4r10 has quit [Ping timeout: 260 seconds]
zenspider has joined #ruby
<PaulePanter> slash_nick: What code?
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang61 has quit [Ping timeout: 248 seconds]
<slash_nick> PaulePanter: exactly
idefine__ has joined #ruby
<PaulePanter> slash_nick: b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }
<adaedra> mmh?
<slash_nick> PaulePanter: "Is there a way to avoid initializing the empty array?"... what empty array? where's the code? ah, thanks.
ChiefAlexander has joined #ruby
<zenspider> drbrain: is there a way to make drb do client & server (using drbunix) in the same process? It seems to be bypassing all the marshalling (I'm writing tests and trying to avoid doing system calls)
idefine_ has quit [Ping timeout: 244 seconds]
speakingcode is now known as someoneelsetho
lemur has joined #ruby
IrishGringo has quit [Ping timeout: 248 seconds]
joonty has joined #ruby
rodfersou is now known as rodfersou|dinner
yqt has joined #ruby
scepticulous has quit [Remote host closed the connection]
rodfersou|dinner has quit [Quit: leaving]
apeiros__ has joined #ruby
<benzrf> PaulePanter: you should probably use each instead of map there
lemur has quit [Ping timeout: 250 seconds]
<benzrf> it draws attention to the fact that you're executing the block for side effects
apeiros__ has quit [Remote host closed the connection]
apeiros__ has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
cd-rum_ has quit [Quit: Textual IRC Client: www.textualapp.com]
nobitanobi has joined #ruby
uglybandersnatch has joined #ruby
ldnunes has quit [Quit: Leaving]
ffgghh has quit [Quit: Leaving]
apeiros___ has joined #ruby
apeiros__ has quit [Read error: Connection reset by peer]
mondok has joined #ruby
<apeiros> wth?
<benzrf> is that at me?
<apeiros> 22:16 apeiros___ has joined (~apeiros@80-219-245-205.dclient.hispeed.ch)
<drbrain> zenspider: you want loopback drbunix? hrm…
<apeiros> but I think I just got why that's the case
apeiros___ has quit [Remote host closed the connection]
siaw has joined #ruby
idefine__ has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
baweaver has quit [Remote host closed the connection]
tildes has joined #ruby
idefine has joined #ruby
Disavowed has joined #ruby
tildes has quit [Ping timeout: 248 seconds]
weemsledeux has joined #ruby
B1n4r10 has joined #ruby
<zenspider> drbrain: I think we cheated our way out. subclassed my ServerReporter and forced it to do Marshal.load on the payload.
baweaver has joined #ruby
<zenspider> err... dump. not load
<drbrain> yeah, it bypasses the Marshal because of the DRb.here? check
<zenspider> drbrain: your code looks like it works (and it does), but it isn't actually marshalling. look at with_friend in drb/drb.rb
<zenspider> but since I ONLY want to test that I'm sanitizing the exception objects properly, forcing a dump in a subclass should be sufficient.
<zenspider> it'll require more explanation... but it works
bluOxigen_ has joined #ruby
<mikecmpbll> i've been meaning to play with DRb, looks fun.
<drbrain> mikecmpbll: it is: https://github.com/drbrain/drb-worm
bluOxigen has quit [Ping timeout: 240 seconds]
threh has quit [Ping timeout: 268 seconds]
snockerton has quit [Quit: Leaving.]
<drbrain> zenspider: OK
hahuang61 has joined #ruby
Devalo has joined #ruby
<mikecmpbll> drbrain : awesome :D
<mikecmpbll> i wrote a ruby program recently that does a lot of stuff by invoking ruby scripts over ssh, i was thinking of trying to use drb instead, i dunno if that even makes sense cus i've only looked at it briefly :'d
<mikecmpbll> writing the communication stuff over ssh was really sucky, so.
<r1nuz> ssh > rpc
<mikecmpbll> k
<drbrain> if you're doing DRb over the internet use SSL with mutual auth
<mikecmpbll> noted.
<drbrain> by mutual auth I mean the client and the server auth each other
rbennace_ has joined #ruby
<mikecmpbll> i'll play with it this weekend (4 days, woot)
lurch_ has quit [Quit: lurch_]
marxarelli is now known as marxarelli|afk
yfeldblum has joined #ruby
<mikecmpbll> drbrain : thanks!
jrafanie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 264 seconds]
kingofcarrotflow has joined #ruby
skweek has joined #ruby
baweaver has quit [Remote host closed the connection]
rbennacer has quit [Ping timeout: 276 seconds]
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haylon has quit [Quit: WeeChat 1.4]
rbennace_ has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 244 seconds]
stannard has quit [Remote host closed the connection]
devbug has joined #ruby
idefine has quit [Remote host closed the connection]
<kingofcarrotflow> Greetings, I have a question about using Ruby's OpenSSL::SSL::SSLContext, I can get the command line curl equivalent of the command to work fine but not the ruby version. Am I doing something incorrect with the context settings? https://gist.github.com/anonymous/11201fa1fdbf007110d5
<kingofcarrotflow> When I make a request with Ruby the server returns and error that the ssl certificate was not sent
uglybandersnatch has quit [Ping timeout: 252 seconds]
jrafanie has joined #ruby
Aviio has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 260 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
jrafanie has quit [Ping timeout: 268 seconds]
rmulliga` has quit [Ping timeout: 264 seconds]
nofacade_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nofacade has joined #ruby
dcunit3d has joined #ruby
Jackneill has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 250 seconds]
dnewkerk has joined #ruby
stannard has joined #ruby
imperator has joined #ruby
shadoi has joined #ruby
jenrzzz has joined #ruby
<drbrain> kingofcarrotflow: I think you need to ctx.cert = too
andywojo has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
f0f4r has joined #ruby
shadoi has left #ruby [#ruby]
shadoi has joined #ruby
shadoi has left #ruby [#ruby]
treehug8_ has quit [Quit: Textual IRC Client: www.textualapp.com]
stannard has quit [Ping timeout: 250 seconds]
kingofcarrotflow has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zapata has quit [Quit: WeeChat 1.4]
kies has quit [Ping timeout: 260 seconds]
JakFrist has joined #ruby
s00pcan has joined #ruby
ruby-lang014 has joined #ruby
ruby-lang014 has left #ruby [#ruby]
zapata has joined #ruby
baweaver has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
elifoster has joined #ruby
dtzuzu has quit [Ping timeout: 252 seconds]
Noxilex has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
halfamind has quit [Quit: Leaving.]
halfamind has joined #ruby
halfamind has quit [Client Quit]
ChiefAlexander has quit [Remote host closed the connection]
* TheCubeLord has the thought that one day the mouse would get the cheese makes him feel determined
<TheCubeLord> Undertale Reference
sepp2k has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
nofacade has quit [Read error: Connection reset by peer]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
Karix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* TheCubeLord stays determined
tacit7 has quit [Ping timeout: 244 seconds]
<baweaver> TheCubeLord: cross posting #freenode?
ChiefAlexander has quit [Quit: Leaving...]
darkf_ has joined #ruby
x77686d has quit [Quit: x77686d]
snockerton has joined #ruby
marxarelli|afk is now known as marxarelli
Devalo has quit [Remote host closed the connection]
<RickHull> off topic cross posting double whammy?
djellemah_ has quit [Ping timeout: 252 seconds]
darkf has quit [Ping timeout: 248 seconds]
bob434 has joined #ruby
Azure has joined #ruby
jdawgaz has joined #ruby
intrigueD has joined #ruby
rmulliga` has joined #ruby
uglybandersnatch has quit [Ping timeout: 276 seconds]
nobitanobi has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
<shevy> WHO IS THE EVIL CROSSDRESSER
<shevy> I mean poster
jdawgaz has quit [Client Quit]
<mikecmpbll> lol
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
BtcBen has joined #ruby
David27 has quit [Remote host closed the connection]
rmulliga` has quit [Ping timeout: 240 seconds]
malconis has quit [Ping timeout: 246 seconds]
bry4n has quit [Ping timeout: 252 seconds]
jam__ has joined #ruby
dhollinger has quit [Quit: WeeChat 1.4]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
bob434 has quit [Quit: This computer has gone to sleep]
x77686d has joined #ruby
solocshaw has joined #ruby
jam__ has quit [Ping timeout: 276 seconds]
imperator has left #ruby ["Leaving"]
davedev24 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
zenlot6 has joined #ruby
p0p0pr37 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
tubuliferous_ has joined #ruby
jsaak has quit [Ping timeout: 252 seconds]
zenlot has quit [Ping timeout: 248 seconds]
dnewkerk has quit [Quit: dnewkerk]
elifoster has quit [Ping timeout: 244 seconds]
decoponio has quit [Quit: Leaving...]
jenrzzz has joined #ruby
jdawgaz has joined #ruby
houhoulis has joined #ruby
snockerton has quit [Quit: Leaving.]
jdawgaz has quit [Client Quit]
<riceandbeans> what's the best way to do a negative include?
<riceandbeans> variable.include? 'stuff' but I want the inverse
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
<riceandbeans> if variable.include? 'stuff' false
<riceandbeans> I mean, I could do true unless variable.include? 'stuff'; true
jottr has joined #ruby
<riceandbeans> err
<riceandbeans> return true unless variable.include? 'stuff'; false
Trynemjoel has quit [Ping timeout: 244 seconds]
<riceandbeans> but it feels like I can write that neater
chipotle has joined #ruby
Trynemjoel has joined #ruby
<drbrain> unless variable.include 'stuff'
BSaboia has joined #ruby
cjbischof_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has joined #ruby
silentpost has joined #ruby
Dysp has joined #ruby
<Ox0dea> array.none? 'stuff'
<havenwood> Ox0dea: A certain PR needs merging first...
<Dysp> Hi there. I cannot get the button to update the textbox. Help a newb. https://gist.github.com/anonymous/3b4d2475eebbf2ab9fe3
malconis has joined #ruby
<Ox0dea> havenwood: I was trying to be stealthy. ;)
<havenwood> riceandbeans: In Rails-land there's also an #exclude? method.
kies has joined #ruby
baweaver has joined #ruby
<riceandbeans> havenwood: alas, this isn't rails
<riceandbeans> I don't get why my code isn't working
<riceandbeans> so I'm using mixlib::shellout and getting a string back that contains a blurb
<riceandbeans> it's either a bunch of lines or just one line that pretty much says you have no licenses
devbug has quit [Read error: Connection reset by peer]
<havenwood> riceandbeans: No `return true`, it's already truthy or falsey. Just: !variable.include? 'stuff'
tubuliferous_ has quit [Ping timeout: 260 seconds]
<riceandbeans> so............... return true unless foo.stdout.include? 'No licenses'; false
skweek has quit [Ping timeout: 260 seconds]
<havenwood> >> ![].include? 'nope'
<ruby[bot]> havenwood: # => true (https://eval.in/540698)
freerobby has quit [Quit: Leaving.]
<riceandbeans> so what I typed, when it SHOULD be false, is returning true
CloCkWeRX has joined #ruby
<riceandbeans> but I think the ! may be the easy way out here...
<tobiasvl> riceandbeans: return !foo.stdout.include? 'No licenses'
<tobiasvl> yes like havenwood said
f0f4r has quit [Ping timeout: 264 seconds]
<riceandbeans> but isn't return then redundant?
<tobiasvl> yes
<tobiasvl> since you were using unless I thought maybe you wanted it in an if clause or something
<tobiasvl> but if it's the final statement in your method it will return it
malconis has quit [Ping timeout: 240 seconds]
<tobiasvl> s/statement/expression I guess
hahuang61 has joined #ruby
saneax_AFK is now known as saneax
devbug has joined #ruby
Spami has joined #ruby
biberu has quit []
joonty has joined #ruby
mostlybadfly has joined #ruby
roshanavand_ has joined #ruby
tacit7 has joined #ruby
joonty has quit [Ping timeout: 250 seconds]
Inside has joined #ruby
Inside has joined #ruby
diegoviola has quit [Ping timeout: 248 seconds]
roshanavand_ has quit [Client Quit]
last_staff has quit [Quit: last_staff]
tacit7 has quit [Ping timeout: 244 seconds]
danielwzd has left #ruby ["Leaving"]
rmulliga` has joined #ruby
IrishGringo has joined #ruby
axl_ has quit [Quit: axl_]
roshanavand_ has joined #ruby
stunder001 has quit [Quit: WeeChat 1.4]
symm- has quit [Ping timeout: 250 seconds]
p0p0pr37 has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mondok has quit [Ping timeout: 248 seconds]
ljames has quit []
tubuliferous_ has joined #ruby
freerobby has joined #ruby
kentnl has quit [Ping timeout: 268 seconds]
Gasher^ has joined #ruby
rmulliga` has quit [Ping timeout: 268 seconds]
Gasher has quit [Ping timeout: 252 seconds]
jottr has quit [Read error: Connection reset by peer]
uglybandersnatch has quit [Ping timeout: 260 seconds]
silentpost has quit [Ping timeout: 276 seconds]
uglybandersnatch has joined #ruby
czerasz has quit [Ping timeout: 268 seconds]
mleung_ has joined #ruby
mleung has quit [Ping timeout: 248 seconds]
mleung_ is now known as mleung
czerasz has joined #ruby
kent\n has joined #ruby
DLSteve has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoviola has joined #ruby
darkf_ is now known as darkf
Ropeney has joined #ruby
dfas has quit [Remote host closed the connection]
SCHAAP137 has quit [Quit: Leaving]
mikecmpbll has joined #ruby
kirun has quit [Remote host closed the connection]
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
xlegoman has joined #ruby
jrafanie has joined #ruby
agentmeerkat has quit [Ping timeout: 246 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
johnmilton has joined #ruby
halfamind has joined #ruby
Dysp has quit []
jrafanie has quit [Ping timeout: 248 seconds]
kentnl has joined #ruby
kent\n has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
bob434 has joined #ruby
diegoviola has quit [Changing host]
diegoviola has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
anoob has joined #ruby
<anoob> is it possible to define private methods with define_method?
_stu_ has joined #ruby