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
<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]
<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?
<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>
(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]
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.
<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]
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?
<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!
<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!
<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:
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]
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 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]
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]
<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 :-/
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]
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" :)
<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]
<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?
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]
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]
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
<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?
<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 :)
<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.]
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>
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]
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
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.
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]
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?
<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: 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.
<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
<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]
<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)
<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.]
<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]
<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]
<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.]