October 23, 2024
Chicago 12, Melborne City, USA
java

ERROR Connection to localhost:5432 refused

При попытке запустить docker-compose с 2 контейнерами, контейнер с java почему то стучится в localhost:5432, хотя я указал другую переменную среды: Dockerfile: FROM openjdk:22 ARG APP_JAR=target/*.jar ADD ${APP_JAR} course.jar EXPOSE 8080 ENTRYPOINT ["java", "-jar", "course.jar"] docker-compose.yml: version: "3.9" services: course_pg_17: image: postgres restart: always container_name: course_pg_17 ports: - "5433:5432" environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB:

Read More
python

AssertionError: Pipeline finished with 0 models for some reason

I’m facing error on one or more models failed. I try to add Text Feature, but unsuccessful on implementing it (Same error). The data is bank movements, the target is a column named "Categoria". The idea behind the code is to train the Tabular Data [id, Date, TextTransactionBrief, Charge, Deposit] and in base of that

Read More
GPL

Free GPL Pwork – Intranet For WordPress

All In One Intranet Solution You no longer need to use a bloated theme and a bunch of plugins to create your own intranet platform. Pwork works with any theme and comes with everything you need! Personal Dashboard The user dashboard includes drag-and-drop sortable widgets that provide users with data specific to their needs and

Read More
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