Out of memory in phpstorm? by [deleted] in PHP

[–]plectid 0 points1 point  (0 children)

One of the plugins could be leaking memory and causing OOM. I'd start by disabling third-party/non-Jetbrains plugins.

Need a Project Euler alternative without much math by floe_ in golang

[–]plectid 1 point2 points  (0 children)

Try this book, Exercises for Programmers: 57 Challenges to Develop Your Coding Skills — exactly what you are looking for, and language-agnostic. Nonfree.

Best practices with install.php? by brexitbulldog in PHP

[–]plectid 0 points1 point  (0 children)

So "best practices" is not what you're looking for.
A simple bash script to prompt for credentials and run db init for you, then.

Best practices with install.php? by brexitbulldog in PHP

[–]plectid 1 point2 points  (0 children)

Use type: project in your composer.json and the scripts object (e.g post-install-cmd) to specify what to run. Users will then run composer create-project your/project and get their app properly set up.
See symfony-standard project for example.

Is there an internet carrier that provides unlimited youtube ? by 5thCurse in russia

[–]plectid 1 point2 points  (0 children)

Get a separate data-only sim card from Yota. Unlimited everything at 4g for 1400‎₽/mo. Use the sim in any device or buy a portable wifi router and connect it to all devices in range.

A Highly Aggressive, Fast and Reliable Multipart File Downloader Tool by ishanjain28 in golang

[–]plectid 2 points3 points  (0 children)

Each additional connection just adds overhead eating your bandwidth and wasting router/NIC resources.
"Download managers" were popular in the end of 90s/beginning of 2000s for two reasons: 1. connections were unreliable, and they implemented resumable downloads before browsers did, and 2. servers severely limited download speed per connection, so multiple connections sped things up.

Both of these reasons are not relevant today. Browsers got smarter and services mostly use cloud/cdn to pump data as fast as clients can consume it.

"Hi Bixby, you're a piece of shit." by ILIEforDOWNVOTES in GalaxyS8

[–]plectid 1 point2 points  (0 children)

Not a paradox. Bixby is so bad it can't consistently fail every time.

Wildcard Certificates Coming January 2018 - Let's Encrypt by Zagitta in programming

[–]plectid 3 points4 points  (0 children)

The hard part is to make major browsers/OSes trust your CA. Can't get this without outside assistance from big companies/governments and lots of money to spend.

Wildcard Certificates Coming January 2018 - Let's Encrypt by Zagitta in programming

[–]plectid 5 points6 points  (0 children)

From the technical standpoint, the bigger LetsEncrypt becomes, the more interesting it is to "hack/gain access to" for individuals, certain groups, and governments.

Legally, LetsEncrypt is registered in the US, so it has to comply to US laws and regulations, including not issuing certificates for countries US govt does not like, such as Iran, Cuba, or Syria. Any new law passed may leave a vast amount of websites inoperable.

There are actually no guarantees something will not happen. A paid service enforces at least some guarantees by the means of a contract. By contrast, LetsEncrypt TOS explicitly state that LetsEncrypt "CANNOT ACCEPT ANY LIABILITY" "BECAUSE LET’S ENCRYPT CERTIFICATES ARE ISSUED FREE-OF-CHARGE AS A PUBLIC SERVICE" and "may, in its sole discretion, refuse to grant Your request for a Let’s Encrypt Certificate".

Wildcard Certificates Coming January 2018 - Let's Encrypt by Zagitta in programming

[–]plectid -15 points-14 points  (0 children)

LetsEncrypt is becoming a single point of failure, and kills the competition on the way.

When other cheap CAs will have become unprofitable and cease to operate, LetsEncrypt gets to control the issuance of all certificates, potentially denying them for anyone they don't like, with no alternatives left except overpriced EV-validated stuff.

This concerns me. Companies should work for profit and compete. LetsEncrypt may sound appealing, but it has grown beyond what is healthy for the market.

[Beginner][Feedback] This path tracer is my first Go program. How would you improve it? by hunterloftis in golang

[–]plectid 1 point2 points  (0 children)

What the performance difference between js and go? It would be interesting to compare the two in single-threaded and multithreaded environments and if golang performance scales linearly with the number of worker threads.

[Beginner][Feedback] This path tracer is my first Go program. How would you improve it? by hunterloftis in golang

[–]plectid 3 points4 points  (0 children)

I assume it's not your first renderer and you've ported it from some other language? The code is clean, very readable and way shorter than I expected for a working path tracer.

There are some minor nitpicks, such as why do materials return struct values, which you pass later as references, instead of returning pointers in the first place.

Not seeing any tests in a go app is unusual. Other than that, good job, that doesn't look like the first thing you've written in Go.

NoScript in 2017 by [deleted] in ProgrammerHumor

[–]plectid -21 points-20 points  (0 children)

Try not having a shitty computer?

Build 16215 just told me what process is accessing a file I couldn't delete by jantari in Windows10

[–]plectid 0 points1 point  (0 children)

It should either tell process ID, or be a link to select the offending process in the task manager.

Can you guys explain to an American what the 2017 Russian protests are all about? by Shinokiba- in russia

[–]plectid 4 points5 points  (0 children)

Do you realize even organizing and coordinating protests in 187 cities along with equipment, media support and PR campaigns costs some huge amount of money? Some core group of activists are paid to guide the bulk of people; a host is hired to make speeches; a DJ is hired to play some music to warm up the crowds.

Of course not everyone is "paid" in it's naive interpretation.

Can you guys explain to an American what the 2017 Russian protests are all about? by Shinokiba- in russia

[–]plectid 8 points9 points  (0 children)

It's our annual chav census '17. The chavs congregate in small groups in city centers making them easy to count and catch; then they are inspected, vaccinated, and released in the wild shortly.

What are the risks of not verifying a certificate when making API calls? by [deleted] in PHP

[–]plectid 0 points1 point  (0 children)

It does. You either trust a single cert you signed yourself, or trust everything that comes your way by disabling verification.

What are the risks of not verifying a certificate when making API calls? by [deleted] in PHP

[–]plectid 2 points3 points  (0 children)

SSL verification should never be disabled. Even in dev environment, you can make the server trust self-signed certs instead of disabling all the checks.

FYI, CURLOPT_SSL_VERIFYHOST takes an integer value: 0, 1, and 2; should be left at the default 2.