directory-structure

Where do I put static files for GWT app? war folder or public folder?

倖福魔咒の 提交于 2019-11-27 21:22:07
I have some JavaScript files, a main HTML file, a main CSS file, and some CSS files that get imported into the main one. I understand that I can put static files in two places: a) the 'war' folder; or b) the 'public' folder. Where is the best place to put my static files? Are the two locations treated differently? Is there a 'best practice' on this issue? The difference between the 2 locations is that files in the public folders are copied by the gwt compiler to the 'your module' folder in the 'war' folder. This is means if you deploy the 'war' (for example via the google plugin to the google

Unix standard directory to put custom executables or scripts? [closed]

情到浓时终转凉″ 提交于 2019-11-27 18:14:54
If I have a custom shell script or programs, that I created myself or downloaded from the web, and I want to be able to execute this from the CLI, is there the standard location to put this in Linux/Unix directory structure? /usr/bin ? /usr/local/bin ? /usr/lib ? /usr/sbin ? /bin ? /sbin ? /var ? I usually put it under my ~/bin folder and put it in PATH, but it doesn't seem clean. And everytime I downloaded a new program, I have to put it in the PATH again. /usr/local/bin exists precisely for this purpose, for system-wide installation. For your own private use, ~/bin is the de facto standard.

Zend Framework on shared hosting

微笑、不失礼 提交于 2019-11-27 18:02:49
I'm new to Zend Framework. I would like to know how to implement zend framework on a shared hosting. Because of the zend framework folder structure all view files are put into the "public" folder. Suppose "/" is the main root folder for me and public is like "/public" so that the url becomes " http://site/public/ . .. .bla bla..." is this correct? or is there any other method? i dont have any permission to create a virtual host. so what to do? I hope that you understood my question. If not, please ask me. Thank you! i think the best way is to remove the .htaccess from the public directory

TypeScript - How to keep compiled files in a separate directory?

有些话、适合烂在心里 提交于 2019-11-27 17:55:27
I'm fairly new to TypeScript, and right now I have .ts files in several places throughought my project structure: app/ |-scripts/ |-app.ts | |-classes/ | |-classA.ts | |-classB.ts | |-controllers/ | |-controllerA.ts | |-controllerB.ts | |-otherStuff/ |-otherstuffA.ts Right now, when my files are compiled, they are compiled to the same directory that the .ts fles are in: app/ |-scripts/ |-app.ts |-app.js | |-classes/ | |-classA.ts | |-classB.ts | |-classA.js | |-classB.js | |-controllers/ | |-controllerA.ts | |-controllerB.ts | |-controllerA.js | |-controllerB.js | |-otherStuff/ |-otherstuffA

C# OpenFileDialog Lock To Directory

妖精的绣舞 提交于 2019-11-27 16:08:00
I am making a software that needs to ONLY be able allow people to select files and folders using the OpenFileDialog that are in the same directory as the program and that are in deeper folders. I don't want the OpenFileDialog to be able to select stuff outside of the program's current directory. Is this possible to do in C# using the OpenFileDialog? Please let me know Thanks you can check if the path is correct after selected if its just accept or send message box tell him you select different directory I don't see any out of the box support by the OpenFileDialog Control. However, you can try

os.walk() python: xml representation of a directory structure, recursion

爷,独闯天下 提交于 2019-11-27 15:19:42
问题 So I am trying to use os.walk() to generate an XML representation of a directory structure. I seem to be getting a ton of duplicates. It properly places directories within each other and files in the right place for the first portion of the xml file; however, after it does it correctly it then continues traversing incorrectly. I am not quite sure why.... Here is my code: def dirToXML(self,directory): curdir = os.getcwd() os.chdir(directory) xmlOutput="" tree = os.walk(directory) for root,

iPhone Documents directory and UIFileSharingEnabled, hiding certain documents

半腔热情 提交于 2019-11-27 12:31:43
I want the user to be able to access the files in the documents directory but am using core data and dont want the user to be able to access the store (the sqllite db), can i hide it from the user while still allowing file sharing, or can i put it in another directory where it will still get backed up? memmons The answer given by FrenchKiss Dev is not correct. The user will still be able to see the ".data" directory in iTunes and save that locally with all the files inside it. Instead, store private documents in Library/Preferences According to Apple : In addition to the directories documented

Tips for managing a large number of files?

给你一囗甜甜゛ 提交于 2019-11-27 11:45:06
问题 There are some very good questions here on SO about file management and storing within a large project. Storing Images in DB - Yea or Nay? Would you store binary data in database or in file system? The first one having some great insights and in my project i've decided to go the file route and not the DB route. A major point against using the filesystem is backup. But in our system we have a great backup scheme so i am not worried about that. The next path is how to store the actual files.

Maximum number of files/directories on Linux?

狂风中的少年 提交于 2019-11-27 10:40:36
问题 I'm developing a LAMP online store, which will allow admins to upload multiple images for each item. My concern is - right off the bat there will be 20000 items meaning roughly 60000 images. Questions: What is the maximum number of files and/or directories on Linux? What is the usual way of handling this situation (best practice)? My idea was to make a directory for each item, based on its unique ID, but then I'd still have 20000 directories in a main uploads directory, and it will grow

Vue structuring with Vuex and component-specific data

瘦欲@ 提交于 2019-11-27 09:49:10
I see a lot of Vue.js projects using this structure: ├── main.js ├── api │ └── index.js │ └── services #containing files with api-calls │ ├── global.js │ ├── cart.js │ └── messages.js ├── components │ ├── Home.vue │ ├── Cart.vue │ ├── Messages.vue │ └── ... └── store ├── store.js ├── actions.js #actions to update vuex stores ├── types.js └── modules ├── global.js ├── cart.js └── ... (An example with this structure is ' Jackblog '.) So, for example, Cart.vue wants to update the inCart data in Vuex. To do that, the Cart imports actions.js : import { inCart } from '../../store/actions' The