ruurd

Activity Graph

Page 1 of 15 | Next »

2019-01-02

[11:33:14] ruurd: has joined #RubyOnRails
[11:33:14] ruurd: has joined #ruby
[13:48:20] ruurd: Maybe have a look at the jbuilder gem - that can help you specify the way JSON has to be built from a result.
[16:35:02] ruurd: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-09

[19:23:11] ruurd: has joined #ruby
[19:23:32] ruurd: has joined #RubyOnRails
[19:51:12] ruurd: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-10-03

[19:47:43] ruurd: has joined #ruby
[19:47:59] ruurd: has joined #RubyOnRails
[21:46:39] ruurd: Quit: My MacBook has gone to sleep. ZZZzzz…

2018-01-05

[19:39:36] ruurd: has joined #RubyOnRails
[19:39:36] ruurd: has joined #ruby
[20:28:16] ruurd: Ping timeout: 248 seconds

2017-11-27

[11:39:05] ruurd: has joined #RubyOnRails
[11:39:05] ruurd: has joined #ruby
[11:39:50] ruurd: Client Quit

2017-06-11

[16:11:23] ruurd: has joined #ruby

2017-06-10

[13:15:30] ruurd: has joined #RubyOnRails
[13:15:30] ruurd: has joined #ruby
[17:16:02] ruurd: Ping timeout: 255 seconds
[20:45:40] ruurd: has joined #RubyOnRails
[20:45:40] ruurd: has joined #ruby
[21:29:12] ruurd: Ping timeout: 240 seconds

2017-06-05

[12:30:52] ruurd: has joined #RubyOnRails
[12:30:52] ruurd: has joined #ruby
[12:39:46] ruurd: Why would you want to do that?
[12:40:20] ruurd: ok but why are you using a model then?
[12:41:45] ruurd: OK but that still does not mean that that model is accessible to a controller that is invoked through /models/model/_search is it?
[12:42:01] ruurd: but I think it's either or.
[12:42:18] ruurd: using the standard URLs is actually a Good Thing (TM) of RoR.
[12:43:22] ruurd: If you want to leverage the activerecord code and add search to that using elasticsearch then yes per default you also use those URLs. Unless you changethat.
[12:43:47] ruurd: You might have made that clear beforehand :(
[12:44:05] ruurd: Why not use a separate controller to do search then?
[12:45:30] ruurd: And what gem are you using for elasticsearch? And did you have a look at it to see if you can tweak the search urls shoehow?
[12:45:52] ruurd: do you have code
[12:46:30] ruurd: But from the JSON response you can do the railsy stuff right?
[12:46:52] ruurd: Then most of the time you cannot take a 'clean' RoR approach can you?
[12:47:05] ruurd: 'xactly. dirty but it works.
[12:47:30] ruurd: what gem?
[12:49:00] ruurd: would have to look into it.
[12:49:12] ruurd: I think I used it once lemme think.
[12:49:45] ruurd: if you would I would not answer you would I :-)
[12:51:23] ruurd: I have been using the tire gem a while ago, couple of years...
[12:55:19] ruurd: From what I see is that you can represent Elasticsearch searches without having to schlepp in a lot of railsy stuff..
[12:55:45] ruurd: https://github.com/seejohnrun/tire
[12:55:48] ruurd: First part.
[12:56:01] ruurd: Second part is more about integrating it into RAILS
[12:57:30] ruurd: Most of the time if you get into this kind of predicament it's better to see if you can find a gem that enables you to do things on the Rubt level.
[12:57:34] ruurd: Instead of the RoR level.
[14:47:55] ruurd: You could use Dash if you wanted to. It's admitted to the iOS appstore again too...
[21:13:50] ruurd: Ping timeout: 240 seconds

2017-06-04

[16:00:03] ruurd: Remote host closed the connection

2017-05-29

[16:08:08] ruurd: has joined #ruby
[16:18:29] ruurd: has joined #RubyOnRails

2017-05-18

[16:15:03] ruurd: has joined #ruby

2017-05-09

[12:22:03] ruurd: has joined #ruby

2017-05-08

[12:07:14] ruurd: Remote host closed the connection

2017-05-07

[09:28:58] ruurd: has joined #RubyOnRails
[16:21:04] ruurd: pankaj ehm why not use spring?

2017-04-19

[04:16:03] ruurd: has joined #ruby

2017-04-01

[21:56:33] ruurd: has joined #ruby
[21:56:33] ruurd: has joined #RubyOnRails

2017-03-15

[02:02:35] ruurd: has joined #RubyOnRails
[02:02:36] ruurd: has joined #ruby

2016-07-29

[12:03:42] ruurd: Use '' unless you need to use "" (if you need to do string interpolation"
[12:04:33] ruurd: This implies that ' is faster than " (because it does not invoke the interpolation logic)
[12:04:49] ruurd: The best thing is to use rubocop
[14:49:11] ruurd: Takumo did you use single quote?

2016-06-21

[20:06:35] ruurd: yes and no plus you don't know what pieces go where and what is connected to what

2016-06-17

[23:22:19] ruurd: Wrong. You will use RVM

2016-06-05

[19:45:25] ruurd: upsell5 maybe you should open it and remove the dust that settles on the outgoing side of the fans

2016-06-03

[21:17:53] ruurd: then join it back together.
[21:18:10] ruurd: and faster than me

2016-05-31

[11:03:07] ruurd: what is cpu time?
[11:03:11] ruurd: what is clock time?
[11:03:29] ruurd: Time.now uses the seconds since era as maintained by your operating system.
[11:08:48] ruurd: No it uses the number of seconds since era as maintained by the OS.
[11:09:37] ruurd: Which is initialized first by the time of the RTC clock on your motherboard and then adjusted and maintained by NTP if you installed that (which I advise)
[11:09:59] ruurd: AFAIK it has millisecond accuraracy.

2016-05-23

[16:55:11] ruurd: Is ruby tapas worth subscribing to?
[17:01:50] ruurd: avdi I'll consider it.
[17:08:52] ruurd: no gregf_ avid <> havenwood
[17:10:59] ruurd: avdi and I am all of you

2016-05-22

[09:49:47] ruurd: apeiros also if you use it between // ???
[09:52:51] ruurd: jhass hmmm. intriguing!
[09:56:33] ruurd: jhass is mindlessly iterating over lines and determining word size any better?
[09:57:08] ruurd: Mind you it's just horsing around what I'm doing. Like hey this is interesting let's see what I can do?
[09:57:36] ruurd: Because it is the obvious solution to determining word size in a list of words...
[09:58:01] ruurd: Not in this case :-) as I was mindlessly ^&* around with them :-)
[09:59:09] ruurd: apeiros ha ha ha
[09:59:29] ruurd: and mindless :-)
[09:59:56] ruurd: I mean - everybody does it that way since Edsger Dijkstra right?
[10:01:42] ruurd: as in using more processors to crank through a problem isn't going to solve your IO bottlenect - au contraire :)
[10:04:06] ruurd: kareeoleez use hadoop?
[10:04:13] ruurd: or equivalent?

2016-05-21

[00:53:27] ruurd: has joined #ruby
[00:53:27] ruurd: has joined #RubyOnRails

2016-05-20

[17:50:45] ruurd: Ping timeout: 244 seconds
[18:46:09] ruurd: has joined #ruby
[18:46:09] ruurd: has joined #RubyOnRails
[19:56:50] ruurd: Ping timeout: 260 seconds

2016-04-15

[15:25:52] ruurd: *.net *.split
[15:38:54] ruurd: has joined #RubyOnRails
[15:38:54] ruurd: has joined #ruby

2016-04-14

[04:30:57] ruurd: Ping timeout: 276 seconds
[04:34:41] ruurd: has joined #RubyOnRails
[04:34:41] ruurd: has joined #ruby
[06:14:19] ruurd: has joined #RubyOnRails
[06:14:19] ruurd: has joined #ruby
[21:52:23] ruurd: Ping timeout: 250 seconds
[21:55:57] ruurd: has joined #RubyOnRails
[21:55:57] ruurd: has joined #ruby

2016-04-02

[09:17:25] ruurd: OK help me please how on earth can I get rid of the libv8 dependency. Every time I want to use it it breaks building the native extensions. What is that? A gaping quality problem?
[09:19:33] ruurd: can I replace rubyracer somehow?
[09:20:33] ruurd: to be able to use less
[09:20:48] ruurd: can one instruct the less gem to use rubyrhino?
[09:21:33] ruurd: Ah. Clear.
[09:23:02] ruurd: that's a pity because for as long as I have been doing rails it's a PITA
[09:23:29] ruurd: sass not using it then?
[09:29:54] ruurd: workmad3 I'm using OSX and when I have a look at brew it says v8 is version 4.9.something
[09:30:23] ruurd: While libv8 is 3.16.something
[09:31:24] ruurd: Shouldn't they be roughly the same to work together?
[09:32:34] ruurd: why then pull in such an old version?
[09:33:05] ruurd: Killed the lockfile.
[09:33:22] ruurd: (if it does not work force it if it breaks it needed replacement anyway)
[09:36:25] ruurd: drats this is one of the few experiments that is not in git.
[13:38:25] ruurd: workmad3 ISTM that clang 7.3.0 broke a bunch of shit

2016-04-01

[21:12:05] ruurd: baweaver hahahahahaha

2016-03-23

[20:23:58] ruurd: >> 9.is_a
[20:24:30] ruurd: >> 9.is_a?
[20:25:05] ruurd: hah. malle bot

2016-03-21

[18:43:44] ruurd: Yes funny, RAILS as an nginx extension... imagine that...
[18:44:22] ruurd: No that's different
[18:46:50] ruurd: 'imagine' is the operative word here :-) but still

2016-03-20

[18:00:46] ruurd: Quit: LayerBNC - https://LayerBNC.org/
[18:36:32] ruurd: has joined #ruby
[18:36:32] ruurd: has joined #RubyOnRails
[23:50:48] ruurd: has joined #RubyOnRails

2016-03-18

[21:26:18] ruurd: Ping timeout: 276 seconds
[21:30:21] ruurd: has joined #RubyOnRails
[21:30:21] ruurd: has joined #ruby

2016-02-28

[20:10:32] ruurd: has joined #RubyOnRails

2016-02-27

[21:37:29] ruurd: Ping timeout: 250 seconds
[22:24:02] ruurd: Excess Flood
[22:38:20] ruurd: has joined #RubyOnRails
[22:38:20] ruurd: has joined #ruby
[22:40:59] ruurd: Excess Flood
[22:53:55] ruurd: has joined #RubyOnRails
[22:53:55] ruurd: has joined #ruby

2016-02-25

[15:25:35] ruurd: Excess Flood
[15:28:18] ruurd: has joined #RubyOnRails
[15:28:18] ruurd: has joined #ruby
[20:49:57] ruurd: shevy are you sure it's not uuencoded /dev/urandom
[20:51:08] ruurd: so why then is it shevy not named whitenoise
[20:52:41] ruurd: don't know. use the source luke

2016-02-18

[00:04:09] ruurd: has joined #RubyOnRails
[00:04:09] ruurd: has joined #ruby
[00:05:08] ruurd: Client Quit
[08:28:22] ruurd: has joined #RubyOnRails
[08:28:22] ruurd: has joined #ruby
[08:51:16] ruurd: Read error: Connection reset by peer
[16:14:27] ruurd: has joined #RubyOnRails
[16:14:27] ruurd: has joined #ruby
[17:46:16] ruurd: has joined #RubyOnRails

2016-02-16

[20:06:12] ruurd: laurenonthehill what os?
[20:08:25] ruurd: If you want to excercize a server without bothering with a browser have a look at Paw
[20:09:18] ruurd: https://luckymarmot.com/paw
[20:25:24] ruurd: laurenonthehill that's not the way to do that. most of the time a field is switched on or off with JavaScript.
[20:26:12] ruurd: If you want to do that with simple_form you would have to refresh the whole form every time you want to add/remove a form field.
[20:27:43] ruurd: if you have to take such drastic measures that's most of the times a design problem
[20:30:57] ruurd: what are you trying to achieve?
[20:34:49] ruurd: tubbo but you have to do a roundtrip every time with that solution.
[20:36:08] ruurd: you do if you want to do that using simple_form
[20:38:43] ruurd: if your way isn't easy tubbo you're doing something wrong. KISS
[20:42:44] ruurd: laurenonthehill how do you record the relationship?
[20:44:39] ruurd: laurenonthehill are the records you are creating on the has_many side or the belongs_to side?
[20:47:20] ruurd: laurenonthehill how is it possible that you have records on the belongs_to side if you do not have a record on the has_many side?
[20:48:18] ruurd: laurenonthehill so the foreign_key is null in that case
[20:49:34] ruurd: laurenonthehill or is it some sort of look_up relationship?
[20:50:33] ruurd: In that case approach it from the belongs_to side. Show the record, then allow the user to search for a list of possibilities and let him select one
[20:51:04] ruurd: Basically create an extra form with one button per item that connects that item to the record you're editing.
[20:51:21] ruurd: And if the number of lookup items is low, you can use a drop down list.
[20:51:43] ruurd: how many lookup values are there?
[20:52:02] ruurd: Not good for a dropdown.
[20:52:40] ruurd: Yes. How large do you think the HTML page will be when you create a dropdown with 40K items in it
[20:53:52] ruurd: dsimon that could be a solution provided the user can determine from a single field which lookup value is the correct one
[20:58:55] ruurd: ok did you put a cap on the number of words? and are you telling the user that they should add search lemmas if the number of results are too higj?
[20:59:27] ruurd: I think you can do this with a bit of Ajax...
[21:00:39] ruurd: make sure the number of items is not too high - limit the number of results to 50 or so...
[21:02:37] ruurd: correct so if you need to limit the number of results make sure you notify the user.
[21:09:46] ruurd: put quotes around the ? for user?

2016-02-15

[23:47:36] ruurd: because you are referencing it as a relative URL?
[23:49:06] ruurd: besides: it's much better to use the functions provided by rails instead of hacking js directly into your erb templates.
[23:50:58] ruurd: Use javascript_include_tag and point to application.js which pulls in the rest of the JS stuff.
[23:51:13] ruurd: same for css stuff
[23:51:22] ruurd: use stylesheet_link_tag
[23:53:50] ruurd: then follow the asset pattern and refer to a similar thing as application.js but call it dashboard.js
[23:53:57] ruurd: same for css.
[23:54:26] ruurd: don't mess too much with it because you probably will also break the asset pipeline if you do.
[23:54:38] ruurd: basically you will make your life a lot harder
[23:56:11] ruurd: Well. git can save your ass...
[23:57:05] ruurd: have fun. breaking stuff isn't scary anymore if you git.

2016-02-04

[04:12:46] ruurd: Ping timeout: 260 seconds
[04:27:04] ruurd: has joined #RubyOnRails
[04:27:04] ruurd: has joined #ruby
[07:43:32] ruurd: has joined #RubyOnRails

2016-02-01

[00:09:27] ruurd: Ping timeout: 250 seconds
[00:21:07] ruurd: has joined #RubyOnRails
[00:21:07] ruurd: has joined #ruby
[07:50:23] ruurd: has joined #RubyOnRails
[07:50:53] ruurd: Is there a channel op here?
[07:52:15] ruurd: I'm using layerbnc as a bouncer and every time there is some network trouble I seem to be banned/quieted on this channel
[07:53:29] ruurd: baweaver that's weird - this is the only channel that does this.
[07:55:34] ruurd: to date my solution is leave this channel, regain my nick in chanserv then rejoin...
[08:19:02] ruurd: baweaver does not explain why this is the only channel that does exhibit this behaviour :( :(
[08:40:20] ruurd: baweaver go use spring for a while.

2016-01-31

[12:25:27] ruurd: *.net *.split
[12:28:20] ruurd: has joined #RubyOnRails
[12:28:24] ruurd: has joined #ruby

2016-01-24

[19:24:42] ruurd: asahi different user? different environment!
[19:25:13] ruurd: Ans why would you run a daemon in a cron job instead of starting it from init
[19:33:39] ruurd: So does that server actually know how to run Rails applications?

2016-01-03

[21:38:48] ruurd: on a roll?
[21:39:03] ruurd: on the phone?

2016-01-02

[11:24:04] ruurd: AFAIR it also supports upgrading rubies to newer versions and migrating any gemsets along with that.
[11:24:24] ruurd: And IARU if rbenv will do that for you also.
[11:25:25] ruurd: RalfJ well you can't have both. Being able to run multiple ruby versions is a real boon for developers
[11:26:00] ruurd: RalfJ and rvm does not require root
[11:26:45] ruurd: And anyway - you don't need to take my advice.
[11:49:18] ruurd: RalfJ I am OK with that. I don't think that is disrespectful. After all YOU know best what your problem is and what the preferred solution is. The best I can do is give you honest advice.
[15:26:14] ruurd: toretore I think he wants to do a bit of parallel computing in ruby. probably no-can-do due to GIL
[15:33:27] ruurd: jhass he's gone.
[16:46:52] ruurd: ACTION Did you try?