1,636 questions
7
votes
1
answer
96
views
Detect leaking of private types which are only public in their module
Suppose I have a Rust crate mycrate with lib.rs:
mod internal {
pub struct X();
pub fn x() -> X {
X()
}
}
pub use internal::x;
This works fine on Rust 2024 and any consumer ...
1
vote
1
answer
501
views
Privacy property of inherited members affects overall size of class?
Running this code below, the sizeof base class and derived class are both 32.
#include "iostream"
#include "string"
using namespace std;
class base{
//public:
int ...
-1
votes
3
answers
59
views
Public Variables in Forms with Multiple Copies
I have written a process where a form can be created a multiple of times - each copy relating to a particular value in a variable at the time of creation.
I use :-
Dim FormA As New FormX
FormA.Show()
...
0
votes
0
answers
78
views
What Exactly is the difference between "Public Class" vs "Struct" (In cpp) [duplicate]
I wonder, if class's members are public then they behave same as struct. But there should be some difference in between them, right. When should we use public class vs struct?
0
votes
0
answers
27
views
Tableau Public Data type from number to Date not working
Why can't I change Year column from number to Date format in Tableau?
Change data type from number to date in Tableau public
Tableau Public Data type from number to Date not working
Tableau public is ...
0
votes
1
answer
309
views
How to publish a forward facing API in SvelteKit?
I know that perhaps a dedicated server would be better for this, however I'm not familiar with server only frameworks. But I'm very familiar with SvelteKit api routes. I decided to create a route ...
-2
votes
2
answers
251
views
Difficulty Using Internal or Private Types in Swift Protocol Conformance
I'm encountering issues while trying to use internal or private types in Swift protocol conformance. Here's a simplified version of my code:
internal protocol RATIONAL {
associatedtype rational
...
-1
votes
1
answer
109
views
Laravel app inside Wordpress website run on app folder and not in app/public folder?
I have a wordpress website in which I want to use a Laravel app in a subfolder
Like this:
https://website.com/* -> wordpress
https://website.com/app/ -> laravel
But I only managed to run it ...
0
votes
1
answer
49
views
S3 does not return any errors but does not upload the file to the cloud
Good friends, I have a problem when registering a file in S3 from Laravel, the point is that after putting the credentials in the .env when clicking on register it does not give me any error message ...
1
vote
1
answer
125
views
Styles, font and js don't load on laravel deployed on shared hosting
As mentioned above, styles, font and js don't load on laravel deployed on shared hosting. How does it look like on my localhost:
And that's same code deployed on hosting:
Where I take it from:
,
And ...
0
votes
1
answer
285
views
how to return a std::expect<T, E> from a function where T's move/copy constructor are deleted and has a private constructor
Currently I have this code, which works fine:
#pragma once
#include <expected>
#include <wayland-server.h>
class Display
{
private:
struct wl_display *ptr;
public:
enum class ...
0
votes
0
answers
66
views
Separating git commits for private and public
How can I separate git commits / git history from personal (private) and public.
I have several computers and I often switch between them. In order to have the latest code available I very often do ...
0
votes
2
answers
388
views
How to publish SharePoint calendar in website
We need the Steps to have the Task resolved regarding: How to publish SharePoint calendar on a public website.
We were only able to enable the anonymous access from the calendar to access and not sure ...
0
votes
0
answers
94
views
public/.htaccess file not found
I'm building a music streaming platform but trying to install the script it was like. I saw this error text that says
Make sure public/.htaccess file has been uploaded properly to your server and is ...
0
votes
1
answer
50
views
DevOps pipelines read for public
What recently happened to Azure pipelines in public projects that are not accessible to the public without login anymore? I believe it was fine a few weeks ago...
I was checking all configurations/...
0
votes
1
answer
485
views
Symfony 5.4 - Public services do not seem to work
Public service seems to be broken
Error:
Service "BaseService" not found: even though it exists in the app's container, the container inside "classes\classBundle\Controller\...
-3
votes
2
answers
1k
views
How to rewrite shared hosting root to the public folder and redirect /public back to the root?
I have a Laravel project which was moved from custom VPS into shared hosting.
Rewrite all from root to the public was easy part.
But when i go to the domain.com/public page works...
So how i rewrite ...
0
votes
1
answer
57
views
How to display the names of files that are not extracted as output in VBA Access software
Sub ExportPDFs()
Dim rs As DAO.Recordset
Dim folder As String, path As String
Dim adoStream As Object 'Late bound ADODB.Stream
Dim failedFiles As New Collection 'list of failed files
...
-1
votes
1
answer
697
views
Extract Files from an Access OLE Object
How 'bout taking those pdf-formatted package files from the table in Access and movin' 'em to a folder
If ya can, exteract the (product name) 'n the (pdf) as well That'd be awesome; lemme know if ...
-2
votes
1
answer
220
views
Unable to access running PHP server on 8080 port of ec2 instance
I deployed a code on an AWS ec2 instance.
I also added security groups to allow public access to the instance
I made sure that the firewall is disabled
The IP tables also seem to be in order
I'm ...
1
vote
0
answers
190
views
How can I create linting errors (in typescript) if no jsdoc for public functions or variables is provided?
I want to make sure that all of my public variables and methods in my code are documented.
I have tried to use eslint-plugin-jsdoc and have activated all of the recommended rules. Additionally, I ...
0
votes
1
answer
133
views
Get the public path to a class object in python
I am wondering if there is a mechanism in python to fetch the "public" path to a class object in python (PEP8, __all__, "explicit reexport", ...).
To provide a minimal example, ...
1
vote
2
answers
2k
views
The images do not work with a tutorial to follow to make my page in nextjs with i18n, can someone help me?
Everything works great translate everything in nextjs13.4, tailwindcss and i18n, I'm not using typescript, but my image doesn't load anywhere despite being in the public folder.
Error that I get in ...
0
votes
3
answers
8k
views
PHP Parse error: syntax error, unexpected token "public" in Error Message On PHP 8.1
The above error message is triggered, when running in PHP 8.1.
Haven't been able to spot anything obvious, as to where the code below needs to be changed to eliminate this error message.
public ...
5
votes
1
answer
88
views
Why would I let an exported pointer variable point to an unexported variable, at package level?
Taking the standard library net/http for example, the DefaultClient is defined as:
var DefaultClient = &Client{}
However, the DefaultServeMux is defined as:
var DefaultServeMux = &...