Post

Replies

Boosts

Views

Activity

Reply to Disable sprintf deprecation warning
snprintf does guarantee NUL-termination, Oh, does it? That’s very interesting. You are correct - it is strncpy() that does not null-terminate if the source length is greater than N. I guess I have not tried to memorise the subtle variations of behaviour of all of these functions, and just pessimistically assume the worst….
Nov ’22
Reply to Pac File shExpMatch
I feel that should work. Have you tried something like url.substring(url.length-4) == ".pdf" Maybe post more of your code and someone will spot an error elsewhere. (BTW, make sure that the local server providing the PAC file to the devices is reliable, and set up monitoring for it. In my experience, if Safari (mac and iOS) cannot download the PAC file for some reason, it doesn't present a useful error message. When this happened to me it took a long time to track the problem down to a PAC file that I'd almost forgotten about.)
Topic: Safari & Web SubTopic: General Tags:
Nov ’22
Reply to Pac File shExpMatch
Can anyone please post an example I have something like this: function FindProxyForURL(url, host) { if ( shExpMatch(host,"*.example.com") || host == "xyz.abc.com" || host == "abc.xyz.com" ) { var c = "proxy.local"; return "PROXY "+c+":82; DIRECT"; } else { return "DIRECT"; } } I don't see anything obviously wrong in your code (though the definition of "normal" is missing). Do you have any evidence that the code is actually being fetched and executed?
Topic: Safari & Web SubTopic: General Tags:
Nov ’22
Reply to SQL Server
Please suggest me any substitute for this which is safe PostgreSQL. and easy to use. Well maybe not, it depends. There is certainly a learning curve involved. Of course it depends a lot on what you want to use it for...
Topic: Design SubTopic: General Tags:
Nov ’22
Reply to Apple Sales Report Currency
The currency conversion is applied when Apple makes the payment to you, not when the customer makes the purchase from Apple. You can see the rates used on the "Payments & Financial Reports" screen in AppStore Connect, after the payment has been made to you. (Before the payment is made to you, the screen shows an estimate.) There is no API to download this, but you can download a CSV file by clicking on the small square with an arrow pointing down on that page. I filed a bug requesting an API to download this (FB5446792) in 2017, which was closed as a duplicate. Feel free to submit your own!
Nov ’22
Reply to Dashed Line in Metal
You don’t need a 1D texture. You use logic in the fragment shader to determine whether you’re in a dash or a gap based on the distance along the line. Example in webgl: https://www.shadertoy.com/view/ldGfWt
Topic: Graphics & Games SubTopic: Metal Tags:
Nov ’22