kkiero

Activity Graph

Page 1 of 1

2017-08-14

[12:53:38] kkiero: has joined #ruby
[14:34:56] kkiero: Ping timeout: 255 seconds
[16:49:25] kkiero: has joined #ruby
[18:09:46] kkiero: Quit: leaving
[19:12:20] kkiero: has joined #ruby
[19:33:52] kkiero: Ping timeout: 276 seconds

2017-08-13

[17:55:37] kkiero: has joined #ruby
[23:57:48] kkiero: Read error: Connection reset by peer

2017-08-12

[11:47:33] kkiero: has joined #ruby
[13:34:00] kkiero: Quit: leaving
[17:45:33] kkiero: has joined #ruby
[18:44:30] kkiero: Quit: leaving
[18:57:31] kkiero: has joined #ruby
[20:13:39] kkiero: Quit: leaving

2017-08-11

[01:20:00] kkiero: has joined #ruby
[01:20:44] kkiero: Client Quit

2017-08-08

[17:03:30] kkiero: has joined #ruby
[17:03:58] kkiero: Client Quit

2017-08-07

[00:11:21] kkiero: Quit: leaving
[10:51:16] kkiero: has joined #ruby
[11:48:40] kkiero: Ping timeout: 260 seconds
[12:21:15] kkiero: has joined #ruby
[13:18:28] kkiero: Ping timeout: 240 seconds

2017-08-06

[10:42:12] kkiero: has joined #ruby
[11:45:16] kkiero: Ping timeout: 276 seconds

2017-08-05

[21:25:14] kkiero: has joined #ruby
[21:42:51] kkiero: has left #ruby: ()

2017-08-04

[08:38:21] kkiero: has joined #ruby
[10:32:17] kkiero: has left #ruby: ()

2017-08-03

[07:50:31] kkiero: has joined #ruby
[09:32:06] kkiero: has left #ruby: ()
[13:35:10] kkiero: has joined #ruby
[13:56:22] kkiero: has left #ruby: ()
[21:14:04] kkiero: has joined #ruby
[23:47:45] kkiero: Read error: Connection reset by peer

2017-08-02

[10:42:42] kkiero: has left #ruby: ()
[10:42:42] kkiero: has joined #ruby
[11:49:13] kkiero: has joined #ruby
[11:57:04] kkiero: Quit: leaving
[13:04:01] kkiero: has joined #ruby
[13:55:39] kkiero: Quit: leaving
[15:42:07] kkiero: has joined #ruby
[16:06:35] kkiero: has left #ruby: ()

2017-08-01

[18:19:15] kkiero: has joined #ruby
[19:41:22] kkiero: has left #ruby: ()
[20:58:36] kkiero: has joined #ruby
[22:27:25] kkiero: has left #ruby: ()

2017-07-31

[22:43:01] kkiero: has joined #ruby
[23:45:27] kkiero: Ping timeout: 240 seconds

2017-07-30

[19:43:41] kkiero: has joined #ruby
[19:57:15] kkiero: Quit: leaving

2017-07-29

[10:39:50] kkiero: has joined #ruby
[11:24:50] kkiero: Ping timeout: 240 seconds
[11:45:41] kkiero: has joined #ruby
[12:55:22] kkiero: Ping timeout: 260 seconds

2017-07-27

[00:25:34] kkiero: Quit: leaving
[16:35:45] kkiero: has joined #ruby
[16:45:40] kkiero: has left #ruby: ()

2017-07-26

[21:41:05] kkiero: has joined #ruby

2017-07-24

[00:05:57] kkiero: Quit: leaving

2017-07-23

[00:24:27] kkiero: Quit: leaving
[13:39:47] kkiero: has joined #ruby
[20:10:27] kkiero: Ping timeout: 240 seconds
[22:45:41] kkiero: has joined #ruby
[23:50:50] kkiero: Quit: leaving
[23:51:05] kkiero: has joined #ruby

2017-07-22

[00:02:34] kkiero: has joined #ruby
[01:47:30] kkiero: Quit: leaving
[22:18:42] kkiero: has joined #ruby

2017-07-21

[01:41:25] kkiero: Quit: leaving

2017-07-20

[00:02:17] kkiero: Radar: does this code from screenshot work for you?
[00:02:31] kkiero: for me it doesn't
[00:02:42] kkiero: it still uses system ruby :(
[00:16:05] kkiero: yeah, with chruby it works because you're sourcing it from script
[00:16:25] kkiero: it doesn't see rbenv command so I cannot do rbenv exec
[00:19:08] kkiero: ok I'm going to use vanilla bash wich echo and piping it to tr
[00:33:04] kkiero: al2o3-cr: -: ${str^^}: bad substitution
[00:34:43] kkiero: /bin/bash is 3.2
[00:40:20] kkiero: ok i'm going to sleep
[00:40:27] kkiero: thanks for any help
[00:51:14] kkiero: yes I came up with similiar solution
[00:51:43] kkiero: the problem is that somehow letters Ł and ł don't transform ;/
[01:15:55] kkiero: Quit: leaving
[23:30:16] kkiero: has joined #ruby

2017-07-19

[20:41:42] kkiero: has joined #ruby
[20:43:46] kkiero: is word.mb_chars.upcase the best solution when word contains some l1anguage-specific letters?
[21:30:05] kkiero: what if it's not possible to use ruby 2.4?
[21:30:11] kkiero: then my solution?
[21:35:04] kkiero: Ping timeout: 260 seconds
[21:58:16] kkiero: is it fix in newer version of ruby?
[21:58:30] kkiero: upcase of specific letter
[21:59:41] kkiero: so I guess the best solution here will be with Hash as you wrote
[21:59:53] kkiero: so it won't require any dependencies
[22:08:07] kkiero: wow, thanks, I didn't expect whole solution
[22:08:44] kkiero: indeed ;)
[22:27:09] kkiero: btw why irb cannot display polish letters? POLISH_CONVERSION = {'\U+FFC4' => '\U+FFC4', '\U+FFC4' => '\U+FFC4'}
[22:27:16] kkiero: I have readline
[22:29:24] kkiero: in shell I can type those letter correctly
[22:33:36] kkiero: al2o3-cr: thanks
[22:33:55] kkiero: the solution with Hash replacement is good as I can't pack letters from german too
[22:35:04] kkiero: now i'm solving why I cannot type or paste this letter in irb
[23:01:02] kkiero: hmm weird
[23:01:27] kkiero: when ruby is set to 2.3 then I can type polish letters to irb
[23:01:33] kkiero: in 2.0.0 I can't...
[23:26:01] kkiero: I have 2.4 from rbenv
[23:26:22] kkiero: the point is macOS system ruby version
[23:36:58] kkiero: Radar: unfortunatelly in mac automator I have to use it :<
[23:39:04] kkiero: automator runs script with /usr/bin/ruby
[23:39:36] kkiero: I tried this
[23:39:46] kkiero: but not /usr/bin is read only
[23:40:08] kkiero: doesn't work
[23:41:28] kkiero: firstly I wanted to backup system binary
[23:41:30] kkiero: mv: rename /usr/bin/ruby to /usr/bin/system_ruby: Operation not permitted
[23:42:09] kkiero: I read that this is due to System Integrity Protection (SIP)
[23:42:36] kkiero: I can do this
[23:42:37] kkiero: https://stackoverflow.com/a/32661637/738150
[23:42:46] kkiero: but it's overkill
[23:49:12] kkiero: that makes sense
[23:49:22] kkiero: i'm coming to this solution with every step
[23:49:39] kkiero: but I don't want to keep ruby code in separate file
[23:49:56] kkiero: I will put it somehow in bash script
[23:55:32] kkiero: ruby -e "puts ARGV[0].upcase" test => TEST
[23:55:53] kkiero: ruby -e "puts ARGV[0].upcase" ęóąśłżźćń => ęóąśłżźćń
[23:56:13] kkiero: ruby 2.3.1p112
[23:56:32] kkiero: maybe 2.4 will be ok with this
[23:57:41] kkiero: yep, forgot about it
[23:58:51] kkiero: I didn't think that so little automator service will bring so many problems...

2017-07-18

[00:03:37] kkiero: has left #ruby: ()
[08:53:42] kkiero: has joined #ruby
[08:54:06] kkiero: has left #ruby: ()
[11:51:49] kkiero: has joined #ruby
[12:33:31] kkiero: Ping timeout: 255 seconds
[14:00:49] kkiero: Ping timeout: 255 seconds

2017-07-17

[21:41:32] kkiero: has joined #ruby
[21:48:46] kkiero: has left #ruby: ()
[21:49:07] kkiero: has joined #ruby

2017-07-10

[13:31:53] kkiero: has joined #ruby
[14:07:30] kkiero: has joined #ruby
[14:07:30] kkiero: Changing host
[14:53:11] kkiero: has joined #RubyOnRails
[14:54:10] kkiero: has left #RubyOnRails: ()
[15:22:41] kkiero: Ping timeout: 248 seconds
[15:28:59] kkiero: has joined #ruby
[17:06:00] kkiero: Quit: Lost terminal

2017-07-06

[21:13:15] kkiero: has joined #ruby
[21:34:07] kkiero: Quit: leaving
[22:31:03] kkiero: has joined #ruby
[23:10:08] kkiero: Quit: leaving
[23:21:23] kkiero: has joined #ruby
[23:22:39] kkiero: Quit: leaving

2012-12-16

[03:18:25] kkiero: how to include only a few attributes of associated model to json?
[03:18:37] kkiero: for instance I have review model that has one user model
[03:18:51] kkiero: and I want to include in review json only name of the user
[03:21:01] kkiero: huoxito: thanks

2012-12-13

[18:58:20] kkiero: how to disable for instance 'updated_at' of model from showing in json?
[18:59:41] kkiero: elaptics: thanks

2012-12-04

[02:21:43] kkiero: any good tutorial on quick restful authentication and facebook connect? I found this http://madebymany.com/blog/tutorial-for-restful-authentication-on-rails-with-facebook-connect-in-15-minutes but it's from 2009
[04:10:50] kkiero: how to reset particular session in rails?

2012-12-03

[15:03:15] kkiero: hi, how to reload page via js and send params to rails controller? I'm trying something like this: http://pastie.org/5473830 but the params don't show up on a webstie.
[15:06:16] kkiero: elaptics: the latter
[15:06:33] kkiero: stephenorr: I send post request via curl and I know it succeding
[15:06:50] kkiero: it doesn't success when trying to do this via js
[15:08:00] kkiero: elaptics: so how to do it?
[15:09:48] kkiero: stephenorr: ok, thanks ;)
[15:18:03] kkiero: stephenorr: I did it that why: http://pastie.org/5474078 and I still doesnt show params whereas curl post request show it
[15:24:45] kkiero: stephenorr: i'm posting this funciton in Inspector in Chrome
[15:24:59] kkiero: stephenorr: but it doesn's show params after reloading
[15:31:45] kkiero: stephenorr: link on priv
[15:37:16] kkiero: stephenorr: when i'm sending post request via curl the elsif is done, when doing it via js the else block is done
[15:37:33] kkiero: stephenorr: i guess that the problem is reloading after doing post
[15:37:50] kkiero: I did a callback function as in jquery doc, but it doesn't seem to work
[15:41:05] kkiero: stephenorr: well the jquery post function returns the body of the document and when I check it there are no params outputed
[15:43:35] kkiero: but why does it receive via curl correctly?
[15:44:39] kkiero: elaptics: i'll check it
[15:46:48] kkiero: elaptics: http://pastie.org/5474357
[15:47:45] kkiero: elaptics: and then it retrievs object from db with given params
[15:47:49] kkiero: elaptics: yes
[15:48:06] kkiero: done via Inspector in Chrome
[15:49:31] kkiero: elaptics: you want to see controller or something more?
[15:56:43] kkiero: elaptics: I sent them on priv
[15:59:48] kkiero: elaptics: this is the whole controller so far
[16:00:03] kkiero: and I have jquery library only
[16:05:07] kkiero: elaptics: what do you mean?
[16:05:53] kkiero: elaptics: i'm put the output parameters to variables to be seen in view
[16:10:18] kkiero: elaptics: i see the logged message
[16:10:25] kkiero: after doing js request
[16:12:31] kkiero: elaptics: ok i read the post jquery doc
[16:12:41] kkiero: and this function returns XMLHttpRequest object
[16:12:48] kkiero: not the data loaded from request
[16:14:39] kkiero: elaptics: the data is correct now: https://gist.github.com/4196007
[16:14:56] kkiero: but the point is how to reload the page with this data
[16:22:21] kkiero: stephenorr: ok, I store data from js in session in controller
[16:22:25] kkiero: and then reload page
[16:22:36] kkiero: and controller knows data from session :)
[16:24:48] kkiero: stephenorr: yes, thanks ;)
[16:30:52] kkiero: stephenorr, elaptics: yep, thanks ;)

2012-11-28

[13:17:22] kkiero: how to assign to a variable hash + element? I tried this: spotsForMap = @spots << currentLocationSpot
[13:17:35] kkiero: but it changes @spots permanently too
[13:28:49] kkiero: rvanlieshout: thanks

2012-11-27

[22:59:52] kkiero: does anyone know how to put two distinguishable markers on the same map with Google Maps for Rails gem?
[23:17:31] kkiero: does anyone know how to put two distinguishable markers on the same map with Google Maps for Rails gem?

2012-11-26

[00:52:50] kkiero: how to make a workround to get request ip other than 127.0.0.1 on localhost?
[00:53:51] kkiero: i'm testing geocoder gem and I want to get address based on my ip address
[00:54:02] kkiero: but on localhost I always get 127.0.0.1
[00:54:13] kkiero: and solution to middleman this?
[00:54:44] kkiero: yeah, but how on localhost?
[00:54:56] kkiero: I cannot deploy it to production server yet
[00:57:58] kkiero: ok I found this
[00:57:59] kkiero: http://stackoverflow.com/a/3888447
[00:58:04] kkiero: it's quicker :)
[14:23:36] kkiero: why I get this error: http://pastie.org/5437394 when doing: rake db:migrate --trace RAILS_ENV='production'
[14:26:05] kkiero: oh, that could be the issue, bummer
[14:27:28] kkiero: what if my server doesnt't support 1.9.x but only 1.8.7?
[14:28:40] kkiero: rushed: well it was generated automatically with rails command
[14:29:32] kkiero: shit, I need to generate project on localhost anew with 1.8.7?
[14:32:24] kkiero: rushed: ok, i read that there is a flag or I need to change hash keys manually
[14:32:45] kkiero: putting 1.9 on my server is impossible cause it's shared hosting
[14:33:20] kkiero: universa1: I know already, but thanks ;)
[14:36:25] kkiero: rushed: fortunatelly only 2 lines needed fixes ;)

2012-11-25

[18:55:11] kkiero: hi, good gem for auth? devise? anything else?

2012-11-13

[12:32:06] kkiero: is there any gem so I can assign coordinats and street name to the object and find them the nearest places via some google maps gem or something?

2012-10-24

[13:59:07] kkiero: how to make one-page ruby script for web? I mean simple dynamic site powered by ruby istead of php. ror is quite big for that
[13:59:30] kkiero: ok thanks