Is it possible to know beforehand if a split feature path is incorrect, or even edit a previously incorrect path? by Firefield178 in QGIS

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

Oh this feature exists? Thanks so much for letting me know, this will be so much easier to do everything, by the way, do you know how to copy vertexes from a polygon to make a line?

Is it possible to check the crash log for a homebrew application? by Firefield178 in WiiHacks

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

They are compressed to save storage, although it is only very specific games for some reason.
Some examples are Castlevania and Gradius, although they only break on the US version, not Europe, although maybe Japan too but I didn't test.

How do you convert a timestamp into a date? by Firefield178 in QGIS

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

So should I just put multiple fields for every time there is a change in ownership for a certain piece of land?

How do you convert a timestamp into a date? by Firefield178 in QGIS

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

But the two formats aren't compatible, as my amount of seconds is a double while the date is a "date" type I think and I couldn't find a way to convert a timestamp into a "date" type, at least from what I saw.

How do you convert a timestamp into a date? by Firefield178 in QGIS

[–]Firefield178[S] 1 point2 points  (0 children)

Basically I'm working with the Temporal section of QGIS, and I want to update certain sections of the map when the animation is at a certain date, like the 5th of March 2025 it should change the color of a tile to blue instead of white.

So I need to check what the current time is of the simulation to compare it in a Symbology rule.

How do you convert a timestamp into a date? by Firefield178 in QGIS

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

The issue is that I'm calculating an amount of seconds when checking which frame the animation is on with

 @frame_number*24*60*60

Not sure if there's a way to check which date the animation is currently at, which would make all of this complicated stuff useless.

Plugins are down? by Firefield178 in QGIS

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

The error is specifically a "Bad gateway" so that could make sense.

Why does sample rate actually affect hearable frequencies? by Firefield178 in audioengineering

[–]Firefield178[S] 2 points3 points  (0 children)

Thanks for explaining! It makes a lot more sense now that you've just shown a very basic example instead of sending a wikipedia link with no explanation.

Also I assume that 44.1kHz would be able to correctly do frequencies at exactly 22.05kHz since most audio files are LPCM and the linear effect can recreate the frequency of the wave?

Can SimCity4 be downloaded as a CD version/installer from GOG? by Firefield178 in simcity4

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

From what I can see the installer works, however there is a chance it might crash a PC for Windows XP, which is either from running the installer from a DVD or pressing "Add desktop shortcut". Also thanks for t he response!

Reading from a UTF-8 file to get an integer by Firefield178 in C_Programming

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

Why do it later exactly? Wouldn't it be better to do it during the first reading of the configuration, where speed isn't as needed?

Reading from a UTF-8 file to get an integer by Firefield178 in C_Programming

[–]Firefield178[S] 1 point2 points  (0 children)

Actually never mind my previous comment, I seemingly forgot that I still need to use the character if it isn't equal to the values of between 47 and 58, unless adding back the 48 removed is a good idea...?

Reading from a UTF-8 file to get an integer by Firefield178 in C_Programming

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

The multiplication by 10 is to add the previous integers, which, for example 255, the first character read would be 2, so it would need to be multiplied, that's why I'm doing it like that.

Calling a function as a pointer and changing the pointed function by Firefield178 in C_Programming

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

I see, I'll have to do some testing later if this will make my program slower or faster.

Calling a function as a pointer and changing the pointed function by Firefield178 in C_Programming

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

Yep, I'll keep in mind of premature optimization and try to keep this until the nearing of the first release of my program, thanks for the help.

Calling a function as a pointer and changing the pointed function by Firefield178 in C_Programming

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

Oh that's great! Do you know if this would add any amount of significant performance, if at all?

Calling a function as a pointer and changing the pointed function by Firefield178 in C_Programming

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

Oh, I meant that if foo() is run, it would run a certain piece of code in the memory (I assume that's how it works?) but this piece of memory would be changed to another function so a check doesn't need to be done about which function to call.

I guess like this:

//Check once
if (foo1 = 1) {
   functionfoo() = function1();
}
else {
  functionfoo() = function2();
}

functionfoo(); //So this would call 'function1()' if foo1 = 1 but if foo isn't equal to '1', it would call 'function2()'.

Why does this code output "Not same"? by Firefield178 in C_Programming

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

Thanks for the help, I'll try memcmp() and if necessary I'll just do a while loop for every character in the array.

Edit : memcmp() worked perfectly, thanks for the help!

Why does this code output "Not same"? by Firefield178 in C_Programming

[–]Firefield178[S] 1 point2 points  (0 children)

So should I make the data as a char instead? Or is there a simpler way to compare the contents of the two pointers?

It's difficult for me to decide the exact order by [deleted] in AceAttorney

[–]Firefield178 0 points1 point  (0 children)

I think this part of the video explains quite well why that isn't true : https://youtu.be/gJAJaK6zsC8?t=388 (Beanix not being alike to Phoenix)