• Trends
  • Topics
  • Nodes
Search for keywords, #hashtags, $sites, add a dash to exclude, e.g. -$theonion.com

From stackoverflow.com

file_put_contents php permissions

1 1

This is a question about my system configuration and how apache/php can be affected by that. Code that was working on my dev server failed to work when I moved to production and here is the problem I

7h ago

From stackoverflow.com

Why is function http_response_code() acting strange that was called after function header() in PHP?

1 1

Well. I have a problem with http_response_code(), and I can't find an explanations. If I use header() before http_response_code(), PHP returns HTTP-status which was set by header() and ignores any

11h ago

From stackoverflow.com

Line height in Xcode

1 1

How do I increase the distance between the lines in Xcode? I mean in the actual code. Even when I change the font and font sizes in the Xcode preferences, the code lines are still too close toget...

#fonts #xcode #iosdev

on Sep 6

From stackoverflow.com

How can I make Vim paste from (and copy to) the system's clipboard?

1 1

Unlike other editors, Vim stores copied text in its own clipboard. So, it's very hard for me to copy some text from a webpage and paste it into the current working file. It so happens I have to eit...

#vim

on Sep 6

From stackoverflow.com

Existing React Stack Snippets broken by update

0 0

The recent update to Stack Snippets breaks existing React snippets in posts. The Run code snippet button is there, but the snippet doesn't work anymore. (Related but different: Button to "Run ...

15h ago

From stackoverflow.com

Prevent HTML dialog from grabbing focus

0 1

The <dialog> element will receive focus once it is opened and I know that this is the intended behavior. However, I thought about using a <dialog> element to show a short notice at the ...

on Thu, 1AM

From stackoverflow.com

How can I create a javascript ServiceWorker instance from a string?

0 1

The following script in my index.html file: <script> const serviceWorkerCode = ` self.addEventListener('fetch', event => { console.log('Fetch intercepted!', event.

on Wed, 6PM

From stackoverflow.com

Composition of Data.Dynamic functions in Haskell

0 1

I have some functions in Haskell with various types. I need to keep them in some heterogenous list so use something like Data.Dynamic. I want to take functions from this list and compose them toget...

on Wed, 12AM

From stackoverflow.com

Serialization QList<MyObject> to JSON

0 1

I've problem, I tried searched online like convert QList to JSON, and send it to URL, but first, I don't found nothing about serialise QList&lt;Myobject&gt; to json with Qt and C++. My not empty Q...

on Tue, 3PM

From stackoverflow.com

Access jdk.unsupported from JUnit doesn't need module require

0 1

I'm trying to figure out why JUnit behaves differently from a 'regular' Java program with respect to the jdk.unsupported module. And yes, I know I shouldn't be using this. I'm just trying (and fail...

on Tue, 2PM

From stackoverflow.com

Кириллица в именах переменных

0 1

Как известно, кириллица в именах переменых это плохо. А почему? Ну, кроме известного довода, что "а если вы будете работать с иностранными программистами?" P.S. Предположим, что речь идет о языке

on Tue, 12PM

From stackoverflow.com

Why does modern Perl avoid UTF-8 by default?

0 1

I wonder why most modern solutions built using Perl don't enable UTF-8 by default. I understand there are many legacy problems for core Perl scripts, where it may break things. But, from my point of

on Tue, 9AM

From stackoverflow.com

How to create multiple page app using react

0 1

I have created a single page web app using react js. I have used webpack to create bundle of all components. But now I want to create many other pages. Most of pages are API call related. i.e. in the

on Tue, 8AM

From stackoverflow.com

why integer cannot add with string

0 1

n=int(input('Enter any number :')) str1=&quot;&quot; for i in range(1,n+1): str1+=n print(str1) I tried the above mentioned code and it gave me typeerror and My expectation is e.g n=5 output : 1...

on Tue, 12AM

From stackoverflow.com

What is a 'NoneType' object?

0 1

I'm getting this error when I run my python script: TypeError: cannot concatenate 'str' and 'NoneType' objects I'm pretty sure the 'str' means string, but I dont know what a 'NoneType' object is....

on Tue, 12AM

From stackoverflow.com

What is the correct MIME type to use for an RSS feed?

0 1

Is one MIME type preferable to ensure compatibility with RSS readers and other scrapers? The options seem to be: text/xml text/rss+xml Interestingly Stackoverflow is using text/html.

on Mon, 10PM

From stackoverflow.com

Newest 'greatest-n-per-group' Questions

0 1

Stack Overflow | The World’s Largest Online Community for Developers

on Mon, 11AM

From stackoverflow.com

Visual Studio Code — Insert Newline at the End of Files

0 1

When saving a file using Visual Studio Code, a newline is not automatically added to the end of the file, causing all sorts of potential issues. How can I append a newline automatically in Visual S...

on Mon, 9AM

From stackoverflow.com

Get Unix time in Python

0 1

In Python, I want to get the current Unix timestamp and then store the value for the long term and be handled by non-Python systems. (I am not merely trying to compute the difference between two

on Sun, 3PM

From stackoverflow.com

Maximum number of threads per process in Linux?

0 1

What is the maximum number of threads that can be created by a process under Linux? How (if possible) can this value be modified?

on Sun, 2PM

From stackoverflow.com

Adding Subdirectories to Load Path

0 1

Rather than individually specifing each subdirectory in my plugins directory I want to be able to automatically load them, to that end I included the following to my .emacs file: (let ((base "~/....

on Sun, 11AM

From stackoverflow.com

VSCode debugger stops where no breakpoint exists

0 1

I am using VSCode to debug a C++ code. The code is running using an attach configuration (Python C++ Debugger VSCode extension). When running the code, the debugger stops at a point where there is no

on Sun, 2AM

From stackoverflow.com

How to use VideoToolbox to decompress H.264 video stream

0 1

I had a lot of trouble figuring out how to use Apple's Hardware accelerated video framework to decompress an H.264 video stream. After a few weeks I figured it out and wanted to share an extensive

on Sat, 10PM

From stackoverflow.com

Docker `FROM node` throws `401 Unauthorized` from `GET` (but the `GET` works in Firefox)

0 1

XY Problem What would cause a GET to succeed in Firefox/cURL (200 response) but fail from docker (401 Unathorized)? Full problem: Downloaded Docker Desktop &amp; started the tutorial &quot;How do ...

on Fri, 9PM

From stackoverflow.com

I change the capitalization of a directory and Git doesn't seem to pick up on it

0 1

I'm developing a project on OS X Lion that is under Git version control. I had these lowercase directories and then later capitalized them (e.g. emailaddresses => EmailAddresses), but Git doesn't s...

on Fri, 8PM

From stackoverflow.com

How set focus on specific input text field in Flutter

0 1

I have some TextFormField field in my flutter app. Here are the controllers of those fields. TextEditingController nameCtrl = TextEditingController(); TextEditingController idCtrl = TextEditingCont...

on Fri, 5PM

From stackoverflow.com

What's the fastest way to loop through an array in JavaScript?

0 1

I learned from books that you should write for loop like this: for(var i=0, len=arr.length; i &lt; len; i++){ // blah blah } so the arr.length will not be calculated each time. Others say ...

on Fri, 4PM

From stackoverflow.com

How to handle data migration when using CloudKit?

0 1

General problem I have an iOS app which uses Core Data with CloudKit and I reached the point where I need to evolve the schema and migrate existing data. Schema changes What I need is adding a new ...

on Fri, 11AM

From stackoverflow.com

How to return base64 image from Azure Function as binary data

0 1

An Azure Function HTTP binding reads from an Azure Blob Storage an image as a Base64 string. data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQTEhIUEhIUFBUV…K9rk8hCAEkjFMUYiEAI+

on Fri, 9AM

From stackoverflow.com

How can I transition height: 0; to height: auto; using CSS?

0 0

I am trying to make a &lt;ul&gt; slide down using CSS transitions. The &lt;ul&gt; starts off at height: 0;. On hover, the height is set to height:auto;. However, this is causing it to simply appea...

on Sep 26

From stackoverflow.com

HTML dialog focusing button element when opened

0 0

I currently have a &lt;dialog&gt; which I am opening via JS. For demonstration purposes, my dialog has a single &lt;button&gt; element within it. My issue is, when I open the dialog using .showMo...

on Sep 26

From stackoverflow.com

How do I read an entire file into a std::string in C++?

0 0

How do I read a file into a std::string, i.e., read the whole file at once? Text or binary mode should be specified by the caller. The solution should be standard-compliant, portable and efficient...

on Sep 26

From stackoverflow.com

Why is `gem clean` reporting multiple ambiguous references to the default psych gem?

0 0

Problem For the past several version of macOS (including Sequoia) and with Ruby 3.4.x (and specifically with Ruby 3.4.4 and 3.4.5) anytime I attempt to clean up the psych gem I get the following er...

on Sep 25

From stackoverflow.com

Can git automatically switch between spaces and tabs?

0 0

I use tabs for indentation in my python programs, but I would like to collaborate (using git) with people who use spaces instead. Is there a way for git to automatically convert between spaces and...

on Sep 25

From stackoverflow.com

change thread name on linux (htop)

0 0

I have a multithread application and I would like that htop (as example) shows a different name per each thread running, at the moment what it shows is the "command line" used to run the main. I h...

on Sep 25

From stackoverflow.com

How to remove the default Navigation Bar space in SwiftUI NavigationView

0 0

I am new to SwiftUI (like most people) and trying to figure out how to remove some whitespace above a List that I embedded in a NavigationView. In this image, you can see that there is some white s...

on Sep 25

From stackoverflow.com

React.js setting value of input

0 0

I am a beginner with react.js and it's amazing but I am facing a real problem: I need to set the value of an input using plain and pure javascript but for some reason react.js is not working as exp...

on Sep 24

From stackoverflow.com

JavaScript: filter() for Objects

0 0

ECMAScript 5 has the filter() prototype for Array types, but not Object types, if I understand correctly. How would I implement a filter() for Objects in JavaScript? Let's say I have this object...

on Sep 24

From stackoverflow.com

What is u_int32_t?

0 0

Possible Duplicate: Datatypes used in C Hi I'm doing porting from Linux to Visual C ++. And I found quite a few errors. What is u_int32_t ? I can't find it in Visual C ++? Is it only availabl...

on Sep 24

From stackoverflow.com

How do I determine if a random string sounds like English?

0 0

I have an algorithm that generates strings based on a list of input words. How do I separate only the strings that sounds like English words? ie. discard RDLO while keeping LORD. EDIT: To clarify,...

on Sep 23

From stackoverflow.com

Array sort, slice and reverse returns empty

0 0

I have an array sorted by the last column, where I want to use/show the top 3 sorted rows. Slicing works and reversing the 2nd dimension (2nd example) works as well. However when I want to revers...

on Sep 23

From stackoverflow.com

What are .sln and .vcproj files, and what do they contain?

0 0

I'm new in the world of Visual Studio. Can somebody please explain what these two files contain? I know that one of them contains info about project, but what about the other one?

on Sep 23

From stackoverflow.com

modern approach to 3D visualization in python: discuss mayavi

0 0

Is Mayavi the "modern" approach to 3D visualization scripting with python? By modern, I mean a well informed person would choose to use Mayavi in 2015 for a variety of project requirements. I first

on Sep 23

From stackoverflow.com

How to prevent Pelican from copying Markdown source files into output folder?

0 0

I am converting my Jekyll blog to Pelican. The directory structure of the source content folder uses YYYY/MM/DD/slug.md to organize blog posts and stores static files in files/YYYY/filename.ext. St...

on Sep 22

From stackoverflow.com

Swift parameter packs and Sendable

0 0

The following code produces a warning about a non-sendable type: func pack&lt;each U: Sendable&gt;(arg: repeat each U, function: @escaping @Sendable (repeat each U) -&gt; Void) { Task { @MainAc...

on Sep 21

From stackoverflow.com

C++ Downcasting to Derived Class based off Variable

0 0

Suppose I have a base class "Shape", and derived classes "Triangle", "Square", and "Circle". A member of "Shape" is an int "shapeType". If shapeType==1, then it's a triangle. If shapeType==2, the...

on Sep 20

From stackoverflow.com

C++ cast to derived class

0 0

How can i cast to a derived class? The below approaches all give the following error: Cannot convert from BaseType to DerivedType. No constructor could take the source type, or constructor ove...

on Sep 20

From stackoverflow.com

Returning http 200 OK with error within response body

0 0

I'm wondering if it is correct to return HTTP 200 OK when an error occurred on the server side (the error details would be contained inside the response body). Example: We're sending HTTP GET Som...

on Sep 20

From stackoverflow.com

C#: Throttle/rate limit outgoing HTTP requests with Polly

0 0

I am developing an integration solution that accesses a rate limited API. I am performing a variety of CRUD operations on the API using multiple HTTP verbs on different endpoints (on the same server

on Sep 20

From stackoverflow.com

Enable access control on simple HTTP server

0 0

I have the following shell script for a very simple HTTP server: #!/bin/sh echo "Serving at http://localhost:3000" python -m SimpleHTTPServer 3000 I was wondering how I can enable or add a CORS ...

on Sep 19