Quantcast
Channel: User HoldOffHunger - Stack Overflow
Browsing all 55 articles
Browse latest View live

Answer by HoldOffHunger for How can I install ziparchive on php 7.4?

It depends on which version of PHP you have, actually. Generally, you would expect this to be all that is needed, especially since it runs: sudo apt-get install php-zip, but this didn't work for me....

View Article


Answer by HoldOffHunger for MySQL OPTIMIZE all tables?

It's possible for the highly-accepted answer to fail in several cases. mysqlcheck -o --all-databases is excellent, but you may find yourself in need of the --skip-database argument, in case you run...

View Article


Answer by HoldOffHunger for PHPUnit\Framework\Error\Warning: ini_set():...

Use the --stderr argument for phpunit.phpunit YourTestFile.php --stderrFrom the documentation:--stderr Write to STDERR instead of STDOUTPHPUnit is writing its own output (for instance, I see: "PHPUnit...

View Article

Answer by HoldOffHunger for PHP runtime class modification

Changing Object Class on the Fly - Use CaseHere's another use-case for changing an object's class on the fly: upgrading a class to a version that provides debugging and logging, so that developers can...

View Article

Answer by HoldOffHunger for filectime vs filemtime for file modification time?

TLDR Answerfilemtime: When the file's data was changed.filectime: When the file's metadata was changed (i.e., depends on your Linux system, it might just be permissions or it could be anything like...

View Article


Comment by HoldOffHunger on PHP: Is there a reason to put a newline at the...

@Yevgeniy Afanasyev: You quoted literally HALF of the requirement. Read the entire sentence, please! All PHP files MUST end with a non-blank line, terminated with a single LF., yes, TERMINATED with a...

View Article

Comment by HoldOffHunger on How to Check if an array is already sorted in php

Great question, upvoted, thanks! It's been a decade or so, maybe a different answer should selected as the correct one? Just speaking for the community, thanks!

View Article

Answer by HoldOffHunger for Remove BOM () from imported .csv file

I appreciate everyone's answers here, and I think they are all great work-arounds for what is clearly a problem with the PHP code itself. Its been listed in PHP Bug Tracker since 2003-02-07 08:46. Its...

View Article


Answer by HoldOffHunger for How to disable two factor authentication in GitHub?

As of 2024, you can't. To disable 2FA authentication requires that you enable 2FA Authentication first (using your personal phone), which is absolutely something you do not want to ever do with any...

View Article


Comment by HoldOffHunger on How to change the default number format in Excel?

I just followed this advice. The text "Dec 24, 2023" was converted to the number "435418". What does that number mean? Why would that be considered a correct format given the text entered?

View Article

Answer by HoldOffHunger for Paste without format within workbook and from...

To copy/paste into M$ Excel without copy/pasting the HTML format, try the following:Double click (or press F11) while the cell is selected. You'll know you did this correctly because your cursor will...

View Article

Comment by HoldOffHunger on Javascript alert message Alternative

How is this an alternative to a questionaire context menu? This is literally just relaying info in plaintext to the user.

View Article

Answer by HoldOffHunger for javascript encodeURIComponent and converting...

Just try encodeURI() and encodeURIComponent() yourself...console.log(encodeURIComponent('@#$%^&*'));Input: @#$%^&*. Output: %40%23%24%25%5E%26*. So, wait, what happened to *? Why wasn't this...

View Article


Answer by HoldOffHunger for wkhtmltopdf, 0.12.6, Warning: Blocked access to file

The full, complete solution is:wkhtmltopdf.exe --enable-local-file-access "E:\INPUT-FILE.html" "E:\output-file.pdf"CRITICAL: It's important to put it in this order. Even though...

View Article

Image may be NSFW.
Clik here to view.

Answer by HoldOffHunger for How does Pinterest get my email address without...

It's easy: because they hacked your data. Your particular screenshot doesn't appear to show how the hacking works, so I'll post my screenshot and explain.Take a look at my Pinterest profile below. My...

View Article

Browsing all 55 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>