neohunter

Activity Graph

Page 1 of 4 | Next »

2018-06-11

[01:42:50] neohunter: has joined #ruby
[03:02:48] neohunter: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:06:38] neohunter: has joined #ruby
[21:09:51] neohunter: Client Quit
[21:23:09] neohunter: has joined #ruby
[21:25:33] neohunter: Client Quit

2018-04-16

[00:29:58] neohunter: Read error: Connection reset by peer
[03:35:34] neohunter: has joined #ruby
[03:37:30] neohunter: i wanto to be able to access a nested hash with a dot notation like my_hash['this.is.nested']
[03:37:46] neohunter: I'm trying without success to write the def [](key) method without success
[03:38:35] neohunter: ruby 2.2 :(
[03:38:49] neohunter: I think dig was introduced in 2.3
[04:24:03] neohunter: Quit: Textual IRC Client: www.textualapp.com

2018-04-15

[20:35:54] neohunter: has joined #ruby
[20:36:28] neohunter: is there any recommendation about the limit of nested namespaces?
[20:36:56] neohunter: I've this: `BatchInterface::SampleProvider::DataStructure::LovDictionary
[20:37:01] neohunter: is too much?
[21:43:11] neohunter: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:36:11] neohunter: has joined #ruby

2017-08-12

[13:31:40] neohunter: has joined #RubyOnRails
[13:31:58] neohunter: I've this on a rails 5.0 application config.assets.paths << File.join(Rails.root, "/vendor/admin")
[13:32:15] neohunter: this file do exist: vendor/admin/pages/ico/60.png
[13:32:24] neohunter: I've this on my layout image_path('ico/60.png')
[13:32:33] neohunter: On 5.0 it works, the png is loaded
[13:32:40] neohunter: but on 5.1 I receive an erro saysing
[13:32:46] neohunter: The asset "ico/76.png" is not present in the asset pipeline
[13:33:10] neohunter: if i set the full path pages/ico/60.png it says that is not precompiled and ask me to add to the precompiled assets list
[13:33:18] neohunter: but on 5.0 I'm not doing that
[13:33:43] neohunter: I checked the lambda on railties.rb for files to be precompield and its exactly the same on both version
[13:33:51] neohunter: why is not working? I'm nto able to find anything on the changelog
[14:52:49] neohunter: Ping timeout: 248 seconds
[16:18:41] neohunter: has joined #RubyOnRails
[16:18:53] neohunter: It's possible to prefix all my links with the namespace
[16:18:56] neohunter: so i can stop doing
[16:19:02] neohunter: link_to [:admin, user]
[16:19:11] neohunter: and if i'm in that namespace i can do
[16:19:14] neohunter: link_to user
[19:26:57] neohunter: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-04-17

[00:19:15] neohunter: has joined #RubyOnRails
[00:21:18] neohunter: already. Now i want to require it on app initialization, I added the require on my application.rb but it sasys cannot load such file, Where i can add the require?
[00:21:18] neohunter: Hi there, I'm using the Telegram-bot gem that have a module Telegram. I want to extend it to add one method, so i can to Telegram.send_message with my default configuration. I added a telegram.rb file on app/models.rb that extend there original module. if on console i run Telegram.send_message it says undefined method, If I do require 'telegram' the send_message method now works, (i guess its not autoloaded as there is module called Telegram
[01:20:10] neohunter: Quit: Textual IRC Client: www.textualapp.com

2017-04-05

[05:24:18] neohunter: has joined #RubyOnRails
[05:25:48] neohunter: Client Quit
[05:26:12] neohunter: has joined #RubyOnRails
[06:33:05] neohunter: Ping timeout: 260 seconds

2016-07-17

[00:03:29] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-07-16

[03:35:30] neohunter: has joined #RubyOnRails
[03:35:30] neohunter: has joined #ruby
[04:26:31] neohunter: Quit: My Mac has gone to sleep. ZZZzzz…
[10:00:19] neohunter: has joined #RubyOnRails
[10:00:19] neohunter: has joined #ruby

2016-07-15

[04:29:35] neohunter: Quit: My Mac has gone to sleep. ZZZzzz…
[10:00:15] neohunter: has joined #ruby
[10:00:16] neohunter: has joined #RubyOnRails
[16:20:27] neohunter: What could be the reeason for passanger not picking up the right ruby version when using as apache module?
[16:20:39] neohunter: I've a PassengerRuby with the right version, but is using the default one
[23:45:04] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-07-14

[22:31:16] neohunter: has joined #RubyOnRails
[22:31:16] neohunter: has joined #ruby

2016-07-13

[16:05:29] neohunter: has joined #RubyOnRails
[16:05:29] neohunter: has joined #ruby
[16:06:08] neohunter: Max SendQ exceeded
[16:07:33] neohunter: has joined #RubyOnRails
[16:07:33] neohunter: has joined #ruby
[16:07:56] neohunter: Hello, its possible to store some values in the environment/development.rb
[16:08:15] neohunter: i want to store a URL that will be used, and will be different for production and for development
[16:09:19] neohunter: mikecmpbll and how i can access it from anywhere in the app?
[16:22:32] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-04-08

[14:53:35] neohunter: has joined #RubyOnRails
[14:53:35] neohunter: has joined #ruby
[15:03:58] neohunter: Quit: Textual IRC Client: www.textualapp.com
[15:30:14] neohunter: has joined #RubyOnRails
[15:30:14] neohunter: has joined #ruby
[15:52:55] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-04-07

[00:09:28] neohunter: has joined #RubyOnRails
[00:09:28] neohunter: has joined #ruby
[00:41:56] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-03-29

[15:12:37] neohunter: has joined #RubyOnRails
[15:12:37] neohunter: has joined #ruby
[15:13:29] neohunter: Can someone please give me a hand with this one, is driving me crazy: http://stackoverflow.com/questions/36287926/rails-is-not-using-the-configuration-set-on-database-yaml/36288045#36288045
[15:13:56] neohunter: my rails is not using the database.yml settings to connect, but is showing the right params on the log,
[15:14:29] neohunter: it says, cant create database for... "username"=>"ubuntu", "host"=>"127.0.0.1".... but error says Access denied for user ''@'localhost'
[15:23:13] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-03-19

[14:44:35] neohunter: has joined #RubyOnRails
[14:44:35] neohunter: has joined #ruby
[14:47:32] neohunter: I want to create a column to store the transmission type of my, lets say, "car", what would be the best column type for this? enum('automatic', 'manual') or a boolean?
[15:48:57] neohunter: @durexlw what! but is only 2 options that will never change, that's is inpracticall, would I need to create a table even for gender?
[15:50:15] neohunter: pipework: in today social climate, transmission type is perceived as binary
[16:11:55] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-03-10

[14:44:52] neohunter: has joined #RubyOnRails
[14:44:52] neohunter: has joined #ruby
[14:45:49] neohunter: can i do something like /%s/ % "string"
[14:45:56] neohunter: with string is possible, but with regex?
[14:46:14] neohunter: (i mean, it says udnefined method % on a regex, but may there is one way...?
[14:47:09] neohunter: apeiros yeah... but i was thinking in defining the regex as a constant...
[14:49:15] neohunter: adaedra ok of course! thanks.
[14:49:27] neohunter: apeiros thats a lambda?
[14:49:31] neohunter: how could I use this?
[23:24:45] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-03-09

[15:44:41] neohunter: has joined #ruby
[15:44:42] neohunter: has joined #RubyOnRails
[17:01:19] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-03-08

[20:27:17] neohunter: has joined #RubyOnRails
[20:27:17] neohunter: has joined #ruby
[20:36:14] neohunter: Quit: leaving

2016-03-07

[18:38:08] neohunter: has joined #RubyOnRails
[18:38:08] neohunter: has joined #ruby
[19:23:07] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-03-04

[19:08:44] neohunter: has joined #ruby
[19:08:45] neohunter: has joined #RubyOnRails
[19:09:22] neohunter: Max SendQ exceeded

2016-03-03

[18:37:32] neohunter: has joined #ruby
[18:37:33] neohunter: has joined #RubyOnRails
[18:38:09] neohunter: Max SendQ exceeded
[18:40:30] neohunter: has joined #ruby
[18:40:31] neohunter: has joined #RubyOnRails
[20:15:12] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-02-26

[14:34:53] neohunter: has joined #RubyOnRails
[14:34:53] neohunter: has joined #ruby
[16:10:45] neohunter: Quit: leaving

2016-02-09

[16:11:27] neohunter: has joined #RubyOnRails
[16:11:27] neohunter: has joined #ruby
[16:11:32] neohunter: on rails 2.3 how i can know if I'm in the console?
[16:11:49] neohunter: ON rails 4 i have Rails::Console
[16:11:54] neohunter: is something like that for 2.3?
[16:16:15] neohunter: universa1: I have an application that has intensive console access and i want to monkey patch ActiveRecord to create some alias methods like ua for update_attribute, but want to do that only for console.
[16:17:52] neohunter: universa1: yes I know, and I already using .pryrc for some global stuff, but this changes will be for only one project
[16:17:58] neohunter: universa1: oh, thats a great idea, thanks!
[16:33:46] neohunter: universa1: you know... i did USING_CONSOLE=true but on the initalizer file the constant is not defined...
[20:15:04] neohunter: Quit: leaving

2016-02-08

[11:26:33] neohunter: has joined #ruby
[11:38:00] neohunter: Quit: Textual IRC Client: www.textualapp.com
[12:08:40] neohunter: has joined #ruby
[13:30:45] neohunter: Quit: Textual IRC Client: www.textualapp.com
[13:31:02] neohunter: has joined #RubyOnRails
[13:31:02] neohunter: has joined #ruby
[13:31:08] neohunter: Client Quit
[14:03:13] neohunter: has joined #RubyOnRails
[14:03:13] neohunter: has joined #ruby
[14:11:36] neohunter: Quit: leaving
[14:11:52] neohunter: has joined #ruby
[14:11:53] neohunter: has joined #RubyOnRails
[14:55:19] neohunter: Quit: leaving
[16:02:33] neohunter: has joined #RubyOnRails
[16:02:33] neohunter: has joined #ruby
[20:45:06] neohunter: how I can create a route that redirect all that matches /folder/*
[21:08:37] neohunter: get '/wp-content/*', to: redirect('https://google.com/') is not working... why? i got 404
[21:10:48] neohunter: get '/test'... does work
[21:11:59] neohunter: you are not seeing WP, you are seeing a string
[21:12:06] neohunter: i dont have wordpress
[21:13:03] neohunter: get '/testing/*', to: redirect('https://google.com/') is not working... why? i got 404
[21:15:21] neohunter: Processing by ApplicationController#error_404 as HTML
[21:15:21] neohunter: Started GET "/testing/test/algo" for 127.0.0.1 at 2016-02-08 16:09:32 -0500
[23:37:08] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-02-06

[03:31:25] neohunter: Quit: Textual IRC Client: www.textualapp.com

2016-02-05

[21:42:50] neohunter: has joined #RubyOnRails
[21:42:51] neohunter: has joined #ruby
[21:43:24] neohunter: On rails 2.3 (dont hate me) i'm doing render :update {|page| page << "some javascript" } what i can do to put that code in a file?

2016-01-22

[02:35:15] neohunter: Ping timeout: 240 seconds

2016-01-21

[13:25:49] neohunter: has joined #ruby
[17:26:52] neohunter: Remote host closed the connection
[17:27:33] neohunter: has joined #ruby
[17:28:05] neohunter: im having this error /Users/arnoldroa/.rvm/gems/ruby-2.1.2/gems/psd-2.1.2/lib/psd/layer_info/typetool.rb:126:in `join': incompatible character..... I added a binding.pry inside that file and it doesnt stop. why?
[17:28:20] neohunter: even tried with a raise, is like the file is not updated
[17:33:11] neohunter: shevy: yeah, i dont care too much about the error.. is invalid encoding.. but i want to debug the gem... but i dont understnad why, if i modified the file on the gem, why it dont got executed
[17:37:34] neohunter: so basically, if i receive this error: /Users/arnoldroa/.rvm/gems/ruby-2.1.2/gems/psd-2.1.2/lib/psd/layer_info/typetool.rb:126:" and I modify that file, why I run the script again and my code is not evaluated?
[18:16:31] neohunter: has joined #RubyOnRails
[18:16:42] neohunter: rails or bundle does some kind of cache to gem source files?
[18:28:04] neohunter: Wow, still not able to understand! why if I modified a file in my .rvm gems folder, it get cached or not evaluated after some time have lapsed?
[18:28:26] neohunter: i run the script again with requires the gem and still using an old version
[18:29:45] neohunter: apeiros i know is the right file because i went to lunch, and went i came back my edit was working, i removed the lines and it .. continue working (raise with custom message) even when the line was already removed...
[18:30:04] neohunter: but when I initially added the raise it didnt work
[18:32:11] neohunter: bundle caches it
[18:32:17] neohunter: .rvm/gems/ruby-2.1.2/cache
[18:33:15] neohunter: tubbo tahnks! any bundle command to clear that cache?
[18:36:16] neohunter: so.. my problem is that i edit a source file of a gem, and it doesnt get updated.
[18:36:28] neohunter: i need to do some small testing
[18:36:40] neohunter: but after couple of minutes, my changes on the gem source file works
[18:36:50] neohunter: is not a web server, is a script runned by rails runner
[18:37:06] neohunter: nop, rails just installed.
[18:37:19] neohunter: i added a raise inside a method in the gem source file.
[18:37:21] neohunter: dont worked
[18:37:34] neohunter: 10 minutes later the raise worked.
[18:37:52] neohunter: spring stopped
[18:37:56] neohunter: wth is spring
[18:38:22] neohunter: mmm is working even if no rails server is running??
[18:38:58] neohunter: absolutely interesting
[18:39:04] neohunter: so solution is to remove from gemfile..
[18:39:21] neohunter: yep it worked
[18:39:27] neohunter: ha, incredible!
[18:39:54] neohunter: i understand
[18:40:04] neohunter: interesting!

2015-11-11

[13:10:08] neohunter: has joined #ruby
[13:10:17] neohunter: has joined #RubyOnRails
[13:10:56] neohunter: How i can know if i'm on a namespaced rute.
[13:11:08] neohunter: i was using params[:admin] but seems like is not longer working?
[13:30:16] neohunter: how i can create a get route that is processed by a controller in a namesapce?
[13:30:24] neohunter: get '/admin' => 'admin/application#dashboard'
[13:44:11] neohunter: Quit: Textual IRC Client: www.textualapp.com

2015-11-02

[15:06:15] neohunter: Quit: Textual IRC Client: www.textualapp.com
[22:15:29] neohunter: has joined #ruby
[22:18:05] neohunter: Hi, I want to access HISTORY from IRB, I've readed source and it has module IRB; module HistorySavingAbility;
[22:18:14] neohunter: that last module has a var called HISTORY
[22:18:17] neohunter: how to access it frmo console
[22:18:32] neohunter: i've tried with IRB::HistorySavingAbility.class_eval {HISTORY}
[22:18:35] neohunter: but didnt work
[22:19:53] neohunter: 1) yes I want that, 2) I also want to learn and know how to access that HISTORY var if I should use class_eval or instance_eval
[22:32:21] neohunter: neohunter: you can use puts Readline::HISTORY.to_a to view the recent commands history, not sure about your other question
[22:32:31] neohunter: neohunter: thanks! you are awesome
[22:32:33] neohunter: neohunter: np
[22:49:12] neohunter: Quit: Textual IRC Client: www.textualapp.com

2015-10-31

[10:41:06] neohunter: has joined #ruby

2015-10-27

[13:54:04] neohunter: Quit: Textual IRC Client: www.textualapp.com

2015-10-26

[15:23:31] neohunter: has joined #ruby
[16:11:19] neohunter: Quit: Textual IRC Client: www.textualapp.com
[20:35:40] neohunter: has joined #ruby

2015-10-21

[19:29:19] neohunter: has joined #ruby
[19:29:33] neohunter: How I can control what is the ouput of just calling an instance?
[19:29:44] neohunter: for example a = MyThing.new
[19:29:50] neohunter: i want to simulate an array
[19:30:10] neohunter: so instead of ouput #<MyThing:0x109cc8aa8> i want to output a collection
[19:30:56] neohunter: ok, i dont want a string output
[19:31:01] neohunter: i want an Enumerator output
[19:31:04] neohunter: so i can do things like
[19:31:21] neohunter: my_object # [1,2,3]
[19:31:26] neohunter: my_object.some_method
[19:35:26] neohunter: how rails 2.3 used to do model.relationship returns an array of results, and model.relatiopnship.find exists
[19:35:32] neohunter: inspect, ok lets test with that
[19:54:11] neohunter: Quit: Textual IRC Client: www.textualapp.com

2015-10-20

[18:05:25] neohunter: has joined #ruby
[18:05:29] neohunter: Client Quit

2015-10-10

[00:41:57] neohunter: Quit: Textual IRC Client: www.textualapp.com