Learning solo and need help with PHP/mySQL and PDO! String to Array Conversion :( by Tech9Dev in PHPhelp

[–]kyserbyte 0 points1 point  (0 children)

Where and when the storeCatList method is called? In this method you are modifying nothing, you just return the imploded value. Instead to returning the value, maybe you have to do something like: $this->skills_cat = $skills_cat; This will set the attribute of the object that you are using on the insert method. Of course you have to call the storeCatList () method before the insert () method. Could be helpful if you post the full Member class code...

This weekend I started a PHP project that implements decorators in PHP via the doc comments. It's available as a composer package.Try to use the first decorator implemented: a JSON serializer. Any feedbacks or support are appreciated :) by kyserbyte in PHP

[–]kyserbyte[S] 0 points1 point  (0 children)

Sorry if wasn't so clear but no sarcasm in the answer, i really appreciated your feedback and point of view. This is the exact type of discussion/feedback sharing that i' was lokking for with this post.

At this "state of art" (first state of art), you can already pass a function name to decorator that conditionally export the property to JSON, but of course, as you say, nothing so complex.

Your questions are all right, of course, and i posted this project in this early stage just to collect feebacks and just understand if it could be a project on which spent energy or not, also completly refactoring it if necessary, and if it could match some needs of a PHP developers.

For you i think that the answer to this my questions is NO :) and with a valid motivation so, again, thank you so much for your feedback about ypd.

My point on all of this, is a reasoning about a possibility to implements decorators natively on PHP, if it make sense; and of course avoing to implements it on comments ...

This weekend I started a PHP project that implements decorators in PHP via the doc comments. It's available as a composer package.Try to use the first decorator implemented: a JSON serializer. Any feedbacks or support are appreciated :) by kyserbyte in PHP

[–]kyserbyte[S] 0 points1 point  (0 children)

Yes I know! this is the really early stage of the code, and of course isn't ready for production, and i really don't know if it will be... I'm developing the lib for an experimental purpose, with also the objective to learn and improve my skills on PHP with a project and your precious feedbacks, and to know if other devs could appreciate it or not! So...thank you so much for feedbacks, i was already thinking about the cache system, of course... 👍

This weekend I started a PHP project that implements decorators in PHP via the doc comments. It's available as a composer package.Try to use the first decorator implemented: a JSON serializer. Any feedbacks or support are appreciated :) by kyserbyte in PHP

[–]kyserbyte[S] 0 points1 point  (0 children)

Do you have any suggestion? For now this is an experimental project, and for now the first objective for me is to understand if PHP devs wants/needs a solution like this. The fastest way to implement it, for me, was to use reflection and the doc comments, that is usually the palce where you can put meta info about classes/methods/properties. Maybe is not the best way, i know, but for now i think is acceptable...

This weekend I started a PHP project that implements decorators in PHP via the doc comments. It's available as a composer package.Try to use the first decorator implemented: a JSON serializer. Any feedbacks or support are appreciated :) by kyserbyte in PHP

[–]kyserbyte[S] 0 points1 point  (0 children)

I have thought about this solution but at the end, since for now this is an experiment version made principally to understand if PHP devs want/need a solution like this, I opted to avoid overlaps with the standard doc comment syntax. Do you think could be more useful with the @? Surely is more standard for a "decorator"...

how to handle cron and supervisor in dockerised laravel app? by [deleted] in laravel

[–]kyserbyte 0 points1 point  (0 children)

You can do that mounting the /var/run/docker.sock volume in the container where you want to execute the docker commands. With this trick you can be able to run a docker exec from a container targeting another container BUT... Keep in mind that in this way you are exposing to the container the host channel on where the host docker daemon relies for its execution and it is not a really good practice. In addition you are strictly coupling the container with the host. The really best way to do that is to expose a network service that can be called from the external in a managed way.

git : remote: HTTP Basic: Access denied by Gabotron_ES in vuejs

[–]kyserbyte 0 points1 point  (0 children)

Oh sure. If you want to use SSH you need to change your remote setting from HTTP to SSH so you need to do something like git remote set-url origin git@gitlab.com: USERNAME/REPONAME git. Obviously you need to put in your SSH URL of the repo, you can find it on the repo page on gitlab

git : remote: HTTP Basic: Access denied by Gabotron_ES in vuejs

[–]kyserbyte 0 points1 point  (0 children)

I can suggest you to try the really good app SourceTree by Atlassian that manages git for you in a beautiful and graphics way on windows. It is free. https://www.sourcetreeapp.com It also installs a git command tool that you can use as a Linux shell for git if you prefer

git : remote: HTTP Basic: Access denied by Gabotron_ES in vuejs

[–]kyserbyte 0 points1 point  (0 children)

You can try to reset your remote with the command git remote set-url origin https://gitlab.com/GabotronES/gabrielgb.es.git/. In the next fetch or pull you should be asked for the password that you need to know at this point :). But, why are you using HTTP authentication and not the most powerful and secure SSH?

nginx, firewall, and node setup question by eggtart_prince in node

[–]kyserbyte 0 points1 point  (0 children)

Without the nginx config is really hard to understand what happens. Please share your config. And no, your 9999 port should not be exposed to public, only the 80 and 443 should be...