2,499 questions
1
vote
0
answers
164
views
Paths amendment using IOUtils
Sometimes I have got paths that mix Linux and Windows versions like that:
./\ or c:\a\b/c or //home//a//b\\1.txt. TPath.GetFullPath() returns correct path but it's absolute and I need that relative ...
0
votes
0
answers
37
views
Failed to load resource. 404 error. Can't load images or js files
There are link problems when loading resources. Can't figure out why.
I have a song-history.js file in /component folder and I'm trying to load it:
<script src="/components/song-history.js&...
4
votes
1
answer
99
views
How to get a resource's relative path to HTML document?
Let's say I have a simple web project structured like this:
├─ 🗎 index.html
├─ 📁 collection
│ ├─ 🗎 item1.html
│ ├─ 🗎 item2.html
│ └─ ...
├─ 📁 css
│ ├─ 🗎 main_styles.css
│ └─ 🗎 ...
0
votes
0
answers
34
views
Handle absolute paths issue in jekyll
I am working on Spring Batch application using Jekyll templates
Now as we know jekyll generates the links dynamically based on the baseurl defined in _config.yml file
The links generated are absolute ...
1
vote
1
answer
77
views
Relative path to assets folder breaks in github pages angular build
https://jamestroxel.github.io/smo-study/
i have pushed my angular web app to a gh-pages branch of my repo and set up github pages to publish from the docs folder generated in the root folder there ...
0
votes
1
answer
71
views
SFML cannot load textures from the images folder - Unable to open file
I am trying to load textures for a chessboard and chess pieces in my chess game using SFML. However, the loadFromFile function fails and returns the error: Unable to open file.
What I am trying to do:
...
0
votes
0
answers
40
views
Root relative path works like relative path
I have links on /en/ like <a href="/en/contact.html">Contact</a>
It works when I test, but I sometimes see in analytics report that a user first visits /en/ and then /en/en/...
0
votes
0
answers
21
views
Is it possible to use relative paths to files in PhpStorm scratches
I'm trying to use the "import" and "run" commands in .http scratches, but I don't understand how to use a relative path in standard scratches directory "Scratches and Consoles&...
1
vote
0
answers
47
views
Why doesn't relativize work for jar resources?
I want to get the path of a jar resource relative to the jar root. This is the MVCE I created:
// Using website example to demonstrate relativize working
URL website = new URL("https://...
0
votes
2
answers
77
views
How to avoid platform based NoSuchFileException when using java.nio.file.Paths?
Whenever I run this code locally, the relative path for the file is working just fine but the Kubernetes pod deployment in pre-prod throws NoSuchFileException.
MOCK_DATA_BASE_PATH = "/data/mocks&...
0
votes
1
answer
135
views
std::ifstream can't open file?
I'm writing a program for my laboratory work using C++. But I have a strange problem that I see first time. I can't open my text file using the ifstream::open method.
This simple code doesn't work too:...
0
votes
2
answers
92
views
Use relative paths in Python in Spyder IDE
In R and R Studio I use relative paths to load data files. This makes the code runnable on anybody else's computer, and hence makes my research reproducible.
To do the same in Python, I have tried ...
0
votes
1
answer
104
views
Creating a relative path to a file in another project
I'm using this functionality to generate an absolute path to a file
HttpContext.Current.Server.MapPath("/File.jpg");
However it returns the path of a directory in the startup project of the ...
2
votes
1
answer
60
views
Strange relative paths containing "*0\0" or "*1\0" cutting off the first 3 characters of path while working with Blender, Assimp.NET and FBX files
I am trying to make a program to merge fbx models. Each model have multiple nodes. Some of the nodes have a specific name meaning that those are functioning as connection points for other models.
I ...
0
votes
0
answers
56
views
launch.json program only supports absolute path
After searching searching searching, trying trying trying, I'm a little bit lost and politely ask for help.
In a project from NXP example code for VS Code, I managed to get the debugger going and ...