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
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….
Replies
Boosts
Views
Activity
Nov ’22
Reply to Cannot catch `std::invalid_argument` on clang++ under m1 -fno-rtti
I guess this is also you: https://stackoverflow.com/questions/74441543/why-stdinvalid-argument-is-not-caught What happens if you catch without the const ?
Replies
Boosts
Views
Activity
Nov ’22
Reply to LocationManager Error when requesting location
As the error message says: Delegate must respond to locationManager:didFailWithError: the issue may be because i need to include the function func locationManager( _ manager: CLLocationManager, didFailWithError error: Error ) Yes!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to itmstransporter 3.0.0 broken in Linux.
Some other uses of itms transporter were turned off at the start of November. Maybe this is collateral damage? Have any of you submitted support requests?
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Nov ’22
Reply to MapView - Exceeded Metal Buffer threshold of 50000 resources
See also: https://developer.apple.com/forums/thread/719084
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
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!
Replies
Boosts
Views
Activity
Nov ’22
Reply to Pac File shExpMatch
OK, I guess I have only ever looked at the host, not the url.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Apple Sales Report Currency
Go to https://appstoreconnect.apple.com/ Log in if necessary. There is a huge button labelled "Payments and Financial Reports".
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Nov ’22
Reply to C++ parallel programming using a std library.
Please reformat that as a code block.
Replies
Boosts
Views
Activity
Nov ’22
Reply to How to measure ARM64 branch size ?
This is probably a better question for the Unity people.
Replies
Boosts
Views
Activity
Nov ’22
Reply to Barometer sensitivy for devices needed
I doubt that any such information is available.
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Nov ’22