StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.4/10 (10 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Pupeteer stopped working without a code update

26 April 2024 @ 1:07 pm

Both our production site and testing site went offline as Pupeteer stopped generating PDFs for agreements. Neither site was updated in other a month so I doubt it's a code change thats causing the issue. Error messge received is: ErrorResponse { error: true, type: ' Puppeteer_PDF_Error', message: 'Navigation failed because browser has disconnected!' } We're tried all the standard things, updating the libraries, redeploying etc. but no luck Any idea how to do resolve this issue. Also how can this happen if the code base wasn't updated?

Vee-validate - how to get all dirty fields

26 April 2024 @ 1:07 pm

In my vue project I'm doing form validation with the help of vee-validate, primarily using useForm. One handy feature is the meta object, which has the dirty flag, indicating if any field has changed from its initial value. Since I'm handling quite big forms with deep object schemas, I want to restrict the data for update requests to the fields that are actually updated - meaning that every field that has not changed is to be ditched from the final values object. I figured it would be doable by filtering the fields individually by their dirty flags, but I'm a bit lost since useForm does not seem to provide a way to iterate through all fields or look up if any of those are dirty. There only seems to be the aggregated meta object. How would one using useForm be able to find out which values have actually changed in the form, not only for flat but also for nested object

Shiny selectInput with named option groups and one unnamed option group

26 April 2024 @ 1:07 pm

I need a dropdown menu that would have certain groups of choices, with the first option being "Use all data". That choice makes up it's own option group, and this group doesn't need a name. Unfortunately, selectInput() doesn't allow that. Either all option groups need to be names, or none of them can. I tried to manipulate the tags using htmltools and tagQuery(), but the individual optgroup-header tags cannot be accessed. A reprex: library(shiny) grouped_options <- list( "Named category 1" = list( "list_choice1" ), # this category shouldn't have a visible name "NONAME" = list( "list_choice2", "list_choice3" ), "Named category 2" = list( "list_choice5", "list_choice6" ) ) dropdown_element <- selectInput(inputId = "dd1", label = "Dropdown menu with cate

Class CodeIgniter\Log\Logger" not found

26 April 2024 @ 1:06 pm

I am in the progress of migrating my code from Codeigniter 4.3.4 to 4.5.1. When running through the web (auto testing doesn't produce this error), I get the error that Class "CodeIgniter\Log\Logger" not found. Here is my backtrace: <b>Fatal error</b>: Uncaught Error: Class &quot;CodeIgniter\Log\Logger&quot; not found in /var/www/html/project/system_4.5.1/Config/Services.php:403 Stack trace: #0 /var/www/html/project/system_4.5.1/Config/BaseService.php(311): CodeIgniter\Config\Services::logger() #1 /var/www/html/project/system_4.5.1/Config/BaseService.php(250): CodeIgniter\Config\BaseService::__callStatic() #2 /var/www/html/project/system_4.5.1/Config/Services.php(400): CodeIgniter\Config\BaseService::getSharedInstance() #3 /var/www/html/project/system_4.5.1/Config/BaseService.php(311): CodeIgniter\Config\Services::logger() #4 /var/www/html/project/system_4.5.1/Config/BaseService.php(201): CodeIgniter\Config\BaseService

Create programatically iCalendar file so expanding section "Join Zoom Meeting" appears

26 April 2024 @ 1:06 pm

everyone. In Google Calendar if zoom meeting is created in the event then expandable section "Join Zoom Meeting" with ID and passcode appears. What ical properties and values of ics files are responsible for creating that "Join Zoom Meeting" section? Google Calendar event I work on api that sends emails with ics attachments and I need to pragmatically construct such an ics that creates event with "Join Zoom Meeting" section (when user receives email). I examine ics file of manually created event and it seems that Description property carries a lot of data, not all of it is displayed in event card, but when I try to use this Description in api desired section does not show up. How to make that "Join Zoom Meeting" section appear?

What happens after terminal release of Oracle Products(OBIEE 12c)?

26 April 2024 @ 1:06 pm

We are currently using OBIEE 12.2.1.4 along with BIP. Now are planning to upgrade to OAS. As pet this document https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=462188528709559&id=1664916.1&_afrWindowMode=0&_adf.ctrl-state=8tj69asip_365 , OBIEE 12.2.1.4 on FMW 12.2.1.4 is the terminal release. What does that mean? If we are moving to OAS that has classic OBIEE option, will that be disabled after OBIEE terminal release? What About BIP as we have many reports still on BIP? I have gone through so many documents but no conclusion.Thanks in advance.

Is there anyone know if there's a lib, api or tool in javascript that converts/modify portrait images to landscape?

26 April 2024 @ 1:05 pm

I've searching for several quite now if there are tools that can help me achieve what I want. So I have several pictures that are mixed portrait and landscape that is showing in a galleryList. I want my portraits ones to be the same width and height size with my landscape by simple adding a blur background on the side something like this enter image description here I'm doing this manually by using an online tool app. But is there any way possible to automate this using javascript or specifically in Nextjs. Do you have any idea how to achieve this? Thanks a lot!

Not able to get the links along with the text using google sheets api

26 April 2024 @ 1:05 pm

I have a google sheet where links are added using Ctrl + k method, now when I am trying to use this api listed on this page, I am not getting the links. I have tried all the options listed on the page, but none is working. https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get I am testing the api on the console https://console.cloud.google.com/marketplace/product/google/sheets.googleapis.com If some link is in the form =HYPERLINK(link,value) then only I am able to get it, but not if linked with Ctrl + k option. Please help.

AzureStaticWebApp push from artifacts error Failed to find a default file

26 April 2024 @ 1:05 pm

When i try to build angular app using azure devops and deploy to azure static web app i'm receiving below error `Failed to find a default file in the app artifacts folder (/). Valid default files: index.html,Index.html. enter image description here` here's the yaml code for the deployment section # Deploy pipeline trigger: none stages: - stage: Deploy pool: vmImage: 'ubuntu-latest' jobs: - job: DeployFrontEnd steps: - task: DownloadPipelineArtifact@2 inputs: buildType: 'specific' project: 'POMaster' definition: 'frontend' buildVersionToDownload: 'latest' allowPartiallySucceededBuilds: true allowFailedBuilds: true artifactName: 'app' targetPath: '$(Pipeline.Workspace)' - bash: cd $(Pipeline

3D geometries not rendered in PGAdmin

26 April 2024 @ 12:48 pm

I am new in GIS, I need to generate source and target i.e.: Oracle Spatial 3D Code And PostGIS 3D code for development team as they are developing a conversion tool and they need patterns to implement in the tool, However, I am not able to find any good resources to generate Oracle Spatial 3D Code. Generated below PostGIS code through chatGPT but PGAdmin is giving below error. QGIS is also not showing any geometry when fetching this table in QGIS. Can I get some real time Oracle Spatial 3D geometries or 3D shapefiles ? So that I can create shape files or GeoJSON files by loading them in Oracle Spatial Studio and use those shape files or GeoJSON files to generate PostGIS code after uploading those shape files in QGIS. QGIS can generate PostGIS code. CREATE TABLE buildings ( id SERIAL PRIMARY KEY, name VARCHAR(100), geom GEOMETRY(GeometryZ, 4326) -- GeometryZ indicates 3D geometry, 4326 is the SRID for WGS 84 ); -- Add some sample dat