-
Posts
15,274 -
Joined
-
Last visited
-
Days Won
432
Everything posted by requinix
-
That's the only sound I know of that it could be playing...
-
That does sound relevant. Until it's fixed, you can turn off IPB's sounds through notification settings. Not sure exactly how it plays sounds - best guess being a temporary <audio> - but I think the "stream" term is a misnomer and it's more about the audio resource itself not releasing a sleep lock.
-
-vcodec copy That says to copy the existing video to the output. You need to re-encode the video as VP8.
-
Windows 10 1909 here. I have sleep disabled (desktop computer) and powercfg says nothing is happening. I normally have Chrome with the tab open, however most of the time the tab is in the background so eventually the forum stops polling for notifications (indicated by the pause ⏸ in the page title). And I do have desktop notifications enabled. Obviously IPB itself can't tell your computer to not go to sleep... What are your "advanced" power settings? Specifically under the Multimedia group. Here's mine:
-
Still looks right to me: - Start date = fill's start date (Wednesday 12pm) moved foward to the gap's start (Wednesday 1am) = a week later - End date = new fill's start date (Wednesday 1am) copied forward to the gap's end (Friday 4am) = 2 days later What was the result supposed to be, and why? 3v4l groups by output. Your code uses random numbers and current timestamps so the output from each run will be different. Protip: don't do that.
-
Looks right to me. https://3v4l.org/UJJfa You don't. 3v4l is meant for testing code across multiple versions. My code uses mutable DateTime objects. If you have to use immutable objects then the code needs to care about return values.
-
You'll have a database table that contains, at a minimum, (1) some identifier, (2) content, and apparently (3) some "answer to the issue". Right? Link to the page using the identifier, which could (and probably should) be a rewritten URL, then use the identifier to pull the content and whatever. I'm not really sure why there's a question here.
-
What's the HTML you're trying to render?
-
PHP pathing difference when running on CLI vs from bash script?
requinix replied to maxxd's topic in PHP Coding Help
...which it has to do by reading the file. That's the important part. "Working directory". AKA current working directory (cwd). Both of those paths should mean the same thing. What is the code for actually reading the file? -
What are the current "webm_encoding_options" settings that the conversion script is using?
-
PHP pathing difference when running on CLI vs from bash script?
requinix replied to maxxd's topic in PHP Coding Help
Depends what Config is doing with the file path. Probably something simple, like file_get_contents()? Relative paths for plain file access (so not using include/require) are according to the current working directory. From the CLI that's where you were when you started PHP, while for web things it could be the web root or the directory of the executed file or something else. If the config/config.json path is always relative to the same /path/to/my location then you could add that to Config, along the lines of public function __construct($path) { if (strncmp($path, "/", 1) == 0) { // absolute path } else if (!empty($_SERVER["DOCUMENT_ROOT"])) { $path = $_SERVER["DOCUMENT_ROOT"] . "/" . $path; } else { // relative to cwd $path = getcwd() . "/" . $path; } Using a relative path based on __DIR__ might be easier, as in __DIR__/../$path. -
It's not so much against forum rules as it is just Not A Nice Thing To Do. The key things to note with it are: 1. The fact that it gets information from $_POST and $_COOKIE. Malicious scripts don't do one single thing anymore - they take instructions sent to them from a person or another machine. 2. That it can output phpversion() data. So someone can see your server configuration. 3. The is_writable() checks and file_put_contents() function calls with ".php" file extensions. It's designed to write arbitrary code to whatever files on your server.
-
Please don't post malicious code in a public forum. You cannot simply "undo" the attack. There's no way to know the full extent of the damage. Assume that everything has been compromised. Take your website offline. Restore all the files from a recent backup (which you hopefully have), restore the database from a recent backup (ditto), then make sure you are up to date with WordPress and your plugins and everything else. Then bring your site back up and keep a very close eye on it for the next few weeks. Ideally, you can identify the attack vector: an outdated plugin, insecure permissions, something like that. Then make sure that is closed off. If your site has user registration or people's personal information, such as an email address or password, then you need to deal with that too. Which needs to include informing users of the breach.
-
You saw the link I posted, right? That's most of the way there. 1. Calculate the correct new starting date and time. 2. Get the diff between the gap, in days, then subtract 1 from it. Measured in days because having exact weekdays is important, and a little short so that it's definitely going to be the day before the desired time. 3. Add that many days to the new start, then do the next weekday/time thing. PHP will handle the rest. https://3v4l.org/7JDgp The two things to keep in mind: working with periods defined in terms of month units or larger sucks so don't try, and DST really needs to go away once and for all.
-
Not all WEBMs are created equal. Codecs matter. That's what I've been trying to tell you.
-
Almost thought I understood: fillStart 2019-07-23 00:15:00 Tue fillEnd 2019-09-23 13:00:00 Mon gapStart 2019-05-23 00:15:00 Thu gapEnd 2019-06-23 13:00:00 Sun fillStartModified 2019-07-25 00:15:00 Thu fillEndModified 2019-08-25 13:00:00 Sun "fill" is the date range you're working with, and "gap" is a start and end whose weekday numbers and times (aka "WeekDayTimes") should be copied. You need to move the fill's start date forwards the least amount of time (ie, "to the next") such that it has the same weekday number and time as the "gap" start; same for the fill's end date except it goes backwards. That would explain how 07-23 00:15 becomes 07-25 00:15 (moved forwards "to the next" Thu 00:15) but not how 09-23 13:00 moved back almost a month to 08-25 13:00. PS: https://3v4l.org/0lBR6
-
This is likely due to one or more CSS rules. Would have to see those to know what's wrong.
-
First step is for you to learn how to indent your code properly. I'm not entirely sure but I suspect your problem will become apparent if you do this.
-
What is the best table structure for use with PHP?
requinix replied to bakertaylor28's topic in MySQL Help
Is it the same set of information for everyone? Definitely do not do this. No offense, but it doesn't sound like you understand what databases do or how they work. Thing is, you would never actually do that. You would run a SELECT query with a WHERE clause. And the system will be able to pull up the information far more efficiently than you could if you tried to do it yourself.- 10 replies
-
- table
- database php
-
(and 3 more)
Tagged with:
-
I don't have a calendar in front of me either, but I'm really sure that there is no time in January which ends on the same week as February 12th. Try explaining it again but with different words. Let's say that you can't use the words "gap", "earliest", or "closest".
-
What is the best table structure for use with PHP?
requinix replied to bakertaylor28's topic in MySQL Help
Probably. Going to need to hear more about it than just how it's "individualized information". Definitely not.- 10 replies
-
- table
- database php
-
(and 3 more)
Tagged with:
-
Time for you to do a little detective work: does the browser/iOS on your iPhone 5S support playing WEBM videos? If so, is it restricted to the VP8 codec? Is that what your WEBM videos are using?
-
Have you ever tried to take your car to a mechanic and when they asked what was wrong you said the car was "no-go"? Try that sometime and let me know what they say. That is useful information. Stick the path to the video in an <a> link and click it (on mobile). What happens?
-
...so about those dates...
-
That <?php <th>Auto Update: </th> <td></td> ?> is not valid PHP code. But it's also not what you showed in your second post so I don't know what to think.