MrCrackPot

Activity Graph

Page 1 of 2 | Next »

2019-08-19

[08:08:58] MrCrackPot: Quit: Something went wrong again oh the joys
[08:14:17] MrCrackPot: has joined #ruby
[08:14:17] MrCrackPot: has joined #RubyOnRails
[08:15:17] MrCrackPot: Max SendQ exceeded
[08:15:42] MrCrackPot: has joined #RubyOnRails
[08:15:42] MrCrackPot: has joined #ruby
[08:16:48] MrCrackPot: Max SendQ exceeded
[08:17:33] MrCrackPot: has joined #RubyOnRails
[08:17:33] MrCrackPot: has joined #ruby

2019-08-18

[03:55:51] MrCrackPot: has joined #ruby
[03:55:51] MrCrackPot: has joined #RubyOnRails

2019-08-15

[05:48:00] MrCrackPot: Ping timeout: 268 seconds
[05:48:32] MrCrackPot: has joined #RubyOnRails
[05:48:32] MrCrackPot: has joined #ruby
[13:30:38] MrCrackPot: Quit: Something went wrong again oh the joys
[13:47:00] MrCrackPot: has joined #ruby
[13:47:00] MrCrackPot: has joined #RubyOnRails
[19:48:51] MrCrackPot: Ping timeout: 258 seconds
[20:07:46] MrCrackPot: has joined #RubyOnRails
[20:07:46] MrCrackPot: has joined #ruby
[20:12:08] MrCrackPot: Ping timeout: 245 seconds

2019-08-14

[09:27:55] MrCrackPot: Quit: Something went wrong again oh the joys
[09:34:04] MrCrackPot: has joined #RubyOnRails
[09:34:05] MrCrackPot: has joined #ruby

2019-08-12

[04:42:18] MrCrackPot: Remote host closed the connection
[04:42:37] MrCrackPot: has joined #RubyOnRails
[04:42:37] MrCrackPot: has joined #ruby

2019-08-11

[03:12:48] MrCrackPot: has joined #RubyOnRails
[03:12:48] MrCrackPot: has joined #ruby
[08:24:54] MrCrackPot: Ping timeout: 272 seconds
[08:26:36] MrCrackPot: has joined #RubyOnRails
[08:26:36] MrCrackPot: has joined #ruby

2019-08-10

[17:13:10] MrCrackPot: has joined #RubyOnRails
[17:13:15] MrCrackPot: has joined #ruby
[20:57:23] MrCrackPot: Ping timeout: 268 seconds

2019-08-08

[17:48:16] MrCrackPot: has joined #RubyOnRails
[17:50:35] MrCrackPot: Remote host closed the connection

2019-08-07

[04:10:55] MrCrackPot: Ping timeout: 250 seconds
[04:41:27] MrCrackPot: has joined #RubyOnRails
[05:21:43] MrCrackPot: Ping timeout: 246 seconds

2019-08-05

[19:46:07] MrCrackPot: Ping timeout: 250 seconds
[22:17:10] MrCrackPot: has joined #RubyOnRails

2019-08-02

[11:08:05] MrCrackPot: Remote host closed the connection
[13:14:54] MrCrackPot: has joined #RubyOnRails

2019-07-30

[04:08:19] MrCrackPot: has joined #RubyOnRails

2019-07-29

[19:04:33] MrCrackPot: Quit: Leaving
[19:05:26] MrCrackPot: has joined #RubyOnRails
[21:54:43] MrCrackPot: Remote host closed the connection

2019-07-27

[05:05:59] MrCrackPot: has joined #RubyOnRails
[10:56:30] MrCrackPot: Remote host closed the connection
[10:58:42] MrCrackPot: has joined #RubyOnRails
[11:16:34] MrCrackPot: Remote host closed the connection
[11:18:41] MrCrackPot: has joined #RubyOnRails
[12:39:59] MrCrackPot: Remote host closed the connection
[13:32:39] MrCrackPot: has joined #RubyOnRails
[14:50:48] MrCrackPot: Read error: Connection reset by peer
[19:31:40] MrCrackPot: has joined #RubyOnRails

2019-07-26

[03:48:45] MrCrackPot: has joined #RubyOnRails
[03:59:03] MrCrackPot: Quit: Leaving
[04:02:20] MrCrackPot: has joined #RubyOnRails
[04:51:37] MrCrackPot: Ping timeout: 250 seconds
[05:00:42] MrCrackPot: has joined #RubyOnRails
[07:49:26] MrCrackPot: Read error: Connection reset by peer
[07:52:47] MrCrackPot: has joined #RubyOnRails
[08:47:49] MrCrackPot: Remote host closed the connection
[08:51:22] MrCrackPot: has joined #RubyOnRails
[10:15:35] MrCrackPot: Remote host closed the connection
[10:17:53] MrCrackPot: has joined #RubyOnRails
[10:47:08] MrCrackPot: Remote host closed the connection
[10:47:51] MrCrackPot: has joined #RubyOnRails
[11:12:17] MrCrackPot: Remote host closed the connection
[11:13:08] MrCrackPot: has joined #RubyOnRails
[11:13:45] MrCrackPot: Remote host closed the connection
[11:14:22] MrCrackPot: has joined #RubyOnRails
[11:14:58] MrCrackPot: Remote host closed the connection
[11:15:39] MrCrackPot: has joined #RubyOnRails
[11:15:54] MrCrackPot: Remote host closed the connection
[12:29:32] MrCrackPot: has joined #RubyOnRails
[13:33:39] MrCrackPot: pLaTo0n, its not dead its just stagnent i think
[13:33:54] MrCrackPot: there are a few sites still built with rails
[13:34:02] MrCrackPot: and nearly all of my projects are built with rails
[13:34:49] MrCrackPot: i hate that php is still top
[13:34:56] MrCrackPot: that shit should have died in the 90s
[13:36:13] MrCrackPot: ive not used express other than to set up something for ruby on rails hahaha
[13:36:31] MrCrackPot: i think that was when i made html5 games using phaser2 and ror
[13:37:08] MrCrackPot: i wouldnt say that
[13:37:21] MrCrackPot: its very project specific
[13:37:28] MrCrackPot: rails is defaults defaults defaults
[13:37:44] MrCrackPot: this approach isnt really good for say game building
[13:39:22] MrCrackPot: i could pass you a few rails projects where the developer was off away with the faries
[13:42:08] MrCrackPot: start from scratch if the boss is paying
[13:42:33] MrCrackPot: ive walked away from projects because they refuse to redo and or refuse to pay
[14:14:09] MrCrackPot: Remote host closed the connection
[19:10:47] MrCrackPot: has joined #RubyOnRails
[19:25:38] MrCrackPot: Quit: Leaving

2019-07-25

[04:05:39] MrCrackPot: has joined #RubyOnRails
[05:38:27] MrCrackPot: Remote host closed the connection
[07:09:22] MrCrackPot: has joined #RubyOnRails
[08:10:27] MrCrackPot: Remote host closed the connection
[18:20:17] MrCrackPot: has joined #RubyOnRails
[18:33:26] MrCrackPot: Remote host closed the connection

2019-07-23

[03:19:38] MrCrackPot: Quit: Somethings gone wrong.

2019-07-22

[09:00:34] MrCrackPot: ZAJDAN: puma should start automatically when you run rails s
[09:00:53] MrCrackPot: in production it runs by using a procfile in the case of heroku

2019-07-21

[13:18:47] MrCrackPot: has joined #RubyOnRails
[13:21:17] MrCrackPot: Quit: Somethings gone wrong.
[14:02:25] MrCrackPot: Quit: Somethings gone wrong.

2019-07-04

[18:14:59] MrCrackPot: has joined #RubyOnRails
[19:00:13] MrCrackPot: Remote host closed the connection

2019-07-01

[11:32:34] MrCrackPot: Ping timeout: 246 seconds

2019-06-30

[11:26:23] MrCrackPot: anyone have any recomendations for me. I have a column in a table called expires which is datetime. if the expires column value is less than todays date then run a method and update the column.
[11:27:25] MrCrackPot: or should i make a method to do say on before_action :check_expired, only: :index
[11:27:43] MrCrackPot: if expired then run my method and update the db.
[11:28:16] MrCrackPot: my thought with a cronjob is once i have a lot of users searching through that db will take a lot of resources.
[11:28:38] MrCrackPot: but checking before every request is also a little draining
[11:29:21] MrCrackPot: i wonder if i could do something like if the user logged in today check once
[11:30:49] MrCrackPot: yer i think ill do it on log in
[14:00:12] MrCrackPot: IGnorAND, when ever a user logs in i record: // ip // long // lat // logged_in_time // and a few others.
[14:00:27] MrCrackPot: i figured id use that first if that is older than 7 days then im good to go
[14:00:38] MrCrackPot: that way im not running it every log in
[14:00:58] MrCrackPot: only if the expires is less than the logged_in_time
[14:02:54] MrCrackPot: IGnorAND, its better to have a good outline of your complete project before you even begin a single line of code. then you create a rough idea breaking each section into elements. I need to think about performance at every step otherwise when it gets towards the end of the project trying to improve the entire project could end up in a re-write.

2019-06-28

[05:38:05] MrCrackPot: jarr0dsz i think your better off trying to reimplement it yourself
[05:39:06] MrCrackPot: you could do like after_action :decrypt, only: :index
[05:39:45] MrCrackPot: then your decrypt would be a private method using a lib you create with all the openssl encryption decryption
[05:40:11] MrCrackPot: for the key you have a couple of options you can add one to your credentials and use that to encrypt decrypt all data
[05:40:42] MrCrackPot: or you can create a key thats used to encrypt and decrypt
[05:41:14] MrCrackPot: you could then pass the object decrypting its values.
[13:23:15] MrCrackPot: If i remember rightly ZAJDAN you need to use @variable_name to use them in views
[13:24:37] MrCrackPot: With aws s3 for user avatars is it really a good idea to use a presigned url to view the image???
[13:24:54] MrCrackPot: or should i just make avatrs public but make any other sensitive files private
[14:27:33] MrCrackPot: alxgsv, thanks i was running some performance tests and trying to get those images with presigned urls in a rails api only app is a nightmare
[14:27:59] MrCrackPot: alxgsv, cache on rails side or s3 side
[15:28:58] MrCrackPot: alxgsv, thats one thing ive not liked about amazon. Every presigned_url contains the bucket name and file name so its easy to grab that. set up wireshark make 3 requests and you've got not only the bucket name but also the logic on how you store files
[17:45:17] MrCrackPot: haxx0r, as long as you use t.decimal you shouldnt have any problems.
[17:46:41] MrCrackPot: but your scale is rather high for money
[17:47:35] MrCrackPot: id change the scale to 2 unless you really need a number like 1234567890.123456

2019-06-27

[16:01:10] MrCrackPot: jarr0dsz, if your looking for more encrption options like generating keys etc you can create your own module and use require openssl
[16:05:45] MrCrackPot: https://gist.github.com/wteuber/5318013
[16:05:52] MrCrackPot: take a look at this.
[16:06:10] MrCrackPot: this still works for basic enrcryption
[16:07:46] MrCrackPot: when you say supports aws what do you mean
[16:34:05] MrCrackPot: So i had an apifanny in the hospital just now. I've been trying to use active storage with json api with absalute zero success. Today i have direct uploads to my amazon storage bloody finally
[16:37:14] MrCrackPot: doesnt aws run using openssl ??
[16:37:18] MrCrackPot: it took a week
[16:37:46] MrCrackPot: in the end i had to remove active storage all together and recreate my own. suited to the clients request
[16:37:59] MrCrackPot: took about 30 mins

2019-06-25

[15:21:20] MrCrackPot: this is why we can skip before_actions like authenticate
[15:21:33] MrCrackPot: or is_admin blah blah blag
[15:21:55] MrCrackPot: user_signed_in and current_user are two completely different methods
[15:22:13] MrCrackPot: current_user stores the authenticated user in the stack / heap i forget which one
[15:22:28] MrCrackPot: user_signed_in just checks to see if the user is legit
[15:25:23] MrCrackPot: in a session coookie you dont want a clear text password. You set a session id and a hashed value. the call to the db checks to see if the session id is legit and that the cookie isnt expired or banned old etc etc etc. if its good it then it looks at the user_id that is stored in the session db. Not cookie. then search for that user cross check the hashed value matches and approves
[15:25:33] MrCrackPot: without this you can not authenticate a user
[15:26:05] MrCrackPot: back when i was a kid every single page you clicked that needed authentication you have to login again
[15:26:09] MrCrackPot: this is that
[15:26:31] MrCrackPot: this method also helps prevent session hijacking
[15:26:44] MrCrackPot: depending on your config
[15:27:31] MrCrackPot: if you dont want to call the db dont use current_user or tell the controller not to authenticate for those methods but they will be accessable to any user then regardless logged in or not
[15:27:46] MrCrackPot: understand so far ?? ZAJDAN
[15:28:57] MrCrackPot: as for your question on alt. machines cant read pictures but what they do is read text. It also bumps you up for the visually challenged as they are able to view your site images included.
[15:30:30] MrCrackPot: I wouldnt worry about too many calls. look to save resources from your main appllication rather than the login/authentication side
[15:32:16] MrCrackPot: a db call doesnt cost that much. Ive got a client with an api hosted on heroku they have roughly 200,000 users on a monday and thursday they have the most traffic the total cost of there api per month is $250
[15:32:32] MrCrackPot: this is covered with just ads alone so why worry.
[15:33:57] MrCrackPot: you follow though right
[15:34:07] MrCrackPot: if im wrong please anyone better can add to it
[15:34:14] MrCrackPot: i tried yesterday dude couldnt get it
[15:59:19] MrCrackPot: duleja its not about being great its about authorizing a user
[15:59:28] MrCrackPot: you cant authorize a user without hitting a db
[15:59:38] MrCrackPot: i really really dont get why you cant understand this
[16:00:21] MrCrackPot: your user is stored in the db to authenticate you need to query the db its as simple as that
[16:00:38] MrCrackPot: and to protect from hackers every link that needs authorization need to hit the db
[16:52:43] MrCrackPot: Inside, give up ive explained it so many times its unreal
[16:53:18] MrCrackPot: yes that is how we feel
[16:53:39] MrCrackPot: its a very simple concept
[16:53:46] MrCrackPot: all data is stored in a db
[16:53:56] MrCrackPot: when you make changes to a user you need to hit the db
[16:54:08] MrCrackPot: when you dont want a user to access a page you need to hit the db
[16:54:43] MrCrackPot: you have asked why call the db
[16:55:10] MrCrackPot: then why do you not have a model inside a session Inside showed you a link i showed you a link
[16:55:15] MrCrackPot: im sure a few others have
[16:55:39] MrCrackPot: ive answered it
[16:55:42] MrCrackPot: several times
[16:55:50] MrCrackPot: you asked why call the db
[16:56:43] MrCrackPot: sessions and user_id are a buffer. you check the cookie first then you check the user
[16:56:50] MrCrackPot: session_id sorry
[16:57:45] MrCrackPot: https://medium.com/rubyinside/powering-your-ruby-rails-development-with-pry-3d5dbd2a8b80
[16:58:20] MrCrackPot: which i explained to you
[17:00:04] MrCrackPot: becuase you want a variable session id not a non variable user id
[17:00:08] MrCrackPot: user_id is constant
[17:00:11] MrCrackPot: it doesnt not change
[17:00:16] MrCrackPot: session_id does
[17:00:24] MrCrackPot: if i hack your sessions i can reset them
[17:00:38] MrCrackPot: if i hack your sessions and they use the user_id you cant reset a user id
[17:01:12] MrCrackPot: user_id is not variable meaning its static meaning it never changes
[17:01:33] MrCrackPot: session_id is not static it is a random hex generated with a user_id
[17:01:53] MrCrackPot: the seesion_id unlike the user_id is unique every single time
[17:02:26] MrCrackPot: what languages do you speak
[17:02:30] MrCrackPot: clearly not english
[17:02:39] MrCrackPot: why inside already understands
[17:02:47] MrCrackPot: its a very simple thing
[17:02:51] MrCrackPot: like basic 101
[17:02:58] MrCrackPot: which you just cant grasp
[17:03:54] MrCrackPot: I think most people are reading you replys and probably wondering why im even bothering to try
[17:04:14] MrCrackPot: normally when you get things wrong thats when everyone jumps in
[17:04:38] MrCrackPot: dont forget sessions are limited in size
[17:06:59] MrCrackPot: i dont even think you know what you want to ask duleja
[17:07:05] MrCrackPot: please go read those books i sent you
[17:07:13] MrCrackPot: get a good grasp of authentication
[17:07:40] MrCrackPot: but thats why its not fucking sage
[17:07:56] MrCrackPot: cant deal with that amount of stupidity
[17:08:11] MrCrackPot: if he wants me someone can forward his messages
[17:15:55] MrCrackPot: ZAJDAN sorry i missed your info on prefix erm why not try to use namespace instead of scope
[17:16:01] MrCrackPot: it would be set inside your routes
[17:16:59] MrCrackPot: that way you can have a namespace called monkeys and any routes inside monkeys would be mySite.com/monkeys/endpoint
[17:35:23] MrCrackPot: anyone know if its possible to use DirectUpload from active storage javascript lib without DOM elements
[17:50:05] MrCrackPot: duleja redis is still a db your still calling a db
[17:50:33] MrCrackPot: number 2 you need to check if a user is there to access the page
[17:50:42] MrCrackPot: otherwise anyone can check
[17:50:47] MrCrackPot: its very very simple
[17:51:36] MrCrackPot: at least 3 people have tried to help you
[17:51:52] MrCrackPot: and all you have ignored
[18:02:54] MrCrackPot: You should never send user_id. That would be a huge security hole in your app, as users will be able to change it to hack into other users account.
[18:03:22] MrCrackPot: you should use a sessioon id
[18:10:16] MrCrackPot: also using redis you should be careful as its memory based this uses a lot more than a simple call to the db
[18:10:44] MrCrackPot: 20 users all at once stored in memory thats a lot rather than just grab and search the db
[18:53:28] MrCrackPot: i htink this is whats hes trying to do https://stackoverflow.com/questions/26723090/storing-data-in-session-cookies