jump to:all–mastodon–bluesky–lemmy–lobsters–dev–stack–wiki–rss–hn
wwebbit
view: | | |

Front page / Stack Overflow · hot

30 shown · updated 2m ago · read only
  1. How to use JMESPath to filter results if the key contains a period? (stackoverflow.com)stack

    28 points by davidalayachew in stackoverflow.com · 3h ago · stack comments

    I am using aws cli to call AWS Secrets Manager. Here is the command I am running. aws secretsmanager get-secret-value --secret-id MY_SECRET_ID Upon calling it, I get the following output. { //unrelated key:value pairs "SecretString": "{\"abc.xyz.tuv\":\"some_value\"}" //other un…
  2. Getting a timeout error when trying to make a node web server run a stored proc on SQL Server 2022 Express (stackoverflow.com)stack

    27 points by FlyRunningHare5 in stackoverflow.com · 4h ago · stack comments

    This code works just fine if I try to run a command from powershell to run the stored procedure: sqlcmd.exe -S "MYSERVERNAME\SQLEXPRESS01" -d DB1 -U "User1" -P "Password1" -Q "declare @ReturnValue int declare @ReturnMessage nvarchar(4000) exec spMyStoredProc 'employeeNumber', nu…
  3. Can I broadcast with numpy character find (stackoverflow.com)stack

    26 points by I.P. Freeley in stackoverflow.com · 6h ago · stack comments

    I have an array of potential substrings and an array of full strings. I'd like to know which elements of the potential substrings are indeed found as substrings in the full array. import numpy as np potential_substrings = np.array(["visit a", "visit b", "visit c, 1", "visit d"])…
  4. How to print a list containing my data type? (stackoverflow.com)stack

    25 points by Markin _ in stackoverflow.com · 7h ago · stack comments

    I'm starting to learn about OOP in C#, and I have a problem with outputting a list containing my custom objects. For example, I get data about Patient s and HospitalRoom and add them to the list in method AddPatient . I want to print my list, but I can't and I don't understand h…
    filed under c#listoop
  5. Waiting for browser to repaint screen, using requestAnimationFrame. Works for the 1st try (stackoverflow.com)stack

    24 points by mandoguy in stackoverflow.com · 7h ago · stack comments

    Here's my full code: I expect "End of Test" to be the last message but it isn't. "back to yellow" is the last message. Tried on Edge and Firefox. What I get: div goes yellow, followed by 'should be yellow' div goes green, followed by 'should be green' Message: "End of Test" div…
  6. PowerShell Get-Help Test-Path displays incorrect syntax diagrams (stackoverflow.com)stack

    23 points by Stack0verflow in stackoverflow.com · 10h ago · stack comments

    On Windows, in PowerShell 7.6.6: Get-Help Test-Path gives me this: NAME Test-Path SYNOPSIS Determines whether all elements of a path exist. SYNTAX Test-Path [-Credential <System.Management.Automation.PSCredential>] [-Exclude <System.String[]>] [-Filter <System.String>] [-Include…
  7. What is the difference between `std::launder(ptr)` and `reinterpret_cast (reinterpret_cast (ptr))` in C++29? (stackoverflow.com)stack

    22 points by cpplearner in stackoverflow.com · 16h ago · stack comments

    In N5054, reinterpret_cast from integer to pointer is specified as ( [expr.reinterpret.cast] ): A value of integral type or enumeration type can be explicitly converted to a pointer. If the value is one that can be produced by converting one or more pointer values to an integral…
    filed under c++pointersc++29
  8. How to express a conditionally required parameter in a Pydantic-validated tool/API schema, without losing the upfront schema validation? (stackoverflow.com)stack

    21 points by stefisha in stackoverflow.com · 18h ago · stack comments

    I have a function (specifically an MCP tool built with FastMCP, but this is really a Pydantic/JSON Schema question) where one parameter is required in the normal case, but must be optional when a separate flag parameter is set, since in that branch it genuinely doesn't apply. Si…
  9. Changing the x-scale and its breaks in a cumulative incidence plot risk table using ggcuminc and add_risktable in R (stackoverflow.com)stack

    20 points by SIO in stackoverflow.com · 34h ago · stack comments

    I have been trying to figure out how code/get a risk table to have a similar x-axis scale and same number of breaks to that of the cumulative incidence curve. I am hoping someone else figured this out because I can't seem to get it to work or find information on this. I have fou…
  10. Where is the server document root? (stackoverflow.com)stack

    19 points by Elise Berntson in stackoverflow.com · 5d ago · stack comments

    It says in phpMyAdmin manual to place the folder in server document root I'm guessing this is not the same as ServerRoot or DocumentRoot. Here is a output of my xampp: 22:57:11 [main] Initializing Control Panel 22:57:11 [main] Windows Version: Home 64-bit 22:57:11 [main] XAMPP V…
  11. Reading and writing data into a list containing a data class (stackoverflow.com)stack

    18 points by Mick in stackoverflow.com · 10d ago · stack comments

    I am creating an app to log activity and then manipulate it to show the data in different ways, such as graphs, averages etc. I need to be able to populate the data from a file when I start the app and then be able to add more items or read items from the list. With help, I have…
  12. Prevent Angular hydration errors when using Signals with browser-only state? (stackoverflow.com)stack

    17 points by Angular Overlord in stackoverflow.com · 15d ago · stack comments

    I have an Angular application with SSR and I recently enabled hydration. Everything works fine without hydration, but after enabling it I sometimes get hydration errors when the page contains user specific state. A simplified version of my service looks like this: @Injectable({…
  13. how to keep Angular Signals and Router query params in sync without creating loops (stackoverflow.com)stack

    16 points by Angular Overlord in stackoverflow.com · 15d ago · stack comments

    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>({ se…
  14. Misalignment between a raster overlay and DEM in rayshader 3D maps (stackoverflow.com)stack

    15 points by Saïd Maanan in stackoverflow.com · 14mo ago · stack comments

    I am using the rayshader package to create a 3D terrain visualization of a certain area. My R code is as follows: # ───────────────────────────────────────────────────────── # 1. Setup # ───────────────────────────────────────────────────────── pacman::p_load( osmdata, rstac, ti…
  15. How to select multiple columns based on a condition in SQL? (stackoverflow.com)stack

    14 points by sundy in stackoverflow.com · 5y ago · stack comments

    I have a table, the columns are like this: | id | position | A | B | C | D | E | I'm selecting by id. If the position is '1', it should return column A, B, C. If not, it should return column D, E For example, if the table is: | id | position | A | B | C | D | E | | 0 | 1 | a | b…
    filed under mysqlsql
  16. Visual Studio Code Extension Install/Update Error: "Failed to load resource: net::ERR_CONNECTION_RESET" (stackoverflow.com)stack

    12 points by Brandon Ivander in stackoverflow.com · 5y ago · stack comments

    Why can't I download or update any extensions from VS Code 1.54.3 on Windows 10 1930? Every time I tried to update or install those extensions, it always shows this error in the Dev Tools: Failed to load resource: net::ERR_CONNECTION_RESET ERR [uncaught exception in sharedProces…
    filed under vs-code
  17. Nginx error https . curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number (stackoverflow.com)stack

    11 points by emmanuel sio in stackoverflow.com · 6y ago · stack comments

    Nginx. I cant access my NodeJs app listening in port 3000 via https. I can do through http. https://www.modelistas.tk:3000/api/status throws error. I tried with curl Verbose output: root@ip-172-31-50-215:/opt/letsencrypt# curl -v -k https://modelistas.tk:3000/api/status * Trying…
    filed under sslnginxcurlhttps
  18. Should I capitalize constant in Python? (stackoverflow.com)stack

    8 points by boh in stackoverflow.com · 8y ago · stack comments

    In PEP8, the general rule is to declare constants in UPPER_CASE chars. In real life, there can be a number of situations: #!env python DATABASE_HOST = 'localhost' app = Flask('myapp') base_two = partial(int, base=2) Typically we consider string-type or numeric-type variables as…
    filed under python
  19. How to set image position from Javascript (stackoverflow.com)stack

    6 points by M.Kalidass in stackoverflow.com · 9y ago · stack comments

    In the following code, I can't set position for an image which is used in Javascript. document.getElementById("dis").disabled = true; var counter = 0; var x = document.getElementById("myDIV"); var y = document.createElement("img"); var y1 = document.createElement("img"); var y2…
    filed under javascript
  20. SOAP-ERROR: Parsing WSDL: Couldn't load from 'xxx/?wsdl' : Premature end of data in tag html line 1 (stackoverflow.com)stack

    5 points by crank1890 in stackoverflow.com · 12y ago · stack comments

    For days now, I've an error and no way to find a solution to fix this. <SOAP-ENV:Envelope><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.domain.com/?wsdl' : Premature end of data in tag html line 1…
  21. Bresenham's Midpoint Algorithm, How do I fill in the gaps? (stackoverflow.com)stack

    3 points by user2779315 in stackoverflow.com · 13y ago · stack comments

    I am attempting to draw a circle (and eventually fill the entire circle) using Bresenham's Midpoint Algorithm . It will become the outline for fog of war in a basic 2D game. Instead of drawing a line or filling a pixel I am changing values in a 2D vector. This works correctly an…
  22. Executable running in background (stackoverflow.com)stack

    2 points by Kriti in stackoverflow.com · 13y ago · stack comments

    I am trying to run a simple batch script via Jenkins (which in turn calls a VBscript). The script which i am executing in Jenkins is: cd "C:\Product\workspace" cscript Test.vbs The test.vbs is simple code which calls an exe in console mode Dim objShell Set objShell = WScript.Cre…
  23. Using BlockInput to block keyboard and mouse input (stackoverflow.com)stack

    1 points by hakunabean in stackoverflow.com · 14y ago · stack comments

    Here's a touchpad virtual keyboard button. When I press the 'TOUCH' on the screen, 'ab' will be displayed. I'm trying to use BlockInput to prevent any input of mouse and keyboard for 2 seconds just after the TOUCH button is pressed. But it doesn't work, I think need to set a tim…
    filed under c#.netwpf