dachi_

Activity Graph

Page 1 of 1

2018-10-31

[19:29:29] dachi_: has joined #ruby
[19:32:11] dachi_: has joined #RubyonRails-offtopic
[19:33:01] dachi_: Client Quit
[19:45:27] dachi_: has joined #RubyonRails-offtopic
[21:17:41] dachi_: Quit: Page closed

2014-02-06

[15:17:27] dachi_: Hi. Is there any article I can read about use cases of /bin/my_ruby_application versus rake tasks?
[15:17:49] dachi_: When do I use one and when do I use another...
[15:19:53] dachi_: I mean, I made a gem, and people can require tasks by creating Rakefile, adding require 'my_gem/tasks' and executing bundle exec my_gem:version.. but same could have been done by just executing my_gem --show-me-version for example..
[15:20:17] dachi_: lagweezle I see
[15:20:37] dachi_: thanks, so I don't make such things as rake my_gem:version
[15:20:58] dachi_: thanks! :)
[15:22:25] dachi_: yes tnx for responding

2014-02-05

[22:34:55] dachi_: hi people
[22:35:26] dachi_: I need to move single semicolon on line if there is any to previous line's end, like here https://gist.github.com/dachi-gh/e892dcc86ae18022d1d9
[22:35:34] dachi_: I don't know regexps, can
[22:35:43] dachi_: you help me maybe give me a direction
[22:36:47] dachi_: but sometimes, there might be no line 6, but 5
[22:37:03] dachi_: or sometimes it would not be necessary at all, because ; might be at end
[22:37:55] dachi_: http://regex101.com/r/qX0yW6
[22:38:09] dachi_: waxjar do you think this can work

2014-02-04

[01:38:58] dachi_: pognant guide ...
[01:42:20] dachi_: "Them What Make the Rules and Them What Live the Dream"???
[01:44:46] dachi_: yea regexps too
[01:45:00] dachi_: i got to go people, thanks for helping me all the time.
[01:45:02] dachi_: good night!
[02:02:12] dachi_: snkcld_: it's called combined comparison operator
[02:02:36] dachi_: can return 1, -1 and 0
[02:02:53] dachi_: used with Comparable mixing often
[02:03:54] dachi_: snkcld_ it's also called spaceship operator
[02:05:05] dachi_: snkcld_ here's a nice page http://stackoverflow.com/questions/827649/what-is-the-ruby-spaceship-operator

2014-02-03

[00:00:37] dachi_: what if I want to create a new gem, do you use pty for such gems? like ffmpeg gem, what does it use?
[00:01:35] dachi_: thanks, is that realtime?
[00:03:33] dachi_: okay, streamio-ffmpeg this one uses open3
[00:03:44] dachi_: never heard of it
[00:08:39] dachi_: thanks i made my mind thanks!
[22:16:31] dachi_: why is this giving me such a wrong result :(((
[22:16:32] dachi_: 2.0.0-p247 :041 > a = "Generating public/fonts/nino.eot\n Generating public/fonts/nino.woff\n\nGenerating public/fonts/nino.svg\n".match(/^Generating (.+)/)
[22:16:33] dachi_: => #<MatchData "Generating public/fonts/nino.eot" 1:"public/fonts/nino.eot">
[22:17:33] dachi_: wrong for my understanding
[22:17:53] dachi_: i need those 3 paths, and I get something really different
[22:17:59] dachi_: it works in rubular
[22:18:05] dachi_: is there g?
[22:18:24] dachi_: there is no g
[22:19:20] dachi_: => #<MatchData "Generating public/fonts/nino.eot\n Generating public/fonts/nino.woff\n\nGenerating public/fonts/nino.svg\n" 1:"public/fonts/nino.eot\n Generating public/fonts/nino.woff\n\nGenerating public/fonts/nino.svg\n">
[22:19:25] dachi_: that's not what i need
[22:19:37] dachi_: strings are like this from Open3 stdout
[22:19:38] dachi_: Generating public/fonts/nino.eot\n Generating public/fonts/nino.woff\n\nGenerating public/fonts/nino.svg\n
[22:19:50] dachi_: no that's not correct
[22:20:21] dachi_: "Generating public/fonts/nino.eot\nGenerating public/fonts/nino.woff\nGenerating public/fonts/nino.svg"
[22:20:27] dachi_: this is a real string that open3 gives me
[22:22:03] dachi_: Yes! that's great I'll append \n
[22:22:08] dachi_: thank you!!!!!!!

2014-02-02

[00:13:12] dachi_: there's really a bug with sass and rails
[01:11:08] dachi_: is there a bug with compass / sass too??
[01:11:13] dachi_: rails 4.1
[23:58:15] dachi_: Hi. I've got a third-party command line application written. Which tools do I use to communicate with it, or should I write a separate wrapper for rails to talk with it?

2014-02-01

[23:39:26] dachi_: hi. it's like i spent too much time figuring out how to configure sass in rails4 with sass gem 'sass-rails', '~> 4.0.0' .. may I ask for a help
[23:40:20] dachi_: i tried creating sass.rb in config, I tried putting configs like config.sass.style = :nested in application.rb, same in production.rb, but nothing has effect, same css with comments
[23:41:00] dachi_: i delete assets, then change something in my sass file, so that it recompiles, but when rake assets:precompile RAILS_ENV=production every time I get the same output
[23:41:30] dachi_: do you know how can I pass configurations to sass in rails 4? can you help me?

2014-01-25

[21:58:08] dachi_: hi. I can't get acts_as_xlsx work along mongoid and axlsx_rails gems.. please help me.. I need to export model data to xls file
[22:03:35] dachi_: it's huge huge huge box

2014-01-16

[13:22:00] dachi_: these people write such disgusting articles
[13:22:25] dachi_: but i don't believe rails guys will switch

2014-01-14

[08:20:39] dachi_: i got interested in a question on stackoverflow
[08:20:50] dachi_: how do you make gem dependency GEMNAME -R
[08:20:56] dachi_: show you recursively all the gems
[08:21:03] dachi_: or do you know any other way?

2014-01-13

[19:33:39] dachi_: a snake???
[19:34:52] dachi_: happy old new year

2014-01-12

[05:45:02] dachi_: anybody here? I'lve got to ask some advice (client-side) but I'm working with rails on this
[05:45:15] dachi_: i've made a gem and now i'm making javascript for this
[05:45:32] dachi_: i need to give users ability to add their own remote-url
[05:45:41] dachi_: {remote: '???.'}
[05:45:53] dachi_: problem is that i can't make a decision about a parameter string value
[05:46:09] dachi_: so far i've got 'remote-read': '/notifications/read/:id' ..
[05:46:16] dachi_: is that '/:id' okay?
[05:46:26] dachi_: i mean for usability???.
[05:51:41] dachi_: my problem << solved. got a recommendation for my question. tnx
[15:18:21] dachi_: guys, some help..
[15:18:23] dachi_: rake routs
[15:18:25] dachi_: #index GET /index(.:format) user_notification#index
[15:18:26] dachi_: #root GET / user_notification/messages#index
[15:18:26] dachi_: # GET /read/:id(.:format) user_notification/messages#read
[15:18:48] dachi_: rspec No route matches {:controller=>"user_notification/messages", :action=>"index"}
[15:19:10] dachi_: i tried a lot, but i have get :index there in controller spec
[15:19:45] dachi_: it's engine under /vendors/engines/ (mountable )
[15:20:18] dachi_: gem 'rails', '~> 4.0.0'
[15:21:45] dachi_: controller: controllers/user_notification/messages_controller.rb
[15:21:57] dachi_: spec file: controllers/user_notification/messages_controller_spec.rb

2014-01-11

[21:31:01] dachi_: anybody know scala?
[21:32:04] dachi_: http://dachi.co/bench_rb.html
[21:32:07] dachi_: i want this in scala
[21:32:27] dachi_: i argue with some guy about speeds and i need scala version
[21:36:26] dachi_: ok thanks
[21:37:41] dachi_: i joined their channel and asked there but
[21:37:49] dachi_: dachi_: Hello! if anyone has like 3-4 minutes, could you please write Scala version of this script in ruby? http://dachi.co/bench_rb.html I am comparing speeds and I'd be very grateful
[21:37:50] dachi_: [01:24am] OlegYch: won't
[21:39:38] dachi_: i think so

2014-01-10

[15:15:49] dachi_: why's poignant guide to ruby ^_^
[15:17:29] dachi_: just because you can feel magic you will be pursuing :)
[15:39:11] dachi_: true ai scares me, just imagine, ai, good ai, True AI aa O_o
[15:51:45] dachi_: nokogiris methods ...
[16:01:42] dachi_: we have souls
[16:05:02] dachi_: http://www.youtube.com/watch?v=Jj_OlTelGhI
[16:11:33] dachi_: it's all written what will happen
[19:52:16] dachi_: so, what's next?

2014-01-09

[04:34:22] dachi_: hello. What's the difference with #rails ?
[04:35:21] dachi_: oh, ok i'll be here then, thanks. nice to see you all