apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Spami has quit [Quit: This computer has gone to sleep]
davasaurous has quit [Ping timeout: 272 seconds]
St_Marx has joined #ruby
nobitanobi has quit []
msmith_ has quit [Remote host closed the connection]
HelperW__ has quit [Ping timeout: 260 seconds]
klmlfl has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
cleopatra has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
seanosaur has quit [Remote host closed the connection]
klmlfl has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
KC9YDN has quit [Quit: In this moment, I am euphoric. Not because of any phony god’s blessing. But because, I am enlightened by my intelligence.]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
michaeldeol has joined #ruby
kireevco has joined #ruby
devdazed has joined #ruby
freerobby has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
jonr22 has joined #ruby
klmlfl has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
ghostmoth has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
karmatr0n has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
davasaur_ has quit [Remote host closed the connection]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
tylersmith has quit []
kobain has joined #ruby
Aaaal has quit [Quit: Aaaal]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
rezzack has joined #ruby
Gunni has joined #ruby
<Gunni> Hi, i'm a beginner of ruby on rails and i was wondering how hard it is to upgrade a ror application from version 3 to 4, and or if anyone would be willing to assist me.
davasaurous has joined #ruby
klmlfl has joined #ruby
snapcase has joined #ruby
dkam has joined #ruby
Wolland has joined #ruby
<Gunni> after making sure the Gemfile had all the latest versions on each package, i get this error when running rails server http://codepad.org/vnAIs9vZ
<Gunni> p.s. i do not use mysql
Spami has joined #ruby
<Wolland> do you have mysql section in the database config? Gunni
<Wolland> adapter: mysql2
timgauthier is now known as timgauthier_isaw
Takle has quit [Read error: Connection reset by peer]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland_ has joined #ruby
Wolland has quit [Disconnected by services]
sepp2k1 has joined #ruby
Wolland_ is now known as Wolland
klmlfl has quit [Ping timeout: 245 seconds]
<Gunni> Wolland, i cannot seem to find that option set anywhere, this application is designed for postgresql
sepp2k has quit [Ping timeout: 272 seconds]
<Wolland> I would just search your project files for mysql2 mention
jonathanwallace has joined #ruby
fabrice31 has joined #ruby
<Wolland> it's there somewhere, config, initializer, something ..
<Gunni> Wolland, adapted: postgresql is defined in a few spots in database.yml
<Gunni> Wolland, this is the code i'm talking about btw https://github.com/polarina/deildu
timgauthier has joined #ruby
bthesorceror has joined #ruby
KC9YDN has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
ner0x has joined #ruby
angusigu1ss has joined #ruby
skammer3 has joined #ruby
bthesorceror has quit [Client Quit]
bthesorceror has joined #ruby
angusigu2ss has joined #ruby
<Wolland> thinking-sphinx
angusigu2ss is now known as angusiguess
tessi is now known as tessi_zz
fabrice31 has quit [Ping timeout: 272 seconds]
angusiguess has quit [Client Quit]
<Gunni> Wolland, is that the problem?
angusiguess has joined #ruby
<Wolland> probably, and since it's in gitignore it wouldn't be in your codebase
<Wolland> check out config/sphinx stuff
<Gunni> ok
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
karmatr0n has quit [Remote host closed the connection]
zz_karupa is now known as karupa
skammer3 has quit [Ping timeout: 244 seconds]
Koshian has joined #ruby
hmsimha has quit [Ping timeout: 272 seconds]
kireevco has quit [Quit: Leaving.]
KC9YDN has quit [Read error: Connection reset by peer]
Dude007 has quit [Ping timeout: 258 seconds]
oo_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<Gunni> Wolland, thanks for the help, i'm sure i can figure out how to build that config file :)
Dude007 has joined #ruby
<Wolland> np
ramfjord has joined #ruby
<Wolland> i think there is a rake task to initialize ts config
<Wolland> rebuild it etc.
<Gunni> Wolland, yeah that might work, but rake just complains about lack of mysql...
davasaurous has quit [Remote host closed the connection]
Kricir has joined #ruby
mikepack has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
fennec has joined #ruby
<Wolland> Gunni: "The MySQL gems mentioned are required for connecting to Sphinx, so please include it even when you’re using PostgreSQL for your database"
<Wolland> hhmmm :)
davasaurous has joined #ruby
<Gunni> Wolland, that might be the dumbest thing i've ever read...
<Gunni> not you, sphinx
<Gunni> so, does that mean i need to add mysql2 to the gemfile?
sevenseacat has joined #ruby
<Wolland> DATABASE=postgresql rake after
<Wolland> I guess so, you have to have mysql gem in the gemfile
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jhass is now known as jhass|off
BTRE has quit [Quit: Leaving]
Kricir has quit [Ping timeout: 272 seconds]
SCHAAP137 has joined #ruby
ner0x has quit [Quit: Leaving]
bruno- has joined #ruby
ixti has joined #ruby
francisfish has joined #ruby
crdpink has quit [Quit: q term]
nettoweb has joined #ruby
oo_ has joined #ruby
Jerald_Wisozk has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
bricker`work has quit [Ping timeout: 245 seconds]
Angie_Rath21 has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
cpruitt has quit [Quit: cpruitt]
bruno- has quit [Ping timeout: 260 seconds]
bricker`work has joined #ruby
KC9YDN has joined #ruby
buub has quit [Ping timeout: 246 seconds]
britneywright has joined #ruby
Relaxation___ has joined #ruby
francisfish has quit [Ping timeout: 260 seconds]
AngryEgret is now known as AngryEgret_afk
britneywright has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
britneywright has joined #ruby
oo_ has joined #ruby
xcv has quit [Remote host closed the connection]
britneywright has quit [Read error: Connection reset by peer]
<Gunni> Wolland, you were right, needed mysql2 included, even when not using it, sillyer than silly
wjimenez_ has quit [Remote host closed the connection]
c107 has joined #ruby
<Wolland> elasticsearch ftw
<fennec> heh
<Wolland> ts sucks, total pain to use, to maintain
<fennec> one of the elasticsearch recruitery dudes reached out inquiring about hiring me (well, for logstash, anyway)
<fennec> then decided my background wasn't distributed-systems-y enough after all
<Wolland> could be a nice gig
<Wolland> nice product
HelperW__ has joined #ruby
buub has joined #ruby
* fennec is a US citizen trying to get hired in London, Berlin, or Amsterdam. this does complicate things. but the dude *did* see it up front, so.
teddyp1cker has quit [Ping timeout: 258 seconds]
<Wolland> ES is java, logstash is jruby though
<Wolland> java is pain
Spami has quit [Quit: Leaving]
jkline has quit [Quit: jkline]
<fennec> java _is_ a pain. the jvm is also a pain but far less so. :)
emmesswhy has quit [Quit: This computer has gone to sleep]
cndiv has quit [Ping timeout: 245 seconds]
Spami has joined #ruby
<fennec> still, I don't resent it for programming an elasticsearch-like product. works well enough for the Apache Cassandra people, for instance.
dkam has quit [Quit: dkam]
<soahccc> Some math genius here? How is it called when you expand a string with multiple ranges? It's not exponential :D "Range-string" like "[a-z][a-z][a-z]"
<fennec> uhhhhhh combinatorial?
<fennec> or do you want something to do more with permutations
<soahccc> Something like "multiple expressions will result in a multiplication of the resulting items by the factor of ranges * their sizes"
HelperW__ has quit [Ping timeout: 250 seconds]
<fennec> isn't that exponential? 26^n possible results?
PanPan has joined #ruby
<soahccc> well the example string would result in 26*26*26 results not 26^26^26
tkuchiki has joined #ruby
HelperW__ has joined #ruby
AndChat| has quit [Ping timeout: 258 seconds]
emocakes has joined #ruby
<soahccc> apparently that is 26^3 :S
<fennec> yeah that's what we call exponential
<fennec> also 26^26^26 is 26^52 because math
jkline has joined #ruby
benlieb has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
nettoweb has joined #ruby
<soahccc> Thanks. I feel so helpless with math problems
nettoweb has quit [Max SendQ exceeded]
<fennec> wait is that last one right or am I remembering it wrong
SCHAAP137 has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
<fennec> no I'm wrong. 26^26^26 is 26^(26*26)
nettoweb has joined #ruby
gsd has joined #ruby
<soahccc> I should put a warning on my project for math affine people to not take a look into the code :)
HelperW__ has quit [Ping timeout: 260 seconds]
benlieb has quit [Read error: Connection reset by peer]
jeremy04 has joined #ruby
chrisja has quit [Quit: leaving]
charliesome has joined #ruby
ghr has joined #ruby
davasaurous has quit [Remote host closed the connection]
paradisaeidae has joined #ruby
Tricon has quit [Quit: Linkinus - http://linkinus.com]
<soahccc> I don't even know how I did this script which expand these ranges in the first place. Way over my brain capabilities to keep track of this
spyderman4g63 has joined #ruby
davasaurous has joined #ruby
<fennec> did you use recursion?
<Wolland> ('a'..'z').to_a
gmas has quit [Ping timeout: 272 seconds]
<soahccc> yep... my script is way shorter than the perl one because ruby is awesomne
<Wolland> ('a'..'z').to_a.repeated_permutation(3).to_a
Kricir has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
jeremy04 has quit [Ping timeout: 260 seconds]
<soahccc> Enum#product was very helpful
hiptobecubic has joined #ruby
davedev24_ has left #ruby [#ruby]
<fennec> Wolland- his gist has a fancy lil range parser in it
<soahccc> what have I done? Is that good or not D:
mikepack has joined #ruby
<Wolland> what does it do?
<Wolland> I don't want to know, nm
davasaurous has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 260 seconds]
ursooperduper has joined #ruby
kireevco has joined #ruby
jasonzzz_ has joined #ruby
kireevco has quit [Max SendQ exceeded]
jasonzzz_ has quit [Max SendQ exceeded]
kireevco has joined #ruby
mary5030 has joined #ruby
caveat- has joined #ruby
jasonzzz_ has joined #ruby
jasonzzz_ has left #ruby [#ruby]
zorak8 has quit [Ping timeout: 246 seconds]
<fennec> soahccc- it's hardly the worst. could use a few methods marked private and a test suite, and I don't agree with the formatting preferences, but there's nothing ostentatiously defective or the like, certainly not for a 15-minute stab at things
davasaurous has joined #ruby
klmlfl has joined #ruby
lkba has joined #ruby
davasaurous has quit [Read error: Connection reset by peer]
<soahccc> fennec: do you have an example of what you mean with formatting?
<hiptobecubic> Hi everyone. I have virtually no experience with ruby (lots with python and several other languages). Functions don't require parens and 'do .. end' denotes a code block. Beyond that what is happening in this first example? http://blog.loftninjas.org/2011/02/16/the-power-of-chef-and-ruby/
thams has quit [Quit: thams]
<hiptobecubic> codebook_file is a function with parameter '/home/btm/.vimrc' ?
<hiptobecubic> is the block also a parameter?
<hiptobecubic> is there a return value here or is it all just for side effects?
coderdad has quit [Remote host closed the connection]
Takle has joined #ruby
coderdad has joined #ruby
emmesswhy has joined #ruby
<fennec> soahccc- while def method args is valid I'm a little oldschool and still prefer def method(args)
<fennec> but i'm not your style-guide author
<soahccc> fennec: was just curious :) I know I'm not strictly following anything
klmlfl has quit [Ping timeout: 250 seconds]
<soahccc> hiptobecubic: The code block is being passed to the method. In this case there might be a return value (most likely) but I think the methods inside the block mostly do things directly (configuring)
roombadaboomba has joined #ruby
mikepack has quit [Ping timeout: 272 seconds]
<soahccc> hiptobecubic: to be exact, you always will get something as return value... Might be nil (null) though
slester_ has joined #ruby
<hiptobecubic> soahccc, i suspected as much. So cookbook_file takes a string and some kind of callable thing that takes no parameters?
narcan has joined #ruby
<hiptobecubic> is this a typical ruby-style way to invoke functions? Would you, as a rubyist, expect that you understand how this function works given this?
<soahccc> hiptobecubic: it appears to be (I don't know chef).. In ruby the code block can but must not "accept" arguments even if it gets some
slester has quit [Disconnected by services]
slester_ is now known as slester
<hiptobecubic> can but must not?
bthesorceror has quit [Quit: bthesorceror]
coderdad has quit [Ping timeout: 250 seconds]
<hiptobecubic> what qualifies as "can't" ?
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
slester1 has joined #ruby
skammer3 has joined #ruby
Angie_Rath21 has quit [Remote host closed the connection]
cpruitt has joined #ruby
<fennec> soahccc- for bonus points rewrite this so that it can take a block and yield each element in turn, instead, to save memory
* fennec tries to understand what soahccc says
zcreative_ has quit [Quit: Computer has gone to sleep.]
Takle has quit [Ping timeout: 250 seconds]
<fennec> hiptobecubic- i see the question
<soahccc> hiptobecubic: What I meant is that a proc (what a code block is) will not raise an ArgumentError exception if it gets the wrong amount of arguments
zcreative_ has joined #ruby
<hiptobecubic> really? oof. That's scary :)
Channel6 has joined #ruby
<soahccc> a lambda or method will though
<fennec> ruby has a couple of tools like... yes that
emmesswhy has quit [Quit: This computer has gone to sleep]
<fennec> blocks are an interesting feature of Ruby, one of the defining features really
<soahccc> hiptobecubic: the calling method can even inspect how many arguments the block accepts and based on that pass different things
<hiptobecubic> interesting
<soahccc> or react differently alltogether
<hiptobecubic> and so in this example, there are four other method calls
<fennec> anyway. so the block does have a return value but it's probably that the cookbook_file ignores it.
ixti has quit [Quit: WeeChat 1.0]
<soahccc> fennec: I was also thinking about an optional limit so that it raises an exception after reaching to many items
kireevco has quit [Quit: Leaving.]
troyready has quit [Ping timeout: 245 seconds]
RichardLitt has quit [Ping timeout: 260 seconds]
<fennec> the block _can_ be treated as a parameter, or it can be accessed with the keyword 'yield'
<soahccc> fennec: well in the example it is ignored
skammer3 has quit [Ping timeout: 258 seconds]
<fennec> actually it can be _invoked_ by the keyword 'yield' to be more accurate. its presence can be tested for with the predicate block_given?
<soahccc> fennec: in ruby there is the implicit return... you always return the last statement so there might be something but it might not be useful
<fennec> i know that
<fennec> yet it's probable that the cookbook_file method ignores it :b
jottr has quit [Ping timeout: 272 seconds]
duper has quit [Ping timeout: 260 seconds]
<hiptobecubic> Are you familiar with python at all? Does this look semantically similar? http://codepad.org/Hv6UCVtF
cpruitt has quit [Quit: cpruitt]
<fennec> anyway. i was saying that alternatively you can write the method definition like def cookbook_file(path, &block) and then block will be a Proc or nil
<soahccc> Oh that with the implicit return was for hiptobecubic apparently :)
<fennec> yes it's very much like that
melik has quit [Quit: Computer has gone to sleep.]
<Wolland> yield s are better performance wise
zcreative_ has quit [Ping timeout: 272 seconds]
<fennec> that is also true
bthesorceror has joined #ruby
mattjbarlow has quit [Ping timeout: 260 seconds]
<fennec> anyway. the other thing that's probably happening here is that cookbook_file is making some methods available within the scope of the block, possibly by manipulating the value of 'self' that the code gets.
cirn0 has joined #ruby
paradisaeidae has quit [Ping timeout: 244 seconds]
<soahccc> 10 bucks on instance_eval
<fennec> one of those stupid evals, I get them mixed up
bruno- has joined #ruby
AtumT has quit [Remote host closed the connection]
<fennec> one of the select places I find JavaScript more straightforward
davasaurous has joined #ruby
Ara87 has joined #ruby
Asher has quit [Quit: Leaving.]
Ara87 has quit [Remote host closed the connection]
cirn0 has quit [Ping timeout: 240 seconds]
mattjbarlow has joined #ruby
lewix has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
lewix has joined #ruby
<soahccc> Anyone an idea why windows don't support the TERM signal? I thought this signal would be available :/
<hiptobecubic> because it's not POSIX probably?
Alex_Olson has joined #ruby
lampd1 has quit []
<soahccc> yeah I know that it doesn't support some signals but TERM should be supported. Not sure whether it's rubyinstaller or something in general
shock_one has joined #ruby
Asher has joined #ruby
tokik has joined #ruby
<fennec> hiptobecubic- anyway the python thing that you posted is basically right..... ignoring some subtleties about what the value of 'this' is set to, and where things like 'return' actually take you
roombadaboomba is now known as boombadaroomba
<fennec> Python also has the Perl-like convention where a method is a namespaced function that get 'self' as the first argument automatically when invoked from an object, amirite?
wallerdev has quit [Quit: wallerdev]
lewix has quit [Ping timeout: 258 seconds]
emmesswhy has joined #ruby
zcreative_ has joined #ruby
chipotle has quit [Quit: cya]
emmesswhy has quit [Max SendQ exceeded]
doodlehaus has joined #ruby
<hiptobecubic> fennec, soahccc thanks
<hiptobecubic> fennec, yes.
* soahccc goes to bed now
shock_one has quit [Ping timeout: 258 seconds]
zcreative_ has quit [Client Quit]
emmesswhy has joined #ruby
<hiptobecubic> fennec, well. when invoked from an instance object.
<fennec> yeah one of those.
spyderman4g63 has quit [Remote host closed the connection]
<hiptobecubic> fennec, you can invoke from class objects as well and there is no implicit self (because there is no instance)
bluehavana has joined #ruby
spyderman4g63 has joined #ruby
<fennec> anyway I'd ask the question of how deep you want to go in understanding the model right now :)
thomasxie has joined #ruby
emocakes has quit []
ixti has joined #ruby
paradisaeidae has joined #ruby
karmatr0n has joined #ruby
<fennec> welcome to Ruby. we have blocks. we use them all over the place, especially for iteration and things. they're more convenient than javascript where you have to close over self=this; or call .bind(this) on everything that would take an iterator otherwise, and they __act__ more like a language construct because of how things like return work.
<fennec> def foo; 3.times { return 4; }; return 5; end # foo() returns 4
zorak8 has joined #ruby
coderdad has joined #ruby
<hiptobecubic> not sure at all what's going on there
tectonic has joined #ruby
jkline has quit [Quit: jkline]
HelperW__ has joined #ruby
<fennec> compare JavaScript: function foo(){ 3.times(function(){ return 4; }); return 5; }; foo(); // returns 5
<fennec> (of course if you haven't monkey-patched your integer class in JavaScript to have .times you're probably on top of the game)
nanoyak has joined #ruby
jkline has joined #ruby
jottr has joined #ruby
<fennec> hiptobecubic- so, I'm assuming the function definition is straightforward. Integer#times (# is our instance-method reference convention but has little language relevance except as a comment)... Integer#times is a method that takes a block and passes it successive integers
charliesome has quit [Quit: zzz]
<fennec> 3.times {|i| puts i } prints 0\n1\n2\n
HelperW__ has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
HelperW__ has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
<fennec> the thing to note, and the primary difference between a code reference in another language or a lambda in ruby, is that if you put a return in a block then you return out of the __enclosing code__. this way you can define something like Array.each as a function and get many of the same conveniences that you would with a standard for loop
<fennec> also, {} and do; end are synonyms, if you hadn't gotten that yet, and either of them can be followed by |argument, list, goes, here|
jottr has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
duper has joined #ruby
<fennec> but this is all probably way too fast, anyway :)
HelperW__ has quit [Ping timeout: 260 seconds]
Fire-Dragon-DoL has quit [Quit: Leaving.]
rubyonrailed has quit [Remote host closed the connection]
caveat- has quit [Read error: Connection reset by peer]
caveat- has joined #ruby
hamakn has joined #ruby
yetanoth1rdave has quit [Ping timeout: 245 seconds]
emocakes has joined #ruby
davasaurous has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
Kricir has quit [Ping timeout: 258 seconds]
patrick99e99 has quit [Ping timeout: 258 seconds]
paradisaeidae has quit [Ping timeout: 260 seconds]
lewix has joined #ruby
paradisaeidae has joined #ruby
fabrice31 has joined #ruby
ixti has quit [Quit: WeeChat 1.0]
ghr has quit [Ping timeout: 246 seconds]
rubyonrailed has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusiguess has quit [Ping timeout: 272 seconds]
coderdad has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
angusigu1ss has quit [Ping timeout: 272 seconds]
Sht0 has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
sdwrage_ has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cleopatra has quit [Ping timeout: 240 seconds]
sdwrage has quit [Ping timeout: 244 seconds]
coderdad has joined #ruby
chrishough has joined #ruby
klmlfl has joined #ruby
coderdad has quit [Remote host closed the connection]
gsd has joined #ruby
krz has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
slyslick has joined #ruby
bricker`work has quit [Ping timeout: 245 seconds]
BTRE has joined #ruby
klmlfl has quit [Ping timeout: 244 seconds]
thomasxie has left #ruby [#ruby]
sdwrage has joined #ruby
sdwrage_ has joined #ruby
Akuta has quit [Quit: Page closed]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
skammer3 has joined #ruby
iamjarvo has joined #ruby
bmurt has quit []
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
doodlehaus has quit [Remote host closed the connection]
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
skammer3 has quit [Ping timeout: 260 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
mocfive has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
j_mcnally has joined #ruby
spyderman4g63 has joined #ruby
geggam has joined #ruby
spastorino has joined #ruby
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
devdazed has quit [Quit: Computer has gone to sleep.]
sevenseacat has left #ruby [#ruby]
sevenseacat has joined #ruby
radic has quit [Disconnected by services]
cstrahan has joined #ruby
radic_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<cstrahan> can anyone think of why Kernel#system and Kernel#` would behave differently given different build environments?
timgauthier has joined #ruby
<cstrahan> i'm coming up against this problem: https://github.com/NixOS/nixpkgs/issues/4245
spyderman4g63 has quit [Ping timeout: 245 seconds]
jkline has quit [Quit: jkline]
EasyCo has joined #ruby
<cstrahan> i'm package Ruby package maintainer for NixOS, and I noticed that our Rubies' #system and #` behave differently compared to what I've seen in the wild
* fennec hmms.
<fennec> #` looks like it invokes pipe_open_s(str, ...)
JavaTheHut has joined #ruby
karmatr0n has quit [Remote host closed the connection]
<JavaTheHut> what do you ruby people use for source control?
Alex_Olson has quit [Remote host closed the connection]
<Firespirit> Hi everyone i'm lookink for someone that his willing to help me with nokogiri gem to edit xml
<fennec> system looks like it calls rb_spawn_internal which I don't have in front of me...
<fennec> JavaTheHut- I use git myself
<JavaTheHut> why git when you ca use microsoft visual source safe? It has a much more intuaivie GUI interface.
bricker`LA has joined #ruby
<cstrahan> JavaTheHut: a couple years ago, I helped my then employer move away from VSS.
caveat- has quit [Ping timeout: 272 seconds]
mr-foobar has quit [Ping timeout: 272 seconds]
Amie74 has joined #ruby
<cstrahan> ... to git, that is.
mr-foobar has joined #ruby
<JavaTheHut> why woudl you move to a command line tool? That's like 1970 C programmer stuff. Ruby is a 2014 language but the peoplle are using 1970 tools like git and Vim.
caveat- has joined #ruby
starlord has joined #ruby
<starlord> How can I protect a VALUE from being GC'd after the function returns, so I can store it in a static variable?
GriffinHeart has joined #ruby
francisfish has joined #ruby
<fennec> life isn't all about the easy to use visual interfaces. in particular, programming benefits from powerful interfaces capable of doing things in a concise manner. anyway.
<starlord> Sure, sure, totally agreed. But still, I want to make sure I can save this VALUE for later.
benzrf is now known as benzrf|offline
<fennec> starlord -- oh yes i wasn't answering that, JavaTheHut here is confused abouy why people use git instead of MS VSS
<starlord> Great, thanks.
<starlord> So, any ideas?
cndiv has joined #ruby
<starlord> Btw I interactive rebase destructively all the time. Super awesome.
<cstrahan> JavaTheHut: there's always TortoiseGit, if you want a GUI
<fennec> no ideas for starlord off the top of my head, just wrote my first C extension yesterday
<starlord> :'(
<fennec> Firespirit- I _have_ used nokogiri, what's the task?
francisfish has quit [Ping timeout: 245 seconds]
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
JavaTheHut has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
gsd has joined #ruby
<fennec> starlord- http://stackoverflow.com/questions/2003885/garbage-collection-with-ruby-c-extension seems relevant. put the value in some lame constant maybe.
teddyp1cker has joined #ruby
Takle has joined #ruby
<fennec> (in particular the first answer seems to overview how to avoid GC)
Snarkz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cstrahan> ah, shit. never mind previous inquiry. i _thought_ I was comparing equal versions - but I was comparing 1.9.3 vs 2.0.0.
<cstrahan> fennec: thanks for lending me a hand - sorry for wasting your time :|
GriffinH_ has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
HelperW__ has joined #ruby
gsd has quit [Client Quit]
<fennec> heh :) 'sok
<starlord> Looks almost relevant.
kil0byte has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 258 seconds]
<starlord> thx
<Firespirit> Hi everyone i'm lookink for someone that his willing to help me with nokogiri gem to edit xml
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<fennec> yeah what's the problem
Takle has quit [Ping timeout: 272 seconds]
foooobear_ has quit [Ping timeout: 245 seconds]
slyslick has quit [Quit: slyslick]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
slyslick has joined #ruby
kil0byte has joined #ruby
<Firespirit> i did a script that can edit an empty xml...but when i try to edit aexisting xml with data in it it's not working
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<Firespirit> saying that i have already a root in my xml...
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<Firespirit> so i'm confuse
caveat- has quit [Ping timeout: 272 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<starlord> I thought it was something like rb_gc_mark()
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<Firespirit> maybe there is a easier way than nokogiri to edit xml file?
awc737 has joined #ruby
kireevco has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<starlord> Ah! rb_gc_register_address
kireevco has quit [Max SendQ exceeded]
rubie has joined #ruby
HelperW__ has quit [Ping timeout: 260 seconds]
cajone has left #ruby [#ruby]
<shevy> Firespirit there probably is no alternative to nokogiri
swiftkey has joined #ruby
<swiftkey> hello there
kireevco has joined #ruby
<swiftkey> I have no programming background
kireevco has quit [Max SendQ exceeded]
Sht0 has joined #ruby
<Nilium> How fortunate.
HelperW__ has joined #ruby
<Nilium> Run, run now, before it's too late.
kireevco has joined #ruby
<swiftkey> Is it possible or even okay to learn ruby on my first programming language?
<fennec> starlord- ah, good to know
<fennec> swiftkey- yeah sure nothing wrong with that
<Nilium> Yeah, sure, whatever.
<rubie> can someone walk me very slowly through this recursive example https://gist.github.com/gabrie30/16f11c700c20afb5822a
alvaro_o has quit [Quit: Ex-Chat]
caveat- has joined #ruby
<swiftkey> Thank you!
<rubie> i dont understand what happens on tihs line curse(n-1) + n
stunder has joined #ruby
<Nilium> It swears at you
<rubie> if 3 is passed in it becomes curse(3-1) + 3
<rubie> so the total now is 3 and it calls curse(2)
<fennec> no no
<rubie> does 3 get saved in memory?
<fennec> there is no total yet
<starlord> Ah I have another idea. Instead of using global C variables, I can use private global Ruby variables.
<starlord> Much easier.
starlord has quit [Quit: Leaving...]
HelperW__ has quit [Ping timeout: 244 seconds]
<fennec> rubie what curse(3-1) + 3 does is evaluates curse(2), takes the result, and returns the sum of that result and 3.
<rubie> the second time it iterates it will become curse(2-1) + 2
<rubie> how does it know the value of curse(2) ?
<swiftkey> Will it be possible if someone can tell me why I should choose ruby as my first language ?
<rubie> swiftkey: google that
emocakes has quit [Ping timeout: 246 seconds]
<fennec> rubie: well. curse(3) is curse(2)+3. curse(2) is curse(1)+2. curse(1) is 1. so curse(2) is 1+2 and curse(3) is 3+3.
thams has joined #ruby
<rubie> fennec: yes i just dont understand how it knows the value before it gets evaluated
braincrash has quit [Quit: bye bye]
<fennec> it doesn't.
<shevy> what is happening
davasaurous has joined #ruby
ghr has joined #ruby
<rubie> does it return a value implicitly?
<fennec> yes. the last line could be replaced with return curse(n-1) + n
stoned has quit [Ping timeout: 260 seconds]
angusiguess has joined #ruby
angusigu1ss has joined #ruby
mattjbarlow has quit [Ping timeout: 272 seconds]
<rubie> so does it return 3 then evaluate curse(2)
<rubie> and then returns 2+3 and then evaluates curse(1)
<fennec> it doesn't.
<fennec> it evaluates curse(2), places that value in an anonymous location, then returns that value summed with 3. in that order.
paradisaeidae has quit [Ping timeout: 245 seconds]
<fennec> as you've observed it can't do the addition until it knows what it's adding so it goes out and gets that information first.
braincrash has joined #ruby
emocakes has joined #ruby
<fennec> and that does mean that there are multiple calls to curse() active at the same time with 'n' assigned to different values.
bthesorceror has quit [Quit: bthesorceror]
* fennec rephrases that last bit. ... with different values assigned to n.
ghr has quit [Ping timeout: 258 seconds]
davasaurous has quit [Ping timeout: 272 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
davasaurous has joined #ruby
angusigu1ss has quit [Ping timeout: 260 seconds]
nonmadden has joined #ruby
emocakes__ has joined #ruby
melik has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
emocakes has quit [Disconnected by services]
emocakes__ is now known as emocakes
<rubie> so it is holding a value somewhere while its figuring out curse(2) and curse(1)
<fennec> yep
segmond has joined #ruby
mikepack has joined #ruby
<rubie> now at the very end
JBreit has joined #ruby
<fennec> that somewhere has a name and that name is 'the stack'. it contains a record of all the variables that are active whenever you switch functions, recursively or otherwise.
<rubie> it will return 1
klmlfl has joined #ruby
mr-foobar has quit [Ping timeout: 260 seconds]
<fennec> well.... at the __bottom__ of the call chain it will return 1. that's not the end.
<rubie> where does that 1 get added into the sum
Zesty has joined #ruby
<rubie> yes it will be executed last
nanoyak has joined #ruby
krz has quit [Ping timeout: 260 seconds]
<fennec> not really
JBreit has left #ruby [#ruby]
<fennec> of all the return statements it'll get executed first
mr-foobar has joined #ruby
gwillickers has joined #ruby
<rubie> it gets evaluated every iteration, but not executed
oo_ has quit [Remote host closed the connection]
<fennec> you've been invoking curse(2) and it's trying to add curse(1) to 2. so once curse(1) returns 1, it will take that return value and return 1+2.
karmatr0n has joined #ruby
<rubie> ahhhh
stunder has quit [Ping timeout: 260 seconds]
davispuh has quit [Ping timeout: 245 seconds]
IceDragon has quit [Quit: Space~~~]
echevemaster has quit [Ping timeout: 272 seconds]
<rubie> ok thank you for the explaination
<rubie> hard concept to visualize
<eam> why doesn't Thing.class_eval { puts @@bar } work as I expect it might?
GriffinH_ has quit [Remote host closed the connection]
<rubie> kutos for explaining it
mikepack has quit [Ping timeout: 258 seconds]
rubie has quit [Quit: Page closed]
<eam> >> class Thing; @@bar = 77; end; Thing.class_eval { puts @@bar }
<eval-in___> eam => /tmp/execpad-c6706e1704b0/source-c6706e1704b0:2: warning: class variable access from toplevel ... (https://eval.in/197833)
klmlfl has quit [Ping timeout: 260 seconds]
<eam> >> class Thing; def initialize; @bar = 77;end; end; Thing.new.instance_eval { @bar }
<eval-in___> eam => 77 (https://eval.in/197834)
<eam> why does @@bar bind to Object
<eam> seems wrong, it should be evaluated inside the class
hiptobecubic has quit [Ping timeout: 250 seconds]
paradisaeidae has joined #ruby
<fennec> probably a metaclass thing
* fennec is a little fuzzy on how all that works
<fennec> but classes are objects too
skammer3 has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
teddyp1cker has joined #ruby
slyslick has quit [Quit: slyslick]
klmlfl_ has joined #ruby
gwillickers has left #ruby ["spoop!"]
<fennec> no maybe not
hiyosi_ has quit [Ping timeout: 250 seconds]
shock_one has joined #ruby
<fennec> >> class Thing; @@bar = 77; end; Thing.class_eval '@@bar'
<eval-in___> fennec => 77 (https://eval.in/197835)
skammer3 has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
stunder has joined #ruby
klmlfl_ has quit [Read error: No route to host]
<fennec> "Evaluates the string or block in the context of mod, except that when a block is given, constant/class variable lookup is not affected."
teddyp1cker has quit [Ping timeout: 272 seconds]
<fennec> so I guess it works that way because they wrote it to work that way, as helpful as that is.
threesixes has quit [Remote host closed the connection]
InhalingPixels has joined #ruby
shock_one has quit [Ping timeout: 272 seconds]
icebourg has joined #ruby
bmoyles0117 has left #ruby [#ruby]
caveat- has quit [Ping timeout: 272 seconds]
<fennec> go complain to Matsumoto that you've been Surprised ;)
cirn0 has joined #ruby
<fennec> and use class_variable_get/_set as a workaround in the meantime I guess
threesixes has joined #ruby
Amie74 has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 272 seconds]
cirn0 has quit [Ping timeout: 240 seconds]
Arne48 has joined #ruby
<eam> annoying!
Zesty has quit [Quit: Linkinus - http://linkinus.com]
krz has joined #ruby
neersighted has quit [Remote host closed the connection]
troyready has joined #ruby
caveat- has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
angusiguess has joined #ruby
neersighted has joined #ruby
angusigu1ss has joined #ruby
mushky has joined #ruby
gsd has joined #ruby
okic has joined #ruby
emocakes has quit [Ping timeout: 272 seconds]
orangerobot has joined #ruby
emocakes has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has quit []
slyslick has joined #ruby
wjimenez5271 has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
slyslick has quit [Client Quit]
HelperW__ has joined #ruby
angusigu1ss has quit [Ping timeout: 272 seconds]
buub has quit [Ping timeout: 260 seconds]
govg has quit [Ping timeout: 245 seconds]
wjimenez5271 has quit [Ping timeout: 260 seconds]
hiyosi_ has joined #ruby
govg has joined #ruby
HelperW__ has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
HelperW__ has joined #ruby
michaeldeol has joined #ruby
lewix has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
wallerdev has joined #ruby
arup_r has joined #ruby
hiyosi_ has quit [Ping timeout: 244 seconds]
kireevco has quit [Ping timeout: 272 seconds]
ramfjord has quit [Ping timeout: 246 seconds]
caveat- has quit [Ping timeout: 260 seconds]
zettam has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
Axy has quit [Read error: Connection reset by peer]
apeiros has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
mary5030 has quit [Remote host closed the connection]
HelperW__ has quit [Ping timeout: 260 seconds]
apeiros has joined #ruby
teenwolf has joined #ruby
zettam has quit [Read error: Connection reset by peer]
sethen has quit [Read error: Connection reset by peer]
InhalingPixels has quit []
caveat- has joined #ruby
govg has quit [Ping timeout: 260 seconds]
threesixes has quit [Remote host closed the connection]
ghr has joined #ruby
govg has joined #ruby
threesixes has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
slester has quit [Ping timeout: 260 seconds]
jimmyhoughjr has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
wjimenez5271 has joined #ruby
Channel6 has quit [Quit: Leaving]
emmesswhy has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
<GluonQuark> Thanks!
mikepack has joined #ruby
KC9YDN has quit [Remote host closed the connection]
Arne48 has quit [K-Lined]
bthesorceror has joined #ruby
grenierm has quit [Quit: grenierm]
narcan has joined #ruby
bruno- has joined #ruby
moritzschaefer has quit [Ping timeout: 258 seconds]
ItSANgo has quit [Quit: Leaving...]
mattjbarlow has joined #ruby
arup_r has quit [Quit: Leaving.]
mikepack has quit [Ping timeout: 272 seconds]
stoned has joined #ruby
Xiti` has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
skammer3 has joined #ruby
Xiti has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
shock_one has joined #ruby
duncannz has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
dukz has joined #ruby
mattjbarlow has quit [Ping timeout: 260 seconds]
dukz has quit [Remote host closed the connection]
chihhsin_cloud has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
Xiti` has quit [Quit: Leaving]
shock_one has quit [Ping timeout: 245 seconds]
stoned has quit [Ping timeout: 272 seconds]
atmosx has joined #ruby
davasaurous has quit [Remote host closed the connection]
orangerobot has quit [Quit: Page closed]
stoned has joined #ruby
mattjbarlow has joined #ruby
dukz has joined #ruby
Xeago has joined #ruby
bluOxigen has joined #ruby
oo_ has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
mattjbarlow has quit [Ping timeout: 272 seconds]
francisfish has joined #ruby
JoshGlzBrk has joined #ruby
stoned has quit [Ping timeout: 258 seconds]
oo_ has joined #ruby
caveat- has quit [Ping timeout: 272 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
timgauthier is now known as timgauthier_isaw
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shock_one has joined #ruby
ramfjord has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
angusiguess has joined #ruby
angusigu1ss has joined #ruby
caveat- has joined #ruby
francisfish has quit [Ping timeout: 272 seconds]
kireevco has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
ItSANgo has joined #ruby
HelperW__ has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
angusigu1ss has quit [Ping timeout: 272 seconds]
GriffinHeart has joined #ruby
MaciejCzyzewski has joined #ruby
hiyosi_ has joined #ruby
c107 has quit [Remote host closed the connection]
HelperW__ has quit [Ping timeout: 260 seconds]
HelperW__ has joined #ruby
fold has joined #ruby
MaciejCzyzewski has quit [Client Quit]
spastorino has quit [Quit: Connection closed for inactivity]
sigurding has joined #ruby
sigurding has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
hiyosi_ has quit [Ping timeout: 246 seconds]
<Pro|> is this somehow possible: array.each do puts & end
HelperW__ has quit [Ping timeout: 260 seconds]
davasaurous has joined #ruby
ghr has joined #ruby
teddyp1cker has joined #ruby
ffranz has quit [Quit: Leaving]
<atmosx> Pro|: what '&' suppose to do?
icebourg has quit []
ghr has quit [Ping timeout: 245 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
teddyp1cker has joined #ruby
bruno- has joined #ruby
mary5030 has joined #ruby
manvi has joined #ruby
manvi has left #ruby [#ruby]
klmlfl has joined #ruby
francisfish has joined #ruby
sectionme has joined #ruby
oleo has quit [Quit: Verlassend]
nanoyak has joined #ruby
Xiti has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
stoned has joined #ruby
sepp2k1 has quit [Quit: Leaving.]
HelperW__ has joined #ruby
mattjbarlow has joined #ruby
eat_multi has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
klmlfl has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nfk has joined #ruby
sinkensabe has joined #ruby
<Pro|> be the element from array that is being iterated
Avahey has joined #ruby
HelperW__ has quit [Ping timeout: 250 seconds]
<Hanmac> Pro|: does not work that way
<Hanmac> Pro|: array.each(&method(:puts)) does work ... or maybe array.each(&:display)
bthesorceror has quit [Quit: bthesorceror]
nonmadden has quit [Remote host closed the connection]
nonmadden has joined #ruby
sepp2k has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sbar_ has quit [Ping timeout: 246 seconds]
kyb3r_ has joined #ruby
francisfish has quit [Remote host closed the connection]
skammer3 has joined #ruby
<agent_white> Is there a way to flush IO into a buffer? I want to do a `STDIN.getch`, but then if the STDIN buffer isn't clear I want to shoot the remainder to a buffer.
<pontiki> flush is generally used for output, not input
wjimenez5271 has quit [Remote host closed the connection]
<agent_white> Hm.
wjimenez5271 has joined #ruby
nonmadden has quit [Ping timeout: 272 seconds]
techsethi has joined #ruby
lolmaus has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
skammer3 has quit [Ping timeout: 260 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
mushky has quit [Ping timeout: 244 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
shock_one has joined #ruby
arup_r has joined #ruby
<Pro|> Hanmac: ok cool
cirn0 has joined #ruby
<pontiki> agent_white: isn't is getc?
starkhalo has quit [Ping timeout: 260 seconds]
<agent_white> pontiki: Ah I'm using getch since I want it to return without a newline :)
<agent_white> (I'm reading in arrow key presses)
eat_multi has quit [Quit: leaving]
eat_multi has joined #ruby
yfeldblum has quit [Remote host closed the connection]
omosoj has joined #ruby
cirn0 has quit [Ping timeout: 246 seconds]
nonmadden has joined #ruby
<pontiki> are you using curses?
lxsameer has joined #ruby
<agent_white> Nah, going without it! :D
<agent_white> Curses makes it easy though.
<pontiki> where is getch defined?
GriffinHeart has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
ht__th has joined #ruby
jimmyhoughjr has quit [Ping timeout: 272 seconds]
<agent_white> In the ruby docs? Mmm not sure!
<pontiki> it's not in IO
fabrice31 has joined #ruby
techsethi has quit [Quit: techsethi]
paradisaeidae has quit [Ping timeout: 245 seconds]
<pontiki> oh, it's IO/console
yfeldblum has joined #ruby
<pontiki> oh, and look, there's iflush
relix has joined #ruby
angusiguess has joined #ruby
angusigu1ss has joined #ruby
troyready has quit [Ping timeout: 246 seconds]
paradisaeidae has joined #ruby
<agent_white> !!!
fabrice31 has quit [Ping timeout: 240 seconds]
sectionme has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
<agent_white> pontiki: Does that mean I can do flush the input buffer into my own buffer?
yfeldblum has quit [Remote host closed the connection]
<pontiki> i don't think so
<pontiki> i think in that case it means dump it
<pontiki> BUT!!!!
<pontiki> TIAS
yfeldblum has joined #ruby
angusigu1ss has quit [Ping timeout: 246 seconds]
<agent_white> :( Dump it to me instead, roobee...
angusiguess has quit [Ping timeout: 272 seconds]
<agent_white> But, I'm just using `c = STDIN.getch; next_two = STDIN.readpartial(2)`
<agent_white> it works well enough :)
sinkensabe has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
yfeldblu_ has joined #ruby
<omosoj> hey guys, what modules are in ActiveRecord? just Base and Migration?
<pontiki> omosoj: http://api.rubyonrails.org is your answer
<omosoj> yty
<omosoj> *ty
<omosoj> is there a way i can access this from pry?
ptrrr has joined #ruby
<pontiki> if you've built the rails docs, then pry-doc should be able to find them
<pontiki> try ri ActiveRecord
hiyosi_ has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
<omosoj> k, thanks
<omosoj> hmm, looks like just a short header with a blank page. don't think i have the docs
kenneth has joined #ruby
tobago has joined #ruby
<pontiki> i just use the website
<omosoj> k, i'll just do that
<pontiki> but that's probably too slow for some
<omosoj> meh, it would probably be easier for me but i feel like i should learn pry well at some point, heh
<pontiki> well, sure
oo_ has quit [Remote host closed the connection]
hiyosi_ has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
lolmaus has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
bruno- has joined #ruby
<bricker`LA> he who doesn't know pry, doesn't know ruby
<bricker`LA> I think Jesus said that
ghr has quit [Ping timeout: 272 seconds]
thams has quit [Quit: thams]
jkline has joined #ruby
thams has joined #ruby
<pontiki> no, that was "Suffer the children, that they come unto me"
<omosoj> and the oracle of delphi said: "know thy pry"
GriffinHeart has quit []
bruno- has quit [Ping timeout: 240 seconds]
davasaurous has quit [Remote host closed the connection]
<agent_white> -- "pry is _the_ guy! And if you question 'why?' you must give it a try!"
sdwrage_ has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
klmlfl has joined #ruby
davasaurous has joined #ruby
kil0byte has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MasterPiece has joined #ruby
sinkensabe has joined #ruby
GriffinHeart has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
klmlfl has quit [Ping timeout: 244 seconds]
teddyp1cker has joined #ruby
bal has joined #ruby
shock_one has joined #ruby
shock_one has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
graydot has quit [Quit: graydot]
<bricker`LA> binding dot pry is quite good; for debugging code as you should; but don't use dash-A; then push it away; or your app is debugging for good!
<bricker`LA> meh, B+ effort
jkline has quit [Quit: jkline]
sinkensabe has quit [Client Quit]
<omosoj> lol
aganov has joined #ruby
dkam has joined #ruby
danijoo has quit [Ping timeout: 250 seconds]
klmlfl has joined #ruby
skammer3 has joined #ruby
Riking has quit [Quit: ZNC - http://znc.sourceforge.net]
arup_r has quit []
ptrrr has quit [Quit: ptrrr]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
danijoo has joined #ruby
gauke has joined #ruby
HelperW has joined #ruby
Riking has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
klmlfl has quit [Ping timeout: 246 seconds]
Xeago has quit [Remote host closed the connection]
w09x has joined #ruby
jkline has joined #ruby
jkline has quit [Client Quit]
nanoyak has joined #ruby
<arup_r> Can anyone help me to refactor the #work method ? https://gist.github.com/aruprakshit/978f22f1666594f0cabf .. #work not following SRP
danijoo has quit [Ping timeout: 250 seconds]
danijoo has joined #ruby
<pontiki> what's SRP?
shock_one has joined #ruby
<pontiki> no?
timonv_ has joined #ruby
<pontiki> looks like lines 13 to 16 are assembling the input, and line 17 is the thing doing the work
chihhsin_cloud has quit [Quit: Connection closed for inactivity]
kireevco has joined #ruby
w09x has quit [Client Quit]
teddyp1cker has quit [Remote host closed the connection]
<arup_r> But the same method for me(although I wrote :-() Is doing too many things.. deserializing, making request, creating an Nokogiri object and then calling the final method...
crazydiamond has joined #ruby
mib32 has quit [Ping timeout: 244 seconds]
<pontiki> what would you rather see?
<arup_r> means ?
teddyp1cker has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
paradisaeidae_ has joined #ruby
<pontiki> qu'est-ce que vous voulez au lieu?
willgo has quit [Remote host closed the connection]
Morkel has joined #ruby
kenneth has joined #ruby
paradisaeidae has quit [Ping timeout: 244 seconds]
paradisaeidae_ is now known as paradisaeidae
sepp2k has quit [Read error: Connection reset by peer]
pen has joined #ruby
mityaz has joined #ruby
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
<arup_r> hehehe :-) What??
<pontiki> those are the two languages i know. i don't know another to ask my question.
<arup_r> ponitiki: As per you #work is perfect.. not doing more then onething..Right ?
foooobear_ has joined #ruby
<pontiki> i don't see any gain
* sevenseacat gets popcorn
baltazore has joined #ruby
angusiguess has joined #ruby
angusigu1ss has joined #ruby
nonmadden has quit [Remote host closed the connection]
_reset has joined #ruby
tectonic has quit []
fabrice31 has joined #ruby
graydot has joined #ruby
<Hanmac> arup_r: i would combine line 14-16 to parsed_page(WCrawler::Request.new(job.uri).get)
despai has joined #ruby
graydot has quit [Client Quit]
davasaurous has quit [Remote host closed the connection]
reset has quit [Ping timeout: 244 seconds]
angusigu1ss has quit [Ping timeout: 244 seconds]
despai has quit [Client Quit]
angusiguess has quit [Ping timeout: 246 seconds]
_reset has quit [Ping timeout: 260 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
timonv_ has quit [Remote host closed the connection]
andikr has joined #ruby
omosoj has quit [Quit: Leaving]
cndiv has quit [Quit: WeeChat 0.4.3]
yfeldblu_ has quit [Ping timeout: 272 seconds]
tvw has joined #ruby
ICantCook has joined #ruby
nonmadden has joined #ruby
hiyosi_ has joined #ruby
bnjamin has joined #ruby
Rhainur1 has quit [Quit: Leaving.]
bMalum has quit [Client Quit]
mijicd has joined #ruby
codecop has joined #ruby
Xeago has joined #ruby
bruno- has joined #ruby
hiyosi_ has quit [Ping timeout: 245 seconds]
* certainty steals popcorn from sevenseacat
<certainty> also moin
wallerdev has quit [Quit: wallerdev]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
bMalum has joined #ruby
wallerdev has joined #ruby
mijicd has quit [Quit: leaving]
bruno- has quit [Ping timeout: 272 seconds]
paradisaeidae has left #ruby [#ruby]
JoshGlzBrk has joined #ruby
wallerdev has quit [Client Quit]
ghr has quit [Ping timeout: 258 seconds]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alex88 has joined #ruby
zorak8 has quit [Ping timeout: 272 seconds]
kireevco has quit [Quit: Leaving.]
awc737 has joined #ruby
sepp2k has joined #ruby
kireevco has joined #ruby
kireevco has quit [Client Quit]
<arup_r> pontiki: I am doing refactoring.. I will show you for final review
<arup_r> :-)
blackmesa has joined #ruby
ICantCook has quit [Quit: Leaving]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<atmosx> aloha, soon my lettuce will be online.
kireevco has joined #ruby
<pontiki> red leaf?
<atmosx> no green
<atmosx> red leaf are yammie too though.
<atmosx> I must install... lol I must plant those too.
danijoo has quit [Ping timeout: 250 seconds]
<atmosx> it's my first time, planting my own vegetables
<atmosx> it was way more exhausting than I imagined.
kenneth has joined #ruby
<pontiki> this is one reason i write code :)
<pontiki> the other is: NO DIRT
<agent_white> atmosx: Just finished harvesting corn out here... we know it's good when it's "knee-high by the fourth of july"
<atmosx> pontiki: Truth is, that I was thinking about my father. He can build anything, from a car to ... anything that has electronics. If he was able to learn ruby/python there would be no limits for him.
<atmosx> on the other hand I suck at electonics, I like driving cars (don't care how they work or why).
<atmosx> agent_white: cool, is it a profession or a hobby? Corn harvesting sounds kinda scary.
<agent_white> atmosx: It's a hobby :)
<atmosx> agent_white: cool :D
<agent_white> And it's not bad. Just water the shit outta them like you do with potatoes, and you're good to go!
nonmadden has quit [Read error: Connection reset by peer]
kireevco has quit [Ping timeout: 258 seconds]
danijoo has joined #ruby
<atmosx> agent_white: I wanna video-tape the entire process, of growing lettuce, onions and cabbage
mikepack has joined #ruby
<agent_white> atmosx: You should time-lapse it!!
<atmosx> video-tape? video-record (or something)
<atmosx> agent_white: how can I do that? :-/
<atmosx> smart idea
Juanchito has joined #ruby
nonmadden has joined #ruby
thomasxie has joined #ruby
<agent_white> Setup a camera you can "hopefully" have stationary the entire time (webcam!!!), and just take a picture same time of day everyday!
<atmosx> Just setup two solutions I've found for the RPi to stream content, the second works fine but no video on iOs devices (no h264 support I guess or something).
<atmosx> agent_white: Oh yes, I can do that.
<atmosx> agent_white: I can get a screenshot every day the same time :-)
<atmosx> I'd like to measure soil's moisture levels too in the future. We'll see!
hiall has joined #ruby
<agent_white> So.
<agent_white> Why is `foo == nil` give undef, and `@foo == nil` give true?
<pontiki> i see arduinos in your future :)
mikepack has quit [Ping timeout: 246 seconds]
<arup_r> Any feedback please
<atmosx> arup_r: what does your worker do? get prices?
anaeem1_ has joined #ruby
<arup_r> It will start page crawling take each object from a queue
darkf has joined #ruby
<atmosx> pontiki: hehe might be :-)
sdwrage_ has joined #ruby
sdwrage has joined #ruby
<arup_r> Inside the #work I created a mess... That I am now able to separated out
<arup_r> :-)
<arup_r> I created a separate class
<arup_r> need pontiki: s feedback now :-)
<pontiki> good lord
<pontiki> do you like it?
<atmosx> pontiki: be quick or you'll be fired.
<atmosx> pontiki: imagine you have a gun in your head, like the 'Swordfish' scene.
<arup_r> hehehehe :-)
<pontiki> go ahead and shoot. please.
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<atmosx> to install scout_realtime to an RPi, takes like FOR-FUCKING-EVER.
<atmosx> 10+ minutes and counting :-( I should have disabled rdoc support in gems
<pontiki> oh, yes
<arup_r> hanmac: Do you see any improvement ?
<arup_r> :-)
grzywacz has joined #ruby
<pontiki> that made a huge diff for me
kamilc__ has joined #ruby
max06 has joined #ruby
skammer3 has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
danijoo has quit [Ping timeout: 250 seconds]
<darkf> so what exactly does @x do and why does it differ from self.x in that if x is undefined @x will return nil (instead of, presumably, calling method_missing and raising an exception with default objects)?
klmlfl has joined #ruby
<tobiasvl> hmm? @x isn't a method, it's an instance variable
blackmesa has quit [Ping timeout: 258 seconds]
boombadaroomba has quit [Quit: Leaving]
<darkf> ah
<darkf> so why does it feel the need to return null instead of throw an exception or something?
<sevenseacat> because if its not set, it has no value? therefore, nil?
<tobiasvl> undefined variables always return nil
ItSANgo has quit [Quit: Leaving...]
danijoo has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
mikepack has quit [Ping timeout: 272 seconds]
anarang has joined #ruby
<pontiki> why do you feel the need to anthropomorphize computer languages? :)
klmlfl has quit [Ping timeout: 260 seconds]
oponder has joined #ruby
mengu has joined #ruby
<darkf> pontiki: because I was not hit over the head by Dijkstra
<sevenseacat> pontiki: languages have feelings too, omg
<tobiasvl> darkf: if you want to check explicitly for definition:
<tobiasvl> >> defined? a
<eval-in___> tobiasvl => nil (https://eval.in/197893)
<tobiasvl> >> a = nil; defined? a
<eval-in___> tobiasvl => "local-variable" (https://eval.in/197894)
Avahey has quit [Quit: Connection closed for inactivity]
<darkf> no, I asked because I accidentally wrote "if foo == @bar" and it evaluated @bar, which does not _even exist_, to a value (nil) and threw off my program.
Dude007 has quit [Remote host closed the connection]
<sevenseacat> im not seeing a problem here
<sevenseacat> you found the bug, and fixed it
danijoo has quit [Read error: Connection reset by peer]
<darkf> the problem is that Ruby is designed like that to encourge this bug instead of letting me know I am trying to use a variable that does not exist.
<pontiki> lol
<sevenseacat> welcome to dynamic languages
danijoo has joined #ruby
<pontiki> yes, it is
<sevenseacat> enjoy your stay.
nonmadden has quit [Remote host closed the connection]
<darkf> sevenseacat: nope, it is nothing inherent to dynamic languages.
* sevenseacat raises eyebrow
<darkf> python does not let me use variables that do not exist.
<pontiki> then python is clearly the better choice for you
<darkf> clearly, yes.
charliesome has quit [Quit: zzz]
* sevenseacat hopes darkf never looks at languages like php then
cirn0 has joined #ruby
<darkf> sevenseacat: well yes, PHP is everything that is wrong with the world
nonmadden has joined #ruby
hiall has quit [Quit: hiall]
last_staff1 has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
kate_r has joined #ruby
qqw has quit [Ping timeout: 260 seconds]
qqw has joined #ruby
arup_r has quit [Remote host closed the connection]
kil0byte has joined #ruby
darkf has left #ruby ["Leaving"]
cirn0 has quit [Ping timeout: 260 seconds]
dANO has joined #ruby
tenseiten has quit [Ping timeout: 245 seconds]
seitensei has joined #ruby
seitensei has joined #ruby
angusiguess has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
terlar has joined #ruby
bricker`LA has quit [Ping timeout: 260 seconds]
jyuan has joined #ruby
DrCode has quit [Remote host closed the connection]
tanath has quit [Remote host closed the connection]
mocfive has quit [Remote host closed the connection]
jheg has joined #ruby
Tomme has quit [Ping timeout: 260 seconds]
tanath has joined #ruby
mocfive has joined #ruby
kalusn has joined #ruby
andrewlio has joined #ruby
<agent_white> This is why I don't get help in #learnprogramming much... he was one of the 'mentors' that helped me.
angusiguess has quit [Ping timeout: 245 seconds]
<agent_white> But all I get is "ruby is terrible. go learn someone else"
Synthead has quit [Ping timeout: 258 seconds]
DrCode has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tessi_zz is now known as tessi
<certainty> i wonder if reform is any good. It sounds pleasing
chthon has joined #ruby
mocfive has quit [Ping timeout: 260 seconds]
bnjamin has quit [Remote host closed the connection]
hiyosi_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
rocknrollmarc has joined #ruby
bweston92 has joined #ruby
AlexRussia has quit [Remote host closed the connection]
seitensei has quit [Ping timeout: 272 seconds]
<certainty> i never understood the reason for autovivication of instance variables in ruby. It is handy though
ghr has joined #ruby
kaspertidemann has joined #ruby
LiohAu_ has joined #ruby
workmad3 has joined #ruby
Synthead has joined #ruby
yetanotherdave has joined #ruby
nonmadden has quit [Quit: Leaving...]
yetanotherdave has quit [Client Quit]
mkaesz has joined #ruby
anaeem1_ has joined #ruby
hiyosi_ has quit [Ping timeout: 260 seconds]
patrick99e99 has joined #ruby
seitensei has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
goshdarnyou has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
mikecmpbll has joined #ruby
twobit has quit [Ping timeout: 272 seconds]
mdw has joined #ruby
sigurding has quit [Quit: sigurding]
noop has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
anaeem1_ has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
anaeem1 has joined #ruby
roolo has joined #ruby
timonv_ has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ItSANgo has joined #ruby
arup_r has joined #ruby
computerex has joined #ruby
chipotle has joined #ruby
Mohd__ has quit [Ping timeout: 260 seconds]
einarj has joined #ruby
Tomme has joined #ruby
elaptics`away is now known as elaptics
bigkevmcd has quit [Remote host closed the connection]
grzywacz has quit [Ping timeout: 245 seconds]
hiall has joined #ruby
joonty has joined #ruby
oo_ has joined #ruby
marr has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
shock_one has quit [Quit: Computer has gone to sleep.]
ephemerian has joined #ruby
timonv_ has quit [Remote host closed the connection]
jlebrech has joined #ruby
<jlebrech> is it possible to read rudy documentation from the command line? similar to man?
shock_one has joined #ruby
davasaurous has joined #ruby
timonv_ has joined #ruby
<sevenseacat> ri
Svtee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skammer3 has joined #ruby
moritzschaefer has joined #ruby
bayed has joined #ruby
davasaurous has quit [Remote host closed the connection]
klmlfl has joined #ruby
<joonty> jlebrech: yeh, the ri command, but it's hit and miss
<jlebrech> sevenseacat: cool.
<jlebrech> i'm looking for a way to read documentation offline
sinkensabe has joined #ruby
<jlebrech> I think every framework should have some kinda 'man page'
Aaaal has joined #ruby
<joonty> jlebrech: if it's a gem that you want docs for, you can run `gem server` to start a local server of all documentation
<jlebrech> joast: yeah, that sucks
jheg has quit [Quit: jheg]
timonv_ has quit [Remote host closed the connection]
<jlebrech> joonty: yeah that sucks
nanoyak has quit [Quit: Computer has gone to sleep.]
<jlebrech> sorry joast, tab completed you
<joonty> yeh, ruby isn't big on documentation
skammer3 has quit [Ping timeout: 272 seconds]
<agent_white> We just need to get a team to work on it :)
klmlfl has quit [Ping timeout: 240 seconds]
last_staff1 has quit [Remote host closed the connection]
nouranology has joined #ruby
francisfish has joined #ruby
hiall has quit [Ping timeout: 246 seconds]
<joonty> well volunteered agent_white!
<jlebrech> does 'man' namespace? like 'man ruby file' or 'man rails render' or 'man gem devise'
<jlebrech> if not we need a revision to man, or maybe the manpages need underscores
rdark has joined #ruby
Dude007 has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cya]
cirn0 has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
apeiros has quit [Read error: Connection reset by peer]
tessi is now known as tessi_zz
diegoviola has quit [Remote host closed the connection]
apeiros has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
last_staff has joined #ruby
adam________ has joined #ruby
clamstar has quit [Ping timeout: 272 seconds]
adam________ is now known as sagittarian
RyanV has joined #ruby
cirn0 has quit [Ping timeout: 258 seconds]
thejoecarroll_ has joined #ruby
thejoecarroll has quit [Ping timeout: 272 seconds]
bruno- has joined #ruby
timgauthier has joined #ruby
davasaurous has joined #ruby
angusiguess has joined #ruby
chipotle has joined #ruby
eat_multi has quit [Ping timeout: 240 seconds]
clamstar has joined #ruby
wpp has joined #ruby
bruno- has quit [Ping timeout: 258 seconds]
hiall has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
blackmesa has joined #ruby
eat_multi has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
hiyosi_ has joined #ruby
techsethi has joined #ruby
nhhagen has joined #ruby
mib32 has joined #ruby
davasaurous has quit [Remote host closed the connection]
mocchi_ has quit [Ping timeout: 260 seconds]
mocchi has joined #ruby
<agent_white> joonty: Haha I'm better as a QA since I have no idea what I'm doing but break everything in the process.
jheg has joined #ruby
<joonty> agent_white: the best kind of QA testers
timgauthier is now known as timgauthier_isaw
hiyosi_ has quit [Ping timeout: 260 seconds]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<agent_white> joonty: Hahah <3. They say that until a dev shows off his/her new feature and I show off how many ways it can be broken. :P
<joonty> if you think your software is perfect, just get your grandma to try it
<agent_white> "Oh you implemented importing contacts from a CSV? Guess I'll upload some music of mine!"
<sevenseacat> D:
enali has joined #ruby
<sevenseacat> oh i hate people like you >_>
<toertore> you hate grandmas?
<agent_white> ;) Nah I learned that sysadmins do too when instead of a music file I uploaded a 350mb video.
bluehavana has quit [Quit: Connection closed for inactivity]
threesixes has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
Beoran_ has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
willgo has joined #ruby
Beoran has joined #ruby
ki0 has quit [Remote host closed the connection]
<agent_white> sevenseacat: The better part of that was the follow-up... "Oh you're checking file extensions now? Luckily my music files are .csv's!"
<agent_white> ;D
qba73 has joined #ruby
ki0 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
<agent_white> Like joonty said, gotta assume that "the user is drunk".
timonv_ has joined #ruby
<sevenseacat> haha
techsethi has quit [Quit: techsethi]
<joonty> users suck
ki0 has quit [Client Quit]
<joonty> that is all
mikepack has joined #ruby
<agent_white> Yup! I'm a fan of "mandatory introduction tutorials". Makes the user feel like they're using a fancy program to show them things, and at the same time idiot-proofs the program!
sevenseacat has quit [Remote host closed the connection]
ki0 has joined #ruby
foooobear_ has quit [Quit: Computer has gone to sleep.]
<jlebrech> agent_white: you make the application unnecessarily complex by being *dumber* than the average user, when some middleware should handle those cases.
<agent_white> jlebrech: Haha true. But I also make sure it won't be hacked and you lose all your work from the past x_months.
tessi_zz is now known as tessi
<agent_white> So I wouldn't say "dumber", but simply "not the average user". :)
mikepack has quit [Ping timeout: 260 seconds]
<jlebrech> the ideal way would be for a clean app, that just handles functionality and then a layer for security. separating into api and app solves most of that.
enali1 has joined #ruby
chipotle has quit [Quit: cya]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
thomasxie has quit [Ping timeout: 260 seconds]
<agent_white> jlebrech: Aye. But that won't happen until I become the dev's worst nightmare! >:D
<jlebrech> agent_white: yeah *drunken malicious granma emulation*
<agent_white> Hahah.
enali1 has quit [Remote host closed the connection]
<agent_white> An unsanitized-input is one proper for malicious intent.
kate_r has joined #ruby
<agent_white> ... to farm my dodge-coins, of course!
nouranology has quit [Ping timeout: 260 seconds]
hiall has quit [Quit: hiall]
bMalum has quit [Ping timeout: 244 seconds]
bMalum has joined #ruby
enali1 has joined #ruby
robustus is now known as robustus|Off
enali1 has quit [Remote host closed the connection]
skammer3 has joined #ruby
startupality has joined #ruby
krisquigley has joined #ruby
oo_ has quit [Remote host closed the connection]
klmlfl has joined #ruby
enali1 has joined #ruby
oo_ has joined #ruby
Davedo has quit [Ping timeout: 260 seconds]
skammer3 has quit [Ping timeout: 260 seconds]
karupa is now known as zz_karupa
willgo has quit [Remote host closed the connection]
klmlfl has quit [Ping timeout: 272 seconds]
nouranology has joined #ruby
workmad3 has joined #ruby
mzdravkov has joined #ruby
duncannz has quit [Ping timeout: 272 seconds]
Davedo has joined #ruby
mzdravkov has left #ruby [#ruby]
mengu has quit [Remote host closed the connection]
ringarin has joined #ruby
narcan has joined #ruby
last_staff has quit [Ping timeout: 258 seconds]
kaspertidemann has quit []
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
hiall has joined #ruby
Advocation has joined #ruby
agjacome has joined #ruby
Sharker has joined #ruby
foooobear has joined #ruby
dukz has quit [Remote host closed the connection]
pwestlund has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
angusiguess has joined #ruby
xcv has joined #ruby
jheg has quit [Quit: jheg]
last_staff has joined #ruby
diegoviola has joined #ruby
angusiguess has quit [Ping timeout: 258 seconds]
Takle has quit [Remote host closed the connection]
grzywacz has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
hiyosi_ has joined #ruby
tvle83 has joined #ruby
timgauthier has joined #ruby
timgauthier has quit [Max SendQ exceeded]
timonv_ has quit [Ping timeout: 245 seconds]
kaspergrubbe_ has joined #ruby
hiyosi_ has quit [Ping timeout: 250 seconds]
pwestlund has joined #ruby
patrick99e99 has joined #ruby
bnjamin has joined #ruby
p0sixpscl has joined #ruby
timgauthier has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
Relaxation___ has quit [Quit: Connection closed for inactivity]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
bnjamin has quit [Read error: Connection reset by peer]
bnjamin has joined #ruby
mengu has joined #ruby
bnjamin_ has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
enali has quit [Quit: Leaving]
dEPy has joined #ruby
willgo has joined #ruby
fabrice31 has quit [Remote host closed the connection]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
angusiguess has joined #ruby
jheg has joined #ruby
krz has quit [Ping timeout: 260 seconds]
bnjamin_ has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
bnjamin has joined #ruby
LiohAu_ is now known as LiohAu
<tvle83> i am having trouble running ruby console with having access to my custom module/class. I am trying to participate in exercism.io challenges.. i am more familiar with ruby on rails instead of just plain ruby so that's why this is new to me.. any pointers on how to get IRB to work with my custom module/class
bnjamin has quit [Read error: Connection reset by peer]
bnjamin has joined #ruby
davasaurous has joined #ruby
mengu has quit [Ping timeout: 272 seconds]
bnjamin has quit [Read error: Connection reset by peer]
bnjamin has joined #ruby
vinleod has joined #ruby
doodlehaus has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
jespada has joined #ruby
bnjamin has joined #ruby
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
bruno- has joined #ruby
Pupeno has joined #ruby
<Pupeno> Did Ruby 2.1.3 break backward compatibility? {blah: if true then 1 else 3 end} used to be valid code in Ruby 2.1.2 but is not in 2.1.3: syntax error, unexpected modifier_if
roolo has quit [Ping timeout: 240 seconds]
krz has joined #ruby
<toertore> yes ?
blackmesa has joined #ruby
tkuchiki has quit [Remote host closed the connection]
skammer3 has joined #ruby
mengu has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
<Pupeno> Or is that a bug? is there another way of writing that without a variable and without ?:)
bnjamin has joined #ruby
arup_r has quit [Remote host closed the connection]
tvle83 has quit [Quit: Ex-Chat]
mkaesz has quit [Ping timeout: 245 seconds]
fabrice31 has joined #ruby
klmlfl has joined #ruby
postmodern has quit [Quit: Leaving]
ndrei has quit [Ping timeout: 260 seconds]
elstif has joined #ruby
kaspertidemann has joined #ruby
decoponio has joined #ruby
ringarin has quit [Read error: Connection reset by peer]
kaspergrubbe_ has quit [Remote host closed the connection]
skammer3 has quit [Ping timeout: 260 seconds]
klmlfl has quit [Ping timeout: 260 seconds]
LudicrousMango has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
hiall has quit [Ping timeout: 240 seconds]
hiall has joined #ruby
roolo has joined #ruby
lolmaus has joined #ruby
krz has quit [Read error: Connection reset by peer]
lkba has joined #ruby
lolmaus has quit [Client Quit]
bnjamin has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
bnjamin has joined #ruby
willgo has quit [Remote host closed the connection]
dukz has joined #ruby
hmsimha has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
bnjamin has joined #ruby
yfeldblum has quit [Remote host closed the connection]
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
MrBoolean has joined #ruby
enali1 has quit [Ping timeout: 272 seconds]
robustus|Off is now known as robustus
bnjamin_ has joined #ruby
bnjamin has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
klmlfl has joined #ruby
enali has joined #ruby
jottr has joined #ruby
robustus is now known as robustus|Off
klmlfl has quit [Read error: No route to host]
klmlfl has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
cocotton has joined #ruby
bnjamin_ has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
bnjamin has joined #ruby
shredding has joined #ruby
robustus|Off is now known as robustus
yfeldblu_ has quit [Ping timeout: 246 seconds]
cocotton has quit [Remote host closed the connection]
mofai has quit []
klmlfl has quit [Ping timeout: 245 seconds]
anaeem1 has quit [Ping timeout: 260 seconds]
<arup_r> Did anyone use ? https://github.com/nesquena/dante
cocotton_ has joined #ruby
cocotton_ has quit [Remote host closed the connection]
<arup_r> I just wanted to run my simple worker.rb file using the above gem
<arup_r> Not able to understand how to set it up?
cocotton has joined #ruby
mkaesz has joined #ruby
LudicrousMango has quit [Read error: Connection reset by peer]
krz has joined #ruby
hiyosi_ has joined #ruby
LudicrousMango has joined #ruby
bnjamin has quit [Ping timeout: 240 seconds]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
hmsimha has quit [Ping timeout: 260 seconds]
skammer3 has joined #ruby
ringarin has joined #ruby
narcan has joined #ruby
jhass|off is now known as jhass
hiyosi_ has quit [Ping timeout: 272 seconds]
roolo has quit [Ping timeout: 245 seconds]
tokik has quit [Ping timeout: 244 seconds]
skammer3 has quit [Ping timeout: 250 seconds]
Takle has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
foooobear_ has joined #ruby
anaeem1_ has joined #ruby
krisquigley has quit [Remote host closed the connection]
krisquigley has joined #ruby
rocknrollmarc has quit [Ping timeout: 258 seconds]
foooobear has quit [Ping timeout: 245 seconds]
Tomme has quit [Ping timeout: 260 seconds]
Takle has quit [Ping timeout: 246 seconds]
speakingcode has joined #ruby
lyanchih has joined #ruby
sigurding has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlehaus has quit []
krisquigley has quit [Ping timeout: 260 seconds]
KC9YDN has joined #ruby
Tomme has joined #ruby
foooobear__ has joined #ruby
foooobear__ has quit [Client Quit]
kyb3r_ has quit [Read error: Connection reset by peer]
tyll_ has joined #ruby
mikepack has joined #ruby
roolo has joined #ruby
foooobear_ has quit [Ping timeout: 245 seconds]
foooobear__ has joined #ruby
<tyll_> How can I update a socket t
robustus is now known as robustus|Off
<tyll_> sorry
<tyll_> How can I update a socket that came from a listening server to an TLS socket?
yfeldblum has joined #ruby
TorpedoSkyline has joined #ruby
arup_r has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0]
<tyll_> I want to make this socket here https://github.com/beefproject/beef/blob/master/extensions/proxy/proxy.rb#L31 to become a TLS socket if method is CONNECT
mikepack has quit [Ping timeout: 250 seconds]
bricker`LA has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
bruno- has quit [Quit: Lost terminal]
luckyruby has quit [Quit: Leaving...]
kalusn has quit []
anaeem1 has joined #ruby
^42 has quit [Ping timeout: 272 seconds]
robustus|Off is now known as robustus
Snowstormer has joined #ruby
bricker`LA has quit [Ping timeout: 250 seconds]
foooobear__ has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
ringarin has quit [Quit: Leaving]
bruno- has joined #ruby
bnjamin has joined #ruby
bruno- has quit [Client Quit]
dukz has quit [Remote host closed the connection]
yacks has quit [Client Quit]
arup_r has joined #ruby
bruno- has joined #ruby
claymore has joined #ruby
enali has quit [Ping timeout: 260 seconds]
enali has joined #ruby
jlebrech has quit [Remote host closed the connection]
bruno- has quit [Client Quit]
foooobear__ has joined #ruby
bruno- has joined #ruby
yacks has joined #ruby
ldnunes has joined #ruby
nouranology has quit [Ping timeout: 250 seconds]
dorei has joined #ruby
krz has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Svte has joined #ruby
willgo has joined #ruby
TorpedoSkyline has joined #ruby
bMalum has quit [Ping timeout: 272 seconds]
<agent_white> Gnight
agent_white has left #ruby [#ruby]
yeticry has quit [Quit: leaving]
jottr has quit [Ping timeout: 260 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Paul_McFreely has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Paul_McFreely has joined #ruby
rocknrollmarc has joined #ruby
banister has joined #ruby
cirn0 has joined #ruby
banister has quit [Max SendQ exceeded]
jottr has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
cirn0 has quit [Ping timeout: 258 seconds]
banister has joined #ruby
kedare has joined #ruby
bruno-_ has joined #ruby
banister has quit [Max SendQ exceeded]
mengu has quit [Remote host closed the connection]
oo_ has joined #ruby
banister has joined #ruby
bruno-_ has quit [Client Quit]
<apeiros> anybody happen to have code lying around to convert an array of integers into an array of ranges? i.e. [1,2,3,6,7,8,9].to_ranges # => [1..3, 6..9]
DaniG2k has joined #ruby
klmlfl has joined #ruby
bruno-_ has joined #ruby
bruno-_ has quit [Client Quit]
angusiguess has joined #ruby
oo_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
oo_ has joined #ruby
klmlfl has quit [Ping timeout: 246 seconds]
bruno-_ has joined #ruby
<canton7> sure... it's not in ruby, though
rocknrollmarc has quit [Read error: Connection reset by peer]
Dude007 has quit [Read error: Connection reset by peer]
angusiguess has quit [Ping timeout: 246 seconds]
blackmesa has quit [Quit: WeeChat 1.0]
Wolland has joined #ruby
bruno- has quit [Ping timeout: 272 seconds]
Dude007 has joined #ruby
<canton7> apeiros, happy translating: https://gist.github.com/canton7/bf9c9f156e9b3c3fe557
anaeem1 has quit [Ping timeout: 240 seconds]
Wolland has joined #ruby
<apeiros> canton7: I think I'll go with my 3min 22 liner instead, thanks :D
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mib32 has quit [Quit: mib32]
oo_ has quit [Remote host closed the connection]
<canton7> heh :P
jheg has quit [Quit: jheg]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland_ has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
TorpedoSkyline has joined #ruby
nouranology has joined #ruby
hiyosi_ has joined #ruby
<apeiros> wherein I also learn that << has precedence over ..
anaeem1_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<apeiros> so: result << left..right # did not do what I expected it to
<toertore> precedence rules :(
<apeiros> and it's actually 20 lines and 5min after removing debug output :D
dandrade has quit [Ping timeout: 245 seconds]
Roa has quit [Ping timeout: 245 seconds]
<canton7> haha
Wolland has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
fsapo has joined #ruby
hiyosi_ has quit [Ping timeout: 246 seconds]
<apeiros> ugh, I think this is a bug… "\x7F".to_json -> "\"\u007F\""
<apeiros> I'm pretty sure this should return "\"\\u007F\""
jottr has joined #ruby
Squarepy has joined #ruby
britneywright has joined #ruby
<bweston92> apeiros but \x75 it \u007F
<apeiros> bweston92: \\u007f vs. \u007f
foooobear__ has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
foooobear__ has joined #ruby
<workmad3> apeiros: pretty sure JSON is fine with unicode characters... so there's no need for the JSON blob to contain the string '\u007f' surely?
mattstratton has joined #ruby
<bweston92> I understand that but the backward slash and x in a string makes that part parsed as hex
<apeiros> though json.org says "any unicode character except ", \ and control character", it does not specify control character, so 0x00-0x1f is probably meant.
ndrei has joined #ruby
<apeiros> bweston92: it makes it an escape sequence. just like you do for control chars.
sagittarian has quit [Ping timeout: 250 seconds]
<bweston92> yes
<apeiros> and 0x7f is not a printable character, so I'm pretty sure you want it escaped
<apeiros> 0x7f = DEL
<bweston92> hmm
<apeiros> but it's correct according to the spec :-/
Xeago has joined #ruby
<waxjar> apeiros: https://gist.github.com/britishtea/85e37eb645681d305ebf may not be the fastest method, though
mengu has joined #ruby
<apeiros> ah, nope!
lolmaus has quit [Ping timeout: 272 seconds]
<apeiros> http://en.wikipedia.org/wiki/Unicode_control_characters defines 0x7f as a control character
hiyosi_ has joined #ruby
<apeiros> so bug in rubys json stdlib
davasaurous has quit []
yfeldblum has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
speakingcode has quit [Ping timeout: 246 seconds]
<apeiros> does not look like it has been reported already
AmBienCeD has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
<workmad3> apeiros: may not be just ruby
AmBienCeD has joined #ruby
thomasxie has joined #ruby
<workmad3> apeiros: JSON.parse('{"\u007f": "hi"}') in the js console of chrome was fine with it
fennec has quit [Quit: This computer has gone to sleep]
<workmad3> oh wait... that isn't quite the same
timgauthier is now known as timgauthier_isaw
<apeiros> even safaris JSON.stringify does it wrong
<workmad3> bleh :)
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 272 seconds]
larsam has joined #ruby
Avahey has joined #ruby
<workmad3> but yeah... stringifying and parsing it again produces non-escaped characters
<apeiros> same for crome
ndrei has joined #ruby
<workmad3> while switching to \u001f causes issues
<apeiros> yea, well, that part is to be expected
bruno-_ has quit [Quit: Lost terminal]
robustus is now known as robustus|Off
Advocation has quit [Quit: Advocation]
yfeldblum has quit [Ping timeout: 260 seconds]
<apeiros> so am I the first guy to encode 0x7f to json or just the first to notice that many major implementations to it wrong?
<apeiros> *chrome, not crome :)
bruno-_ has joined #ruby
ringarin has joined #ruby
<workmad3> apeiros: dunno... I'd be doubtful of either being the case
anaeem1_ has quit [Remote host closed the connection]
<workmad3> it could just be that treating 0x7f separately is too annoying for people to care about :)
Es0teric has joined #ruby
<apeiros> and same for firefox
timgauthier has joined #ruby
krisquigley has joined #ruby
<workmad3> apeiros: you could use this to your advantage... make JS objects that aren't as susceptible to hacking via the chrome console
bruno-_ has quit [Client Quit]
<workmad3> apeiros: by prefixing and/or suffixing your properties with \u007f :)
<workmad3> admittedly, it would be one of the most pointless things to do ever...
skammer3 has joined #ruby
AmBienCeD has quit [Ping timeout: 260 seconds]
CapitalSigma has joined #ruby
kate_r has joined #ruby
CapitalSigma has left #ruby ["."]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krisquig_ has joined #ruby
foooobear__ has quit [Ping timeout: 245 seconds]
krisquigley has quit [Read error: Connection reset by peer]
bruno-_ has joined #ruby
tolo123 has joined #ruby
lolmaus has joined #ruby
enali has quit [Ping timeout: 246 seconds]
narcan has joined #ruby
angusiguess has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
bruno-_ has quit [Client Quit]
banister has joined #ruby
arturhoo has joined #ruby
fold has quit [Ping timeout: 258 seconds]
joonty has quit [Quit: Leaving]
bruno-_ has joined #ruby
bruno-_ has quit [Client Quit]
ndrei has quit [Ping timeout: 272 seconds]
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
rkalfane has joined #ruby
ndrei has joined #ruby
W0rmDr1nk has joined #ruby
anarang has quit [Ping timeout: 272 seconds]
AlexRussia has joined #ruby
<shevy> you javascript geeks here make me sad
rkalfane has quit [Client Quit]
spyderman4g63 has quit [Remote host closed the connection]
AmBienCeD has joined #ruby
Dude007 has quit [Ping timeout: 272 seconds]
spyderman4g63 has joined #ruby
coderdad has joined #ruby
<DefV> haha
rkalfane has joined #ruby
<DefV> console.log("boohoo")
arup_r has quit [Remote host closed the connection]
WormDr1nk has quit [Ping timeout: 258 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Kricir has joined #ruby
<apeiros> shevy: necessary evil if you do webdev
rkalfane has quit [Client Quit]
bruno- has quit [Quit: Lost terminal]
narcan has joined #ruby
spyderman4g63 has quit [Ping timeout: 272 seconds]
Dude007 has joined #ruby
<workmad3> apeiros: I'm still waiting for a Tilt engine for Sprockets that will take 'my_stuff.js.rb' and compile down to JS :)
bnjamin has quit [Remote host closed the connection]
jheg has joined #ruby
bruno- has joined #ruby
francisfish has quit [Ping timeout: 260 seconds]
krz has joined #ruby
spyderman4g63 has joined #ruby
HelperW has quit [Read error: Connection reset by peer]
Dude007 has quit [Client Quit]
phutchins has joined #ruby
HelperW has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
DaniG2k has quit [Ping timeout: 260 seconds]
AlexRussia has joined #ruby
St_Marx has joined #ruby
janmuffino has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 258 seconds]
lyanchih has joined #ruby
Tomme has quit [Ping timeout: 260 seconds]
jeremy04 has joined #ruby
bruno- has joined #ruby
dkam has quit [Ping timeout: 240 seconds]
dkam has joined #ruby
<pontiki> like opalrb? the transpiler?
agjacome has quit [Quit: leaving]
rkalfane has joined #ruby
anarang has joined #ruby
* pontiki shifts to working full time on javascript
phoo1234567 has joined #ruby
Macaveli has joined #ruby
nouranology has quit [Read error: Connection reset by peer]
Morkel_ has joined #ruby
jeremy04 has quit [Ping timeout: 260 seconds]
phoo1234567 has quit [Max SendQ exceeded]
phoo1234567 has joined #ruby
Morkel has quit [Ping timeout: 246 seconds]
Morkel_ is now known as Morkel
AlexRussia has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
aspires has joined #ruby
mbwe has joined #ruby
mr-foobar has quit [Read error: Connection reset by peer]
corehook has joined #ruby
mr-foobar has joined #ruby
klmlfl has joined #ruby
silkfox has joined #ruby
govg has quit [Quit: leaving]
yacks has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
msmith_ has joined #ruby
govg has joined #ruby
ndrei has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
slester has joined #ruby
iamjarvo has quit [Client Quit]
<apeiros> 90% traffic reduction. nice :)
<shevy> did you shoot down the users
klmlfl has quit [Ping timeout: 272 seconds]
Kislik has joined #ruby
jerius has quit []
<apeiros> no, I compressed the data a bit
freerobby has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
agjacome has joined #ruby
LudicrousMango has quit [Remote host closed the connection]
{xenomorph} is now known as xenomorph
LudicrousMango has joined #ruby
aspires has quit []
freerobby has quit [Client Quit]
baltazore has quit [Remote host closed the connection]
kaspertidemann has quit []
yacks has joined #ruby
thomasxie has left #ruby [#ruby]
slester has quit [Ping timeout: 272 seconds]
silkfox has joined #ruby
MasterPiece has quit [Quit: Leaving]
nouranology has joined #ruby
ikawnoclast has joined #ruby
blaxter has quit [Ping timeout: 260 seconds]
blaxter has joined #ruby
<jheg> o/
ta has quit [Remote host closed the connection]
geekbri has joined #ruby
<jheg> when using binding.pry is there a way using a keyboard shortcut, to continue to the next line of the program?
paulfm has joined #ruby
LudicrousMango has quit [Ping timeout: 260 seconds]
baltazore has joined #ruby
ta has joined #ruby
MaciejCzyzewski has joined #ruby
willgo has quit [Remote host closed the connection]
<workmad3> jheg: not with plain pry, no
silkfox has quit [Ping timeout: 272 seconds]
<jheg> ah OK thanks
<workmad3> jheg: however, pry-byebug or pry-debugger provide 'step', 'next' and 'continue' commands to let you use pry as a step-by-step debugger
<jheg> workmad3: pry-debugger?
<jheg> ah cool thanks again :)
bnjamin has joined #ruby
timonv_ has quit [Remote host closed the connection]
<workmad3> np :)
bnjamin has quit [Remote host closed the connection]
bricker`LA has joined #ruby
nouranology has quit [Read error: Connection reset by peer]
<apeiros> jheg: pry-debugger for ruby 2.0, pry-byebug for ruby 2.1+
robustus|Off is now known as robustus
<jheg> cheers apeiros
<workmad3> apeiros: ah, has pry-debugger updated then? I thought it was pry-debugger for 1.9.3, pry-byebug for ruby 2.0+
<apeiros> I thought it was something else for 1.9+
<apeiros> I asked banister once which one to use when, but I'm not entirely certain anymore :) pretty sure byebug is the newest, though
<jheg> have either of you heard of pry.nav?
<workmad3> hmm.... first line of the pry-debugger README is 'Using MRI 2.0.0+? Use pry-byebug'
bnjamin has joined #ruby
jimmyy has quit [Ping timeout: 240 seconds]
<jheg> scrap that
<apeiros> hm, can't find it. go with the readme then :)
<workmad3> jheg: the plugins I tend to use are pry-byebug and pry-doc... I keep on meaning to dig into pry-stack_explorer but haven't incorporated it into my pry use yet :)
ndrei has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
mikepack has joined #ruby
banister has joined #ruby
bricker`LA has quit [Ping timeout: 240 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Spami has joined #ruby
<workmad3> pry-doc is great fun... gives you show-doc and show-source for ruby core stuff :)
<workmad3> right, time for lunch
workmad3 is now known as wm3|away
kate_r_ has joined #ruby
kate_r_ has quit [Max SendQ exceeded]
kate_r_ has joined #ruby
timgauthier is now known as timgauthier_isaw
bnjamin has quit [Remote host closed the connection]
timgauthier_isaw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerius has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
kate_r has quit [Ping timeout: 260 seconds]
<jheg> enjoy
anarang has quit [Ping timeout: 244 seconds]
jeremy04_ has joined #ruby
gvenkat has joined #ruby
DaniG2k has joined #ruby
foooobear has joined #ruby
bnjamin has joined #ruby
sailias has joined #ruby
douglasssssss has joined #ruby
g0bl1n has joined #ruby
yfeldblum has joined #ruby
lewix has joined #ruby
cocotton has quit [Remote host closed the connection]
slester1 has quit [Quit: slester1]
nouranology has joined #ruby
slester has joined #ruby
cocotton has joined #ruby
oleo has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
Snowstormer is now known as ^42
krz has quit [Quit: WeeChat 1.0]
iamjarvo has joined #ruby
anarang has joined #ruby
robustus is now known as robustus|Off
angusiguess has joined #ruby
mark_locklear has joined #ruby
Fraeon has quit [Remote host closed the connection]
AmBienCeD has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
nouranology has quit [Read error: Connection reset by peer]
AmBienCeD has joined #ruby
subopt has quit [Remote host closed the connection]
ursooperduper has joined #ruby
qmfnp has joined #ruby
subopt has joined #ruby
angusiguess has quit [Ping timeout: 246 seconds]
narendraj9 has joined #ruby
dkam has quit [Quit: dkam]
thams has quit [Quit: thams]
nhhagen has quit []
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
g0bl1n has quit [Quit: g0bl1n]
wald0 has quit [Read error: No route to host]
wald0 has joined #ruby
kate_r has joined #ruby
pdoherty has joined #ruby
kate_r has quit [Max SendQ exceeded]
robustus|Off is now known as robustus
mattstratton has joined #ruby
kate_r has joined #ruby
kate_r_ has quit [Ping timeout: 244 seconds]
gigetoo has quit [Read error: Connection reset by peer]
gigetoo has joined #ruby
anarang has quit [Quit: Leaving]
timgauthier has joined #ruby
ppinto has joined #ruby
a_ has joined #ruby
<a_> hi guys. how can I interpolate a namespace like this? ABC::XYZ::#{my_string}.new ?
pen has quit [Ping timeout: 246 seconds]
Svte has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier has quit [Read error: Connection reset by peer]
msmith_ has quit [Remote host closed the connection]
<waxjar> a_: const_get
Roa has joined #ruby
dandrade has joined #ruby
Axy has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
charliesome has joined #ruby
wm3|away has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
doodlehaus has joined #ruby
timgauthier has joined #ruby
banister has joined #ruby
klmlfl has joined #ruby
<a_> waxjar: thanks dude, looks good.
spastorino has joined #ruby
benzrf|offline is now known as benzrf
nouranology has joined #ruby
robustus is now known as robustus|Off
Spami has quit [Quit: This computer has gone to sleep]
mbinder has joined #ruby
mbinder has quit [Client Quit]
lmickh has joined #ruby
enebo has joined #ruby
robustus|Off is now known as robustus
Ankhers has joined #ruby
awm has joined #ruby
klmlfl has quit [Ping timeout: 245 seconds]
awm has left #ruby [#ruby]
buub has joined #ruby
guiguidoc has joined #ruby
Kricir has joined #ruby
MrBoolean has quit [Ping timeout: 245 seconds]
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
robustus is now known as robustus|Off
timgauthier has quit [Quit: Textual IRC Client: www.textualapp.com]
EasyCo has quit [Quit: Connection closed for inactivity]
buub has quit [Client Quit]
robustus|Off is now known as robustus
buub has joined #ruby
User458764 has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
akkad has quit [Ping timeout: 272 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
krz has joined #ruby
patrick99e99 has joined #ruby
bMalum has joined #ruby
akkad has joined #ruby
freerobby has joined #ruby
djstorm has joined #ruby
crazydiamond has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Client Quit]
starkhalo has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
banister has joined #ruby
ffranz has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
mengu has quit []
Squarepy has quit [Remote host closed the connection]
devdazed has joined #ruby
freerobby has quit [Quit: Leaving.]
ohwhoa has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
freerobby has joined #ruby
ohwhoa has quit [Client Quit]
arup_r has joined #ruby
ndrei has joined #ruby
spacemud has quit [Ping timeout: 260 seconds]
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
TorpedoSkyline has joined #ruby
aspires has joined #ruby
robustus is now known as robustus|Off
milkohol has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
narendraj9 has quit [Quit: Leaving]
ppinto has quit [Read error: Connection reset by peer]
shackleford has joined #ruby
shackleford has quit [Remote host closed the connection]
ppinto has joined #ruby
shackleford has joined #ruby
bricker`LA has joined #ruby
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
renanoronfle has joined #ruby
otherj has joined #ruby
silkfox has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
slyslick has joined #ruby
DivineEntity has quit [Quit: leaving]
mary5030 has joined #ruby
tonyhb has joined #ruby
kate_r has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
g0bl1n has joined #ruby
wm3|away has joined #ruby
bbloom has quit [Quit: Textual IRC Client: www.textualapp.com]
TorpedoSkyline has joined #ruby
RandyT_ has joined #ruby
RandyT has quit [Ping timeout: 250 seconds]
RandyT_ is now known as RandyT
<aep> is there a way to specify a literal character array, like in C? string = {0x1, 0x2 etc
tesaf has joined #ruby
paulfm has quit [Ping timeout: 250 seconds]
slyslick has left #ruby [#ruby]
<pontiki> 'this is a literal string'
<pontiki> "so is this"
jasonzzz_ has joined #ruby
<pontiki> ?
jasonzzz_ has quit [Max SendQ exceeded]
<aep> no, from hex codes
ndrei has joined #ruby
<pontiki> "\x01\x02"
jasonzzz_ has joined #ruby
jasonzzz_ has quit [Max SendQ exceeded]
LudicrousMango has joined #ruby
hoge_ has joined #ruby
<aep> yeah but thats not what xxd generates from binary :(
kaspergrubbe_ has joined #ruby
aclearman037 has quit [Ping timeout: 258 seconds]
jasonzzz_ has joined #ruby
<canton7> what?
jasonzzz_ has quit [Max SendQ exceeded]
<pontiki> i have no idea what xxd is
thejoecarroll_ has quit [Quit: ZNC - http://znc.in]
AlexRussia is now known as LuckyLex
jasonzzz_ has joined #ruby
<canton7> are you after pack and unpack maybe?
* canton7 really doesn't know what the problem is
jasonzzz_ has quit [Max SendQ exceeded]
<pontiki> nor i
<pontiki> i answered the question that was asked
paulfm has joined #ruby
otherj has quit []
aclearman037 has joined #ruby
treehug88 has joined #ruby
thejoecarroll has joined #ruby
hiptobecubic has joined #ruby
<aep> oh yeah maybe pack
<aep> basically i have this list: 0x24, 0x48, 0x65 etc
<aep> and its a string
jasonzzz_ has joined #ruby
Wolland_ has quit [Remote host closed the connection]
<canton7> oh, so you're starting with an array of numbers?
jasonzzz_ has quit [Max SendQ exceeded]
<canton7> yeah you need unpack methinks
xenomorph is now known as {xenomorph}
<canton7> sorry, pack
Wolland has joined #ruby
<canton7> always get those two muddled
<pontiki> yes, pack
<aep> cool thx
<pontiki> pack is for array -> string, unpack is string -> array
<shevy> pontiki is a living ruby knowledge base
angusigu1ss has joined #ruby
<pontiki> hardly
enebo has quit [Quit: enebo]
<pontiki> besides, i'm off ruby. i'm only doing javascript now
<pontiki> only because i want to make you sad
<wm3|away> pontiki: why do I see an opal script in your JS manifest? :P
<wmoxam> pffft, ruby is a dead language anyways
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
wm3|away is now known as workmad3
<pontiki> we're all moving to D
* wmoxam moves back to Perl
<pontiki> and D on ... Doorknobs
<workmad3> I'm dropping ruby on rails for web dev... I'm gonna create Forth on Fire
<pontiki> because they open doors to.... opportunity
ndrei has quit [Ping timeout: 244 seconds]
<pontiki> or something
Takle has joined #ruby
iinzng has quit [Read error: Connection reset by peer]
<pontiki> change you nick to katness
<wmoxam> Rust E. Rails is where it's at
jon_k has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
buub has quit [Read error: Connection reset by peer]
timgauthier has joined #ruby
timgauthier has quit [Max SendQ exceeded]
jack__ has joined #ruby
jack__ has quit [Client Quit]
angusigu1ss has quit [Ping timeout: 260 seconds]
hoge_ has quit [Quit: Page closed]
hiptobecubic has quit [Ping timeout: 245 seconds]
LuckyLex has quit []
LuckyLex has joined #ruby
graft_ has quit [Remote host closed the connection]
graft_ has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
AtumT has joined #ruby
icebourg has joined #ruby
iinzng has joined #ruby
bal has quit [Quit: bal]
deject3d has joined #ruby
timgauthier has joined #ruby
bal has joined #ruby
silkfox has quit [Quit: WeeChat 0.4.3]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> any pythonistas want a remote job ?
silkfox has joined #ruby
gsd has joined #ruby
<workmad3> pontiki: can I code in ruby?
ndrei has joined #ruby
DivineEntity has joined #ruby
<pontiki> if you're always remote, i don't see how they could tell :)
<workmad3> pontiki: I could always use '.py' file extensions too, I guess ;)
<apeiros> dns updates, y u so slooow? щ(゚д゚щ)
slyslick has joined #ruby
bnjamin has quit []
pushnell has joined #ruby
<gregf_> apeiros: https://gist.github.com/anonymous/c7abf40be7c47c523977 (its ugly and only works for ints)
pushnell has quit [Client Quit]
nouranology has quit [Read error: Connection reset by peer]
<apeiros> gregf_: heh, thanks! I hope you didn't write one just now? because I have had a solution for a while now :)
ringarin has quit [Read error: Connection reset by peer]
iceden has joined #ruby
pu22l3r has joined #ruby
<gregf_> well, was scrolling and saw your question :/
<apeiros> not quite as short as yours, though :)
milkohol has joined #ruby
<gregf_> :)
klmlfl_ has joined #ruby
ringarin has joined #ruby
milkohol has quit [Client Quit]
ringarin has quit [Read error: Connection reset by peer]
<apeiros> actually… lets count method calls, branches and assignments :)
pdoherty has quit [Quit: pdoherty]
<banister> apeiros sup guy
<apeiros> banister: not much. @ home, sick. though better already. you?
<banister> apeiros workin'
<banister> b0red
lxsameer has quit [Quit: Leaving]
stunder has joined #ruby
mocfive has joined #ruby
Channel6 has quit [Quit: Leaving]
bMalum has quit [Quit: bMalum]
supdoge has joined #ruby
iinzg has joined #ruby
supdoge has left #ruby [#ruby]
bMalum has joined #ruby
Takle has quit [Remote host closed the connection]
klmlfl_ has quit [Ping timeout: 258 seconds]
snath has quit [Ping timeout: 258 seconds]
pen has joined #ruby
bal has quit [Quit: bal]
pen has quit [Max SendQ exceeded]
timgauthier has quit [Read error: Connection reset by peer]
pen has joined #ruby
jheg has quit [Ping timeout: 272 seconds]
otherj has joined #ruby
milkohol has joined #ruby
ndrei has quit [Quit: Lost terminal]
Takle has joined #ruby
ndrei has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
pdoherty has joined #ruby
iinzng has quit [Ping timeout: 250 seconds]
jespada has quit [Quit: Leaving]
mkaesz has quit [Ping timeout: 250 seconds]
Aranshada|W has joined #ruby
MasterPiece has joined #ruby
Aranshada|W has left #ruby [#ruby]
tessi is now known as tessi_zz
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Snarkz has joined #ruby
kaspergr_ has joined #ruby
hiptobecubic has joined #ruby
kaspergrubbe_ has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
Snarkz has quit [Client Quit]
gigetoo has quit [Ping timeout: 260 seconds]
ppinto_ has joined #ruby
otherj has quit []
ppinto has quit [Ping timeout: 246 seconds]
enebo has joined #ruby
fabrice31 has quit [Remote host closed the connection]
mskaesz has joined #ruby
geggam has joined #ruby
shredding has quit [Quit: shredding]
mkaesz has quit [Read error: No route to host]
p0sixpscl has quit [Remote host closed the connection]
nouranology has joined #ruby
govg has quit [Quit: leaving]
noop has quit [Ping timeout: 245 seconds]
spacemud has joined #ruby
lemur_ has quit [Read error: Connection reset by peer]
wpp has quit [Quit: ZZZzzz…]
lemur has joined #ruby
TorpedoSkyline has joined #ruby
gauke has quit [Quit: gauke]
<apeiros> aw man, I'm in love with digitalocean right now :D
silkfox has quit [Ping timeout: 272 seconds]
<apeiros> having everything available via API is nice. performance seems ok for the price.
<a_> apeiros: my sincere apologies for not having AWS
hiptobecubic has left #ruby ["00 PC LOAD LETTER"]
sepp2k has quit [Quit: Konversation terminated!]
mikepack has joined #ruby
<apeiros> a_: um, no thanks.
Takle has quit [Remote host closed the connection]
MrBoolean has joined #ruby
rocknrollmarc has joined #ruby
nouranology has quit [Client Quit]
<izzol> AWS is sometimes strange. Last time they change their OS from 2014.03 to 2014.09 and of course they didn't asked anyone ;-)
keen__ has joined #ruby
timgauthier has joined #ruby
AlSquire has quit [Ping timeout: 260 seconds]
<izzol> And now a lot of peoples have a problem to install something ;-)
<apeiros> a_: DO IMO did an amazing job at keeping stuff simple. amazon? not so much. starts with aws.amazon.com being crowded like hell.
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MasterPiece has quit [Remote host closed the connection]
RedDwarf has joined #ruby
keen_ has quit [Ping timeout: 260 seconds]
<izzol> And the answere was: "To solve the issue you could either manually downgrade related packages (glibc glibc-common glibc-headers glibc-devel etc.) or - preferred -run yum distro-sync."
<izzol> :D
mocfive_ has joined #ruby
<workmad3> apeiros: there's some stuff AWS do that I'd like on DO
<workmad3> apeiros: such as proper private networking between droplets
mocfive has quit [Ping timeout: 272 seconds]
centrx has joined #ruby
<workmad3> apeiros: the private networking they have is basically 'we give you a private IP on our datacenter LAN and don't charge you for traffic over it'... but it's still an untrustworthy network
<a_> apeiros: my experiences with DO are admittedly skewed
Zackio has quit [Ping timeout: 272 seconds]
<a_> And I was more trolling into information :)
Pumukel has joined #ruby
<a_> What stuff do you find DO to *really* be more simple?
<apeiros> workmad3: oh, I'm perfectly sure that AWS has a much broader list of services you can get from them. my needs are relatively basic. and those are - so far - perfectly matched by DO :)
RedDwarf is now known as Zackio
spacemud has quit [Ping timeout: 272 seconds]
<workmad3> a_: first - figuring out what the hell you're gonna pay in a billing cycle :P
Advocation has joined #ruby
<apeiros> a_: it took me from visiting DO.com to having an up and running VM with rails on it (without using their pre-made rails image) less than 1h
mikepack has quit [Ping timeout: 272 seconds]
<apeiros> a_: I think I'd spend more than that time on AWS' website to figure out what the heck I actually might need :D
<a_> workmad3: hahaha amen.
<a_> I totally get that.
<a_> I'm so glad to not be the bill-payer.
mocfive has joined #ruby
silkfox has joined #ruby
mocfive_ has quit [Ping timeout: 246 seconds]
AlSquire has joined #ruby
<apeiros> a_: what were your bad experiences with DO?
mskaesz has quit [Ping timeout: 245 seconds]
<workmad3> a_: then, on AWS... figuring out: 1) what's elastic block storage and do I need it? 2) what's an elastic IP and do I need it? 3) which AMI should I use? 4) WHERE THE FUCK DID MY INSTANCE GO! ALL I DID WAS STOP IT!!!!
alem0lars has joined #ruby
mocfive_ has joined #ruby
Kricir has quit [Remote host closed the connection]
alem0lars has quit [Client Quit]
<workmad3> (seriously... why is the default behaviour for all the EC2 instances I've used been 'terminate on stop'? :P)
Kricir has joined #ruby
ryanleesipes has joined #ruby
<a_> apeiros: nothing that is at all generalizable - I was compiling Ruby on an insanely small instance, and it kept OOMing
<workmad3> a_: ah, they default images don't have any swap
<workmad3> *their
p0sixpscl has joined #ruby
Takle has joined #ruby
tobago has quit [Remote host closed the connection]
<apeiros> yeah, luckily passenger tells you how to activate swap :)
<workmad3> a_: I don't think AWS instances do either though, do they? :)
omosoj has joined #ruby
gsd has joined #ruby
mocfive has quit [Ping timeout: 272 seconds]
<workmad3> apeiros: isn't it just adding the 'swap' cookbook to your chef run and doing 'swap_file "/mnt/swap"'? :P
<apeiros> workmad3: chef? I don't use fancy tools like chef :-p
<workmad3> :)
aganov has quit [Remote host closed the connection]
momomomomo has joined #ruby
Takle has quit [Remote host closed the connection]
lmickh has quit [Ping timeout: 258 seconds]
<apeiros> my deployment is a ~40 line bash script
mocfive_ has quit [Ping timeout: 260 seconds]
<apeiros> and I think half of the lines is pushd/popd
Kricir has quit [Ping timeout: 260 seconds]
<workmad3> apeiros: I couldn't fit my nginx vhost into that :(
<apeiros> ah, deploy script does not contain server setup :)
<workmad3> I deploy through chef ;)
ixti has joined #ruby
Fraeon has joined #ruby
<apeiros> as said, my needs for private stuff is very basic
<apeiros> most of the things I do maybe once in a year. doesn't pay off to automate that.
sigurding has quit [Quit: sigurding]
Kricir has joined #ruby
<workmad3> :)
mkaesz has joined #ruby
Svte has joined #ruby
graft_ has quit [Ping timeout: 240 seconds]
<apeiros> I mean my coworkers spent a total of probably 2 months on capistrano during the last 2 years. maybe I'd be faster than them, but even if I was a x10 it'd still be much more time than to "just do it" :)
treehug88 has quit [Ping timeout: 260 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<workmad3> for me, 'just do it' would involve repeating the same changes across about 2 dozen servers at the moment
<workmad3> depending on what the change is, obviously :)
<apeiros> :)
chrishough has joined #ruby
kaspergr_ has quit [Read error: Connection reset by peer]
failshell has joined #ruby
<apeiros> with me moving to DO and starting to basically have a VM for every separate private thing I have, this might start to become true for me too. we'll see how I automate it then. I sense a new reinvented wheel ;-D
kaspergrubbe_ has joined #ruby
<workmad3> hell, I even started slurping the Gemfile of a project into my chef deploys so I can automatically install dependency packages for certain things (imagemagick, webp, etc.)
<workmad3> apeiros: you may want to consider ansible before reinventing that wheel ;)
bMalum has quit [Quit: bMalum]
moritzschaefer has quit [Ping timeout: 246 seconds]
<workmad3> not something I tend to use... I like my chef searches too much, and that would be difficult to achieve in ansible
<apeiros> workmad3: where's the fun in not-reinventing-the-wheel?
dANO has quit []
<workmad3> apeiros: you get the fun by reinventing a more interesting wheel instead ;)
LudicrousMango has quit [Remote host closed the connection]
graft_ has joined #ruby
bMalum has joined #ruby
yfeldblum has joined #ruby
LudicrousMango has joined #ruby
buub has joined #ruby
sepp2k has joined #ruby
angusigu1ss has joined #ruby
Takle has joined #ruby
spider-mario has joined #ruby
<apeiros> http://www.ansible.com/pricing # that sensation of an approaching wheel-reinvention just got stronger :D
Zackio is now known as Guest36432
<apeiros> gtg dinner shopping. brb
elstif has quit [Quit: Leaving.]
<buub> can anyone please tell me when I call a method like: string.slice_me_up! what do I need to define in slice_me_up! so that it received 'string' as an argument?
<workmad3> apeiros: that's not ansible... that's ansible tower ;) https://github.com/ansible/ansible <-- that's ansible
jimmyhoughjr has joined #ruby
<apeiros> buub: self
mkaesz has quit [Remote host closed the connection]
HelperW_ has joined #ruby
spacemud has joined #ruby
<apeiros> workmad3: … I scanned the description, saw the link, clicked :)
<workmad3> apeiros: ansible tower is some (paid) gui stuff for ansible so the guy can make some money selling to enterprise, I believe :)
banister has joined #ruby
<apeiros> "some money"?
banister has quit [Max SendQ exceeded]
<apeiros> did you take a look at those prices? if he's not a millionaire within a year, he's doing it wrong :D
LudicrousMango has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
banister has joined #ruby
alex88 has quit [Quit: Leaving...]
banister has quit [Max SendQ exceeded]
<buub> apeiros: thank you!
angusigu1ss has quit [Ping timeout: 272 seconds]
Guest36432 has quit [Remote host closed the connection]
banister has joined #ruby
<workmad3> apeiros: I have a sneaking suspicion it's no longer a single guy ;)
banister has quit [Client Quit]
benzrf is now known as benzrf|offline
hamakn has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
mikepack has joined #ruby
terlar has quit [Ping timeout: 244 seconds]
lmickh has joined #ruby
HelperW has quit [Ping timeout: 272 seconds]
HelperW_ has quit [Ping timeout: 258 seconds]
ltd has quit [Ping timeout: 260 seconds]
ltd has joined #ruby
eat_multi has quit [Quit: leaving]
msmith_ has joined #ruby
emocakes__ has joined #ruby
Relaxation___ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 246 seconds]
<eam> apeiros: true for anyone working in tech these days, no?
thams has joined #ruby
ghostmoth has joined #ruby
Tricon has joined #ruby
ducklobster has quit [Quit: Page closed]
ndrei has joined #ruby
linojon has joined #ruby
emocakes has quit [Ping timeout: 260 seconds]
gf3 has quit [Quit: LOLeaving]
cirn0 has joined #ruby
Svte has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
InhalingPixels has joined #ruby
claymore has quit [Ping timeout: 246 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> eam: the millionaire part?
snath has joined #ruby
enali has joined #ruby
claymore has joined #ruby
pen has quit [Quit: Leaving]
klmlfl_ has joined #ruby
Svte has joined #ruby
kamilc__ has quit [Read error: Connection reset by peer]
pen has joined #ruby
zorak8 has joined #ruby
pushnell has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
kamilc__ has joined #ruby
ltd has quit [Ping timeout: 260 seconds]
cndiv has joined #ruby
enali has quit [Remote host closed the connection]
cirn0 has quit [Ping timeout: 258 seconds]
dmfranc has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
fsapo has quit [Ping timeout: 244 seconds]
<eam> apeiros: yeah
<apeiros> heh, ok. I'm in the "doing it wrong" section of people then :D
wallerdev has joined #ruby
govg has joined #ruby
dumdedum has joined #ruby
momomomomo has quit [Quit: momomomomo]
gf3 has joined #ruby
AngryEgret_afk is now known as AngryEgret
banister has joined #ruby
klmlfl_ has quit [Ping timeout: 240 seconds]
TorpedoSkyline has joined #ruby
AngryEgret is now known as AngryEgret_afk
TorpedoSkyline has quit [Max SendQ exceeded]
Xeago_ has quit [Remote host closed the connection]
<workmad3> apeiros: same
TorpedoSkyline has joined #ruby
TorpedoSkyline has quit [Max SendQ exceeded]
carraroj has joined #ruby
TorpedoSkyline has joined #ruby
arup_r has quit [Quit: Leaving.]
emmesswhy has joined #ruby
kith has quit [Ping timeout: 272 seconds]
<apeiros> workmad3: and there I thought you were doing it right, and hence having enough leisure time to be on irc all the time ;-p
momomomomo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
spyderman4g63 has quit [Remote host closed the connection]
<workmad3> apeiros: nah, today I'm using IRC as a way to work through a headache that's stopping me concentrating :(
arup_r has joined #ruby
spyderman4g63 has joined #ruby
havenwood has joined #ruby
Advocation has quit [Quit: Advocation]
hamakn has joined #ruby
Rollabunna has quit [Quit: Leaving...]
Zackio has joined #ruby
andikr has quit [Remote host closed the connection]
AngryEgret_afk is now known as AngryEgret
Wolland has joined #ruby
<momomomomo> workmad3: :/
elstif has joined #ruby
deject3d has quit [Quit: Computer has gone to sleep.]
dmfranc has quit []
krisquig_ has quit [Read error: Connection reset by peer]
hellangel7 has joined #ruby
patrick99e99 has joined #ruby
krisquigley has joined #ruby
tanath has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
tanath has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
<soahccc> Anyone knows if popen2/3 accepts some sort of encoding parameter? on *nix it's fine, on windows it appears to have problems with utf8 characters (» becomes √Ǭª)
bruno- has quit [Ping timeout: 260 seconds]
krisquigley has quit [Remote host closed the connection]
<soahccc> It's correct in the console and works if I copy it from there but when sending it to the process' STDIN it gets weird
<havenwood> oh dear
wldcordeiro_ has joined #ruby
krisquigley has joined #ruby
TorpedoSkyline has quit [Ping timeout: 258 seconds]
patrick99e99 has quit [Ping timeout: 260 seconds]
FifthWall has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
pdoherty has quit [Quit: pdoherty]
bascht has quit [Quit: WeeChat 0.4.2]
timonv_ has quit [Ping timeout: 246 seconds]
bascht has joined #ruby
krisquig_ has joined #ruby
brandonshowers has joined #ruby
ptrrr has joined #ruby
bascht has quit [Client Quit]
wpp has joined #ruby
krisquigley has quit [Read error: Connection reset by peer]
bascht has joined #ruby
bricker`work has joined #ruby
troyready has joined #ruby
FifthWall has joined #ruby
gvenkat_ has joined #ruby
graydot has joined #ruby
benzrf|offline has quit [Ping timeout: 272 seconds]
vircung has quit [Ping timeout: 240 seconds]
camt has quit [Ping timeout: 244 seconds]
jheg has joined #ruby
Miron has quit [Ping timeout: 260 seconds]
krisquig_ has quit [Ping timeout: 240 seconds]
Takle has quit [Remote host closed the connection]
gvenkat has quit [Ping timeout: 245 seconds]
blinkdesign has joined #ruby
benzrf|offline has joined #ruby
camt has joined #ruby
SirCmpwn has quit [Ping timeout: 272 seconds]
benzrf|offline is now known as benzrf
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
patrick99e99 has joined #ruby
max06 has quit [Ping timeout: 272 seconds]
blinkdesign has quit [Remote host closed the connection]
sirecote has quit [Ping timeout: 272 seconds]
peeja has quit [Quit: ZNC - http://znc.in]
icarus has joined #ruby
atmosx has joined #ruby
HelperW_ has joined #ruby
danshultz has quit [Ping timeout: 260 seconds]
Seventoes has joined #ruby
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gzl has quit [Ping timeout: 260 seconds]
Xiti` has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
peeja has joined #ruby
gzl has joined #ruby
gzl has joined #ruby
gzl has quit [Changing host]
aspires has quit []
rubyonrailed has joined #ruby
xcv has quit [Remote host closed the connection]
wldcordeiro_ has quit [Ping timeout: 272 seconds]
vircung has joined #ruby
Ankhers has quit [Remote host closed the connection]
gmas has joined #ruby
xcv has joined #ruby
aspires has joined #ruby
kaspergrubbe_ has quit [Read error: No route to host]
mrbubbles has joined #ruby
dvabr has quit [Ping timeout: 272 seconds]
<mrbubbles> hi guys
kaspergrubbe_ has joined #ruby
mrsolo has joined #ruby
danshultz has joined #ruby
xcv has quit [Read error: Connection reset by peer]
xcv_ has joined #ruby
skolman_ has joined #ruby
TorpedoSkyline has quit [Ping timeout: 246 seconds]
<mrbubbles> I have a hash in this format: http://pastie.org/9591183 and I'm trying to use a block to access the values. But { |point| point[:v1] } isn't working and I'm not sure why, can anyone help?
<apeiros> mrbubbles: are you using ruby-trunk? because otherwise that's not valid ruby.
Xiti has quit [Ping timeout: 250 seconds]
nug has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby
<mrbubbles> apeiros: I was using this rails gem: https://github.com/omockler/downsampler and I was trying to do the downsampled.mean { |point| point.value } thing
<apeiros> also for future reference "isn't working" is a useless problem description
<LuckyLex> hm
SirCmpwn has joined #ruby
Xeago has joined #ruby
<mrbubbles> They are using datapoints whereas I have a hash. But I must be accessing the v1 value incorrectly as my averages are all comign up as 0
<apeiros> mrbubbles: I don't see how that's related to my question, or to your hash not being valid
sirecote has joined #ruby
Takle has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mrbubbles> is my hash not valid? Ah that could be it
grzywacz has quit [Ping timeout: 272 seconds]
hellangel7 has quit [Quit: Leaving]
treehug88 has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
<apeiros> …
<apeiros> it comes with a pretty obvious SyntaxError
<apeiros> >> {"foo": "bar"}
gsd has joined #ruby
* apeiros hits eval-in___ with a broom
benzrf is now known as benzrf|offline
gnarld_ has joined #ruby
yeticry has joined #ruby
tonyhb has quit [Ping timeout: 258 seconds]
pskosinski has joined #ruby
Svte has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* Hanmac hits charliesome with a broom too
shock_one has joined #ruby
pdoherty has joined #ruby
shock_one has quit [Client Quit]
yfeldblum has joined #ruby
govg has quit [Remote host closed the connection]
gwb3 has quit [Ping timeout: 258 seconds]
eval-in___ has quit [Remote host closed the connection]
eval-in has joined #ruby
benzrf|offline is now known as benzrf
einarj has quit [Remote host closed the connection]
gwb3 has joined #ruby
<benzrf> >> 3
<eval-in> benzrf => 3 (https://eval.in/198124)
kamilc__ has quit [Quit: Leaving...]
einarj has joined #ruby
SCHAAP137 has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
<mrbubbles> Ah, okay so someone had given me a pluck_hash function as apparently it's loads faster than using select to return a hash
Gnubie_ has quit [Ping timeout: 245 seconds]
yeticry has quit [Ping timeout: 244 seconds]
<mrbubbles> But it looks like the hash it was returning was invalid. I've used select instead and it's working now. Thanks :)
dvabr has joined #ruby
<apeiros> that doesn't make any sense…
aspires has quit []
<apeiros> but since it's working now, I guess it's pointless to bother :)
nobitanobi has joined #ruby
<mrbubbles> Ha well, I'll try and explain ( sorry I'm a bit of a newb)
yfeldblum has quit [Ping timeout: 244 seconds]
momomomomo_ has joined #ruby
krz has quit [Quit: WeeChat 1.0]
charliesome has quit [Quit: zzz]
DaniG2k has quit [Quit: leaving]
awc737 has joined #ruby
omosoj has quit [Ping timeout: 260 seconds]
Scotteh has joined #ruby
TorpedoSkyline has joined #ruby
mikepack has joined #ruby
Takle has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 258 seconds]
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
angusigu1ss has joined #ruby
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
kaspergrubbe_ has quit [Remote host closed the connection]
chipotle has joined #ruby
timgauthier is now known as timgauthier_isaw
bluOxigen has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
sigurding has joined #ruby
momomomomo has quit [Client Quit]
govg has joined #ruby
LudicrousMango has joined #ruby
Pupeno has quit [Remote host closed the connection]
blackgoat has quit [Ping timeout: 246 seconds]
wjimenez5271 has joined #ruby
pushnell has quit [Quit: pushnell]
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiall has quit [Quit: hiall]
blackgoat has joined #ruby
angusigu1ss has quit [Ping timeout: 250 seconds]
Gnubie_ has joined #ruby
sdwrage_ has quit [Quit: This computer has gone to sleep]
sdwrage has quit [Quit: This computer has gone to sleep]
BBBThunda has quit [Ping timeout: 240 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
sonOfRa has quit [Quit: Bye!]
<msx> congratz!
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Advocation has quit [Quit: Advocation]
jottr has quit [Ping timeout: 260 seconds]
awc737 has joined #ruby
mikepack has quit [Remote host closed the connection]
awc737 has quit [Client Quit]
gmas has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
Advocation has joined #ruby
mark_locklear has quit [Ping timeout: 272 seconds]
yeltzooo has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
sdwrage_ has joined #ruby
AndChat| has joined #ruby
lkba has quit [Read error: Connection reset by peer]
maestrojed has joined #ruby
Advocation has quit [Client Quit]
jottr has joined #ruby
graydot has quit [Quit: graydot]
xcv_ has quit [Remote host closed the connection]
shock_one has joined #ruby
adac has joined #ruby
xcv has joined #ruby
enali has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
ephemerian has left #ruby [#ruby]
silkfox has joined #ruby
sigurding has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
qba73 has quit []
ndrei has joined #ruby
enali has left #ruby [#ruby]
Advocation has joined #ruby
enali has joined #ruby
<apeiros> workmad3: yeah, proper private networking between instances would be nice. but given that it's foreign infrastructure, you should use encrypted communication anyway, no?
aizu has joined #ruby
<workmad3> apeiros: I suppose :)
thams has quit [Quit: thams]
bricker`LA has quit [Ping timeout: 272 seconds]
<aizu> is there a way to specify the length of time csrf tokens are valid when using protect_from_forgery?
xcv has quit [Ping timeout: 246 seconds]
<apeiros> aizu: wrong channel
koderok has joined #ruby
gmas has joined #ruby
koderok has quit [Remote host closed the connection]
<aizu> apeiros: is there a better channel for rails questions?
SilkFox_ has joined #ruby
<workmad3> aizu: #rubyonrails
<apeiros> aizu: the rails channel?
klmlfl_ has joined #ruby
<aizu> oh, I was trying #rails
<apeiros> #rails == #rubyonrails == #ror
<centrx> aizu, You may need to register/identify your nick with Freenode
<aizu> #rubyonrails requires service auth, so nevermind then
<apeiros> they'are all the same channel.
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
fabrice31 has joined #ruby
Ankhers has joined #ruby
<workmad3> apeiros: I was told a long time ago that #ror is a separate channel, but that if you try to join without an invite it'll just boot you to #rubyonrails :)
timgauthier_isaw is now known as timgauthier
gsd_ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
<apeiros> workmad3: that might even be true
aizu has quit [Client Quit]
<workmad3> no idea if that's still true, or who you get an invite from if it is the case
<apeiros> since redirects are done via that mechanism
gsd has quit [Ping timeout: 246 seconds]
jerius has quit []
timgauthier is now known as timgauthier_isaw
<apeiros> but I thought ivory tower rails channel was #caboose
eval-in_ has joined #ruby
skammer3 has quit [Ping timeout: 272 seconds]
danshultz has quit [Ping timeout: 245 seconds]
<workmad3> #rails was a separate channel until quite recently... freenode finally set up a redirect because people ended up in the wrong place too often :)
* apeiros should probably have called #ruby-pro #ruby-ivory-tower instead :D
<havenwood> aizu: It's interesting that RoR isn't just called Rails. Not an accident though. DHH considers himself a language designer, which is expressed particularly with liberties in ActiveSupport.
mikecmpbll has joined #ruby
Xeago has quit [Remote host closed the connection]
wallerdev has joined #ruby
<havenwood> oh, aizu left :O
<centrx> workmad3, Freenode set up a redirect because Radar and I complained about it enough
silkfox has quit [Ping timeout: 245 seconds]
<havenwood> But neat that Ruby lets you create a DSL so easily. :D
skolman_ has quit [Remote host closed the connection]
<havenwood> You'll shoot your eye out!!
<centrx> workmad3, I was in the midst of turning the dead #rails channel to be solely about trains and railroad engineering
ki0 has quit [Ping timeout: 260 seconds]
BBBThunda has joined #ruby
skolman has joined #ruby
eval-in has quit [Remote host closed the connection]
<workmad3> centrx: I idled in there for a while a year or so back, redirecting people to #rubyonrails ;)
thams has joined #ruby
danshultz has joined #ruby
<havenwood> having fun playing with exercism.io
<workmad3> centrx: for my first month or so on IRC, I also sat in #rails having not known about #rubyonrails... that was quite a while ago now though :)
klmlfl_ has quit [Ping timeout: 260 seconds]
stunder has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 272 seconds]
<centrx> workmad3, It was a sad place with lost souls
<centrx> now redirect has saved us all
tylersmith has joined #ruby
gsd_ has quit [Ping timeout: 260 seconds]
<Hanmac> centrx: hm like the game simutrans? ;P
<apeiros> I'm still fascinated how people fail to check rubyonrails.org for the proper irc channel
<havenwood> they have the same problem for elixir and clojure which makes an interesting comparison
<havenwood> though a different one for ruby
graydot has joined #ruby
graydot has quit [Client Quit]
gsd has joined #ruby
sanguisdex has joined #ruby
pdoherty has quit [Quit: pdoherty]
max06 has joined #ruby
<havenwood> it almost feels like it's cheating to allow ruby ;)
skolman has quit [Ping timeout: 272 seconds]
yeltzooo has joined #ruby
<sanguisdex> warning noob question coming. jut not groking file requires
<lewix> workmad3: same here
fsapo has joined #ruby
choke has quit [Ping timeout: 272 seconds]
chthon has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
<sanguisdex> I have 2 files script.rb and settings.rb. settings.rb contains a singe array. require 'settings.rb' returns true but the array in it is not included in the memory for the script to use. where can I read on the basic concept I am missing
<sanguisdex> ?
kenndel has quit [Read error: Connection reset by peer]
kenndel has joined #ruby
wpp has quit [Quit: ZZZzzz…]
ndrei has joined #ruby
stunder has joined #ruby
weems|mac has joined #ruby
weems|mac has joined #ruby
<apeiros> sanguisdex: I assume you assigned the array to a local variable.
<apeiros> sanguisdex: but local variables are called local variables because they are, well, local.
<apeiros> sanguisdex: use a constant instead. constants are visible across files.
gnarld_ is now known as nug
<apeiros> sanguisdex: also, you generally don't include the suffix with require. so just `require 'settings'`
bizarrosandwich has joined #ruby
tessi_zz is now known as tessi
Miron has joined #ruby
<sanguisdex> apeiros: I am coming the the badlands of php, where constant means I can't change this data latter. is Constant diff in ruby?
timgauthier_isaw is now known as timgauthier
spyderman4g63 has joined #ruby
<apeiros> sanguisdex: a constant should reference the same object over the whole lifetime of an application. but that object may be mutated.
<waxjar> it'll warn you, but that's it
timgauthier is now known as timgauthier_isaw
<apeiros> sanguisdex: but if you want, you can even change which object the constant references. plain assignment results in a warning, but you can even work around that.
Xeago has quit [Remote host closed the connection]
<apeiros> mutable settings sounds a bit anti-patternish, though
kil0byte has quit [Remote host closed the connection]
bluehavana has joined #ruby
jbueza has joined #ruby
<sanguisdex> apeiros: I am writing an script that I want to be able to pre configure with a settings file, but override with flags
max06 has quit [Quit: Leaving.]
dmfranc has joined #ruby
hamakn has quit [Remote host closed the connection]
<waxjar> you might want to use environment variables sanguisdex
sevvie has quit [Quit: leaving]
roolo has quit [Remote host closed the connection]
hamakn has joined #ruby
* sanguisdex reads about environment variables in the ruby context
<LuckyLex> what mean warning 'uninitialized constant TMP_RUBY_PREFIX' and how to fix that?
dmfranc has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 245 seconds]
roolo has joined #ruby
<gregf_> w
<gregf_> bah :/ sorry
mityaz_ has joined #ruby
shock_one has quit [Quit: Lingo - http://www.lingoirc.com]
wpp has joined #ruby
threesixes has joined #ruby
geekbri has quit []
<waxjar> sanguisdex: they're accessible trough ENV (works like a Hash) and there are tools like dotenv to load them from a .env file
jottr has quit [Ping timeout: 272 seconds]
enali has quit [Ping timeout: 250 seconds]
<apeiros> LuckyLex: it means your code tries to use TMP_RUBY_PREFIX but you didn't define it
krisquigley has joined #ruby
Xiti` has quit [Quit: Leaving]
<LuckyLex> apeiros: hm, how to i can define it use environment?
Xiti has joined #ruby
<apeiros> LuckyLex: I don't understand
<apeiros> LuckyLex: you define a constant like any variable - by assigning to it: TMP_RUBY_PREFIX = "some value"
iamjarvo has joined #ruby
<LuckyLex> apeiros: i have no code :P
Paul_McFreely has quit [Quit: Lingo - http://lingoirc.com]
<havenwood> LuckyLex: Or if it's an env var: ENV['TMP_RUBY_PREFIX']
roolo_ has joined #ruby
<apeiros> LuckyLex: do you expect me to read your mind?
roolo has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 244 seconds]
<havenwood> LuckyLex: is it a Constant or environment variables?
<havenwood> LuckyLex: How are you using it?
<gregf_> sanguisdex: https://gist.github.com/anonymous/e8649014417a0c10c67b (^^ is it helps )
<shevy> eam you got ruby running on DOS?
<gregf_> s/is/if/
<apeiros> seriously, I'm sick of people who don't spend a second on thinking about how to explain their problem.
yfeldblum has joined #ruby
<apeiros> "hey guys, I heard your time is worthless, so go figure out what my problem is and also solve it. kthxbye"
Advocation has quit [Quit: Advocation]
<LuckyLex> havenwood: lol, its constant afaik, i just got it in output my favorite ruby-based wm ^_^
<LuckyLex> apeiros: no
krisquigley has quit [Ping timeout: 260 seconds]
<havenwood> LuckyLex: apparently it's not a defined constant :P
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has joined #ruby
<havenwood> LuckyLex: what's a wm?
<LuckyLex> havenwood: subtle
<shevy> window manager
<shevy> LuckyLex you use subtle wm?
<LuckyLex> shevy: yes
<LuckyLex> shevy: you against it?
<shevy> I have not used it
<LuckyLex> shevy: you should try if you want very customizable tiling
roolo_ has quit [Ping timeout: 244 seconds]
<shevy> I am on fluxbox right now, mostly because I still start xorg-server via old school "startx", and waiting for kde to finish loading everything takes more than 1 second so it is not acceptable for me :)
<shevy> eh
<shevy> that sounds like extra work
ndrei has quit [Ping timeout: 250 seconds]
<LuckyLex> hm
chrisja has joined #ruby
<LuckyLex> shevy: how to count runtime? 'time' ?:D
<shevy> I need these things: a terminal (kde konsole usually), my beloved old school editor (requires GTK unfortunately) and a browser. I think those are the 3 big ones... a pdf viewer is also important right now as I tend to view pdfs
ltd has joined #ruby
<shevy> do you not have a clock man
graydot has joined #ruby
tvw has quit []
yfeldblum has quit [Ping timeout: 250 seconds]
<shevy> 145K subtle-0.11.3224-xi.tar.xz
<LuckyLex> shevy: no, i DON'T trust clocks in this moment :P
<shevy> is this really a WM or more like a joke
<LuckyLex> shevy: no, bro
<LuckyLex> shevy: its not joke
<shevy> 666K fluxbox-1.3.5.tar.xz
Aaaal has quit [Quit: Aaaal]
<shevy> 13M xfce-4.10.tar.xz
<LuckyLex> shevy: tbh, i recommend you clone hg repo than use lastest release
<shevy> ack
<shevy> I am a wget dude
<shevy> you gimme an archive, I download
maestrojed has quit [Quit: Computer has gone to sleep.]
niklasb has joined #ruby
<LuckyLex> shevy: no problem, hg support generate tarballs afaik
<shevy> dunno, I don't trust inactive projects :>
<LuckyLex> shevy: haha, there some crazy files, it seems like my..../tmp :D
comma8 has quit [Ping timeout: 272 seconds]
<LuckyLex> shevy: its not unsactive
<LuckyLex> shevy: it developed 9 years and now just little bugfixes i guess
yeticry has joined #ruby
<LuckyLex> over 9 years*
<LuckyLex> just only*
silkfox has joined #ruby
rdark has quit [Quit: leaving]
sevvie has joined #ruby
<shevy> you are very enthusiastic
Aaaal has joined #ruby
<shevy> ewww
<shevy> vim
HelperW_ has quit [Quit: Computer has gone to sleep.]
timgauthier_isaw is now known as timgauthier
graydot has quit [Quit: graydot]
<LuckyLex> shevy: yes, i too much enthusiastic, cause it worked to me without crashes months!
HelperW_ has joined #ruby
havenwood has quit [Remote host closed the connection]
<LuckyLex> shevy: really, i had it on manjaro...while i did not killed manjaro :(
ndrei has joined #ruby
<LuckyLex> shevy: what you have against vim?
<LuckyLex> what do*
pen has quit [Ping timeout: 245 seconds]
Aaaal has quit [Client Quit]
omosoj has joined #ruby
spider-mario has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
Pupeno has joined #ruby
silkfox has quit [Ping timeout: 272 seconds]
<shevy> it constantly interferes with the brain
omosoj has quit [Client Quit]
<shevy> you need to think in the vim gangster language to be productive
<shevy> :d897t3hg378912bKF&&ha/fd6&G/
yeticry has quit [Ping timeout: 272 seconds]
<LuckyLex> shevy: hohoho
<centrx> Anytime you take your keys off the keyboard, it's a loss
<LuckyLex> shevy: its not too much hard as you imagine
<LuckyLex> shevy: think in this way i mean
tessi is now known as tessi_zz
<shevy> think differently
<LuckyLex> shevy: but yeah, sometimes i tried press 'i' in nano for input....
Advocation has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has joined #ruby
<shevy> yeah, your brain is messed up
narendraj9 has joined #ruby
angusigu1ss has joined #ruby
<LuckyLex> shevy: not much :P
HelperW_ has quit [Ping timeout: 272 seconds]
<shevy> vim also has a cool gangster language
<shevy> endfunction
kaspertidemann has joined #ruby
<shevy> awesome right?
<LuckyLex> shevy: i just take out of my life nano
narendraj9 is now known as Guest60027
<LuckyLex> shevy: what awesome?
<LuckyLex> shevy: wm? :D
<shevy> the vim gangster scripting language
pen has joined #ruby
<shevy> awesomeWM is an awfulWM
<LuckyLex> shevy: yeah, it awecome
corehook has quit [Remote host closed the connection]
gsd has joined #ruby
carraroj has joined #ruby
melik has joined #ruby
douglasssssss has joined #ruby
douglasssssss has quit [Max SendQ exceeded]
LudicrousMango has quit [Remote host closed the connection]
preller has quit [Quit: Lost terminal]
LudicrousMango has joined #ruby
slyslick has quit [Ping timeout: 272 seconds]
<LuckyLex> shevy: >I took quite a long break from development, toying around with some Android ideas and dealing with some nasty project deadlines. Nevertheless, the project isn't dead yet, I actively use it daily and I am still very pleased and still want to go on.
<LuckyLex> shevy: from site
chipotle has quit [Quit: cya]
<shevy> the main author wrote that?
angusigu1ss has quit [Ping timeout: 246 seconds]
<LuckyLex> shevy: yes
StephenA1 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Advocation has quit [Quit: Advocation]
<LuckyLex> shevy: you could speak with him right now, nick unexist here
<LuckyLex> shevy: if you want ofc
mrsolo has joined #ruby
lowandslow has quit [Ping timeout: 272 seconds]
shredding has joined #ruby
<shevy> reminds me of how ion died
<shevy> Ion (2000?2009)
mrsolo has quit [Client Quit]
<LuckyLex> shevy: RIP
<shevy> hehe
chrishough has joined #ruby
<LuckyLex> shevy: Rock In Peace, what you thought? :D
mark_locklear has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
LudicrousMango has quit [Ping timeout: 245 seconds]
<shevy> rest in penis
hellangel7 has joined #ruby
altamic has joined #ruby
<LuckyLex> shevy: that words on up was year ago, last commit are Tue Jan 28 12:47:41 2014 +0100
<LuckyLex> shevy: LOL
<LuckyLex> shevy: you're crazy
atmosx has quit [Ping timeout: 272 seconds]
<shevy> well
<shevy> the way I see it is this
<shevy> if a project is active, it is a trivial thing to provide semi-recent tarball/archives
hellangel7 has quit [Max SendQ exceeded]
<benzrf> rip in pieces
zcreative has joined #ruby
<shevy> I mean we live in the days of ruby, all it takes is write one method and invoke that for updates
atmosx has joined #ruby
hellangel7 has joined #ruby
hellangel7 has quit [Read error: Connection reset by peer]
Aaaal has joined #ruby
choke has joined #ruby
awc737 has joined #ruby
<LuckyLex> shevy: i guess, subtle code always up-to-date, anyway it complete compatible with my 2.1
<shevy> can I gem install it?
<LuckyLex> shevy: there no gem i guess
<LuckyLex> shevy: cause i c-only
Aaaal has quit [Client Quit]
<LuckyLex> shevy: you just need in source code and....call rake
<LuckyLex> shevy: lol, there in gems some third-party 'subtle', which not wm i guess
dku has joined #ruby
Pupeno has quit [Remote host closed the connection]
<LuckyLex> it*
graft_ has quit [Ping timeout: 272 seconds]
carraroj has quit [Ping timeout: 246 seconds]
<dku> How can I read a 2GB single-line file for JSON parsing? Getting a "negative string size (or size too big)" error.
<shevy> I never had much luck with rake
ringarin has joined #ruby
m8 has joined #ruby
<LuckyLex> shevy: hah, i reverse i guess
emmesswhy has quit [Quit: This computer has gone to sleep]
<shevy> gems work pretty well though
graft_ has joined #ruby
graft_ has joined #ruby
graft_ has quit [Changing host]
sk87 has joined #ruby
sk87 has quit [Client Quit]
<shevy> dku probably try to read it in a chunk or so?
cirn0 has joined #ruby
<dku> shevy: still though, how do i store it in memory? seems a plain string won't support it
jottr has joined #ruby
timgauthier is now known as timgauthier_isaw
<shevy> can't you just do JSON.parse() on that string?
Pupeno has joined #ruby
maestrojed has joined #ruby
ndrei has joined #ruby
graydot has joined #ruby
<centrx> >> " " * 2_000_000_000
<eval-in_> centrx => failed to allocate memory (NoMemoryError) ... (https://eval.in/198144)
Wolland_ has joined #ruby
klmlfl_ has joined #ruby
<LuckyLex> shevy: something like that http://i.imgur.com/jMKBI8S.png
claymore has quit [Quit: Leaving]
StephenA1 has quit [Quit: StephenA1]
<Wolland_> russian eh
<LuckyLex> Wolland_: haha
<LuckyLex> Wolland_: what wrong?
cirn0 has quit [Ping timeout: 260 seconds]
kamilc__ has joined #ruby
<Wolland_> not wrong, I just realized that I speak russian, but I couldn't work in russian
<LuckyLex> Wolland_: do you speak? PROVE IT
Pupeno has quit [Remote host closed the connection]
bizarrosandwich has quit [Quit: Leaving]
<Wolland_> Da govoru po russki :)
<LuckyLex> Wolland_: da chto s tovej klavoj togda? :P
Hobogrammer has joined #ruby
<LuckyLex> tvoej*
Guest60027 has quit [Read error: Connection reset by peer]
corehook has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
<Wolland_> This is why it would be hard :)
omosoj_ has joined #ruby
Pupeno has joined #ruby
<shevy> hey
<LuckyLex> Wolland_: what?you're not russian?
<shevy> that is not the russian font
<Wolland_> chto takoe klavoj
<LuckyLex> shevy: yoho
aspires has joined #ruby
<LuckyLex> Wolland_: klava - slang word for 'keyboard'
<LuckyLex> for term*
<Wolland_> klaviatura
<LuckyLex> Wolland_: jup
<shevy> klavier in german
<LuckyLex> @_@
<shevy> oh no
<shevy> Tastatur
Pupeno has quit [Remote host closed the connection]
<Wolland_> u meya normalnaya angliiskaya klava :)
<shevy> this is why #ruby is so cool - you get to learn new languages
<LuckyLex> now this channel topic move to conversation about german-based laguages :P
Pupeno has joined #ruby
<LuckyLex> Wolland_: nu a kak naschet raskladki?
<shevy> angliiskaya... that's english dude right?
Pupeno has quit [Remote host closed the connection]
klmlfl_ has quit [Ping timeout: 272 seconds]
<LuckyLex> shevy: yes
benzrf is now known as benzrf|offline
<jhass> LuckyLex: I guess you need to search for a streaming json parser
<LuckyLex> jhass: i wasn't
<Wolland_> videsh, ya mogu govorit spokoino no takie slava kak rskladki, mne ne ponyatni :)
gregf has joined #ruby
<LuckyLex> Wolland_: keyboard layout i mean
bizarrosandwich has joined #ruby
dumdedum has quit [Ping timeout: 258 seconds]
<Wolland_> heh :)
<LuckyLex> jhass: it was dku
<Wolland_> who is using a different layout other than qwerty?
<jhass> LuckyLex: whoops sorry
<LuckyLex> Wolland_: really, why you did not setup russian keyboard layout?
<Wolland_> no
<Wolland_> I don't think I have ever typed in russian
<LuckyLex> jhass: haha, i too much annoying you, so you call me every time for responce? :D
<Wolland_> maybe when I was 10
<LuckyLex> Wolland_: @_@
<LuckyLex> Wolland_: 'cool story,bro'
klmlfl has quit [Remote host closed the connection]
<LuckyLex> Wolland_: its very very easy
<jhass> LuckyLex: no, just had a brain fart ;)
emmesswhy has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
enebo has quit [Quit: enebo]
<LuckyLex> Wolland_: ты можешь понимать что я пишу?
<Wolland_> yep
a_ has quit [Ping timeout: 272 seconds]
<shevy> can't you guess switch over to latin based characters
<sanguisdex> waxjar: thanks works great
<shevy> *guys
rocknrollmarc has quit [Ping timeout: 260 seconds]
<LuckyLex> shevy: why should i?
<shevy> LuckyLex because most people do
lowandslow has joined #ruby
<LuckyLex> shevy: too much hard to read, yep, spider? :D
mkaesz has joined #ruby
<shevy> it's counter productive to use all different encodings in the written language
<shevy> the chinese and japanese symbols have to die as well
<LuckyLex> spy*
stunder has quit [Ping timeout: 260 seconds]
ndrei has joined #ruby
<LuckyLex> shevy: russian is productive to write :P
<shevy> that must be why noone else is using those fonts
<LuckyLex> shevy: да что вы говорите :P
<shevy> at least the chinese have a seizable proportion of users
Wolland_ is now known as Wolland
o2q has joined #ruby
<Wolland> i wish popcorn time has russian movies
elstif has quit [Quit: Leaving.]
<LuckyLex> Wolland: check private ;)
reset has joined #ruby
lyanchih has quit [Quit: lyanchih]
aspires has quit []
nobitanobi has quit []
aspires has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
pdoherty has joined #ruby
carraroj has joined #ruby
Guest71041 has joined #ruby
kobain has joined #ruby
<Guest71041> hola
kobain has quit [Client Quit]
reset has quit [Ping timeout: 272 seconds]
chrishou_ has joined #ruby
chrishou_ has quit [Client Quit]
chrishough has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
timonv_ has joined #ruby
yfeldblum has joined #ruby
Scotteh_ has joined #ruby
stunder has joined #ruby
dku has quit [Quit: Bye]
danguita has joined #ruby
Guest71041 is now known as carlosarriola
carlosarriola has quit []
Guest71041 has joined #ruby
koglinjg has joined #ruby
momomomomo has joined #ruby
Guest71041 has quit [Client Quit]
Scotteh has quit [Ping timeout: 272 seconds]
danguita has quit [Client Quit]
despai has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
<koglinjg> I am working on my first gem, when I include it, I get this error: "/gems/texi-0.0.1/lib/texi/client.rb:71:in `<top (required)>': undefined method `-@' for nil:NilClass (NoMethodError)"
bizarrosandwich has quit [Quit: Leaving]
mikesplain has joined #ruby
bizarrosandwich has joined #ruby
<koglinjg> line 71 if the last "end" in that file, and I havent been able to find anything useful on google yet.... any ideas?
<koglinjg> oh yeah, using ruby 1.9.3p448
oleo__ has joined #ruby
oleo is now known as Guest54691
boombadaroomba has joined #ruby
<centrx> koglinjg, -@ refers to the - unary operator
d2dchat has joined #ruby
skolman has joined #ruby
ramfjord has joined #ruby
hmsimha has joined #ruby
MaciejCzyzewski has joined #ruby
Vivekananda has quit [Ping timeout: 272 seconds]
oponder has quit [Remote host closed the connection]
TorpedoSkyline has quit [Quit: Textual IRC Client: www.textualapp.com]
Guest54691 has quit [Ping timeout: 245 seconds]
MaciejCzyzewski has quit [Client Quit]
lsmola has quit [Quit: Leaving]
lsmola has joined #ruby
sonOfRa has joined #ruby
ringarin has quit [Quit: Leaving]
blackmesa has joined #ruby
MaciejCzyzewski has joined #ruby
timgauthier_isaw is now known as timgauthier
<Hanmac> koglinjg: make a gist of your client.rb then we can tell you what the problem is
hiall has joined #ruby
timgauthier is now known as timgauthier_isaw
<Hanmac> i think its a missing space
shevy has quit [Ping timeout: 246 seconds]
<Hanmac> samples:
<Hanmac> >> [1,2,3]-[2]
<eval-in_> Hanmac => [1, 3] (https://eval.in/198146)
<Hanmac> >> [1,2,3] - [2]
<eval-in_> Hanmac => [1, 3] (https://eval.in/198147)
<Hanmac> >> [1,2,3] -[2]
<eval-in_> Hanmac => [1, 3] (https://eval.in/198148)
<Hanmac> h ok it works i thoguht the last one would crash ,,,
<Hanmac> >> a=[1,2,3]; a - [2]
<eval-in_> Hanmac => [1, 3] (https://eval.in/198149)
<Hanmac> >> a=[1,2,3]; a -[2]
<eval-in_> Hanmac => [1, 3] (https://eval.in/198150)
<Hanmac> :/
rippa has joined #ruby
MaciejCzyzewski has quit [Client Quit]
<apeiros> >> []+-[]
<eval-in_> apeiros => undefined method `-@' for []:Array (NoMethodError) ... (https://eval.in/198151)
kith has joined #ruby
hmsimha_ has joined #ruby
<apeiros> looking at the scrollback, his error is about nil anyway, so:
<apeiros> >> -nil
<eval-in_> apeiros => undefined method `-@' for nil:NilClass (NoMethodError) ... (https://eval.in/198152)
arup_r has quit [Ping timeout: 272 seconds]
<Hanmac> hm yeah ... that is also the difference between "-3" and "- 3"
<koglinjg> Hanmac, http://pastebin.com/gCmDGFYd
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
russt has joined #ruby
enebo has joined #ruby
chrishough has quit [Ping timeout: 245 seconds]
hmsimha has quit [Ping timeout: 260 seconds]
angusigu1ss has joined #ruby
arup_r has joined #ruby
bricker`LA has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
IceDragon has joined #ruby
Morkel has quit [Quit: Morkel]
mikepack has quit [Remote host closed the connection]
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
carraroj has quit [Quit: Konversation terminated!]
klmlfl has joined #ruby
angusigu1ss has quit [Ping timeout: 240 seconds]
bricker`LA has quit [Ping timeout: 260 seconds]
shevy has joined #ruby
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jon_k has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
djstorm has quit [Remote host closed the connection]
<Hanmac> koglinjg: hm are you sure thats the client? it seems it does not have a line 71 .. and "-" is also missing in he code .. hm
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
chrishough has joined #ruby
kireevco has joined #ruby
Advocation has joined #ruby
<koglinjg> Hanmac, I deleted a fewm comments from the top, it throws that error on the last "end" in the file
arrubin has quit [Quit: Updating details, brb]
medicineuk has joined #ruby
arrubin has joined #ruby
<medicineuk> bonjour newbie question
<medicineuk> where does ruby install gems, can I install them locally to a project like npm
wpp has quit []
<Hanmac> koglinjg: hm ok do you have that project on github too so i can look at it?
ndrei has joined #ruby
p0sixpscl has joined #ruby
<koglinjg> Hanmac, let me see if I can make some generic code that produces the same issue
<boombadaroomba> medicineuk: Good question. I would also like to know as I jumped into rails first
fabrice31 has quit [Ping timeout: 260 seconds]
<Hanmac> medicineuk: "gem install" has a "--install-dir" flag where you can set it ... hm bundler might have a feature like that, but i dont know explicit
<miah> medicineuk: yes
<miah> you can also use bundler
<miah> and the --path option
timonv_ has quit [Remote host closed the connection]
<medicineuk> thanks all. What’s normal practice for a project do people install all gems locally in the project or just instll them system wide
<miah> i use bundler; so the gems get installed locally
<miah> because installing system wide is a good way to get into pain
<miah> but really _MAKE SURE YOU ARE USING_ --path with bundler; otherwise it uses the system wide default =)
<medicineuk> miah: thanks that what I thought seems like you could end up with versioning nightmares quickly
<miah> yes
g0bl1n has joined #ruby
arup_r has quit [Quit: Leaving.]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<medicineuk> cheers I’ll take a look at bundler. I guess bundler and rubygems are the community defaults
<medicineuk> ?
arup_r has joined #ruby
robustus|Off has quit [Ping timeout: 250 seconds]
<Hanmac> for my stuff i dont use bundler but i try to make it working with newest trunk of the dependencies
stef_204 has joined #ruby
hiall has quit [Quit: hiall]
aarkerio has joined #ruby
<aarkerio> hi! in : foo = { active: -> { !active } }
elstif has joined #ruby
<aarkerio> what "->" means?
<miah> medicineuk: yes; those are the defaults
Wolland_ has joined #ruby
<miah> aarkerio: its a proc
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Hanmac> Miah hm i would not call "bundler" default as like "rubygems" because its not shipped with ruby itself (for now)
MaciejCzyzewski has joined #ruby
Wolland has quit [Disconnected by services]
klmlfl_ has joined #ruby
Wolland_ is now known as Wolland
kireevco has quit [Quit: Leaving.]
pu22l3r_ has joined #ruby
aspires has quit []
<aarkerio> miah, thanks!
<miah> Hanmac: yes; but its a default tool that most everybody uses
blackmesa has quit [Ping timeout: 244 seconds]
medicineuk has quit [Quit: medicineuk]
<miah> i havent managed a successful ruby project without it (i cant wait until gem can do all)
robustus has joined #ruby
carraroj has joined #ruby
michaeltomer has joined #ruby
altamic has quit [Quit: altamic]
pu22l3r__ has joined #ruby
<Hanmac> miah it does happen to often that users use rvm and bundler because they are "default" but mostly dont know what they are doing and then they come because they have problems about it ...
pu22l3r has quit [Ping timeout: 244 seconds]
arup_r has quit [Read error: Connection reset by peer]
medicineuk has joined #ruby
milkohol has joined #ruby
arup_r has joined #ruby
<Hanmac> or they use bundler for a web-server project, but install rvm user-wide where they need to use it system-wide (because of different web user)
pu22l3r_ has quit [Read error: Connection reset by peer]
<koglinjg> Hanmac, it was in my comments, I had a line of "-------" that didn't have a # in the front .... I feeel really stupid now :/
<shevy> lol
klmlfl_ has quit [Ping timeout: 272 seconds]
arup_r has quit [Read error: Connection reset by peer]
failshel_ has joined #ruby
<miah> Hanmac: oh ya; for sure
<shevy> Hanmac you just also described default ruby on ubuntu too
Rahul_Roy has joined #ruby
sinkensabe has quit []
<shevy> when they have a ruby problem, will they go to ... (a)
<miah> default ruby on any linux distribution (apart from arch and gentoo) is generally a awful experience
<shevy> #ubuntu (b) #debian (c) #ruby
aspires has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<Hanmac> miah yeah, like on centos ;P
<medicineuk> when I install with bundler it still wants to install gems globally
kireevco has joined #ruby
<miah> ya; i wont run that trash anymore
kireevco has quit [Max SendQ exceeded]
<miah> medicineuk: --path
arup_r has joined #ruby
<medicineuk> is there anything I can add to my gemfile
Xiti has quit [Quit: Leaving]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<medicineuk> so I know anyone else using the project will have there gems in the same place
<shevy> lol
<medicineuk> like node has node_modules
kireevco has joined #ruby
<shevy> now you want to force onto others where their gems should be?
<miah> medicineuk: read this page from top to bottom; then see if you need to ask the question again (hint: search for --path) http://bundler.io/v1.7/bundle_install.html
kireevco has quit [Max SendQ exceeded]
elaptics is now known as elaptics`away
kireevco has joined #ruby
<medicineuk> its more I’m trying to understand community conversions then docs
<miah> ok
failshell has quit [Ping timeout: 258 seconds]
xvqq17 has joined #ruby
<medicineuk> do people always choose there only path with —path
<miah> --path can point to whatever you want
<miah> i usually use './gems'
Xiti has joined #ruby
kireevco has quit [Max SendQ exceeded]
<miah> where ./ is relative to the projects root
ghostmoth has quit [Quit: ghostmoth]
kireevco has joined #ruby
<medicineuk> rrrr ok thanks
kireevco has quit [Max SendQ exceeded]
Advocation has quit [Quit: Advocation]
<shevy> medicineuk there is no real community consensus. I don't even use bundler, everything I do gets handled by gem itself as far as add-ons are concerned
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
<claw__> hey there if have a array of x,y positions and the function get_distance which returns the distance to them. whats a ruby way to get nearest object ?
krisquigley has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
aarkerio has quit [Quit: Verlassend]
arup_r has joined #ruby
<medicineuk> shevy That makes sense, thanks. I’m coming from node land were we just have npm so trying to get my head around ruby conventions
a_ has joined #ruby
antlong has joined #ruby
<antlong> What can i use to determine why my rails server stops working, when there is nothing in the logs to go from?
carraroj has quit [Quit: Konversation terminated!]
<Hanmac> antlong: #rubyonrails
<shevy> the real problem gets cascaded downwards, from distributions that don't provide a good default ruby base system
mikepack has joined #ruby
felixjet has quit [Ping timeout: 245 seconds]
<shevy> debian is prone to eliminate mkmf, for no reason at all
carraroj has joined #ruby
aspires has quit [Read error: Connection reset by peer]
govg has quit [Quit: leaving]
<boombadaroomba> antlong: lok at your terminal requests
<Hanmac> for centos you can be happy if you have a only a little bit outdated version ;P
<antlong> boombadaroomba there's nothing
<antlong> boombadaroomba it just completely stops
<boombadaroomba> antlong: what line.fie
tvw has joined #ruby
gsd has quit [Read error: No route to host]
gsd has joined #ruby
<antlong> boombadaroomba sorry?
_lucid_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
<_lucid_> Are there any celluloid experts here?
<_lucid_> I guess there probably is
mikepack has quit [Ping timeout: 272 seconds]
<boombadaroomba> antlong: check your log files. it has to be there.
aizu has joined #ruby
kamilc__ has quit [Quit: Leaving...]
aspires has joined #ruby
mikepack has joined #ruby
wallerdev has quit [Quit: wallerdev]
echevemaster has joined #ruby
rezzack has quit [Quit: Leaving.]
wald0 has quit [Quit: Lost terminal]
timonv_ has joined #ruby
thejoecarroll has quit [Quit: ZNC - http://znc.in]
MaciejCzyzewski has joined #ruby
medicineuk has quit [Quit: medicineuk]
despai has quit [Quit: This computer has gone to sleep]
thejoecarroll has joined #ruby
rkalfane has joined #ruby
LiohAu has quit [Quit: LiohAu]
bayed has quit [Quit: Connection closed for inactivity]
crdpink has joined #ruby
mark_locklear has quit [Ping timeout: 245 seconds]
ghostmoth has quit [Quit: ghostmoth]
<_lucid_> IS there a way to remove this output from Celluloid: #<Socket:0x000000018b36d8>
<_lucid_> I get tons of those every time I use celluloid
User458764 has quit [Ping timeout: 272 seconds]
kireevco1 has joined #ruby
adac has quit [Ping timeout: 245 seconds]
<shevy> no
<shevy> that is .inspect call
ndrei_ has joined #ruby
<shevy> >> class Foo; end; p Foo.new
<eval-in_> shevy => #<Foo:0x41050f3c> ... (https://eval.in/198174)
<_lucid_> So there's absolutely no way to remove it and every time you use Celluloid you are just stuck with that?
jottr has quit [Ping timeout: 258 seconds]
<shevy> >> class Foo; end; p Foo.new.inspect
<eval-in_> shevy => "#<Foo:0x407c8f68>" ... (https://eval.in/198175)
<shevy> if I have to make a guess, you must be doing something wrong
gigetoo has joined #ruby
medicineuk has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
kireevco has quit [Ping timeout: 260 seconds]
patrick99e99 has quit [Quit: Lost terminal]
<_lucid_> I don't think so, I mean the script works fine
<_lucid_> It just has all that extra output
grzywacz has joined #ruby
pdoherty has quit [Quit: pdoherty]
<_lucid_> http://pastebin.com/H5WZHpdJ < The code
<shevy> well, that output must come from something calling .inspect
<shevy> and that is non-standard behaviour for most part of normal ruby
felixjet has joined #ruby
<shevy> so which part of the script gives that .inspect output
pdoherty has joined #ruby
agent_white has joined #ruby
aspires has quit []
<_lucid_> Well
bruno- has joined #ruby
<_lucid_> I believe the futures method at the end
Takle has joined #ruby
<_lucid_> Ah
<_lucid_> Yes
emmesswhy has quit [Quit: This computer has gone to sleep]
<_lucid_> The puts future.value is what causes it
gigetoo has quit [Ping timeout: 244 seconds]
<shevy> and what should .value yield normally?
phutchins has quit [Ping timeout: 246 seconds]
aizu has quit [Quit: Leaving]
krisquigley has quit [Remote host closed the connection]
<shevy> if I understand it correctly
<shevy> you call .value on class Ranger
angusigu1ss has joined #ruby
<shevy> but .value is not defined in the code you show
<shevy> so it must derive from include Celluloid
<_lucid_> Yes
krisquigley has joined #ruby
gigetoo has joined #ruby
<shevy> result = Thread.receive(timeout) do |msg|
<shevy> result.value
patrick99e99 has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
diegoviola has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
diegovio1 has joined #ruby
<shevy> so it seems as if that calls .value on Thread
<_lucid_> Strangely, if I completely remove the entire last block the script works exactly the same with no performance issues..
<shevy> x = Thread.new { puts '5'; sleep 2}
<shevy> x.value # => 2
<shevy> so when i use this, I get back 2
<shevy> I have no idea why your code won't give you a fixnum
Soda has joined #ruby
Svte has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
angusigu1ss has quit [Ping timeout: 272 seconds]
kate_r has joined #ruby
gsd has quit [Ping timeout: 245 seconds]
ephemerian has joined #ruby
alvaro_o has joined #ruby
aspires has joined #ruby
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<_lucid_> Well I removed the last block and now the .inspect output is gone.
gvenkat_ has quit [Quit: Leaving]
<_lucid_> I don't understand why Celluloids formatting is so weird though
<_lucid_> Nothing is in order
SpaceKookie has joined #ruby
gauke has joined #ruby
jottr has joined #ruby
jottr has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
<omosoj_> can i do something like arr = [1, 2]; Model.where(field: arr).each {|x| x.blah} ? iterate over records when i put an array in the where function
<centrx> omosoj_, Model.where always returns an enumerable regardless of the constraints
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<omosoj_> so yes?
<apeiros> yes
<omosoj_> ok. heh, seems like i'm cheating but i'll take it
decoponio has quit [Quit: Leaving...]
<apeiros> omosoj_: also - just fire up rails console and try. it doesn't bite.
emmesswhy has joined #ruby
<shevy> ack
<shevy> rails is trying to sneak in
<shevy> Hanmac, ready the shotgun, I will get some fire
francisfish has joined #ruby
<omosoj_> apeiros, i usually do for 99% of my problems but sometimes i'm just stumped or lazy, heh
* apeiros hands shevy a pitchfork
zcreative has quit [Ping timeout: 272 seconds]
<shevy> :(
emmesswhy has quit [Client Quit]
<omosoj_> how do i do an action here in irc?
<shevy> what's that as a weapon
* shevy this?
<omosoj_> *sets tripwires
<shevy> via "/me TEXT_HERE"
<omosoj_> oops
<shevy> without the "
* omosoj_ sets tripwires
<shevy> much better
pu22l3r has joined #ruby
lowandslow has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> eam wake up man, I need to find out whether I can use ruby through DOS/dosbox
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
arup_r has quit [Quit: Leaving.]
d2dchat has quit [Remote host closed the connection]
Nightmare_Night has joined #ruby
jottr has joined #ruby
klmlfl_ has joined #ruby
p0sixpscl has joined #ruby
aef has quit [Read error: Connection reset by peer]
sevvie has quit [Quit: leaving]
medicineuk has quit [Quit: medicineuk]
Steve-W has joined #ruby
LuckyLex has quit [Ping timeout: 264 seconds]
pu22l3r__ has quit [Ping timeout: 272 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
dopie has joined #ruby
<dopie> hey all
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
<Steve-W> Hi all. I am having trouble defining the 'content' field of an Atom field I'm creating (item.content= seems to not exist) --- would anyone have any ideas?
<Steve-W> (using the built-in rss lib)
timonv_ has quit [Remote host closed the connection]
<apeiros> shevy: why the sad face? I'm supporting your lynch mob rallying :)
klmlfl_ has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
aspires has quit []
asteros has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
nettoweb has joined #ruby
emmesswhy has joined #ruby
tkuchiki has joined #ruby
<shevy> but a pitchfork is so old school
<shevy> can't I get some weapon from starcraft?
brandonshowers has joined #ruby
MaciejCzyzewski has joined #ruby
ghostmoth has joined #ruby
mrbubbles has quit [Quit: mrbubbles]
MaciejCzyzewski has quit [Client Quit]
tkuchiki has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
skfax has joined #ruby
diegovio1 has quit [Ping timeout: 272 seconds]
rezzack has joined #ruby
aspires has joined #ruby
Wolland has quit []
<skfax> Is there an easy way to figure out what "some_object.some_method" ends up calling? E.g. which base class contains the resulting method?
kireevco1 has quit [Quit: Leaving.]
momomomomo has joined #ruby
Wolland has joined #ruby
<eam> shevy: hello
<eam> you absolutely can
<eam> there's a djgpp build floating around
chrishough has joined #ruby
jrhe_ has joined #ruby
AlexRussia has joined #ruby
Notte has joined #ruby
xcv has joined #ruby
benzrf|offline is now known as benzrf
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
AlexRussia has quit [Client Quit]
kaspergrubbe_ has joined #ruby
kireevco has joined #ruby
<apeiros> huh? top level `using` is back in 2.1.2?
AlexRussia has joined #ruby
shredding has quit [Quit: shredding]
kireevco has quit [Client Quit]
Scotteh_ has quit [Quit: Later, folks]
Scotteh has joined #ruby
AFKGeek has joined #ruby
momomomomo has quit [Quit: momomomomo]
tanath has quit [Remote host closed the connection]
failshel_ has quit []
Svte has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tanath has joined #ruby
AFKGeek has quit [Client Quit]
<benzrf> usinng
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei_ has quit [Remote host closed the connection]
AFKGeek has joined #ruby
yeticry has joined #ruby
kirun has quit [Quit: Client exiting]
<shevy> cool
<shevy> I need to test that
omosoj_ has quit [Ping timeout: 244 seconds]
<shevy> using # ArgumentError: wrong number of arguments (0 for 1)
<shevy> what can I use that
threesixes has quit [Remote host closed the connection]
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> how can I even search for using()? google gives me funny results when I search for "using" :P
Notte has quit []
kireevco has joined #ruby
kireevco has quit [Client Quit]
kireevco has joined #ruby
Aaaal has joined #ruby
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> eam that guy says ruby is a ripoff of smalltalk
aspires has quit []
<wmoxam> shevy: isn't it?
g0bl1n has quit [Quit: g0bl1n]
<wmoxam> :p
threesixes has joined #ruby
<eam> more of a ripoff of perl, which is why I like it
yeticry has quit [Remote host closed the connection]
<shevy> wmoxam see? it's different things to different people!
carraroj has joined #ruby
<wmoxam> eam: exactly
pu22l3r has quit [Ping timeout: 260 seconds]
govg has joined #ruby
AFKGeek has quit [Quit: Leaving]
kireevco has quit [Ping timeout: 250 seconds]
yeticry has joined #ruby
<wmoxam> AFAICT it's two biggest influences are Smalltalk and Perl :p
fabrice31 has joined #ruby
AFKGeek has joined #ruby
despai has joined #ruby
kireevco has joined #ruby
AFKGeek has left #ruby [#ruby]
Aaaal has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
dorei has quit [Read error: Connection reset by peer]
Squarepy has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
dorei has joined #ruby
_maes_ has joined #ruby
AlHafoudh has quit [Ping timeout: 245 seconds]
einarj has joined #ruby
fabrice31 has quit [Ping timeout: 258 seconds]
dorei has quit [Read error: Connection reset by peer]
andrewlio has quit [Quit: Leaving.]
dorei has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
angusiguess has joined #ruby
AlexRussia has quit [Remote host closed the connection]
Nightmare_Night has quit []
yeticry has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
AlexRussia has joined #ruby
<benzrf> shevy: ruby is, in fact, smalltalk by way of perl
<benzrf> or maybe perl by way of smalltalk
<benzrf> hell if i know
gauke has quit [Quit: gauke]
<AmBienCeD> ruby is smalltalk by the way of matz :D
freerobby has quit [Quit: Leaving.]
benzrf is now known as benzrf|offline
coderdad has quit [Remote host closed the connection]
Wolland_ has joined #ruby
freerobby has joined #ruby
MaciejCzyzewski has joined #ruby
devdazed has quit [Quit: Bye]
elstif has quit [Quit: Leaving.]
dmfranc has joined #ruby
fsapo has quit [Remote host closed the connection]
krisquigley has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
cocotton_ has joined #ruby
hmsimha_ has quit [Ping timeout: 246 seconds]
mikesplain has quit [Ping timeout: 240 seconds]
Xiti` has joined #ruby
reset has joined #ruby
buub has quit [Ping timeout: 240 seconds]
Xiti` has quit [Client Quit]
carraroj has quit [Quit: Konversation terminated!]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has joined #ruby
cocotton has quit [Ping timeout: 244 seconds]
Xiti` has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
asteros has quit [Quit: asteros]
paulfm has quit []
Xiti has quit [Ping timeout: 272 seconds]
cocotton_ has quit [Ping timeout: 244 seconds]
maestrojed has joined #ruby
awc737 has quit [Client Quit]
jeremy04_ has quit [Ping timeout: 260 seconds]
bbloom has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
ptrrr has quit [Quit: ptrrr]
awc737 has joined #ruby
klmlfl_ has joined #ruby
spyderma_ has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
tesaf has quit [Quit: Lost terminal]
fsapo has joined #ruby
silkfox has joined #ruby
fsapo has quit [Remote host closed the connection]
skfax has quit [Quit: Page closed]
a_ has quit [Ping timeout: 245 seconds]
mattstratton has joined #ruby
asteros has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl_ has quit [Ping timeout: 272 seconds]
SilkFox_ has quit [Ping timeout: 272 seconds]
spyderma_ has joined #ruby
a has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
a is now known as Guest8272
gsd has joined #ruby
emmesswhy has joined #ruby
emmesswhy has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 240 seconds]
brandonshowers has joined #ruby
frenda has joined #ruby
corehook has quit [Remote host closed the connection]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<frenda> Is there anywhere for off-topic?
JoshGlzBrk has joined #ruby
awc737 has joined #ruby
corehook has joined #ruby
frenda has quit [Client Quit]
TeresaP has joined #ruby
emmesswhy has joined #ruby
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
tkuchiki has joined #ruby
ldnunes has quit [Quit: Leaving]
slester has quit [Remote host closed the connection]
endash has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
volty has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Quit: Leaving.]
atmosx has joined #ruby
michaeltomer has quit [Quit: michaeltomer]
TorpedoSkyline has joined #ruby
kobain has joined #ruby
codezomb has joined #ruby
narcan has joined #ruby
<codezomb> I've got an array of hashes I'm trying to "merge" together in a certain way. Would anyone mind taking a look? https://gist.github.com/codezomb/55d5f55161b7c4936e6a
ppinto_ has quit [Quit: ppinto_]
<codezomb> I keep running into a wall
kobain has quit [Max SendQ exceeded]
<codezomb> they idea is to remove any duplicate keys, and merge the player_ids from those duplicates into an array.
kobain has joined #ruby
bmurt has quit []
<shevy> codezomb I think you must manually iterate through your hash
<shevy> and check via .has_key?
<shevy> and if true, put it into an array, unless it already is an array (in the second case, you can simply append via << )
<apeiros> codezomb: so you want to merge all hashes with the same value for :key?
<codezomb> apeiros: right, and during the merge the player_ids need to be pushed into an array
<apeiros> codezomb: also, please gist the code (even if it failed) you came up with. you can add it to the same gist (gist supports multiple files)
codecop has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
spyderma_ has quit [Remote host closed the connection]
pen has joined #ruby
<apeiros> codezomb: you'll want to look into Enumerable#group_by, Hash#values, #map and #merge. note that #merge accepts a block.
spyderman4g63 has joined #ruby
<apeiros> (the order of the methods is pretty much the recipe)
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
asteros has quit [Quit: asteros]
<codezomb> apeiros: I've updated the gist with my last attempt, it returns a single hash
benzrf|offline is now known as benzrf
<codezomb> which is where I got myself confused, and decided to ask for help :)
kireevco has joined #ruby
jerius has quit []
linojon has quit [Quit: linojon]
jonr22 has joined #ruby
n_blownapart has joined #ruby
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has quit [Remote host closed the connection]
corehook has quit [Remote host closed the connection]
mikepack has joined #ruby
<apeiros> oh, I omitted inject
cndiv has quit [Ping timeout: 250 seconds]
<apeiros> belongs between map and merge in that recipe
russt has left #ruby [#ruby]
<apeiros> though if :key and :player are the only keys your hashes have, you can use an easier solution
<apeiros> hm, I find your desired output unwise. IMO you should not have player_id alternate between integer and array. I'd recommend you to normalize on array.
xcyclist has joined #ruby
<xcyclist> Okay: &&= is an obscure operator, apparently counterintuitive, and it is almost impossible to found the definition for it. What?
<benzrf> xcyclist: it's like +=
<benzrf> but &&=
<xcyclist> Well, one document I read told me it is not.
<apeiros> actually like ||=
<benzrf> apeiros: ?
<apeiros> because &&= and ||= work slightly different
<apeiros> (than +=)
<benzrf> oh right
<apeiros> a += b --> a = a + b
<apeiros> a &&= b --> a && a = b
ramfjord has quit [Ping timeout: 244 seconds]
<xcyclist> From what I can see it is very counter-intuitive.
<apeiros> xcyclist: syntax expansion, if you want
<xcyclist> It is the kind of thing Larry Wall would have dreamed up.
<apeiros> xcyclist: for what definition of "intuitive"?
<apeiros> let me guess - sample rate of 1 person: you. amiright? :)
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<apeiros> codezomb: array.group_by { |hash| hash[:key] }.map { |key, hashes| {key: key, player_id: (hashes.size == 1 ? hashes.first[:player_id] : hashes.map { |hash| hash[:player_id] })} }
<apeiros> codezomb: as said, IMO you should normalize :player_id to always be an array. I'm pretty sure it will make your life easier in other places.
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<codezomb> aha, very nice. I was just working on a similar approach, thanks.
<codezomb> The issue is the data is coming from a join table, and the data itself is fed to me this way.
<apeiros> given that you only need the player_id's, I'd guess that there are nicer solutions. I was too lazy to think of a different one when I noticed.
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
<eam> xcyclist: short circuiting boolean operators is the common case -- most languages have them
<apeiros> codezomb: I mean in the result. and since you're now defining the result, that's up to you :)
<eam> there are a few that do not, but they are in the vast minority
<xcyclist> Why not more clearly just say x = 'something' if x ????
<eam> xcyclist: that's a better way to write it
blackmesa has joined #ruby
<xcyclist> I mean, then it reads clearly, and everybody on the planet understands it.
asteros has joined #ruby
<eam> xcyclist: short circuit boolean logic is used in the case of a && b && c
asteros has quit [Client Quit]
arturhoo has quit [Quit: arturhoo]
<eam> if b and c are complex functions they will not be run if not a
<apeiros> xcyclist: you're free to write your code that way
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> this dates back to the dawn of time -- C and earlier
Soda has quit [Remote host closed the connection]
<eam> and again the vast majority of languages have short circuiting boolean operators (visual basic is the only one that comes to mind that does not)
<eam> C, java, ruby, etc -- all the same
<xcyclist> Okay, well, I am really getting to like Rob Pike's economy philosophy a la Go. If you have extra cutesy stuff, it most often is used to obscure, not help.
<xcyclist> ...even if by accident.
<eam> xcyclist: golang also short circuits boolean operators
<apeiros> IMO &&= is more a thing of consistency
MaciejCzyzewski has joined #ruby
<apeiros> I haven't seen it in the wild yet
ht__th has quit [Read error: Connection reset by peer]
<apeiros> so IMO you're making a drama out of something which doesn't really exist in reality.
<xcyclist> Yes. Some sins you cannot extricate yourself from.
tvw has quit []
tvw has joined #ruby
Svte has joined #ruby
<eam> I'm not sure it's a sin
Svte has quit [Max SendQ exceeded]
<eam> why wouldn't the implementation be permitted to optimize away unused code?
<apeiros> sample rate of one person…
<apeiros> and he hasn't yet told us what he found unintuitive either
dc__ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MaciejCzyzewski has quit [Client Quit]
banister has quit [Read error: Connection reset by peer]
banister has joined #ruby
cndiv has joined #ruby
sent-hil has joined #ruby
Fire-Dragon-DoL has joined #ruby
Kricir has quit [Remote host closed the connection]
<apeiros> s/he/they/
* apeiros is still getting used to those different pronouns
<eam> y'all
SCHAAP137 has quit [Remote host closed the connection]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
klmlfl has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
koglinjg has quit [Quit: Page closed]
TorpedoSkyline has joined #ruby
mkaesz has quit [Remote host closed the connection]
cocotton has joined #ruby
p0sixpscl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> xcyclist anyone forces you to use &&= ?
<eam> shevy: every time we write code we force someone else to understand it
elstif has joined #ruby
<shevy> you are not worthy to read my code eam
<eam> that's the paradoxical nature of communication
<xcyclist> Sorry to sound so disgruntled. No, it's code I need to read that is the problem, not code I write.
<eam> shevy: you have never read my code
<shevy> I don't want to either!
<eam> it's to be experienced, like art
<shevy> your code which I have never read must be disgusting :>
<apeiros> eam: and it's impossible to cater to everybody's scope of knowledge and intuition (and intuition forms from knowledge, so that was just repetitive)
jonr22 has quit [Ping timeout: 250 seconds]
<xcyclist> It's a good idea to use language people can read, and if you slip out of vernacular, to explain oddments, especially in programming.
antlong has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> xcyclist ruby is full of stuff that not everyone uses. for instance @@class vars.
<apeiros> xcyclist: I think it's a bad idea to try to cater to the least common denominator.
<eam> xcyclist: the thing is, short circuit and operator-assign have been the common vernacular for about 50 years now
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> or lambda-centric code
buub has joined #ruby
<xcyclist> I use @@class variables a lot.
<shevy> yeah see - I do not allow the use of @@ in my code
<eam> not even for singletons?
<shevy> never!
Inhaling_ has joined #ruby
crdpink has quit [Quit: q term]
<shevy> I do however abuse CONSTANTS
<eam> yeah but they're not really constant
<banister> xcyclist @@classvars are almost never needed -- my bet is you're using them because you don't fully understand them
<xcyclist> The advantage of Ruby is it's readability. If you use &&= without explaining it, you might as well code in something else, as you are not using Ruby to advantage. I find it amazing that this is not obvious.
<shevy> yeah - apeiros keeps on mentioning that as well :)
<apeiros> xcyclist: BS
<shevy> ruby is so dynamic that even constants are dynamic!
<banister> eam for singletons you can use @vars at the class-level, you don't need @@vars
<eam> >> String = Array; String.new + String.new
<eval-in_> eam => /tmp/execpad-1bb5dde6619e/source-1bb5dde6619e:2: warning: already initialized constant String ... (https://eval.in/198239)
<apeiros> xcyclist: you do NOT have to explain syntax basics to your fellow readers.
<apeiros> it's up to them to properly learn the language
<wasamasa> xcyclist: err, what?
ducklobster has joined #ruby
<shevy> xcyclist ok but readability is also subjective. for instance I think @@foo = 5 is less readable than @foo = 5
<apeiros> xcyclist: next somebody comes and says "what's up with that **, I don't know **. comment that in your code!"
corehook has joined #ruby
<banister> shevy agree, @var nearly always suffices
<apeiros> as said, catering for the least common denominator is stupid.
<wasamasa> xcyclist: I think you skipped a bunch of arguments in your conclusion
<shevy> xcyclist I actually have not been in a position where I needed to use &&=
<wasamasa> ^
<shevy> I do use && quite often though
<shevy> or perhaps just and
<eam> and is broken
hamakn has joined #ruby
narcan has joined #ruby
<xcyclist> Well, thanks for the help anyway. It would have been better if the definition of &&= was more accessible in the docs.
<shevy> the ruby docs are awful
<eam> docs!
<shevy> only pipework likes them
hamakn has quit [Read error: Connection reset by peer]
<shevy> eam thinks that perldocs are better
<shevy> he may be right on that
<eam> I am the most right I have ever been on that point
<xcyclist> Usually I find the Ruby docs adequate.
cndiv has quit [Ping timeout: 272 seconds]
InhalingPixels has quit [Ping timeout: 272 seconds]
<miah> i use the rubydocs a lot.. they aren't perfect by any means but im happy they exist =)
hamakn has joined #ruby
rubie has joined #ruby
<eam> shevy: these are the docs on perl operators: http://perldoc.perl.org/perlop.html
<apeiros> I think ruby really only has API docs. and that OTOH is an issue IMO.
<boombadaroomba> i also find them adequate
<shevy> ok from now on, whenever someone else complains about the ruby docs, I will note this down in my logs!
<xcyclist> Gotta go guys. Again, thanks.
<miah> apeiros: ah
weems|mac has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
xcyclist has quit [Quit: Page closed]
<eam> on the upside, the perl docs more or less apply entirely to ruby
<shevy> hehehe
mrsolo has joined #ruby
<apeiros> eam: lol
<shevy> ruby is perl 6
<apeiros> I'm also still missing proper tools for topical documentation
<rubie> hi all, having trouble calling .length on an array can someone help? http://repl.it/Zny
<shevy> actually, what does perl 6 have that ruby does not?
<eam> oh man
<miah> cpan?
<apeiros> rubie: I think you should switch line 17 & 18
<ducklobster> Is there any syntax for using named parameters (to a method) as globals for a class?
Wolland_ has quit []
<ducklobster> Aka a way to avoid lines 3 and 4 in https://gist.github.com/anonymous/dc0bf4e107effaf01d0b
<apeiros> rubie: you can only use a variable *after* assigning to it
<shevy> rubie you call a method with x before you define x? is that some kind of future-ruby?
<rubie> haha
<rubie> ya i just noticed that
yeticry has joined #ruby
<rubie> i was playing around to try to make it work
<shevy> why is perl 6 named apocalypse
<apeiros> rubie: also += probably works different from what you think
<rubie> actually no apeiros pointed that out
<apeiros> rubie: a += b --> a = a + b
Xiti` has quit [Quit: Leaving]
n_blownapart has quit []
g0bl1n has joined #ruby
<apeiros> so item_prices[starting] += total --> item_prices[starting] = item_prices[starting] + total
<apeiros> I think that's not what you want
<boombadaroomba> if you hear me complain, give me 2x the demerits as others
willgo has joined #ruby
<shevy> "I also discovered Larry's First Law of Language Redesign: Everyone wants the colon."
Xiti has joined #ruby
<shevy> I absolutely hated the ; in perl
<rubie> apeiros: okay so swtich them around
<shevy> I kept on forgetting it every once in a while
<apeiros> rubie: correct
<eam> shevy: that's a semicolon
ryanleesipes has quit [Remote host closed the connection]
<rubie> apeiros: okay thank you for that i need to remember those two things
kaspertidemann has quit []
<apeiros> rubie: shortest version of your code btw.: item_prices.inject(:+)
<codezomb> apeiros: thanks again, that worked out really well.
klmlfl has joined #ruby
crdpink has joined #ruby
<apeiros> codezomb: yw
hamakn has quit [Ping timeout: 244 seconds]
<eam> shevy: the rule is that everyone wants to use : for their thing
sailias has quit [Ping timeout: 250 seconds]
iukpun has joined #ruby
baltazore has quit [Remote host closed the connection]
WormDr1nk has joined #ruby
<eam> and it's true, look how many people overload/adopt : for their weird fancy syntax in ruby
mikepack has quit [Remote host closed the connection]
<eam> key: :val
<eam> Foo::Bar
<shevy> "we won't use the keyword given, but rather CATCH:"
<eam> it's the universally loved character
<shevy> CATCH {
<shevy> when Error::Overflow { ... }
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> larry was on his way to ruby!
<eam> whereas its little brother ; is the black sheep of the ascii family
<eam> no one likes the poor little guy
* apeiros uses : for assignment in his language
kireevco has quit [Quit: Leaving.]
felixjet_ has joined #ruby
<eam> he can't get a break
<shevy> I hate ; indeed
<apeiros> so far that's the only use I think
<shevy> I like {}
<codezomb> apeiros: it took me a minute to mean when you said normalizing player_id to an array. That was actually what I wanted, and I just hadn't that far ahead yet :)
ramfjord has quit [Ping timeout: 240 seconds]
<eam> imagine if I said to you "we'll use ; for namespaces, like Foo;;Bar"
<codezomb> it definitely cleaned up the code
<eam> would you like that?
<apeiros> and I use : because = has the meaning of equality, not assignment
<shevy> it gives me a warm feeling of embracement - I know what belongs inside
<shevy> hey
<shevy> php got that
<eam> they used the backslash right
toertore has quit [Quit: This computer has gone to sleep]
<shevy> they are simply insane
<eam> echo \feline\Cat::says(), "<br />\n";
MaciejCzyzewski has joined #ruby
<eam> php is amazing
<shevy> I think they do that on purpose to see with how much they get away with
<apeiros> if you're windows centric, backslash even makes bizarre sense
<Bish> hi, how do i create a "module attribute"?
<apeiros> it's the same sigil as for paths
TeresaP has quit [Read error: Connection reset by peer]
<eam> "whack" as they call it in Redmond
<shevy> Bish what is that? possibly def self.bla=(i) ?
yeticry has quit [Ping timeout: 240 seconds]
<shevy> right but MS has asp
<eam> apeiros: DOS paths can use / too
<eam> it's just that no one does
<apeiros> eam: re ; - I found it funny how some people suggested indenting your JS code with ; :D
<Bish> i want an mechanize agent accessible for all classes inside the module
<apeiros> eam: didn't know DOS can too. I knew windows APIs can
<eam> church of the leading semicolon
<eam> apeiros: yeah dates back to the first version of dos that supported directories (2.x?
afhammad has joined #ruby
<apeiros> god damit, when did it become midnight?
cocotton has quit [Remote host closed the connection]
<apeiros> s/god/random deity/
<rubie> apeiros: any idea why we are 3 off? http://repl.it/Zny/1
W0rmDr1nk has quit [Ping timeout: 245 seconds]
felixjet has quit [Ping timeout: 260 seconds]
<apeiros> rubie: because you add the first item twice
ndrei has quit [Quit: Lost terminal]
<wmoxam> apeiros: you're mistaken, it's only 6pm!
<apeiros> rubie: either .inject(0) or just .inject
klmlfl has quit [Ping timeout: 258 seconds]
mrsolo has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
<eam> and THAT in turn is fallout from unix/dos operating systems not having built in structure for passing program arguments as distinct parameters
ghostmoth has quit [Quit: ghostmoth]
dmfranc has quit []
<rubie> apeiros: oh that zero is the sum, not the position
mrsolo has joined #ruby
<apeiros> rubie: inject(0) will return 0 if your array is empty. inject() will return nil. otherwise, those two versions will do the same.
<rubie> ok thank you
ghostmoth has joined #ruby
<Bish> is there something like attr_accessor for class variables?
<apeiros> rubie: also { |sum, x| sum + x } # don't use +=
<rubie> ok
TeresaP has joined #ruby
<apeiros> the point of using inject is that each iteration works on the return value of the previous iteration
doodlehaus has quit [Remote host closed the connection]
kireevco has joined #ruby
<atmosx> hmmm I hate when this happens... I'm thirsty
Inhaling_ has quit [Remote host closed the connection]
postmodern has joined #ruby
kaspergrubbe_ has quit [Remote host closed the connection]
<shevy> drink something man
<shevy> IRC saves lives
felixjet_ has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
<dorei> remote bash exploit :)
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikepack has joined #ruby
<banister> apeiros what does kernschmelze mean
<volty> the point is that each iteration should return a new value [usually combining the prev one and the current element
<apeiros> banister: core meltdown
<apeiros> banister: usually in a nuclear reactor
RyanV has joined #ruby
<banister> thx
<volty> ] // += is only extra code, discarded
comma8 has joined #ruby
enebo has quit [Quit: enebo]
shinobi_one has joined #ruby
britneywright has joined #ruby
fsapo has joined #ruby
kireevco has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
InhalingPixels has joined #ruby
pdoherty has quit [Quit: pdoherty]
slester has joined #ruby
corehook has quit [Remote host closed the connection]
brandonshowers has joined #ruby
mary5030 has quit [Remote host closed the connection]
<volty> I used to use a smart lib to subst html (values or tags all together) but I do not remember which one (for the sake of searching on source files, at least), could you name the few best ones ?
<shevy> that is a funny exploit
<benzrf> >> 3 // 4
<eval-in_> benzrf => /tmp/execpad-0f5293110686/source-0f5293110686:2: unterminated regexp meets end of file ... (https://eval.in/198243)
<benzrf> gool
ramfjord has joined #ruby
<benzrf> >> 3 /// 4
<eval-in_> benzrf => /tmp/execpad-67447723fbdb/source-67447723fbdb:2: syntax error, unexpected tINTEGER, expecting keyword_end (https://eval.in/198244)
<benzrf> >> //
<eval-in_> benzrf => // (https://eval.in/198245)
<benzrf> >> ///
<eval-in_> benzrf => /tmp/execpad-ed2402c12213/source-ed2402c12213:3: syntax error, unexpected keyword_rescue ... (https://eval.in/198246)
<ducklobster> To rephrase my earlier question (with better terminology?)
<ducklobster> is there a way to do member initialization in the constructor in Ruby
<dorei> shevy: referer ends up as env var in cgi ;-)
<atmosx> well that's wicked: The Dynamic Host Configuration Protocol Client (dhclient) is used to automatically obtain network configuration information via DHCP. This client uses various environment variables and runs Bash to configure the network interface. Connecting to a malicious DHCP server could allow an attacker to run arbitrary code on the client machine.
felixjet has joined #ruby
renanoronfle has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Caius has quit [Quit: ""]
<shevy> dorei seriously who uses bash for .cgi ?????
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freezevee has joined #ruby
<atmosx> shevy: who uses cgi?
Caius has joined #ruby
<shevy> I do!
<dorei> shevy: I guess we'll found out in the following days :D
<miah> on the plus side; rooting linux based routers/modems just got a whole lot easier
n_blownapart has joined #ruby
freerobby has quit [Quit: Leaving.]
<shevy> hehehe
<atmosx> dorei: how's life?
<freezevee> I am following a ruby seminar and I am stuck on installing gems. My system is a mac and I just installed ruby 2.1.3 where the native one was 2.0.0. I did rbenv rehash and installed bundler but it seems that it is being installed in another directory.
<volty> shevy: I found out what is your (and not only yours) prob with monads — I'm not going to handle you a link, I'll just tell you that to master monads (in Haskell!!!) you have to study weii the type constructors // there are too many overcomplicated & pompous haskellers around there - that is the reason (well: one of :) ) why the stuff is so complicated
<freezevee> any ideas?
<apeiros> oh, cross posting…
<miah> i doubt they'll ever see updates for this; some of them use cgi =)
elstif has quit [Quit: Leaving.]
ducklobster was kicked from #ruby by apeiros [cross posting is rude. at least tell people that you are cross posting.]
jobewan has quit [Quit: Leaving]
<dorei> VAR='() { ignore; }; /bin/echo "kab00m"' python -c 'import os;os.system("ls")'
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> volty the problem is - as long as haskell does not give me a huge productivity boost over ruby, it is unlikely that I will waste my time learning it
dc__ has quit []
<shevy> and it smells like a math infection
<miah> i suspect perl would be a more common bin than python
<volty> apeiros: I am curious if you ever tried / gave a look at haskell, and what you think about (indirect experiencce too)
renanoronfle has joined #ruby
<miah> especially on all the older systems that are going to be around =)
<shevy> and ghc download is at 100 MB or what
<shevy> it's on his way to become its own OS
<shevy> *its way
rkalfane has joined #ruby
fabrice31 has joined #ruby
<shevy> hey apeiros, I also seem to have problems with different pronouns
Takle has quit [Remote host closed the connection]
<freezevee> how do I tell gem to install gems in a specific directory? In the current ruby global version ?
<shevy> maybe it's the fault of the english language
spyderman4g63 has quit [Remote host closed the connection]
<shevy> freezevee I think you can only tell it to use --user-install
<shevy> gem install --user-install bla-1.0.gem
<apeiros> volty: I have a list of probably 20 languages I want to try *any time now*. for the last ~10 years. actually ever since I started using ruby :)
spyderman4g63 has joined #ruby
<volty> shevy: the prob. is mine (and else's) too. That's why am asking around. It is so intriguing, and at times pleasant, at times you see big potential there, and at times you feel you are going to learn a useless lang
<apeiros> volty: I'm ashamed to admit that I haven't really tried a single one of them. so neither did I try haskell (and it's a bit further down the list anyway)
<freezevee> shevy: shouldn't it work anyway ? I am checking rbenv versions and I can see only one..
msmith_ has quit [Remote host closed the connection]
<freezevee> apeiros: ellinas?
<riceandbeans> shevy: ghc and all dependencies is much closer to 1GB than 100MB
<volty> apeiros: i believed at least a look ... :)
<apeiros> freezevee: I'm not greek, sorry.
<apeiros> volty: yes. "OMG this syntax is weird" ;-)
<freezevee> apeiros: do you know what your nick means ?
<apeiros> (just for good measure - I said the same about ->(){} in ruby)
<apeiros> freezevee: yes
<freezevee> ok :)
<riceandbeans> what does it mean?
<apeiros> or, well, I know a couple of its meanings
<shevy> freezevee dunno, rbenv installs into your HOME dir I think by default
<freezevee> "without experience"
centrx has joined #ruby
<shevy> atmosx is a greek geek
cndiv has joined #ruby
<apeiros> freezevee: yeah, and that's not the meaning I had in mind :-p
moritzschaefer has joined #ruby
<shevy> ohhh
<shevy> freezevee is also from greece
<atmosx> shevy: dorei is greek-greek too
<shevy> atmosx, rejoice!
<atmosx> shevy: I'm greek-italian actually
<shevy> omg it is a GREEK INVASION
<atmosx> shevy: kinad
<riceandbeans> ANECDOTAL TIME!
<atmosx> alskdjf;lkad kinda
<riceandbeans> so I was in Iraq
<shevy> omg
<riceandbeans> this guy in our base was walking around with no shirt
<atmosx> riceandbeans: .... that's racism.
fabrice31 has quit [Ping timeout: 245 seconds]
<shevy> ohh a p0rn story
almostworking has joined #ruby
<riceandbeans> he had a tattoo, the same word, in Hebrew, on each chest
<freezevee> apeiros: it derives from "peira" which means experience
<shevy> apeiros will be taught the greek language today
<shevy> peira sounds like apple or peach by the way
<riceandbeans> I asked him he spoke Hebrew and he said no, I asked him if he knew what it meant, he said "Servant of God"
<freezevee> lol
<centrx> how rubby
<apeiros> freezevee: you're acting as if it was the only meaning :)
<riceandbeans> I said, sorry dude, but it really just says the word "Slave" on your chest
spyderman4g63 has quit [Ping timeout: 246 seconds]
<shevy> what was the word
<freezevee> apeiros: it is
<riceandbeans> he was pretty upset, tried to tell me it said servant of God, I was like it says "Slave"
<centrx> how about a Slave of Good
<atmosx> riceandbeans: did he shoot you>
jottr has quit [Read error: Connection reset by peer]
pwestlund has quit [Read error: Connection reset by peer]
ItSANgo has quit [Read error: Connection reset by peer]
<centrx> Punch line: The word was actually that stupid name PHP has for the scope resolution operator
SpaceKookie has quit [Ping timeout: 260 seconds]
renanoronfle has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
<shevy> perhaps he was right
<shevy> and you just made a fool out of yourself
<riceandbeans> no, he was wrong
<banister> apeiros recommend any decent documentaries?
linojon has joined #ruby
<shevy> I wouldn't know anyway :)
<apeiros> freezevee: eh, lol, no
<riceandbeans> it was one word, and wasn't (traslitterated) mesaret, which is servant
Sharker has quit [Remote host closed the connection]
<freezevee> after the language lesson, can anyone help me in my first ruby lesson ?
<shevy> what is your ruby lesson
<riceandbeans> anyway, that's my linguistic anecdote
<freezevee> I am in the first chapter where I install ruby on a mac
<shevy> I mean, I don't think you can install into a directory through gem freezevee
yfeldblu_ has joined #ruby
Sharker has joined #ruby
<shevy> apeiros also uses a mac
<shevy> I do this instead: wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2
pwestlun1 has joined #ruby
<freezevee> shevy: the story goes like that: I install rbenv with homebrew, then rbenv install ruby version 2.1.3
<apeiros> banister: I rarely watch documentaries
<banister> apeiros what do u watch bb
<apeiros> banister: streams of games. mostly starcraft and hearthstone
<banister> apeiros NERD!
<shevy> see, I don't know rbenv so you got me there freezevee
<apeiros> totally
<apeiros> & proudly :-p
<shevy> I default to the latest ruby always; if I need multiple versions, I use the gobolinux approach for all programs
dc__ has joined #ruby
chridal has quit [Ping timeout: 245 seconds]
<freezevee> shevy: ok I see
ItSAN____ has joined #ruby
<shevy> but wtf hearthstone streams?!
contradictioned_ has joined #ruby
<shevy> freezevee sure! remove the directory
<boombadaroomba> wow, people dropping N-bombs in here toay
<boombadaroomba> today*
<shevy> do you use mac homebrew?
<shevy> I am sure rbenv keeps it somewhere, possibly there even is a rbenv command to do so
<banister> apeiros do u have an oculus rift
<shevy> starcraft stream I can understand if you are playing it or have been playing it
PanPan_ has joined #ruby
<freezevee> can I ditch an old ruby install ?
mikecmpbll has quit [Quit: i've nodded off.]
mikalv has quit [Read error: Connection reset by peer]
<apeiros> banister: no. tempted to buy one. but before I have another gadget lying around unused, I want to start playing with my arduino :)
PanPan has quit [Read error: Connection reset by peer]
PanPan_ is now known as PanPan
<shevy> I thought you are going to finish your game first
yfeldblum has quit [Ping timeout: 272 seconds]
certainty has quit [Ping timeout: 260 seconds]
pipework has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
<apeiros> centrx: Paamayim Nekudotayim?
tvw has quit [Remote host closed the connection]
<banister> apeiros i bought one, but my computer isn't good enough to use it :( YOu need a maxed out NVIDIA card
<centrx> apeiros, That's the one
Meeh has joined #ruby
afhammad has quit []
SpaceKookie has joined #ruby
<centrx> network hiccup
nfk has quit [Quit: yawn]
<riceandbeans> centrx: the words 'of god' were not on his chest, only the word slav'
<apeiros> banister: lol
<riceandbeans> atmosx: no, he didn't shoot me, he just walked away pissed off
pipework has joined #ruby
pipework has joined #ruby
pipework has quit [Changing host]
certainty has joined #ruby
<freezevee> shevy: whereis bundle it always shows me here /Users/me/.rvm/gems/ruby-2.0.0-p353/bin/bundle
<apeiros> banister: I only have a GTX 660Ti
baltazore has joined #ruby
chridal has joined #ruby
* apeiros off, nighty night
<atmosx> apeiros: night
<shevy> freezevee I don't use bundler either. and why do you use rvm, I thought you said rbenv.
geggam has quit [Ping timeout: 260 seconds]
<freezevee> shevy: I am following a lynda seminar
<shevy> that is making me sad
zz_LoRdToLsToI has quit [Ping timeout: 260 seconds]
<atmosx> night all
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> in my scripts I have to update only one part, the URL. So I do: "ue ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2", and an extra step for compiling it "ry ruby" and ruby gets compiled and installed by default into /Programs/Ruby/VERSION_OF_THAT_RUBY_GOES_HERE
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
almostworking has left #ruby ["Leaving"]
timgauthier_isaw is now known as timgauthier
baltazore has quit [Ping timeout: 260 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
heftig has quit [Ping timeout: 260 seconds]
lele has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
shackleford has quit [Remote host closed the connection]
heftig has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
ozzloy has quit [Quit: Lost terminal]
nfisher has joined #ruby
ozzloy has joined #ruby
felixjet_ has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
corehook has joined #ruby
nettoweb has joined #ruby
lele has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
ndrei has joined #ruby
<shevy> though I guess I need an algorithm or some kind of way to find out when a new update has happened for any registered program
elstif has joined #ruby
<shevy> manual updates take away too much time :(
<centrx> shevy, Can you adopt the Slackware packaging system?
einarj has quit [Remote host closed the connection]
felixjet has quit [Ping timeout: 272 seconds]
<shevy> my todo list includes that too, to generate slackware packages . it's mostly just .txz or something I think, so I should be able to. I'll see to it this or the next weekend
Steve-W has left #ruby ["Leaving"]
elstif has quit [Client Quit]
SilkFox_ has joined #ruby
Avahey has joined #ruby
felixjet_ has quit [Read error: Connection reset by peer]
slyslick has joined #ruby
Azure has quit [Max SendQ exceeded]
Wolland has joined #ruby
corehook has quit [Ping timeout: 272 seconds]
jonr22 has joined #ruby
hiall has joined #ruby
Azure has joined #ruby
Wolland has quit [Remote host closed the connection]
mrbubbles has joined #ruby
<centrx> cool, let me know how it goes
felixjet has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timgauthier is now known as timgauthier_isaw
icarus has quit [Remote host closed the connection]
milkohol has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostmoth has quit [Quit: ghostmoth]
ghostmoth has joined #ruby
<shevy> will do
ndrei has quit [Quit: Lost terminal]
last_staff has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
brandonshowers has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baltazore has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iukpun has quit [Ping timeout: 240 seconds]
shinobi_one has quit [Quit: shinobi_one]
ffranz has quit [Quit: Leaving]
klmlfl has joined #ruby
cirn0 has joined #ruby
baltazore has quit [Ping timeout: 260 seconds]
ephemerian has left #ruby [#ruby]
n_blownapart has quit [Remote host closed the connection]
yeticry has joined #ruby
deject3d has joined #ruby
treehug88 has quit []
snath has quit [Ping timeout: 272 seconds]
TeresaP has quit [Quit: TeresaP]
ndrei has joined #ruby
klmlfl has quit [Ping timeout: 272 seconds]
cirn0 has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
IceDragon has joined #ruby
britneywright has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
deject3d has quit [Client Quit]
slester has quit [Quit: Quitte]
emmesswhy has quit [Quit: This computer has gone to sleep]
startupality has quit [Quit: startupality]
yeticry has quit [Ping timeout: 272 seconds]
brandonshowers has joined #ruby
krisquigley has quit [Remote host closed the connection]
emmesswhy has joined #ruby
krisquigley has joined #ruby
freezevee has quit [Quit: Leaving...]
baroquebobcat has quit [Ping timeout: 246 seconds]
moritzschaefer has quit [Read error: Connection reset by peer]
jheg has quit [Quit: jheg]
moritzs has joined #ruby
rubyonrailed has quit []
troyready has quit [Quit: Leaving]
startupality has joined #ruby
TorpedoSkyline has joined #ruby
benlieb has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
emmesswhy has quit [Quit: Leaving]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
britneywright has joined #ruby
fsapo has quit [Remote host closed the connection]
volty has left #ruby ["Konversation terminated!"]
vinleod has quit [Quit: Computer has gone to sleep.]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
gsd has joined #ruby
pandaant has quit [Remote host closed the connection]
nettoweb has joined #ruby
Nahra has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 246 seconds]
davasaurous has joined #ruby
IceDragon has joined #ruby
bruno- has joined #ruby
Nahra has joined #ruby
Squarepy has quit [Quit: Leaving]
chrisja has quit [Quit: leaving]
thams has quit [Quit: thams]
yacks has quit [Ping timeout: 244 seconds]
codeurge has joined #ruby
yacks has joined #ruby
mofai has joined #ruby
Kislik has quit [Read error: Connection reset by peer]
Kislik has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 260 seconds]
bruno- has quit [Ping timeout: 272 seconds]
Kislik has quit [Client Quit]
sevvie has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
boombadaroomba has quit [Remote host closed the connection]
<shevy> I had to lol when I saw this mouse http://shevegen.square7.ch/IMG/THE_FAT_MOUSE.png
yfeldblum has joined #ruby
<shevy> but it is actually a mutant
nfisher has quit [Quit: Good-bye all!]
larsam has left #ruby [#ruby]
jyuan` has joined #ruby
justinmcp_ has quit [Remote host closed the connection]
justinmcp has joined #ruby
echevemaster has quit [Quit: Leaving]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
doodlehaus has joined #ruby
<centrx> devious scientists
axl_ has left #ruby [#ruby]
IceDragon has quit [Ping timeout: 272 seconds]
g0bl1n has quit [Quit: g0bl1n]
jyuan has quit [Ping timeout: 245 seconds]
<shevy> yeah, that particular mutant is supposed to help in studies about obesity and insulin control/response
ndrei has quit [Ping timeout: 258 seconds]
magic has quit [Read error: Connection reset by peer]
gsd has joined #ruby
mikepack has quit [Remote host closed the connection]
Guest8272 has quit [Ping timeout: 245 seconds]
robbyoconnor has joined #ruby
IceDragon has joined #ruby
wjimenez_ has joined #ruby
freerobby has joined #ruby
mikepack has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
icebourg has quit []
magic has joined #ruby
magic is now known as Guest69740
wjimenez5271 has quit [Ping timeout: 244 seconds]
dku has joined #ruby
dku has left #ruby [#ruby]
charliesome has joined #ruby
wjimenez_ has quit [Ping timeout: 272 seconds]
vt102 has quit [Remote host closed the connection]
gccostabr has quit [Read error: Connection reset by peer]
gccostabr has joined #ruby
hmsimha_ has joined #ruby
marr has quit [Ping timeout: 260 seconds]
skolman has quit [Remote host closed the connection]
bean has joined #ruby
mary5030 has quit [Remote host closed the connection]
slyslick has quit [Remote host closed the connection]
jottr has joined #ruby
kenneth has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zesty has joined #ruby