MrCrackPotBuilde

Activity Graph

Page 1 of 9 | Next »

2019-08-08

[17:48:46] MrCrackPotBuilde: has joined #RubyOnRails
[17:49:39] MrCrackPotBuilde: Max SendQ exceeded
[17:50:25] MrCrackPotBuilde: has joined #RubyOnRails
[17:50:48] MrCrackPotBuilde: Remote host closed the connection

2019-07-21

[13:21:45] MrCrackPotBuilde: has joined #RubyOnRails
[14:02:54] MrCrackPotBuilde: has joined #RubyOnRails
[14:08:51] MrCrackPotBuilde: Quit: Somethings gone wrong.
[15:09:51] MrCrackPotBuilde: has joined #RubyOnRails

2019-07-19

[12:10:32] MrCrackPotBuilde: has joined #RubyOnRails

2019-07-15

[07:16:44] MrCrackPotBuilde: has joined #RubyOnRails
[08:01:14] MrCrackPotBuilde: Remote host closed the connection
[08:03:55] MrCrackPotBuilde: has joined #RubyOnRails
[08:37:17] MrCrackPotBuilde: has joined #RubyOnRails

2019-07-14

[06:16:46] MrCrackPotBuilde: barbarap create a service and call that from your methods in either your model or controller depending on the logic

2019-07-13

[07:27:23] MrCrackPotBuilde: Remote host closed the connection
[07:41:03] MrCrackPotBuilde: has joined #RubyOnRails

2019-07-09

[07:45:01] MrCrackPotBuilde: Remote host closed the connection
[07:58:47] MrCrackPotBuilde: has joined #RubyOnRails

2019-07-07

[06:18:25] MrCrackPotBuilde: has joined #RubyOnRails

2019-07-04

[18:17:04] MrCrackPotBuilde: Ping timeout: 268 seconds
[19:00:15] MrCrackPotBuilde: has joined #RubyOnRails
[20:45:01] MrCrackPotBuilde: Ping timeout: 252 seconds
[22:48:34] MrCrackPotBuilde: has joined #RubyOnRails

2019-07-03

[18:24:40] MrCrackPotBuilde: has joined #RubyOnRails

2019-06-25

[07:23:42] MrCrackPotBuilde: Remote host closed the connection
[07:24:04] MrCrackPotBuilde: has joined #RubyOnRails
[14:06:37] MrCrackPotBuilde: Ping timeout: 252 seconds

2019-06-24

[03:51:03] MrCrackPotBuilde: hey IGnorAND what problem are you having with self signed certs as i use them everyday and with puma and no problems at all
[03:52:51] MrCrackPotBuilde: sevenseacat, same firefox was a ball ache
[03:53:20] MrCrackPotBuilde: i used to think it was puma doing it all but it seems firefox by default now wont allow self signed without changing settings
[03:53:25] MrCrackPotBuilde: chrome i dont use
[03:53:29] MrCrackPotBuilde: opera was the same
[03:54:50] MrCrackPotBuilde: tbf for development ive been using the same signed cert for nearly 2 years hahaha
[04:00:58] MrCrackPotBuilde: ZAJDAN you dont need any extra js environment unless you are using more advanced shiz.
[04:01:46] MrCrackPotBuilde: the basic rails setup for javascript is enough. When you need things like ES6 using modules and imports classes etc then you want to install wepack babel nodejs etc
[04:02:01] MrCrackPotBuilde: for basic website usage you shouldnt need to add anything to rails.
[04:03:36] MrCrackPotBuilde: for basic website usage you shouldnt need to add anything to rails.
[04:03:48] MrCrackPotBuilde: lupine nearly all js is client side not server side anyway. Take a look at your index.js when you load a webpage. its how your able to get the computer to communicate with the server correctly
[04:04:32] MrCrackPotBuilde: otherwise your js DOM elements would never be found because DOM elements dont exist on the server but on your browsers html page
[07:24:12] MrCrackPotBuilde: Remote host closed the connection
[07:24:35] MrCrackPotBuilde: has joined #RubyOnRails
[08:50:27] MrCrackPotBuilde: but if you dont allow most sites nowadays wont work. Without js functionality in a broswer you can't use active storage direct upload
[08:50:56] MrCrackPotBuilde: infact there is a lot that wouldnt work. but at least i can choose what does and doesnt
[09:19:45] MrCrackPotBuilde: but then i cant play crash bandicoot
[09:52:21] MrCrackPotBuilde: IGnorAND, Thats for when your on a staging env before you push to prod. if you have group with dev and test together it should install those too
[09:52:59] MrCrackPotBuilde: IGnorAND do you get any errors from the cert are you able to goto HTTPS
[10:23:37] MrCrackPotBuilde: where is your key
[10:23:46] MrCrackPotBuilde: 1 sec ill give you my puma conf
[10:26:11] MrCrackPotBuilde: https://pastebin.com/raw/pUXxFGk1
[10:26:38] MrCrackPotBuilde: bind 'ssl://127.0.0.1:3000?key=config/certs/localhost.key&cert=config/certs/localhost.crt'
[10:26:43] MrCrackPotBuilde: thats the main bit i think you need
[10:27:17] MrCrackPotBuilde: when you run rails s it should say its listening for ssl on port 3000
[10:27:38] MrCrackPotBuilde: when you run rails s whats your console output
[10:27:46] MrCrackPotBuilde: the inital up to ctrl c to stop
[10:28:00] MrCrackPotBuilde: does it mention that its listening for ssl
[10:28:13] MrCrackPotBuilde: if it doesnt mention ssl at all your keys arent configured properly
[10:29:05] MrCrackPotBuilde: when you open the page as mentioned earlier you need to change your settings in either chrome or firefox for self signed certs if its signed by another authority you might want to check if its still ok
[10:29:38] MrCrackPotBuilde: you have a problem with your keys
[10:31:08] MrCrackPotBuilde: could be this issue https://github.com/puma/puma/issues/1670
[10:31:24] MrCrackPotBuilde: if your saying it works in ff but not chrome
[10:32:15] MrCrackPotBuilde: whats your puma version
[10:32:25] MrCrackPotBuilde: because its an old issue thats already been fixed
[10:32:37] MrCrackPotBuilde: the issue page also has the solution
[10:33:41] MrCrackPotBuilde: seems the solution worked but recently was broken again
[10:34:43] MrCrackPotBuilde: https://leehblue.com/add-self-signed-ssl-google-chrome-ubuntu-16-04/
[10:34:47] MrCrackPotBuilde: have you tried this
[10:35:08] MrCrackPotBuilde: it was a long time ago i used chrome but i remember one browser i needed to ad the cert manually
[10:35:17] MrCrackPotBuilde: but im leaning towards that being opera not chrome
[10:35:20] MrCrackPotBuilde: as i hate chrome
[10:35:37] MrCrackPotBuilde: no but your testing locally right
[10:35:57] MrCrackPotBuilde: so is the error local or production
[10:36:34] MrCrackPotBuilde: yer no point in adding it then until you fix production
[10:37:27] MrCrackPotBuilde: is ssl working in production yay or nay????
[10:38:58] MrCrackPotBuilde: as in on your live site are you able to use HTTPS://www.mySite.huh/
[10:39:11] MrCrackPotBuilde: without any errors and have a secure connection
[10:39:20] MrCrackPotBuilde: if you are able to do this in chrome ff etc
[10:39:32] MrCrackPotBuilde: then the keys work but fail in local because of domain
[10:40:18] MrCrackPotBuilde: which means you'll want to add the key to the keychain in chrome
[10:40:41] MrCrackPotBuilde: just so the different in domain ie localhost and mysite.huh is ignore and the keys are accepted

2019-06-23

[04:28:06] MrCrackPotBuilde: IGnorAND, what do you mean ???
[04:28:53] MrCrackPotBuilde: shouldnt rails db:test:prepare along with a database cleaner be enough ??
[04:30:47] MrCrackPotBuilde: or do you want to test that your application has access to the external db ??
[07:22:42] MrCrackPotBuilde: Remote host closed the connection
[07:23:05] MrCrackPotBuilde: has joined #RubyOnRails

2019-06-22

[04:44:55] MrCrackPotBuilde: has joined #RubyOnRails
[11:54:03] MrCrackPotBuilde: haxx0r, you'd want to modify your cookies
[11:55:03] MrCrackPotBuilde: or have yours sessions controller run through both domains
[12:50:26] MrCrackPotBuilde: haxx0r, https://ruby.unicorn.tv/articles/sharing-sessions-across-subdomains https://stackoverflow.com/questions/377137/rails-multiple-top-level-domains-and-a-single-session-cookie
[15:43:44] MrCrackPotBuilde: and then just call the service object from the controller
[15:47:23] MrCrackPotBuilde: keep model specific logic inside your models and call it from the service any thing the same for both place in the service
[15:47:34] MrCrackPotBuilde: but thats probably not the best way to go
[15:48:11] MrCrackPotBuilde: i tend to do that to keep controllers + sevices skinny and models heavy
[16:43:20] MrCrackPotBuilde: nope typically test is used only in development or staging

2019-06-18

[02:47:08] MrCrackPotBuilde: Ping timeout: 252 seconds
[04:46:32] MrCrackPotBuilde: has joined #RubyOnRails
[07:04:11] MrCrackPotBuilde: Ping timeout: 250 seconds
[09:15:12] MrCrackPotBuilde: has joined #RubyOnRails
[15:40:43] MrCrackPotBuilde: Ping timeout: 248 seconds

2019-06-17

[01:52:10] MrCrackPotBuilde: has joined #RubyOnRails
[03:18:45] MrCrackPotBuilde: Remote host closed the connection
[03:21:17] MrCrackPotBuilde: has joined #RubyOnRails

2019-06-16

[23:53:04] MrCrackPotBuilde: Ping timeout: 252 seconds

2019-06-15

[18:08:15] MrCrackPotBuilde: so it needs to be one request that the server then handles
[18:08:29] MrCrackPotBuilde: keeps things sweet and simple
[18:09:06] MrCrackPotBuilde: json or multiform not both
[18:09:19] MrCrackPotBuilde: but you can create a json request using a file
[18:09:39] MrCrackPotBuilde: but again thats a lot of effor of parsing the file and the image
[18:09:50] MrCrackPotBuilde: so the only option is to encode it
[18:09:58] MrCrackPotBuilde: store it and link it
[18:11:01] MrCrackPotBuilde: a promising option is to use the active storage direct upload
[18:11:07] MrCrackPotBuilde: see how that is handled
[18:11:42] MrCrackPotBuilde: then try to grab those credentials and store them in my db but then you have authentication issues
[18:12:05] MrCrackPotBuilde: i dont know how rails active storage gets around the file upload to the server without storing credentials in my application
[18:12:17] MrCrackPotBuilde: which im not doing
[18:13:14] MrCrackPotBuilde: sorry paramters of the image
[18:13:55] MrCrackPotBuilde: but the credentials shouldnt be stored in the db or on the application
[18:14:20] MrCrackPotBuilde: if you get those you could download every image from the s3 or cloud server account
[18:14:33] MrCrackPotBuilde: you need to auth to upload a file to a server
[18:14:54] MrCrackPotBuilde: you dont want public access to a server storing your shiz
[18:16:06] MrCrackPotBuilde: reguardless dev or not
[18:16:19] MrCrackPotBuilde: encryption is a must requirement
[18:16:27] MrCrackPotBuilde: no server can be public
[18:16:54] MrCrackPotBuilde: in heroku they are encypted
[18:17:31] MrCrackPotBuilde: but this is only my credentials
[18:18:06] MrCrackPotBuilde: but you dont store plain text creds in a application
[18:18:32] MrCrackPotBuilde: you miss my point
[18:19:02] MrCrackPotBuilde: if i upload my credentails to heroku its fine
[18:19:16] MrCrackPotBuilde: i can upload images to s3 cliod etc
[18:19:48] MrCrackPotBuilde: when you use direct upload it does some weird magic where it bypasses lets say heroku
[18:19:54] MrCrackPotBuilde: and goes direct to s3
[18:20:03] MrCrackPotBuilde: now in a web server env
[18:20:19] MrCrackPotBuilde: creds go in credentials all enc and what not
[18:20:29] MrCrackPotBuilde: you put the amster key in jeroku and your good
[18:20:50] MrCrackPotBuilde: direct upload reduces load on your server
[18:20:56] MrCrackPotBuilde: like ive said previously
[18:21:02] MrCrackPotBuilde: every reqest costs money
[18:21:09] MrCrackPotBuilde: why send an image to heroku then s3
[18:21:33] MrCrackPotBuilde: you store the image in s3 and your link the image in your db
[18:21:46] MrCrackPotBuilde: thats what active storage paperclop and carrierwave did for you
[18:22:32] MrCrackPotBuilde: you dont put creds in applications
[18:22:47] MrCrackPotBuilde: and deffinately not this application
[18:23:31] MrCrackPotBuilde: but my app does not
[18:24:03] MrCrackPotBuilde: lol i should probably mention an hour in to this that im not working on one app
[18:24:12] MrCrackPotBuilde: app is mobile comp and api is rails
[18:24:51] MrCrackPotBuilde: becayse active storage is mainly for html
[18:24:56] MrCrackPotBuilde: it doesnt work in api mode
[18:24:59] MrCrackPotBuilde: from what i can tell
[18:26:38] MrCrackPotBuilde: where do i store them
[18:27:11] MrCrackPotBuilde: if i bypass heroku using direct upload then i have to have creds in the app not the api
[18:28:11] MrCrackPotBuilde: so yer really i dont need active storage at all and in turn is pretty useless with api's best to stick with base64
[18:28:30] MrCrackPotBuilde: lol i think im going to bed
[18:28:42] MrCrackPotBuilde: i say that i dont leave
[18:29:13] MrCrackPotBuilde: i live in singapore
[18:29:38] MrCrackPotBuilde: your thinking local dude
[18:30:04] MrCrackPotBuilde: yes but direct uploads bypass this
[18:30:17] MrCrackPotBuilde: which means you need to have them on the app itself so the device
[18:30:48] MrCrackPotBuilde: thats an extra requset
[18:32:07] MrCrackPotBuilde: i just deleted 4 days of work
[18:32:14] MrCrackPotBuilde: so yer it helped
[18:32:25] MrCrackPotBuilde: it helped a lot in my own understanding
[18:32:53] MrCrackPotBuilde: i have come to the tired conclusion that active storage and rails api its a waste of time
[18:33:24] MrCrackPotBuilde: but there is no else where
[18:34:10] MrCrackPotBuilde: but im not sure how active storage direct upload gets those credentials
[18:34:16] MrCrackPotBuilde: i need more digging
[18:34:24] MrCrackPotBuilde: but for now im not going ot put that in prod
[18:34:29] MrCrackPotBuilde: keep it as a branch
[18:35:55] MrCrackPotBuilde: right but lets say im a hacker i could make a request to the server to get the creds to upload a file
[18:36:12] MrCrackPotBuilde: disect the response and then steal the creds to get all the images or files
[18:36:47] MrCrackPotBuilde: this is why i need to know exactly how it makes a response
[18:37:44] MrCrackPotBuilde: yer but if direct uploaduses aws sdk to then the request to the user would give them the creds to upload the file
[18:38:44] MrCrackPotBuilde: sorry its dam early
[18:38:51] MrCrackPotBuilde: im so high and tired
[18:39:06] MrCrackPotBuilde: ok you siad user makes a request to get the credentials right
[18:39:11] MrCrackPotBuilde: for direct upload
[18:39:30] MrCrackPotBuilde: so those creds need to be sent back to the user to use
[18:40:14] MrCrackPotBuilde: yes but with direct upload it bypasses your server
[18:40:34] MrCrackPotBuilde: it doesnt go to the server it goes direct to the cloud or other storage server
[18:40:50] MrCrackPotBuilde: so for this you need creds
[18:41:29] MrCrackPotBuilde: yes so if direct upload first sends a request to your server to get the creds its then going to use those to get to the upload server
[18:42:12] MrCrackPotBuilde: so the signed url is not user pass its a key created
[18:42:25] MrCrackPotBuilde: right now i get it
[18:42:42] MrCrackPotBuilde: its using pub priv key based encyption basically
[18:43:29] MrCrackPotBuilde: now that makes much more sense
[18:43:48] MrCrackPotBuilde: duleja this was my worry
[18:43:54] MrCrackPotBuilde: that it didnt do thi
[18:44:05] MrCrackPotBuilde: then its bad very very bad
[18:44:25] MrCrackPotBuilde: but i still need to solve the json issue next
[18:44:54] MrCrackPotBuilde: yer thats where ive been stearing towards tonight
[18:45:04] MrCrackPotBuilde: it makes more sense
[18:45:19] MrCrackPotBuilde: 100000 users a day
[18:46:36] MrCrackPotBuilde: if i can upload then just use a url and image name in the db that is much more efficent cost effective
[18:47:46] MrCrackPotBuilde: on this note though i reakky am now off. shansen thank you for the clarification it helps a lot
[18:48:00] MrCrackPotBuilde: duleja nice chatting
[18:50:04] MrCrackPotBuilde: once you get them there great