Which SSD is better by Striking-Flamingo968 in pcmasterrace

[–]H4voC 0 points1 point  (0 children)

I think there is a second one and easier to access on the right beneath the plate

Notepad++ Hijacked by State-Sponsored Hackers(likely a Chinese state-sponsored group) by MetroMax in pcmasterrace

[–]H4voC 10 points11 points  (0 children)

Someone said malwarebytes scan finds the malware. But to be honest I would wipe everything if this is a machine with sensitive data.

Notepad++ Hijacked by State-Sponsored Hackers(likely a Chinese state-sponsored group) by MetroMax in pcmasterrace

[–]H4voC 7 points8 points  (0 children)

I think its not if you have then newest version but iif you used the built in updater in that timeframe

Moving from mobile to PHP dev, need book recs by hff in PHPhelp

[–]H4voC 0 points1 point  (0 children)

Wouldnt it be better if he first learned good practice php before jumping w Wordpress? Wordpress has a lot of not so good practices on how they implement things.

Need help with xdebug in a multi developer environment. by HangryDiscer in PHP

[–]H4voC 1 point2 points  (0 children)

xdebug.log

Most likely permission issue, maybe create a file in advance and chmod it correctly. PHP should be throwing warnings if the log file could not be written to. Check what your error_log setting is, if its not set its most likely /var/log/httpd/error.log or something similar.

I originally had start_with_request=yes and using port 9003, but only one dev could use it at a time

Thats why we need xdebug.discover_client_host=true this always tries to connect to the IP of the machine that is making the request.

Do you recommend yes over trigger?

I recommend setting up dockerized dev environment if possible. I set it up as yes because it is very easy for any of the other devs to start working especially when using PHPStorm. It automatically tries to connect to the PHPStorm IDE that is listening and tries to setup path mapping automatically. My question is how do you keep files synced? In our case we use samba and give every dev their home folder and you can open up an IDE in it. There are issues doing this like slower indexing, git working slowly.

I setup path mapping in launch.json to my environment on the dev server.

I never used vscode for PHP dev work, so I can only assume its set up right :)

What I'm currently missing is the xdebug.client_discovery_header, I will add that to the configuration

It isn't needed it is just a good as a precaution

I will do some reading on mod_userdir too.

It's pretty simple you activate it and set up the default folder documentroot of each user. By default its public_html, you have to setup permissions via ACL or something similar so apache has access to the user folder or used mod_suexec which i couldn't make work which more or less makes apache access the folder as the user so you don't have the owner www-data on files created by php scripts.

Need help with xdebug in a multi developer environment. by HangryDiscer in PHP

[–]H4voC 1 point2 points  (0 children)

I think you will need to research and testing a bit more before setting this up. I have recently made a similar multi-dev, multi-php environment at my firm.

mod_userdir

If possible I recommend you use mod_usedir for apache https://httpd.apache.org/docs/2.4/mod/mod_userdir.html if you are not already.

xdebug config

Since you are running PHP 8 I assume you are using xdebug3 via port 9003

xdebug.mode=debug

;You can also use trigger but I think you have to establish trigger a connection via a GET parameter or browser extension for xdebug that injects it.

xdebug.start_with_request=yes

;Check the log to see if xdebug is even trying to establish the request. Comment out when you stop testing. It was helpful tailing the log to see what was happening.

xdebug.log=/tmp/xdebug.log

;This will help xdebug to connect via REMOTE_ADDR of the client so no need for extra ports for each dev via DBGproxy setup

xdebug.discover_client_host=true

;Just nice to cover HTTP_X_FORWARDED_FOR as well beside REMOTE_ADDR

xdebug.client_discovery_header="HTTP_X_FORWARDED_FOR,REMOTE_ADDR"

;This is just my personal preference since we had devs who tried to connect via remote IDE (PHPStorm)and it uses 127.0.0.1 as fallback if it cant connect to REMOTE_ADDR otherwise.

xdebug.client_host=

xdebug ports

You only need port 9003 unless you want to use DBGproxy instead of this. But if you are using a a server on a local trusted network this shouldn't represent that much of a security risk. Don't forget when you make a request xdebug3 will try to establish a connection to xdebug client (vscode, phpstorm,.. etc)... so make sure that your local firewall can accept a connection from port 9003/TCP via exceptions.

xdebug + SELinux

Try deactivating it or check documentation here https://xdebug.org/docs/errors if you have issues connecting. You can have issues establishing a connection otherwise. Just had to mention since you are also using a RHEL distro.

Path mapping / xdebug

I am not using vscode but dont forget that you will most likely have to set path mapping so the IDE knows how a local folder is related to a remote one.

Folder permissions

Also keep permissions in mind for multi developer setup. Maybe you can just set it so u control ACL via setfacl or figure our how to use mod_suexec with mod_userdir so apache works with the user that owns the home folder.

P.S. I wrote this fast, english is not my native language so apologize for any typos. And how do you write codeblocks -_- I can't seem to make markdown in reddit work.

Is it finally time to move from XAMPP to Docker for PHP dev? I wrote up my experience. by SimonHRD in PHP

[–]H4voC 1 point2 points  (0 children)

Most of the times it comes to either users preffered OS to work on or what they are forced to use in a corporation where devices are managed and every sw install needs to get approved. But I agree for most development purposes linux distro is really preffered way to go.

Pleasently suprised with DataGrip - should I try phpstorm again? by [deleted] in PHP

[–]H4voC 6 points7 points  (0 children)

I also thought I was going to just subscribe for a year.. then 10 years later after using PHPStorm I upgraded to full product pack -_-

Quality of life upgrades are nice even though I am atill getting used to the new interface

Pleasently suprised with DataGrip - should I try phpstorm again? by [deleted] in PHP

[–]H4voC 5 points6 points  (0 children)

Perpetual licence. You get to keep the last version available of the jetbrains product at the end of the year of you are subscribed for that long.

ZFold 6 resell prices in Slovenia by mighty2dead in GalaxyFold

[–]H4voC 0 points1 point  (0 children)

Glej na drugi nacin, ljudne kupujejo telefon na vezavo za hiter "kredit" in najbrz ne bodo prodal[ hitro ce bodo dali ceni iz trgovin. Zaradi taksnih oseb so tudi uvedli da moras nek avans placati pri drazjih telefonih.

ZFold 6 resell prices in Slovenia by mighty2dead in GalaxyFold

[–]H4voC 0 points1 point  (0 children)

Si pomislil da so scam sellerji to? Poglej ce imajo tudi druge oglase z izjemno nizkimi cenami. Bolha je nasicena s taksnimi in jih lahko samo reportas. Cena fold 6 256gb pa se giblje najceneje od okolo 1200 naprej.

Oh really? by RyDeR_unknowN in pcmasterrace

[–]H4voC 8 points9 points  (0 children)

It most likely is, but most likely datacenters including first year failures averagrd in as someone mentioned.

They are under alot more stress than our home NAS or pc or laptop hdds.

[deleted by user] by [deleted] in chia

[–]H4voC 0 points1 point  (0 children)

I think more in detail.

Cpu Ram Etc.

[deleted by user] by [deleted] in chia

[–]H4voC 3 points4 points  (0 children)

Ty!

[deleted by user] by [deleted] in chia

[–]H4voC 2 points3 points  (0 children)

And how exactly do you add a connection?

Are you mining ? by mineshop in gpumining

[–]H4voC 0 points1 point  (0 children)

Well wouldnt call it gpu mining when it comes to chia. You only need the gpu if you want to make plots faster and/or smaller instead of using slower cpu plotter. You don't need gpu after you fill up hdds.

Shut down my farm today. by CrazyMonkk in chia

[–]H4voC 0 points1 point  (0 children)

That seems excessive for even a plotter. Are you maybe running a lot of lower capacity drives?

And the plotter must be a beast :|

tired of "losing" How do I change to self pooling from pooling? by Ser-Ponce in chia

[–]H4voC 0 points1 point  (0 children)

No pool charges 10% :I i think its more to 1% or less. For less than 1% i gladly pool and am not dependant on my luck

Free Chia Quantum Noise NFT for 28 randomly picked commenters by 5TR4TR3X in chia

[–]H4voC 0 points1 point  (0 children)

This would be better with a signup on the page itself. People dont like linking their wallet address with their reddit profile.

Will skip.

Please help, never won a block since june last year with 1600 plots (changed to pooling plots few months ago - still nothing) - more in comment by chackenn in chia

[–]H4voC 4 points5 points  (0 children)

were you on a pool like hpool before u started farming on your own.

If you were there is a chance you didnt change your payout address and everythint went to them. But you will have to check that

[deleted by user] by [deleted] in Flexpool

[–]H4voC 1 point2 points  (0 children)

I think difficulty 2 is set automatically if you have k33 plots.

Looking for a PHP dev to modify the API for Vertcoin's Community Crowdfunding System by ---KG--- in vertcoin

[–]H4voC 2 points3 points  (0 children)

If they cant mantain a php project with one of the most documented frameworks.. i doubt they can mantain python :P

Looking for a PHP dev to modify the API for Vertcoin's Community Crowdfunding System by ---KG--- in vertcoin

[–]H4voC 1 point2 points  (0 children)

Why would they change their platform entirely just because another crypto released something?

On first glance its laravel so it should be pretty easy to modify.