# |
Apr 21st 2017, 15:40 |
hmic |
Dinossaur, show full stack trace |
# |
Apr 21st 2017, 15:40 |
birdy247 |
hmic it would maninly be used for developing cake apps :slightly_smiling_face: |
# |
Apr 21st 2017, 15:39 |
Dinossaur |
and I'm having the error "users is not associated with in \cakephp\src\ORM\EagerLoader.php on line 496" |
# |
Apr 21st 2017, 15:39 |
Erik180486 |
hello, anyone can help me with the josegonzalez upload plugin? |
# |
Apr 21st 2017, 15:39 |
Dinossaur |
$this->setTable ('sis_usuario'); |
# |
Apr 21st 2017, 15:39 |
Dinossaur |
Hi people! I just update from cake 3.1 to 3.4 and I have non standard table names. So, my users table's real name is sis_usuario . My UsersTable.php have |
# |
Apr 21st 2017, 15:36 |
hmic |
do you need pure calculation performance? if not i am all up for the Intel NUC series, very small and relatively cheap while blazingly fast (for having nvme ssds and ddr4 ram), just not the highest pure calculation performance due to the use of mobile processors |
# |
Apr 21st 2017, 15:23 |
birdy247 |
anyone got any gd recomendations for a windows based desktop for coding (cant afford macs just yet!) |
# |
Apr 21st 2017, 14:38 |
styks198- |
hmic: haha ok |
# |
Apr 21st 2017, 14:36 |
hmic |
so, your oddities asside, this is ok. but there is only one line left after excluding the inconsistent parts |
# |
Apr 21st 2017, 14:36 |
hmic |
the data is likely not even set after your foreach at all! |
# |
Apr 21st 2017, 14:34 |
styks198- |
hmic: all my inconsistencies asside, That data should save though if everything was properly marked as dirty? |
# |
Apr 21st 2017, 14:33 |
hmic |
and maybe $shipment->packages is a collection object too... |
# |
Apr 21st 2017, 14:33 |
hmic |
$shipmentPackages keys and $shipment->packages keys are not related at all |
# |
Apr 21st 2017, 14:32 |
hmic |
you are still assuming way to much on that |
# |
Apr 21st 2017, 14:32 |
styks198- |
hmic: hmm not sure |
# |
Apr 21st 2017, 14:31 |
hmic |
are the tracking codes dirty too? |
# |
Apr 21st 2017, 14:30 |
styks198- |
https://gist.github.com/styks1987/437f16e1fd290832eff28e171e46ef15/add492f18a1b6650a2184adcfdcb1b8ca4c1701f |
# |
Apr 21st 2017, 14:30 |
styks198- |
hmic: ok, I will. Related to this, why doesn’t this work? Assuming shipment and shipment_packages are dirty |
# |
Apr 21st 2017, 14:29 |
hmic |
make sure $shipment is dirty itself after the patch, as you only patch associated records |
# |
Apr 21st 2017, 14:28 |
hmic |
if you are talking of lines 9-15, thats perfectly fine. |
# |
Apr 21st 2017, 14:28 |
styks198- |
:) |
# |
Apr 21st 2017, 14:28 |
styks198- |
hmic: for now, I know, but not really what I am focusing on at the moment |
# |
Apr 21st 2017, 14:28 |
hmic |
:~ |
# |
Apr 21st 2017, 14:28 |
hmic |
so this works on good will only? |
# |
Apr 21st 2017, 14:27 |
styks198- |
I will refactor to a different location later, but I am more interested in the concept for updating associated data |
# |
Apr 21st 2017, 14:27 |
styks198- |
that it was sent… |
# |
Apr 21st 2017, 14:27 |
styks198- |
UPS doesn’t give me an id, so with their api when they respond they just respond in order |
# |
Apr 21st 2017, 14:26 |
hmic |
styks198-: first off: you are in the wrong context likely. this should be in the shipments table i think. secondly: how and why do the keys of $shipmentPackagesResponses and $shipmentPackages correspond? |
# |
Apr 21st 2017, 14:22 |
styks198- |
sjundec: yea, I used to make all my own uploaders but like Neon1024 said, that is more of a frontend devs job just I substitued the frontend dev with filestack instead |
# |
Apr 21st 2017, 14:21 |
sjundee |
that is interesting @styks198- |
# |
Apr 21st 2017, 14:20 |
styks198- |
https://gist.github.com/styks1987/437f16e1fd290832eff28e171e46ef15 |
# |
Apr 21st 2017, 14:20 |
styks198- |
hmic: here is something on your turf. Do you know if there is a better way to update associated data. This just feels wrong |
# |
Apr 21st 2017, 14:19 |
Neon1024 |
dereuromark, Figured it out Chronos is not an instance of DateTime, but an instance of DateTimeImmutable! |
# |
Apr 21st 2017, 14:19 |
styks198- |
It is handy for showing previews before upload |
# |
Apr 21st 2017, 14:19 |
styks198- |
:) |
# |
Apr 21st 2017, 14:19 |
styks198- |
hmic: just in case you are curious. https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL |
# |
Apr 21st 2017, 14:19 |
hmic |
i am likey wrong, as i never tried. but security context would advise it be like i say |
# |
Apr 21st 2017, 14:18 |
hmic |
styks198-: thats not my business really, but i still doubt this api is accessible from a normal website, only if run from a local (app) context! |
# |
Apr 21st 2017, 14:18 |
sjundee |
Allright. I was having a look at burzums imagine plugin, which also will let me resize. |
# |
Apr 21st 2017, 14:17 |
styks198- |
hmic: I believe the html5 file api allows you access to the data url before the file is ever uploaded |