There's a lot of discussion out there about the possibility of heating a rogue planet geothermally. My understanding is that a geothermal heat source would circulate via convection and not really involve radiant heating. Now, if the advocates of radiant indoor heating are to be believed, humans do better with radiant heating as opposed to conductive, which makes sense, given that earth's primary source of heating, the sun, gives off radiant heat, and convection is only a secondary means of circulating the heat. Is this purely a matter of energy efficiency, or is there a biological component? W
I've been using RxJs and Angular for a long time now, and was very comfortable with it. Then Angular v22 came along and broke my world. Specifically, it broke how I understood testing things like effects. Previously, I would create a jasmine SpyObj for an HTTP service object, use jasmine-marbles to define the flow, and then test my expectations, like this: describe('loading the current user', () => { it('fires an action on success', () => { const serviceResponse = USER; const action = loadCurrentUser(); const outcome1 = loadCurrentUserSuccess({ user: USER }); const outcome2 = setReadComics({ e
I'm trying to make my Webflow website GDPR-compliant by hosting my fonts locally instead of loading them from Google. I uploaded Montserrat as a custom font in Webflow and changed my elements to use the uploaded custom font. I also checked the Custom Code sections and there is no Google Fonts import there. However, the published website still loads Google's WebFont loader. In the browser Network/HTML I can see: <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script> and Webflow generates: WebFont.load({ google: { families: ["Montserrat:100,100italic,200,200itali
I have a C++ desktop application with a simple expiry-date license check based on the local system clock. The application is normally used with an external device/modem, but I cannot rely on that device as a time source: the tool may legitimately be used while the device is disconnected, malfunctioning, not yet initialized, or replaced by a simulator. Requiring permanent Internet access is also undesirable because the tool may need to operate offline during testing. At startup I currently do something like: bool LicenseManager::IsDateValid() { return wxDateTime::Now() <= GetExpiryDate(); } I u
I’m practicing Selenium and ran into an issue with screenshots. For a normal screenshot, I’m using: File source = ((TakesScreenshot) driver) .getScreenshotAs(OutputType.FILE); This works fine with my Chromium-based driver. However, when I try to take a full-page screenshot: File screenshot = ((HasFullPageScreenshot) driver) .getFullPageScreenshotAs(OutputType.FILE); HasFullPageScreenshot seems to be associated with Firefox in my IDE/imports, and I’m not sure how to use it with a Chromium-based driver. I want to continue using a Chromium-based driver (Chrome/Chromium) rather than Firefox. What
I am working on a latin to N'ko translator. I get a warning for this type of code: text=re.sub(r'([ߊߍߋߌߐߏߎ][\u07F2]*)\u0300','\g<1>\u07EC',text,0,re.UNICODE|re.MULTILINE) SyntaxWarning: invalid escape sequence '\g' I get an error for this correction on the second term: text=re.sub(r'([ߊߍߋߌߐߏߎ][\u07F2]*)\u0300',r'\g<1>\u07EC',text,0,re.UNICODE|re.MULTILINE) re.error: bad escape \u at position 5 A double slash \\u instead of \u: no warning and no error message but the whole string u07EC gets inserted, not the Unicode character. What am I missing here?
C++26 apparently introduces a new type template named std::indirect<T>. If it's an "indirect T", then it's some sort of reference to a T, or pointer to a T, right? Well - why do we need those? C++ already has not just raw pointers and references, but also smart pointers with ownership semantics - std::unique_ptr, std::shared_ptr etc.; as well as std::reference_wrapper if you want fancier references. So why yet another one of these reference-types? What's so special about it?
I'm using Spring Boot 3 / Spring Security 6 with JPA. My JWT contains only the user's email. On every request, my filter loads the User entity from the DB and puts it in the SecurityContext: String email = jwtService.extractEmail(token); User user = userRepository.findByEmail(email).orElseThrow(); var auth = new UsernamePasswordAuthenticationToken( user, null, user.getAuthorities()); SecurityContextHolder.getContext().setAuthentication(auth); The entity is detached by the time it reaches my services, so when I need to modify the user I have to fetch it again, which costs a second query per req
My Spring Boot service calls another API to start an operation that can take a few minutes: My service -> POST /operations -> Provider Normally the provider returns an operationId which I store and then use to check the status of the operation later. What should I do when the initial POST request times out? The provider might receive the request and successfully start the operation, but the response gets lost. Now my service has no way of knowing whether the operation was created or not. If I retry the POST I could be creating a duplicate operation. But if I don't, I might leave a valid operat
I’m planning to travel from Himandhoo to Mahibadhoo without going back to Malé. I found references to MTCC ferry route 310 from Himandhoo to Mahibadhoo, but I’m not sure whether this connection is currently operating. Is there a ferry connection from Himandhoo to Mahibadhoo operating nowadays? First hand information from 2025 or 2026 would be especially helpful.
I just did the update and the Angular build freezes in my GitLab pipeline on a FreeBSD runner. Logs: npm notice run [email protected] npx npm notice run 'ng' build --base-href=/ui/ ❯ Building... sass --embedded is unavailable in pure JS mode. This "sass" line is not printed on my local machine (Windows) where the build runs fine. I noticed that Angular v22.2 adds the "sass-embedded" as new dependency but I couldn't find any information about that change. Interestingly, the build just freezes on the pipeline, no more output. As https://www.npmjs.com/package/sass-embedded states is a drop-in replacement
I’m working on an Angular project where we have an order list with filters, pagination and sorting. All of these values should be stored in the URL, so users can share or bookmark the current view My current setup looks roughly like this: readonly query = signal<OrderQuery>({ search: '', status: 'all', page: 1, pageSize: 25, sort: 'createdAt' }); readonly orders = toSignal( toObservable(this.query).pipe( debounceTime(100), distinctUntilChanged((a, b) => JSON.stringify(a) === JSON.stringify(b)), switchMap(query => this.orderService.search(query)) ), { initialValue: null } ); constructor() { thi
I have a Salesforce internal React app (hosted on the platform, served from a *.salesforce.app domain) that needs to call an Apex REST resource defined in the same org. Apex Class is defined as: @RestResource(urlMapping='/opportunities/*') global with sharing class OpportunityApi { @HttpGet global static List<Opportunity> getOpportunities() { return [SELECT Id, Name, Amount, StageName, CloseDate FROM Opportunity WITH USER_MODE LIMIT 200]; } } App URL: https://<my-domain>--c.trailblaze.my.salesforce.app/app/c__Reacttest1 I tried calling the Apex REST endpoint directly from the browser: GET http
I'm developing an Android app that continuously scans for BLE advertisements in the background. I use a foreground service to perform BLE scanning, and I restart the scanner every 3 minutes. The sensor periodically broadcasts BLE advertisements, and I want the app to receive these advertisements reliably without missing them. When the app is in the foreground, the scan duty cycle is effectively 100%. However, as soon as the app goes into the background or the screen is turned off, it drops to around 5%. I confirmed this behavior by analyzing the HCI snoop log, and captured the actual LE_Set_Ex
Laravel database queue works manually but not from Hostinger Cron on Hostinger I am using Laravel 12 with PHP 8.2.33 on Hostinger shared hosting. My Laravel application is located at: /home/u581725146/domains/nexcrm.in/public_html PHP CLI path: /usr/bin/php PHP version: PHP 8.2.33 (cli) My queue configuration is: QUEUE_CONNECTION=database After a successful Razorpay payment, a queued listener called: App\Listeners\SendPaymentConfirmation is added to the jobs table. The queue works manually If I SSH into the server and run: cd /home/u581725146/domains/nexcrm.in/public_html /usr/bin/php artisan
I'm trying to use Rhombus static in my program, and there was only one place that I was unable to do so. I'm implementing the algorithm J for Hindley-Milner type inference, and I have something such as: method unify(ty1 :: Type, ty2 :: Type): let ty1 = prune(ty1) let ty2 = prune(ty2) cond | ty1 == ty2: #void | ty1 is_a TFunction && ty2 is_a TFunction: let ty1 :~ TFunction = ty1 // HERE: how do I get rid of this? let ty2 :~ TFunction = ty2 // HERE: how do I get rid of this? guard ty1.parameters.length() == ty2.parameters.length() | error(@str{Can't match @ty1 with @ty2}) for (x in ty1.parameter
I have a dart class A that needs to notify some event to the class B which instantiated it. I have this code in class B: MqttComm().oMessageReceived.listen((message) { // code that acts according to the received event }); On the other hand, class A has this definition: final _messageController = StreamController<ReceivedMqttMessage>.broadcast(); Stream<ReceivedMqttMessage> get oMessageReceived => _messageController.stream; Where ReceivedMqttMessage is this: class ReceivedMqttMessage { final String topic; final String payload; ReceivedMqttMessage(this.topic, this.payload); } Finally, class A no
I am using the K6 tool to perform some load test on some of my services. I have a dataset of captured requests that I'd like to replay that is quite big and thus I'd like to use the sharedArray component of K6 to load all that in the underlying memory once and then simply fetch from that in each Virtual User (VU). The problem I am facing is that I do not want two (or more) VUs to send the same request. K6 does not offer a way to handle global state (at least not in this regard) so each VU does not know which requests have already been sent by other VUs. An idea would be to assign VU_i the rows
I tried to follow a JavaScript tutorial. I use Visual Studio Code with "Live Server" extension by Ritwick Dey and the integrated browser. Other user input/output like confirm and alert are working as intended, but when I add prompt: const name = prompt("What is your name?: "); I get the following error in console window: index.js:1 Uncaught Error: prompt() is not supported. I run my code from a index.js file, which I link to my index.html at the end of the body tag. But the same happens when scripts in an html document.
I have a 3-node Apache ActiveMQ Artemis 2.57.0 cluster (ss-0, ss-1, ss-2) using ON_DEMAND message load balancing. The same queue exists on all three nodes. I use message grouping (JMSXGroupID) to ensure that messages with the same key are processed sequentially by a single consumer. The consumers are Spring Boot application instances using JMS listeners (@JmsListener). Messages are published by a separate producer application that sets the JMSXGroupID header. Scenario All three Artemis nodes initially have active consumers for the same queue. Messages containing JMSXGroupID are published. The
I have a 3-node Apache Artemis 2.57.0 cluster (ss-0, ss-1, ss-2) using ON_DEMAND message load balancing. The same queue exists on all three nodes. I use message grouping (JMSXGroupID) to ensure that messages with the same key are processed in order by a single consumer. The consumers are Spring Boot application instances using JMS listeners (@JmsListener). Messages are published by a separate producer application that sets the JMSXGroupID header. I initially reproduced this issue using Artemis 2.40.0 without a grouping-handler. Following the recommendations, I upgraded to Artemis 2.57.0 and co
My Xcode updated to version 27, and now it needs MetalToolChain 27 as well. However, when downloading, it is stuck at preparing to download. I have done the CLI download too, using xcodebuild -downloadComponent metalToolchain, but still stuck at downloading asset, its not progressing beyond that. I have reinstalled Xcode, restarted my Mac but all have not helped. when using the manifest file in /System/Library/AssetsV2/com_apple_MobileAsset_MetalToolchain, am able to download the file using the link __BaseURL and __RelativePath, so in terms of internet (since I was also able to redownload the
Python 3.12 and PEP 695 introduced type parameter lists, which can be bounded, e.g. restricted to subclasses of a specific class: class BaseClass: pass class NewClass(BaseClass): pass def some_fun[T: BaseClass](somethings_type: type[T]): pass is valid in Python 3.12 from a syntax point of view. However, running the same code in Python 3.9 results in a SyntaxError: python3.9 test.py File "/home/agocht/test/pep-965/test.py", line 9 def some_fun[T: BaseClass](somethings_type: type[T]): ^ SyntaxError: invalid syntax Is there a good way to use this feature while still writing backwards-compatible c
My world is essentially like a parallel version of Earth that's connected to our world from deaths. Like an afterlife almost, when someone in our world dies they get automatically sent into this world to get born again, with some of their memories carrying over. This world is an exact geographic copy of Earth, so people are born into this world somewhat nearby the same relative location between where they died in our world. Everyone in this world first lived a life in our world and died, leading them to get reborn here. When people in this world die they don't get reborn into again, only peopl
I make changes and try to commit. IDEA runs inspections and shows me the number of warnings and errors as well as the "Commit and push checks failed" popup. Neither the "...warnings" link nor the "Review code analysis" link do anything any more. I suspect I've misconfigured something but I don't know where.
In NetSuite, I have created a Purchase Order (PO) from a Requisition (PR). Afterwards, I updated the item on line-level of the PO which resulted in link between PR and PO getting removed. Is there a way to re-link the PO and PR again (I have reverted the Item on PO)? Is this possible using SuiteScript?
As far as I've understood, what I am calling "blocking loading overlay" is not just a "backdrop". The "backdrop" is a part of other components (e. g. modal dialogs) but "blocking loading overlay" is the compound one includes: Backdrop Loading indicator Visually hidden message Here is the implementation example from MUI: <Backdrop sx={(theme) => ({ color: '#fff', zIndex: theme.zIndex.drawer + 1 })} open={open} onClick={handleClose} > <CircularProgress color="inherit" /> </Backdrop> I suppose, the output HTML is not enough accessible: <div class="MuiBackdrop-root css-19metyz" style="opacity: 1;
On BC Ferries today from Vancouver to Swartz bay, I parked my sedan on the vehicle deck. Around 30 people - with their luggage - walked in front of my sedan, right up to the front of the vehicle deck. They were standing next to, in plain view of, many BC Ferries staff. I was scratching my head why. When the ferry docked, why does BC ferries allow them to walk off the vehicle ramp and onto Swartz bay? Doesn't BC Ferries require all passengers to exit the ferry up on the passenger decks?