Questions tagged [file-structure]

257 questions
3
votes
1 answer

How to relocate source files in Visual Studio?

Consider the following directory structure: MyProject\VS2010\myproject.sln MyProject\VS2010\myproject.csproj MyProject\src\SourceFile1.cs MyProject\src\SourceFile2.cs When I add a new file to solution in Visual Studio, it is added to VS2010…
Dmitrii Erokhin
  • 1,347
  • 13
  • 31
3
votes
1 answer

Sass 7-1 Pattern using @use and @forward

What's the correct way of setting up a Sass 7-1 Pattern using @use and @forward? Example: Sass 7-1 Pattern Files: ./scss/abstracts/_variables.scss $main-color: #222222; ./scss/abstracts/_index.scss @forward…
3
votes
1 answer

How can I extract a BMP from an ICO file?

I'm doing some work where I'm programmatically downloading icons from sites specified in an OpenSearch document and I need to extract the first image (for now) if it is in ICO format. I'm able to read the ICO file header with no problems and…
Andy E
  • 338,112
  • 86
  • 474
  • 445
3
votes
2 answers

For what do we need the templates folder in Gatsby project file structure

For what do we need the templates folder in Gatsby project file structure? Can I use this folder for storing ordinary components that I reuse on a home page such as "hero" or "info" components ets?
3
votes
1 answer

what's the best practice navigation react native

I develop a mobile application with react native. I use react-native-router-flux and my App.js like this. import React, { Component } from "react"; import { Router, Scene } from "react-native-router-flux"; import A from './pages/A'; import B from…
3
votes
2 answers

Utilizing a component, from GitHub, in my Vue project. (I'm a complete beginner)

This semester, I began learning Vue. Our first "assignment" for the Vue phase was to follow along with, and complete, the instruction provided by a YouTube video from Traversy Media. This video was great to follow, evident that I was able to…
David C.
  • 33
  • 3
3
votes
2 answers

Deploy Vue.js app to Apache server

i need some help. I wrote an SPA using VueJs. I ran "npm run build" so i can test my app on my Xampp server. The build generated a "/dist" folder. I changed the index.html in the dist folder to index.php. I tried serving the dist folder with Xampp…
okwuriki kelechi
  • 31
  • 1
  • 1
  • 4
3
votes
1 answer

Is it possible to have files from multiples paths into one git repository?

We have a commercial WordPress Theme that come packaged with a few plugins. The plugins are part of the theme, they are not sold separately nor usable without the theme. The theme goes in the following path: /wp-content/themes/MyTheme/ While the…
Community
  • 4,922
  • 7
  • 25
  • 37
3
votes
2 answers

PNG files structure

I've already learned how to generate BMP images based on the BMP files structure (here and here). Now I'm looking for the PNG file structure but I haven't found any good explanations. Do you know where I can find this explanation with schemes as…
Danilo Valente
  • 11,270
  • 8
  • 53
  • 67
2
votes
1 answer

What is the right way to organize a project with simple dependencies?

While writing code, I often run into the problem of addressing trivial dependancies. For example, let's take the layout of a memoizer object I've recently written. My directory structure looks like this: memoizer/ memoizer.py tests.py …
Ceasar
  • 22,185
  • 15
  • 64
  • 83
2
votes
2 answers

How should BMP header look like?

I am trying to write a code to read a BMP file so I am trying to read BMP header(s). I am using a test image from some code library but it looks, like the structure doesn't correspond with the information about BMP image structure on Wikipedia…
noname
  • 21
  • 4
2
votes
2 answers

How would I rebuild a directory structure into a dictionary?

I'd like to take a single folder path (root) and then put all the file paths into a dictionary that resembles the original directory structure. Ex: I have a folder that looks like…
2
votes
2 answers

Python nested import

I can't get my mind around this problem Let's suppose we have a file structure Folder ├── main_file.py ├── Subfolder │ ├── __init__.py │ ├── file_a.py # def foo() │ ├── file_b.py # from file_a import foo; def bar(...use function foo()) How…
Jasasul
  • 39
  • 3
2
votes
1 answer

How to structure Models and Views in NodeJS?

I am writing a NodeJS based server- and client-side JavaScript application. I have Controllers, Models, Views and Presenters. The problem I am facing is that some parts of the code need to be only server-side, some client-side and some both. For…
Tower
  • 98,741
  • 129
  • 357
  • 507
2
votes
2 answers

Custom exceptions in c++: where do I define them?

For my current project I am regularly defining custom exceptions that I want to catch. However, I am struggling with deciding what the best structure is for my code regarding the definition of these exceptions. Initially, I just defined the…
Charlee
  • 23
  • 4
1 2
3
17 18