October 24, 2024
Chicago 12, Melborne City, USA
javascript

How to send push notifications or keep WebSocket active when a browser tab becomes inactive or snoozed in Vue.js?

I have a web dashboard built using Vue.js that relies on WebSockets (Pusher) to receive orders in real-time. When an order is received, a sound plays to notify the user. Everything works fine when the tab is active, but as soon as the browser tab becomes inactive or snoozed, the WebSocket connection seems to stop

Read More
SQL

Need a query to find duplicate data

How can I write a query in SQL Server that will return the highlighted rows shown in the pic based off the fact the highlighted rows have RecordData that is essentially contained in the row with the same policy. Any advice or direction would be most appreciated. You need to sign in to view this

Read More
CSS

Align child elements of different blocks

I’m trying to get the button in 3 columns in a WordPress block to stay at the bottom. It’s a section block with 3 columns. Screengrab of colums Having tried various options (including “position: absolute; bottom: 0;” and “margin-top: auto;”) the only thing that seems to work is making the columns grids. The only problem

Read More
jQuery

jQuery Datepicker Widget, sending value selected to backend (or $.Ajax()) different of showed at frontend

i am using the lib https://jqueryui.com/datepicker/ I would like found the proprierty that send the value selected to Backend with american format. Exemple: JS <script src="https://code.jquery.com/ui/1.14.0/jquery-ui.js"></script> <script> $( function() { $( "#datepicker" ).datepicker(); $.datepicker.regional['pt-BR'] = { closeText: 'Fechar', prevText: 'Anterior', nextText: 'Próximo', currentText: 'Nyní', monthNames: ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto','Setembro', 'Outubro', 'Novembro',

Read More
HTML

why does live server injection code is showing in my webpage that am working on , it's litearly showing what's inside the script?

< ![CDATA[ < --For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i < sheets.length; ++i) { var elem = sheets[i]; var parent = elem.parentElement || head; parent.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel !=

Read More
Android

Why aren't all notifications debugged?

I’m creating an application in which I want to hide all notifications that it creates, including the background process, by debugging its display for a while. But I ran into a problem that not all notifications of my application are hidden, but some third-party notifications may be hidden, which I don’t need at all. I

Read More
PHP

Can you get the value of an Input from the Input name?

Using PHP, and I am trying to get the value of an Input field by getting the Input name. I have a Gravity Form poll which has two radio button inputs. (Apparently in Gravity Form, polls are not treated as radio buttons, so I cannot set the value from the form edit or creation.) In

Read More
C#

Problem with combine STM32cubeIDE with PlatformIO

I wanted to use VSC with PlatformIO instead STM32cubeIDE (after configure pin and generate code), but though videos on YT I have problem with finding main.h by VSC – src\Core\Src\main.c:20:10: fatal error: main.h: No such file or directory. I found solution where someone transfer files from src/Core/Inc to include how it looks and that’s work

Read More
java

Hazelcast is starting in a Java modular environment (Java 9 and newer) but without proper access to required Java packages

Java 21 with Spring boot 3.3.2 and Hazelcast 5.4.0 application has warning at the time of startup Hazelcast is starting in a Java modular environment (Java 9 and newer) but without proper access to required Java packages. Use additional Java arguments to provide Hazelcast access to Java internal API. The internal API access is used

Read More
python

How to resolve KeyError when chaining llmss

I’m trying to create a process where I can break down a user query into multiple searchable queries using LLMs and then fetch the results online. I’ve set up two chains for extracting information and searching, but encountered a KeyError: 'analysis' during execution. Here’s the relevant code snippet:: search_tool = DuckDuckGoSearchRun() extract_chain = ( extract_prompt

Read More