# |
Oct 6th 2016, 14:58 |
mikatone |
can i trigger shell command tcpdump from cakephp without exec ? |
# |
Oct 6th 2016, 14:57 |
dereuromark |
either way you want to trigger it async via shell, should not be sync from browser |
# |
Oct 6th 2016, 14:57 |
mikatone |
hum that would be nice |
# |
Oct 6th 2016, 14:57 |
dereuromark |
haha, yeah if you want that shell, you can also steal the idea of how to invoke mysqldump command and build in manually |
# |
Oct 6th 2016, 14:56 |
mikatone |
i'm using cakephp 3 already do I have to assume I still have to upgrade DbDump version? |
# |
Oct 6th 2016, 14:56 |
dereuromark |
Then you can also implement a restore button, at your own risk :P |
# |
Oct 6th 2016, 14:55 |
dereuromark |
You upgrade my DbDump shell from 2.x to 3.x and then trigger that, ideally from a Queue :slightly_smiling_face: done |
# |
Oct 6th 2016, 14:55 |
mikatone |
any ideia? |
# |
Oct 6th 2016, 14:53 |
mikatone |
Hi, my client has requested a "button" in order to backup the entire database! I can't argue with... but I haven't any knowledge on how to do it from frontend with cakephp 3 |
# |
Oct 6th 2016, 14:49 |
dereuromark |
and I can confirm it is passed to the adapter all the way like this |
# |
Oct 6th 2016, 14:48 |
dereuromark |
I get "?error=redirect_uri_mismatchanderror_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application" though but the domain matches both in github and local setup (http://app.local/account/login) |
# |
Oct 6th 2016, 14:42 |
dereuromark |
You need sth like ``` 'wrapper' => [ 'path' => ..., 'class' => 'Hybrid_Providers_GitHub' ] ``` |
# |
Oct 6th 2016, 14:41 |
dereuromark |
;) I was too focused on trying to get the github thing to work, it is not trivial |
# |
Oct 6th 2016, 14:40 |
admad |
well you didn't follow the readme :slightly_smiling_face: Don't load the plugin's bootstrap if you don't want to use separate config file |
# |
Oct 6th 2016, 14:33 |
dereuromark |
I have it in config default and bootstrap overloads it |
# |
Oct 6th 2016, 14:33 |
dereuromark |
ah, that kills it |
# |
Oct 6th 2016, 14:31 |
admad |
configuring GH adapter should be same as others, adding it in the config array in config/hybridauth.php |
# |
Oct 6th 2016, 14:29 |
dereuromark |
It reads them from Hybrid_Auth::$config["providers"] |
# |
Oct 6th 2016, 14:29 |
dereuromark |
Resulting in "No provider ID specified." |
# |
Oct 6th 2016, 14:28 |
dereuromark |
looks like it doesnt like my setup, always ends up in the auth class with 'OpenID' => [ 'enabled' => true] Even though my setup specifically says Github |
# |
Oct 6th 2016, 14:26 |
admad |
i have only used FB and twitter so no idea how hybridauth uses external adapter |
# |
Oct 6th 2016, 14:26 |
admad |
@dereuromark the github adapter should be usable through composer right? |
# |
Oct 6th 2016, 14:13 |
dereuromark |
looks like github is not included by default, and seems to have to be copied into the repo or sth to be found |
# |
Oct 6th 2016, 14:07 |
dereuromark |
@admad or alike: Did any of you connect HybridAuth plugin with github yet? The docs seem to not have an example of the minimal config here |
# |
Oct 6th 2016, 13:43 |
admad |
why didn't you just try? :slightly_smiling_face: |
# |
Oct 6th 2016, 13:39 |
admad |
@neothermic it won't if you pre-populate :slightly_smiling_face: |
# |
Oct 6th 2016, 13:32 |
neothermic |
WRT making a char36 and cake auto-populating it with a UUID, can you turn that auto-populate behaviour off? |
# |
Oct 6th 2016, 13:17 |
hmic |
charolastra, as said, its quite a litte more then that |
# |
Oct 6th 2016, 13:12 |
charolastra |
that looks like overkill for a simple upload |
# |
Oct 6th 2016, 12:58 |
ypnos |
francky06l: great to hear |
# |
Oct 6th 2016, 12:55 |
burzum |
While it could be used as simple "uploader" (there is no "uploader", just handling uploads and storing them somewhere ;)) |
# |
Oct 6th 2016, 12:55 |
burzum |
Just in case you want to avoid duplicates with file storage you'll need to explicitly check for them. It does a bunch of other "smart" things as well to avoid collisions and performance issues. It is actually more than just a simple uploader, it's a whole storage concept and system. |
# |
Oct 6th 2016, 12:53 |
flangofas |
it hashes the filenames |
# |
Oct 6th 2016, 12:53 |
flangofas |
i've used https://github.com/burzum/cakephp-file-storage |
# |
Oct 6th 2016, 12:48 |
charolastra |
is josegonzalez/cakephp-upload recommeded? cause it doesn't seem to handle same filenames and simply overwrites. any other recommendations? |
# |
Oct 6th 2016, 12:40 |
francky06l |
ypnos: made a behavior for this, works perfect thanks again |
# |
Oct 6th 2016, 12:20 |
spriz |
ours pass on 3.3.3 but fails on 3.3.4 |
# |
Oct 6th 2016, 12:20 |
spriz |
anyone else had problems with integration tests and Footprint since 3.3.4? :P |
# |
Oct 6th 2016, 12:16 |
aneh |
thnx @ndm and @flangofas :slightly_smiling_face: |
# |
Oct 6th 2016, 12:11 |
ndm |
Doesn't matter if your action doesn't need it, the helper does. |
# |
Oct 6th 2016, 12:10 |
ndm |
http://book.cakephp.org/3.0/en/development/routing.html#passing-parameters-to-action |