muzik

Activity Graph

Page 1 of 2 | Next »

2017-11-21

[00:51:34] muzik: has joined #ruby
[00:51:34] muzik: has joined #RubyOnRails
[00:57:37] muzik: Quit: Going offline, see ya! (www.adiirc.com)

2017-09-25

[22:14:25] muzik: has joined #ruby
[22:14:25] muzik: has joined #RubyOnRails
[22:49:53] muzik: Quit: Going offline, see ya! (www.adiirc.com)

2017-08-16

[04:56:08] muzik: javascript stop processing javascript on error
[04:56:16] muzik: its a double edged sword

2017-08-15

[13:03:11] muzik: has joined #RubyOnRails

2017-08-10

[02:43:58] muzik: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")

2017-08-09

[08:06:37] muzik: has joined #RubyOnRails

2017-08-06

[01:50:21] muzik: has joined #RubyOnRails
[12:36:52] muzik: Quit: Textual IRC Client: www.textualapp.com

2017-08-05

[01:42:14] muzik: has joined #RubyOnRails
[03:35:10] muzik: Ping timeout: 240 seconds
[05:54:56] muzik: has joined #RubyOnRails
[12:47:26] muzik: Quit: Textual IRC Client: www.textualapp.com

2017-08-04

[02:33:14] muzik: has joined #RubyOnRails
[05:06:34] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:13:44] muzik: has joined #RubyOnRails
[12:33:00] muzik: Quit: Textual IRC Client: www.textualapp.com
[12:38:38] muzik: has joined #RubyOnRails
[14:22:34] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:23:47] muzik: has joined #RubyOnRails
[15:47:55] muzik: Quit: Textual IRC Client: www.textualapp.com

2017-08-03

[01:55:06] muzik: has joined #RubyOnRails
[03:24:34] muzik: Quit: Textual IRC Client: www.textualapp.com
[03:47:02] muzik: has joined #RubyOnRails
[05:22:25] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[05:24:55] muzik: has joined #RubyOnRails
[09:09:43] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:24:04] muzik: has joined #RubyOnRails
[11:41:18] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:42:27] muzik: has joined #RubyOnRails
[12:11:01] muzik: Quit: Textual IRC Client: www.textualapp.com

2017-08-02

[08:07:44] muzik: has joined #RubyOnRails
[08:33:56] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[08:34:48] muzik: has joined #RubyOnRails
[11:25:14] muzik: Ping timeout: 246 seconds

2017-08-01

[08:10:39] muzik: has joined #RubyOnRails
[08:53:20] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:00:04] muzik: has joined #RubyOnRails
[09:04:31] muzik: Read error: Connection reset by peer
[10:04:44] muzik: has joined #RubyOnRails
[12:34:11] muzik: Quit: Textual IRC Client: www.textualapp.com

2017-07-31

[02:29:17] muzik: has joined #RubyOnRails
[02:29:18] muzik: has joined #ruby
[02:49:24] muzik: Why would you want to disable them?
[06:40:17] muzik: Quit: Going offline, see ya! (www.adiirc.com)
[11:32:00] muzik: has joined #RubyOnRails
[11:39:09] muzik: Quit: Textual IRC Client: www.textualapp.com
[11:39:30] muzik: has joined #RubyOnRails
[13:37:11] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:39:50] muzik: has joined #RubyOnRails
[13:51:25] muzik: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:53:06] muzik: has joined #RubyOnRails
[13:54:26] muzik: Client Quit

2017-07-30

[01:20:09] muzik: has joined #ruby
[01:20:09] muzik: has joined #RubyOnRails
[07:30:50] muzik: Ping timeout: 240 seconds

2017-07-29

[01:04:39] muzik: has joined #ruby
[01:04:39] muzik: has joined #RubyOnRails
[01:55:30] muzik: https://rubygems.org/search?utf8=%E2%9C%93&query=profanity
[02:22:48] muzik: Read error: Connection reset by peer

2017-07-28

[02:06:07] muzik: has joined #ruby
[02:06:07] muzik: has joined #RubyOnRails
[04:59:22] muzik: Read error: Connection reset by peer
[08:18:39] muzik: has joined #ruby
[08:18:39] muzik: has joined #RubyOnRails
[09:30:36] muzik: I believe thats possible
[09:30:48] muzik: You just have to read up
[09:31:43] muzik: it has been at least 6 years since i have messed with objects that deeply, but im 90% sure you can
[10:28:41] muzik: Please explain in more detail what you are after
[10:31:51] muzik: Sorry, it has been to long since i played with this stuff
[10:32:15] muzik: So you are looking to have instance methods only for specific objects
[10:32:28] muzik: note: "instance" method, not "class" method
[10:33:03] muzik: but you will want many of the objects to share these special new methods?
[10:34:41] muzik: Yeah, you have gone above my current understand. Sorry i cannot help. There are looks of good "programming ruby" books available that show these things
[14:15:32] muzik: Quit: Going offline, see ya! (www.adiirc.com)

2017-07-27

[01:26:07] muzik: has joined #ruby
[01:26:07] muzik: has joined #RubyOnRails
[03:55:46] muzik: What kind of project are you running?
[03:59:00] muzik: Can any of your code be further optimized?
[03:59:40] muzik: By using "puts 1", "puts 2" and using the time command in your shell, you can look for slow parts
[04:00:51] muzik: Wow. thats an interesting read on wikipedia
[04:01:01] muzik: Could you run it in a ram drive?
[05:44:44] muzik: Which keyboard?
[06:09:52] muzik: Yeellllloooooowww
[06:21:36] muzik: we would need to see the call, and the method receiving
[06:25:43] muzik: Let me find my sendgrid calls
[06:25:48] muzik: and ill show you my setup
[06:27:57] muzik: mail( :to => "to_address@gmail.com", :from => @user.email,:subject => "Hi #{@user.email}")
[06:28:36] muzik: Can you paste your whole mailer class somewhere and show?
[06:28:47] muzik: I bet its that call, not the call to mail
[06:28:55] muzik: I had the same issue is how i know this :)
[06:31:37] muzik: did you recently upgrade the rails gem?
[06:32:03] muzik: sorry mate, not sure then
[07:36:15] muzik: I think this is a good thing
[07:36:39] muzik: So you would be forced to write a blank controller/method?
[07:36:44] muzik: thats a good thing?
[07:37:46] muzik: ACTION is not sure why this even matters 
[07:38:07] muzik: if it doesnt work people complain, if it works, people complain. I am complainging about people complaining...
[07:39:15] muzik: is there anyone in here is like, insanely good at giving foot massages?
[07:50:47] muzik: Maybe your view doesnt need logic and its a static page
[08:10:57] muzik: Ping timeout: 240 seconds
[10:55:38] muzik: has joined #ruby
[10:58:34] muzik: has joined #RubyOnRails
[10:59:02] muzik: But Ruby is the greatest programming language, like, EVAR!
[11:00:09] muzik: He wants to work, but doesnt want to know how the work works. Thats works
[11:01:06] muzik: What is the problem? Where is a pastebin of the code?
[11:01:51] muzik: I just joined the channel
[11:34:08] muzik: Read error: Connection reset by peer
[11:35:31] muzik: has joined #ruby
[11:35:47] muzik: Client Quit
[11:36:24] muzik: has joined #ruby
[11:36:24] muzik: has joined #RubyOnRails
[11:38:08] muzik: Client Quit
[11:38:34] muzik: has joined #ruby
[11:38:34] muzik: has joined #RubyOnRails
[11:39:51] muzik: Read error: Connection reset by peer
[11:44:42] muzik: has joined #ruby
[11:45:08] muzik: Client Quit
[11:45:27] muzik: has joined #ruby
[11:46:06] muzik: has joined #RubyOnRails
[12:46:09] muzik: There are plenty
[13:37:05] muzik: Thats just some jquery event handlers
[13:37:28] muzik: Ill write up a quick example for you. One moment
[13:46:06] muzik: Here is the basic idea: https://codepen.io/anon/pen/VzLJPx?editors=1010
[13:46:23] muzik: When the first select is changed, the second select is emptied, and has new options appended to it
[14:09:27] muzik: Do you mean, when the user changes a select, pull down info from an ajax call, and load that data?
[14:10:15] muzik: Use my example above but with an ajax call
[14:10:44] muzik: You might want to have both selects unselectable will you wait for the call back
[14:10:59] muzik: Do you know how to do an ajax call in javascript?
[14:17:56] muzik: The new versino has a simple ajax example. you can see that you can have the function on success and failure: https://codepen.io/anon/pen/VzLJPx?editors=1010
[14:18:06] muzik: I will leave it up to you to glue it all together
[14:19:09] muzik: Dont paste here
[14:21:28] muzik: Yeap, so the new page has some selects. You just need to have the javascript at the bottom of the page, and use my example
[14:23:29] muzik: Yes, i have given you everything you need. To detect the change, the ajax call, and the callback
[14:24:54] muzik: I am currently doing paid work. If you dont know the basics of ajax calls, you need to go and learn.
[14:26:39] muzik: I am worth AUD$100 per hour
[14:57:53] muzik: Quit: Going offline, see ya! (www.adiirc.com)

2017-07-26

[06:18:51] muzik: has joined #ruby
[06:18:51] muzik: has joined #RubyOnRails
[07:13:13] muzik: Your drop down list could use java script, so when one is changed, the other dropdown can be checked
[07:14:12] muzik: So, you inject the possible combinations in your javascript, and look for change events on each dropdown. When either is changed, change the other drop down to only allow the valid combinations
[07:14:30] muzik: Same idea in the model, and raise an error
[08:32:07] muzik: cheeti, i had similar issues a while ago, and found the prawn gem to work well for everything i needed. i would recommend that
[08:32:28] muzik: its a wrapper around pdfkit in ruby and works very well
[08:40:05] muzik: https://github.com/prawnpdf/prawn
[08:53:43] muzik: It certainly is
[10:38:45] muzik: Quit: Going offline, see ya! (www.adiirc.com)

2017-07-25

[01:33:43] muzik: has joined #ruby
[01:33:43] muzik: has joined #RubyOnRails
[02:13:17] muzik: When you detect the last one for the day, destroy the prior records for that day
[02:14:00] muzik: so in the controller where you have the price check, check if it is the fourth for that date
[02:14:14] muzik: ACTION is happy to help :) 
[02:14:45] muzik: You can write a quick script to clear out the old data
[02:15:06] muzik: Of course, all of this depends on wether or not you need those other 3 records
[02:15:53] muzik: The same data in 2 tables is not 3rd normal form
[02:16:43] muzik: You should only need 1 price record for each product. So every price check should destroy prior records for that product
[02:16:58] muzik: You should really only create a new record and destroy the old if the price is different
[02:21:53] muzik: So, you want daily history, but checks every 4 hours
[02:22:56] muzik: what if all 4 price checks are different, which would be the daily price?
[02:25:20] muzik: So, do you only need the 4 price checks on that day, than after that day they are useless?
[07:52:33] muzik: has joined #ruby
[07:52:33] muzik: has joined #RubyOnRails
[08:11:09] muzik: Dont worry about memory, just load it
[08:48:06] muzik: Well, first you should compare the programming languages
[08:48:11] muzik: for example, python vs ruby
[08:48:49] muzik: Most rails applications follow the same rules and structure
[08:48:54] muzik: It does a lot of work for you
[08:49:01] muzik: its written in ruby, the greatest programming language
[08:49:09] muzik: testing is built in
[08:49:12] muzik: very easy to deploy
[08:49:27] muzik: once you know the basics, you can get a lot done very quickly
[08:49:32] muzik: multiplatform development
[08:49:39] muzik: lots of well thought out gems
[08:49:41] muzik: easy debugging
[08:49:45] muzik: The list goes on
[08:50:00] muzik: I changed from django to rails, and have never looked back
[08:52:13] muzik: My pleasure :)
[09:05:56] muzik: it should be. You should just need the controller on your server accept the call, and send something back
[09:07:19] muzik: it should be. You should just need the controller on your server accept the call, and send something back
[09:09:26] muzik: Check the link. Is the link using your host as its root, or the host of the other site?
[09:11:45] muzik: ACTION is happy to help :) 
[09:16:36] muzik: How did you fix it?
[09:19:50] muzik: I dont think that is the best solution
[09:20:00] muzik: _url as opposed to _path should work for the ruby url
[09:20:32] muzik: You will need to change the link anywhere else in your code if it is used anywhere else
[09:20:55] muzik: hhmmm. Maybe define a variable in the controller of the real site and use that
[09:21:08] muzik: thats still better than hardcoding in the view
[09:22:16] muzik: yeppers. if it is hardcoded in the controller, you will only have to change it in one place
[09:23:28] muzik: excellent :)
[09:23:30] muzik: Well done
[09:24:39] muzik: All good. We are having a laugh as it is very funny
[09:25:47] muzik: the google people hang here as we know where to find the other good people :P
[09:26:07] muzik: When i changed from vi to emacs about a year ago, i had the same issue on slack
[09:26:46] muzik: i was curious on why emacs claims their editor is just soooo good. So i went on youtube and found the path
[09:26:53] muzik: we have much to talk about :)
[09:27:27] muzik: please hop onto the #emacs channel
[09:28:03] muzik: https://www.youtube.com/watch?v=JWD1Fpdd4Pc
[09:28:46] muzik: vi is written mostly by one person, and is a compiled program
[09:29:25] muzik: Emacs is a lisp script. ANYTHING can be changed instantly. It has its own package manager, web browser, irc client, text renderer, and heaps HEAPS more
[09:29:45] muzik: The whole thing is a live lisp script, which is absolutely awesome
[09:29:57] muzik: 1 key combination gives you a searchable list of ALL functions
[09:30:14] muzik: if you open a file your emacs doesnt know about, it will find the support in the package manager and ask if you want to install
[09:30:28] muzik: Each element in the editor can have its OWN font size, style, and size
[09:30:37] muzik: multiple cursors
[09:31:00] muzik: a tree history to if you make a change, then undo, then chage, then undo, ALL changes will be available
[09:31:05] muzik: there is just too much to show
[09:32:38] muzik: This series shows you some cool stuff too: https://www.youtube.com/watch?v=5axK-VUKJnk
[09:32:49] muzik: Which plugins? Emacs has better plugins for everything
[09:33:39] muzik: i can jump to any character in the editor with 3 key combinations
[09:34:04] muzik: also, search for matches, and the resulting list get copied to a buffer where i can make changes to those lines, and save them back into the original places they came from
[09:34:08] muzik: never tried
[09:34:16] muzik: ill try now. one moment
[09:35:27] muzik: Emacs said, the file you are trying to open is 2GB. Are you sure you want to open it? i said yes
[09:35:50] muzik: Yep, opened it no probs
[09:35:56] muzik: its all binary of course as it is a movie
[09:36:34] muzik: sort of, the cursor keeps up, but im running emacs in windows, so a tiny amount of lag is expected
[09:37:35] muzik: have a quick peek through some of those emacs rocks videos. Youll see that vi isnt even close
[09:37:40] muzik: vi was about 15 years
[09:37:46] muzik: emacs has been 1
[09:38:05] muzik: it took a good 2 weeks until i was "comfortable"
[09:38:54] muzik: Emacs has an evil mode which is vim in emacs. That may be nice if you really love vi
[09:38:59] muzik: no. i use arrows
[09:39:04] muzik: you can turn that off easily
[09:39:10] muzik: Do you use those in vi, or arrows?
[09:40:05] muzik: Thats fine. You will be comfortable in emacs
[09:40:19] muzik: I am happy to show you the ropes over skype
[09:40:27] muzik: I love spreading emacs as it rocks!
[10:11:16] muzik: What is the problem?
[10:14:30] muzik: Which version of rails?
[10:16:49] muzik: Shouldnt make a difference if it is in rails or not
[10:18:21] muzik: I sense enlightenment
[10:43:50] muzik: Quit: Going offline, see ya! (www.adiirc.com)

2017-07-24

[09:15:56] muzik: or the field is not in the view?
[11:09:36] muzik: Quit: Going offline, see ya! (www.adiirc.com)
[11:26:59] muzik: has joined #ruby
[11:26:59] muzik: has joined #RubyOnRails
[11:30:10] muzik: Remote host closed the connection
[11:31:44] muzik: has joined #ruby
[11:31:44] muzik: has joined #RubyOnRails
[13:42:19] muzik: Quit: Going offline, see ya! (www.adiirc.com)