# |
Jun 19th 2019, 19:16 |
challgren |
And once the image is uploaded I then create another queue job set for 10 minutes in the future to delete the original image off the local server. That way if anyone has cached locations they can still use the image |
# |
Jun 19th 2019, 19:15 |
challgren |
User -> Server -> AWS |
# |
Jun 19th 2019, 19:14 |
challgren |
So how I have my app configured is the user uploads their image and a job is created. The user sees the image once its uploaded in its original format, then in the background the queue is handling the resize and uploading to AWS. Once thats done it updates the entity with the updated (AWS) location. and then if a user retrieves that entity the new info is provided and the image is updated |
# |
Jun 19th 2019, 19:12 |
challgren |
So every 20 seconds or however you config it, the queue process will look for jobs to do. |
# |
Jun 19th 2019, 19:12 |
challgren |
https://github.com/dereuromark/cakephp-queue runs as a background process on your host |
# |
Jun 19th 2019, 19:09 |
chris-andre |
Right, good point. Thanks. But, I don't know/understand, how can an image be uploaded after user "has left"? I mean, somehow the image must be available for the application. |
# |
Jun 19th 2019, 19:05 |
challgren |
Plus for the user with a big picture and slow internet, they aren’t getting timeouts due to processing the image |
# |
Jun 19th 2019, 19:04 |
challgren |
For example resizing/rotating gifs will take a while due to having to work on each frame individually so you don’t want that slowing down the user |
# |
Jun 19th 2019, 19:03 |
challgren |
then the CakePHP-Queue runner comes along grabs the file checks the exif data and then rotates and then resizes and then uploads |
# |
Jun 19th 2019, 19:02 |
challgren |
Yes, so I use CakePHP-upload and in the background I fix the exif rotation and then resize and then upload all in the background. When the user first uploads its stored locally |
# |
Jun 19th 2019, 19:01 |
chris-andre |
@challgren thats a valid alternative. The one you would go with? |
# |
Jun 19th 2019, 19:01 |
kiwi_17 |
https://ipfinder.io/ |
# |
Jun 19th 2019, 19:01 |
kiwi_17 |
and thank you so much |
# |
Jun 19th 2019, 19:01 |
kiwi_17 |
i want to start a project with phpcake for my company |
# |
Jun 19th 2019, 19:00 |
kiwi_17 |
hI guys |
# |
Jun 19th 2019, 19:00 |
challgren |
3. Orientate image in background queue |
# |
Jun 19th 2019, 18:48 |
chris-andre |
Image upload - image oriantation - Does anyone have a tip/thought about which option is the best? 1. Orientate image in storing process, or 2. Orientate image on print/echo |
# |
Jun 19th 2019, 18:37 |
admad |
$import is only for importing schema, not records |
# |
Jun 19th 2019, 18:37 |
admad |
@kailas https://book.cakephp.org/3.0/en/development/testing.html#importing-table-information |
# |
Jun 19th 2019, 18:18 |
kailas |
I’m trying to import both the schema AND the data from my test database, into my fixture. I’ve heard that its possible, but doesn’t seem to be working. Is that the case (that you can import data from datasource, not just the structure)? In my fixture i have: public $import = [‘table’ => ‘actions’, ‘records’ => true, ‘connection’ => ‘test_orderdb_aws’]; |
# |
Jun 19th 2019, 17:42 |
ricksaccous |
@olanowsubomi https://book.cakephp.org/3.0/en/installation.html#development-server |
# |
Jun 19th 2019, 17:26 |
olanowsubomi |
hello anybody with knowledge of cakephp usage with netbean |
# |
Jun 19th 2019, 17:16 |
olanowsubomi |
hello do you have experience with netbean? |
# |
Jun 19th 2019, 17:14 |
olanowsubomi |
but istill have some question to ask concerning the net bean you suggested |
# |
Jun 19th 2019, 17:13 |
olanowsubomi |
hi, have been resolving issues based on your information |
# |
Jun 19th 2019, 16:31 |
jeremyharris |
also, PHPStorm does have some support for javascript, including jQuery, it’s just a PHP IDE first. I think there were a few other IDE suggestions that you can try out if you find PHPStorm’s javascript support not good enough |
# |
Jun 19th 2019, 16:28 |
jeremyharris |
all modern frameworks use composer to install them nowadays, so I think it is worth investing time learning how to make composer work with your setup first. Like many people mentioned, cakebox will help with setting up a virtual server that is all ready to go. Otherwise, if you’re using XAMMP you will need to do that configuration yourself, regardless of the framework you choose |
# |
Jun 19th 2019, 16:23 |
olanowsubomi |
and find another framework |
# |
Jun 19th 2019, 16:22 |
olanowsubomi |
if not that i have invested a lot of time learning it i would have abandon it |
# |
Jun 19th 2019, 16:21 |
olanowsubomi |
i dont understand how a big organization like cakephp would not make there application easy to download for the first time, i have never experience this kind of difficulty downloading an app before |
# |
Jun 19th 2019, 16:18 |
olanowsubomi |
or do you know any ide that support cakephp, php, javascript, jquery |
# |
Jun 19th 2019, 16:16 |
olanowsubomi |
you know after i finished learning cakephp, i got specification for the project i want to use it for, and i drafted my programmes in paper which include jquery which phpstorm does not support |
# |
Jun 19th 2019, 16:07 |
neon1024 |
So you use one of those editors to write your code on your desktop, then the folder with your code in is shared to your virtual machine. When you view the code in your browser, it will use the web server in the virtual machine to run your shared code files. |
# |
Jun 19th 2019, 16:06 |
neon1024 |
I quite like VS Code also |
# |
Jun 19th 2019, 16:06 |
neon1024 |
There are lots of other tools, Netbeans is a free one which works on Windows |
# |
Jun 19th 2019, 16:06 |
olanowsubomi |
ok let me view there website about there details and get back to you |
# |
Jun 19th 2019, 16:05 |
graziel |
if you cant afford it (its paid) there is also EAP version you can use |
# |
Jun 19th 2019, 16:04 |
neon1024 |
Yes, very well |
# |
Jun 19th 2019, 16:04 |
olanowsubomi |
does it work with cakephp? |
# |
Jun 19th 2019, 16:04 |
olanowsubomi |
ok |
# |
Jun 19th 2019, 16:02 |
neon1024 |
@olanowsubomi I like to use PHP Storm :slightly_smiling_face: |