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

Knowledge / Stack Overflow · hot matching “c”

30 shown · updated 3m ago · read only
  1. What "quirks" does \SplFileObject have? (stackoverflow.com)stack

    30 points by chx in stackoverflow.com · 47m ago · stack comments

    https://stackoverflow.com/a/40638544/308851 says if you want to type hint resources, I suggest using an \SplFileObject : This is not the best thing in the world, as \SplFileObject has a few quirks What, exactly are those quirks? In other words, how does \SplFileObject differ fro…
    filed under advicephp
  2. Docker BuildKit cache mount permission denied and lock contention during parallel rootless multi-arch builds (stackoverflow.com)stack

    29 points by bm manuranga in stackoverflow.com · 1h ago · stack comments

    We are running a CI/CD pipeline inside a hardened Kubernetes runner using Rootless Docker with BuildKit enabled. Our project is a Go-based microservice where we use BuildKit cache mounts ( --mount=type=cache ) to speed up module downloads across builds. However, when running par…
  3. Flutter Shorebird patch causes crashes when built on a different machine (stackoverflow.com)stack

    28 points by Kaushik Verma in stackoverflow.com · 1h ago · stack comments

    I am using Shorebird to deliver patches for my Flutter iOS application. Current Workflow I create a production build on Laptop 1 and submit it to the Apple App Store. After Apple approves the app, I release it to users. Later, I create a Shorebird patch containing a minor bug fi…
  4. Getting a timeout error when trying to make a node web server run a stored proc on SQL Server 2022 Express (stackoverflow.com)stack

    26 points by FlyRunningHare5 in stackoverflow.com · 5h 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…
  5. How can a Git pre-receive hook reject pushes that introduce oversized blobs? (stackoverflow.com)stack

    25 points by Aaqibhafeez Khan in stackoverflow.com · 7h ago · stack comments

    In a shared Git repository, generated build artifacts and large binary files can occasionally be committed accidentally. Removing these files in later commits removes them from the current working tree, but their historical versions can continue to contribute to repository size.…
    filed under gitgithooks
  6. How to print a list containing my data type? (stackoverflow.com)stack

    24 points by Markin _ in stackoverflow.com · 8h 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
  7. PowerShell Get-Help Test-Path displays incorrect syntax diagrams (stackoverflow.com)stack

    23 points by Stack0verflow in stackoverflow.com · 12h 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…
  8. 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 · 17h 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
  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

    21 points by SIO in stackoverflow.com · 35h 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. Regex with optional whitespace/dot combination (stackoverflow.com)stack

    20 points by StOMicha in stackoverflow.com · 2d ago · stack comments

    My regex is: /X1( ?C?(arbon)? (Gen(\.? ?)\b([0-9]|[1][0-3])\b))/gi Testing it, it's OK with X1 Carbon Gen.8 X1 Carbon Gen 8 but not with: X1 Carbon Gen8 Why and how to include Gen.8 into the findings?
    filed under regex
  11. How to get instance ID in Wix CLI embedded script? (stackoverflow.com)stack

    19 points by Razmik Karapetyan in stackoverflow.com · 9mo ago · stack comments

    I have an issue with my Wix CLI project and would appreciate your help. Context: The Wix Dashboard data is passed to and stored in our MySQL database by our PHP backend using the instance ID as a unique identifier for each site. Problem: I have created a custom embedded script u…
    filed under velo
  12. Cursor AI Agent sometimes applies code changes automatically without showing the “Keep” or “Undo” options (stackoverflow.com)stack

    18 points by Shay Zingboim in stackoverflow.com · 10mo ago · stack comments

    I’m using the AI Agent in Cursor (the IDE), and I’m running into an inconsistent issue when it suggests code changes. Most of the time, the agent shows the usual interface where I can review the proposed edits and choose between “Keep” or “Undo”. However, fairly often (but not a…
    filed under cursor-ide
  13. Misalignment between a raster overlay and DEM in rayshader 3D maps (stackoverflow.com)stack

    17 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…
  14. php artisan serve (Failed to listen on 127.0.0.1:8000 (reason: ?)) (stackoverflow.com)stack

    16 points by Nyanor Nathaniel Owusu Achiaw in stackoverflow.com · 2y ago · stack comments

    I recently installed Laravel Herd for my Laravel projects. However, I encountered some issues: Nginx log error: 2024/06/05 22:20:17 [emerg] 8764#8936: bind() to 127.0.0.1:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) When…
  15. Unable to upload videos on Meta Business Suite (stackoverflow.com)stack

    15 points by Cole in stackoverflow.com · 3y ago · stack comments

    I just started using Meta Business Suite yesterday to schedule my Instagram Reel posts. When I first started using it everything worked fine. After I scheduled several posts it stopped working. Now when I go to upload a video it just gets stuck at 0%. I even tried uploading a vi…
    filed under facebookinstagram
  16. Display the values in the console log when Submit button is clicked (stackoverflow.com)stack

    14 points by Catalin Dumitru Popa in stackoverflow.com · 4y ago · stack comments

    I can't seem to make this work. Beginer here. I want to display in the console the values of first and last name. html `<form id="form1" onsubmit="getFormValue()"> First name: <input type="text" name="fname" value="David" /><br /> Last name: <input type="text" name="lname" value…
    filed under javascript
  17. How to select multiple columns based on a condition in SQL? (stackoverflow.com)stack

    13 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
  18. Laravel Sanctum: Access has been blocked by CORS policy: Response to preflight request doesn't pass access control check (stackoverflow.com)stack

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

    I am using Nuxt.js, Laravel, and Laravel Sanctum for API development learning projects. Now, I have been stuck with this error for a few days. I know that Laravel Sanctum will handle everything on config/cors.php with some changes like I said at Nuxt.js - No 'Access-Control-Allo…
  19. Visual Studio Code Extension Install/Update Error: "Failed to load resource: net::ERR_CONNECTION_RESET" (stackoverflow.com)stack

    10 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
  20. Nginx error https . curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number (stackoverflow.com)stack

    9 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
  21. How to convert data from object to string in mule 4? (stackoverflow.com)stack

    7 points by Thiru in stackoverflow.com · 7y ago · stack comments

    I used to convert payload to string whenever i need to log the payload on console using the syntax in mule 3 [message.payloadAs(java.lang.String)] and some times used to use object to string converter or object to array converter. But in mule 4 i don't see any converter as in mu…
    filed under muleconverters
  22. Should I capitalize constant in Python? (stackoverflow.com)stack

    6 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
  23. Using batch to close open image file or word doc (stackoverflow.com)stack

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

    I am coding a choose your own adventure game. Im at the point where a player would have a choice to look at a poster or a document on a desk and the game would open a .jpg file with the poster art or document on the desk i then want the game to close the .jpg file after 5 second…
    filed under batch-file
  24. How to set image position from Javascript (stackoverflow.com)stack

    3 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
  25. 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